aboutsummaryrefslogtreecommitdiffstats
path: root/lib/action_cable/channel/base.rb
diff options
context:
space:
mode:
authorJavan Makhmali <javan@javan.us>2015-06-26 14:35:39 -0400
committerJavan Makhmali <javan@javan.us>2015-06-26 14:35:39 -0400
commitf4bd1aee96d50b4d0bd915774e0c8d23f4b12748 (patch)
tree6ff0fb08be146cc6255252610ca97eb083cf0914 /lib/action_cable/channel/base.rb
parente3cb3696cfaa766b62d644411fe71e4e64aab85a (diff)
parent5541b8fcaf9ec40e6f16c50cb45030838a3e3450 (diff)
downloadrails-f4bd1aee96d50b4d0bd915774e0c8d23f4b12748.tar.gz
rails-f4bd1aee96d50b4d0bd915774e0c8d23f4b12748.tar.bz2
rails-f4bd1aee96d50b4d0bd915774e0c8d23f4b12748.zip
Merge pull request #2 from basecamp/create-channel
Channel factory
Diffstat (limited to 'lib/action_cable/channel/base.rb')
-rw-r--r--lib/action_cable/channel/base.rb8
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/action_cable/channel/base.rb b/lib/action_cable/channel/base.rb
index 83ba2cb3d2..6c55a8ed65 100644
--- a/lib/action_cable/channel/base.rb
+++ b/lib/action_cable/channel/base.rb
@@ -10,16 +10,10 @@ module ActionCable
attr_reader :params, :connection
delegate :logger, to: :connection
- class_attribute :channel_name
-
class << self
def matches?(identifier)
raise "Please implement #{name}#matches? method"
end
-
- def find_name
- @name ||= channel_name || to_s.demodulize.underscore
- end
end
def initialize(connection, channel_identifier, params = {})
@@ -138,4 +132,4 @@ module ActionCable
end
end
end
-end \ No newline at end of file
+end