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
5 6 7 |
# File 'lib/switch_user/lambda_guard.rb', line 5 def controller_available? call(SwitchUser.controller_guard) end |
#view_available? ⇒ Boolean
9 10 11 |
# File 'lib/switch_user/lambda_guard.rb', line 9 def view_available? call(SwitchUser.view_guard) end |