diff options
author | Pratik Naik <pratiknaik@gmail.com> | 2015-01-15 23:49:01 +0530 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2015-01-15 23:49:01 +0530 |
commit | 792fe4b29ce76089672c0741370b10d03a7f076a (patch) | |
tree | 9d65a7313688194a05e88037bf2c7db5ff0ae8e8 /lib/action_cable/channel/base.rb | |
parent | 843492ee6c2167115f2bbc9c1b3c82da0ad075f8 (diff) | |
download | rails-792fe4b29ce76089672c0741370b10d03a7f076a.tar.gz rails-792fe4b29ce76089672c0741370b10d03a7f076a.tar.bz2 rails-792fe4b29ce76089672c0741370b10d03a7f076a.zip |
Specify channel name as an attribute
Diffstat (limited to 'lib/action_cable/channel/base.rb')
-rw-r--r-- | lib/action_cable/channel/base.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/action_cable/channel/base.rb b/lib/action_cable/channel/base.rb index e091d08c9c..fa284eccbc 100644 --- a/lib/action_cable/channel/base.rb +++ b/lib/action_cable/channel/base.rb @@ -9,6 +9,8 @@ module ActionCable attr_reader :params + class_attribute :channel_name + class << self def matches?(identifier) raise "Please implement #{name}#matches? method" |