Module: ActionControllerExtensions
- Defined in:
- lib/wheels/action_controller_extensions.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.authorized ⇒ Object
2 3 4 5 6 7 8 9 |
# File 'lib/wheels/action_controller_extensions.rb', line 2 def self. class_eval do def resource super end end end |
Instance Method Details
#authorize_this ⇒ Object
11 12 13 14 |
# File 'lib/wheels/action_controller_extensions.rb', line 11 def resource, params[:action] unless @authorized @authorized = true end |