Module: SocialStream::Events::Ability
- Defined in:
- lib/social_stream/events/ability.rb
Instance Method Summary collapse
Instance Method Details
#initialize(subject) ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/social_stream/events/ability.rb', line 4 def initialize(subject) super can [:create, :destroy], Room do |r| r.actor_id == Actor.normalize_id(subject) end end |