Sha256: 707fc340d7abd4057a1ddc52f2a73745472403bf090a65c68a2026b2546b27e0
Contents?: true
Size: 169 Bytes
Versions: 2
Compression:
Stored size: 169 Bytes
Contents
class Ability include CanCan::Ability include RailsBlogEngine::Ability def initialize(user) can_read_blog if user can_manage_blog end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rails_blog_engine-0.0.3 | spec/dummy/app/models/ability.rb |
rails_blog_engine-0.0.2 | spec/dummy/app/models/ability.rb |