Class: SwitchUser::LambdaGuard
- Defined in:
- lib/switch_user/lambda_guard.rb
Instance Method Summary collapse
Methods inherited from BaseGuard
Constructor Details
This class inherits a constructor from SwitchUser::BaseGuard
Instance Method Details
#controller_available? ⇒ Boolean
3 4 5 |
# File 'lib/switch_user/lambda_guard.rb', line 3 def controller_available? call(SwitchUser.controller_guard) end |
#view_available? ⇒ Boolean
7 8 9 |
# File 'lib/switch_user/lambda_guard.rb', line 7 def view_available? call(SwitchUser.view_guard) end |