Sha256: 4bf3f381f6b43882e3ee1456405c5c4527e9ea9cb7dcab8279d418c8d09fe7c6
Contents?: true
Size: 567 Bytes
Versions: 7
Compression:
Stored size: 567 Bytes
Contents
class Ability include CanCan::Ability include ArtfullyOse::CommonAbilities def initialize(user) user ||= User.new ticketing_abilities_for(user) if user.is_in_organization? paid_ticketing_abilities_for(user) if user.current_organization.can? :access, :paid_ticketing person_abilities_for(user) if user.is_in_organization? household_abilities_for(user) if user.is_in_organization? order_ablilities_for(user) if user.is_in_organization? import_ablilities_for(user) if user.is_in_organization? default_abilities_for(user) end end
Version data entries
7 entries across 7 versions & 1 rubygems