Class: ActionController::Base

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

Instance Method Summary collapse

Instance Method Details

#resource_definitionObject



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