Module: ActiveList::ActionPack::ActionController::ClassMethods
- Defined in:
- lib/active_list/action_pack.rb
Instance Method Summary collapse
-
#list(*args, &block) ⇒ Object
Permits to define and generate methods to manage dynamic table ActiveList.
Instance Method Details
#list(*args, &block) ⇒ Object
Permits to define and generate methods to manage dynamic table ActiveList
15 16 17 18 19 20 21 22 |
# File 'lib/active_list/action_pack.rb', line 15 def list(*args, &block) = args. [:controller] = self args << generator = ActiveList::Generator.new(*args, &block) class_eval(generator.controller_method_code, __FILE__, __LINE__) ActionView::Base.send(:class_eval, generator.view_method_code, __FILE__, __LINE__) end |