Module: ResourcefulController::ClassMethods

Includes:
CrudDefinitions
Defined in:
lib/resourceful_controller.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from CrudDefinitions

#default_methods, #define_create, #define_crud_methods, #define_destroy, #define_edit, #define_index, #define_new, #define_show, #define_update, #excepted_methods, #methods, #specified_methods

Instance Attribute Details

#optionsObject

Returns the value of attribute options.



26
27
28
# File 'lib/resourceful_controller.rb', line 26

def options
  @options
end

Instance Method Details

#act_resourcefully(options = {}) ⇒ Object



28
29
30
31
# File 'lib/resourceful_controller.rb', line 28

def act_resourcefully options = {}
  self.options = options
  define_crud_methods
end