Methods
A
C
N
Attributes
[RW] current_user
[RW] params
[RW] project
Class Public methods
new(project, user, params)
# File app/contexts/base_context.rb, line 4
def initialize(project, user, params)
  @project, @current_user, @params = project, user, params.dup
end
Instance Public methods
abilities()
# File app/contexts/base_context.rb, line 8
def abilities
  @abilities ||= begin
                   abilities = Six.new
                   abilities << Ability
                   abilities
                 end
end
can?(object, action, subject)
# File app/contexts/base_context.rb, line 16
def can?(object, action, subject)
  abilities.allowed?(object, action, subject)
end