Class: Shamu::Events::ActiveRecord::Channel
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Shamu::Events::ActiveRecord::Channel
- Defined in:
- lib/shamu/events/active_record/channel.rb
Overview
Registry of event channels.
Scope collapse
-
#by_name ⇒ ActiveRecord::Relation
Messages posted to the given channel.
Instance Attribute Details
#by_name ⇒ ActiveRecord::Relation
Returns messages posted to the given channel.
26 27 28 |
# File 'lib/shamu/events/active_record/channel.rb', line 26 scope :by_name, ->( name ) { where( name: name ) } |