Module: Flame::Controller::ModuleActions
- Defined in:
- lib/flame/controller.rb
Overview
Extension for modules whose public methods will be defined as actions via including
Instance Method Summary collapse
Instance Method Details
#included(ctrl) ⇒ Object
204 205 206 207 208 |
# File 'lib/flame/controller.rb', line 204 def included(ctrl) public_instance_methods.each do |meth| ctrl.send :define_method, meth, public_instance_method(meth) end end |