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



203
204
205
206
207
# File 'lib/flame/controller.rb', line 203

def included(ctrl)
  public_instance_methods.each do |meth|
    ctrl.send :define_method, meth, public_instance_method(meth)
  end
end