Method: Caboose.plugin_hook
- Defined in:
- lib/caboose/engine.rb
.plugin_hook(*args) ⇒ Object
33 34 35 36 37 38 39 40 41 42 43 |
# File 'lib/caboose/engine.rb', line 33 def Caboose.plugin_hook(*args) resp = nil args[0] = args[0].to_sym Caboose.plugins.each do |mod| #resp = mod.constantize.send(*args) if (mod.constantize.respond_to?(args[0])) resp = mod.constantize.send(*args) end end return resp end |