Module: RailsExtension::ActionControllerExtension::AccessibleViaUser::InstanceMethods
- Defined in:
- lib/rails_extension/action_controller_extension/accessible_via_user.rb
Instance Method Summary collapse
-
#nawil_redirection(options = {}) ⇒ Object
This needs to be static and not dynamic or the multiple calls that would create it would overwrite each other.
Instance Method Details
#nawil_redirection(options = {}) ⇒ Object
This needs to be static and not dynamic or the multiple calls that would create it would overwrite each other.
12 13 14 15 16 17 18 |
# File 'lib/rails_extension/action_controller_extension/accessible_via_user.rb', line 12 def nawil_redirection(={}) if [:redirect] send([:redirect]) else root_path end end |