Class: ActionController::Base
- Inherits:
-
Object
- Object
- ActionController::Base
- Defined in:
- lib/resource_awareness/action_controller_extensions.rb
Instance Method Summary collapse
Instance Method Details
#resource_definition ⇒ Object
4 5 6 |
# File 'lib/resource_awareness/action_controller_extensions.rb', line 4 def resource_definition @resource_definition ||= Rails.application.resource_definitions.find { |r| r.controller_path == self.controller_path } end |