Class: Guts::UserPolicy

Inherits:
ApplicationPolicy show all
Defined in:
app/policies/guts/user_policy.rb

Overview

User policy

Instance Attribute Summary

Attributes inherited from ApplicationPolicy

#record, #user

Instance Method Summary collapse

Methods inherited from ApplicationPolicy

#create?, #destroy?, #edit?, #index?, #initialize, #new?, #scope, #show?, #update?

Constructor Details

This class inherits a constructor from Guts::ApplicationPolicy

Instance Method Details

#switch_user?Boolean

Switch user method policy

Returns:

  • (Boolean)

    allowed or denied



6
7
8
# File 'app/policies/guts/user_policy.rb', line 6

def switch_user?
  standard_check :switch_user?
end