about summary refs log tree commit diff
path: root/app/channels
diff options
context:
space:
mode:
Diffstat (limited to 'app/channels')
-rw-r--r--app/channels/application_cable/channel.rb2
-rw-r--r--app/channels/application_cable/connection.rb2
-rw-r--r--app/channels/hashtag_channel.rb2
-rw-r--r--app/channels/public_channel.rb2
-rw-r--r--app/channels/timeline_channel.rb2
5 files changed, 10 insertions, 0 deletions
diff --git a/app/channels/application_cable/channel.rb b/app/channels/application_cable/channel.rb
index 28bf0d9d3..69e069212 100644
--- a/app/channels/application_cable/channel.rb
+++ b/app/channels/application_cable/channel.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
 module ApplicationCable
   class Channel < ActionCable::Channel::Base
     protected
diff --git a/app/channels/application_cable/connection.rb b/app/channels/application_cable/connection.rb
index b94063b10..33f9aa429 100644
--- a/app/channels/application_cable/connection.rb
+++ b/app/channels/application_cable/connection.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
 module ApplicationCable
   class Connection < ActionCable::Connection::Base
     identified_by :current_user
diff --git a/app/channels/hashtag_channel.rb b/app/channels/hashtag_channel.rb
index 5be8d94cd..4470a0e99 100644
--- a/app/channels/hashtag_channel.rb
+++ b/app/channels/hashtag_channel.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
 class HashtagChannel < ApplicationCable::Channel
   def subscribed
     tag = params[:tag].downcase
diff --git a/app/channels/public_channel.rb b/app/channels/public_channel.rb
index 41e21611d..9ef9e5dd7 100644
--- a/app/channels/public_channel.rb
+++ b/app/channels/public_channel.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
 class PublicChannel < ApplicationCable::Channel
   def subscribed
     stream_from 'timeline:public', lambda { |encoded_message|
diff --git a/app/channels/timeline_channel.rb b/app/channels/timeline_channel.rb
index f2a9636fd..7b8d63ef5 100644
--- a/app/channels/timeline_channel.rb
+++ b/app/channels/timeline_channel.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
 class TimelineChannel < ApplicationCable::Channel
   def subscribed
     stream_from "timeline:#{current_user.account_id}"