Sha256: ac368397366f6a22dc56119ea75875ac5f892cf83b355824ffd088195236428f
Contents?: true
Size: 435 Bytes
Versions: 4
Compression:
Stored size: 435 Bytes
Contents
module Spina class Ability include CanCan::Ability def initialize(user) if user.admin? can :manage, :all else can :manage, Page can :manage, Photo can :manage, Attachment can :manage, Account can :manage, Inquiry # Spina.config.plugins.each do |plugin| # can :manage, "#{plugin.class_name}".constantize # end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
spina-0.8.3 | app/models/spina/ability.rb |
spina-0.8.2 | app/models/spina/ability.rb |
spina-0.8.1 | app/models/spina/ability.rb |
spina-0.8.0 | app/models/spina/ability.rb |