Sha256: 8811058b3def9e3173da5ed4945292106a7e8ec36551b522429122eb14f1bf4b
Contents?: true
Size: 275 Bytes
Versions: 3
Compression:
Stored size: 275 Bytes
Contents
class Ability include CanCan::Ability def initialize(user) user ||= User.new # guest user (not logged in) can [:read, :show], [Almanac::Post, Almanac::Blog] can :manage, Almanac::Post can :manage, Almanac::Blog can :manage, Almanac::Image end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
almanac-0.9.2 | spec/dummy/app/models/ability.rb |
almanac-0.9.1 | spec/dummy/app/models/ability.rb |
almanac-0.9.0 | spec/dummy/app/models/ability.rb |