Module: CrudMethods::Controller::ControllerClassMethods
- Defined in:
- lib/crud_methods/controller.rb
Instance Method Summary collapse
Instance Method Details
#crud_actions(*args) ⇒ Object
34 35 36 37 38 39 40 41 |
# File 'lib/crud_methods/controller.rb', line 34 def crud_actions(*args) args.each do |spec| spec = ::CrudMethods.default_extension if spec == :defaults puts spec _state_partition_for :action_name, :extend => spec end puts _state_partition_for(:action_name).index end |
#crud_method(name) ⇒ Object
43 44 45 |
# File 'lib/crud_methods/controller.rb', line 43 def crud_method(name) state_method(name, :action_name) end |