Module: CommonLib::ActionControllerExtension::AccessibleViaUser
- Defined in:
- lib/common_lib/action_controller_extension/accessible_via_user.rb
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
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.
Class Method Details
.included(base) ⇒ Object
3 4 5 |
# File 'lib/common_lib/action_controller_extension/accessible_via_user.rb', line 3 def self.included(base) base.extend ClassMethods end |
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.
9 10 11 12 13 14 15 |
# File 'lib/common_lib/action_controller_extension/accessible_via_user.rb', line 9 def nawil_redirection(={}) if [:redirect] send([:redirect]) else root_path end end |