Sha256: 84438d24a8dda2a41a142e0347e751f558a9354512651dda722db65faa05cf1a
Contents?: true
Size: 403 Bytes
Versions: 10
Compression:
Stored size: 403 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, Account can :manage, Inquiry # Engine.config.plugins.each do |plugin| # can :manage, "#{plugin.class_name}".constantize # end end end end end
Version data entries
10 entries across 10 versions & 1 rubygems