Class: Bscf::Core::ApplicationPolicy

Inherits:
Object
  • Object
show all
Defined in:
app/policies/bscf/core/application_policy.rb

Direct Known Subclasses

UserPolicy, UserProfilePolicy, UserRolePolicy

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(user, record) ⇒ ApplicationPolicy

Returns a new instance of ApplicationPolicy.



6
7
8
9
# File 'app/policies/bscf/core/application_policy.rb', line 6

def initialize(user, record)
  @user = user
  @record = record
end

Instance Attribute Details

#recordObject (readonly)

Returns the value of attribute record.



4
5
6
# File 'app/policies/bscf/core/application_policy.rb', line 4

def record
  @record
end

#userObject (readonly)

Returns the value of attribute user.



4
5
6
# File 'app/policies/bscf/core/application_policy.rb', line 4

def user
  @user
end