Sha256: d8d8f98de2d19582dac3a797f572f9e8cdc8eb6ff50b604320ad154fd708d976

Contents?: true

Size: 445 Bytes

Versions: 32

Compression:

Stored size: 445 Bytes

Contents

# Application's CanCan ability class, include all gem abilities
#------------------------------------------------------------------------------
class Ability
  include CanCan::Ability
  include DmCore::Concerns::Ability
  include DmKnowledge::Concerns::Ability
  
  def initialize(user)
    dm_knowledge_abilities(user)      if respond_to? :dm_knowlege_abilities
    dm_core_abilities(user)           if respond_to? :dm_core_abilities
  end
end

Version data entries

32 entries across 32 versions & 2 rubygems

Version Path
dm_newsletter-4.2.3.10 spec/dummy/app/models/ability.rb
dm_forum-4.2.3.10 spec/dummy/app/models/ability.rb
dm_newsletter-4.2.3.9 spec/dummy/app/models/ability.rb
dm_forum-4.2.3.9 spec/dummy/app/models/ability.rb
dm_newsletter-4.2.3.8 spec/dummy/app/models/ability.rb
dm_forum-4.2.3.8 spec/dummy/app/models/ability.rb
dm_newsletter-4.2.3.7 spec/dummy/app/models/ability.rb
dm_forum-4.2.3.7 spec/dummy/app/models/ability.rb
dm_newsletter-4.2.3.6 spec/dummy/app/models/ability.rb
dm_forum-4.2.3.6 spec/dummy/app/models/ability.rb
dm_newsletter-4.2.3.5 spec/dummy/app/models/ability.rb
dm_forum-4.2.3.5 spec/dummy/app/models/ability.rb
dm_newsletter-4.2.3.4 spec/dummy/app/models/ability.rb
dm_forum-4.2.3.4 spec/dummy/app/models/ability.rb
dm_newsletter-4.2.3.3 spec/dummy/app/models/ability.rb
dm_forum-4.2.3.3 spec/dummy/app/models/ability.rb
dm_newsletter-4.2.3.2 spec/dummy/app/models/ability.rb
dm_forum-4.2.3.2 spec/dummy/app/models/ability.rb
dm_newsletter-4.2.3.1 spec/dummy/app/models/ability.rb
dm_forum-4.2.3.1 spec/dummy/app/models/ability.rb