Class: Shamu::Events::ActiveRecord::Channel

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
lib/shamu/events/active_record/channel.rb

Overview

Registry of event channels.

Scope collapse

Instance Attribute Details

#by_nameActiveRecord::Relation

Returns messages posted to the given channel.

Returns:

  • (ActiveRecord::Relation)

    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 )
}