Module: Permissify::Union

Instance Method Summary collapse

Methods included from Common

#allowed_to?, #createable?, #deleteable?, #log_permissions, #permissible?, #subscribed_to?, #updateable?, #viewable?

Instance Method Details

#permission(action, category) ⇒ Object

interface used by Permissify::Common.allowed_to?



10
11
12
13
# File 'lib/permissify/union.rb', line 10

def permission(action, category) # interface used by Permissify::Common.allowed_to?
  @union ||= construct_union # TODO : get lazier?
  permissible?(@union, action, category)
end

#permissionsObject



6
7
8
# File 'lib/permissify/union.rb', line 6

def permissions
  @union ||= construct_union
end