Module: Rooftop::Rails::NestedResource
- Defined in:
- app/controllers/concerns/rooftop/rails/nested_resource.rb
Overview
A controller mixin which can load a resource from a nested path. Useful mostly for pages. The mixin defines some dynamic instance methods on the controller, and a class method to define the name of the model you want to load.
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
6 7 8 |
# File 'app/controllers/concerns/rooftop/rails/nested_resource.rb', line 6 def self.included(base) base.extend ClassMethods end |