Class: ActionController::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/inherited_resources.rb

Class Method Summary collapse

Class Method Details

.inherit_resourcesObject

If you cannot inherit from InheritedResources::Base you can call inherit_resources in your controller to have all the required modules and funcionality included.


39
40
41
42
43
# File 'lib/inherited_resources.rb', line 39

def self.inherit_resources
  InheritedResources::Base.inherit_resources(self)
  initialize_resources_class_accessors!
  create_resources_url_helpers!
end