Class: ActionController::Base

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

Class Method Summary collapse

Class Method Details

.inherit_resourcesObject

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



37
38
39
40
41
# File 'lib/karsthammer-inherited_resources.rb', line 37

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