aboutsummaryrefslogtreecommitdiffstats
path: root/actioncable
diff options
context:
space:
mode:
authorKasper Timm Hansen <kaspth@gmail.com>2018-09-23 19:39:15 +0200
committerGitHub <noreply@github.com>2018-09-23 19:39:15 +0200
commit22dc2b3db894cb709c132456d787166839455a8e (patch)
tree860d7050325891b01735d9f69daf6db7fef3208c /actioncable
parent58f80d6be8d8ed4c7a11dfef5de0b8874807bfdc (diff)
parent0fe2bb816f60f4daf5d0d24468af94be971d0eaf (diff)
downloadrails-22dc2b3db894cb709c132456d787166839455a8e.tar.gz
rails-22dc2b3db894cb709c132456d787166839455a8e.tar.bz2
rails-22dc2b3db894cb709c132456d787166839455a8e.zip
Merge pull request #33949 from sjain1107/no-private-def
Remove private def
Diffstat (limited to 'actioncable')
-rw-r--r--actioncable/test/channel/stream_test.rb19
1 files changed, 10 insertions, 9 deletions
diff --git a/actioncable/test/channel/stream_test.rb b/actioncable/test/channel/stream_test.rb
index bfe1f92946..f2fe8b4ce7 100644
--- a/actioncable/test/channel/stream_test.rb
+++ b/actioncable/test/channel/stream_test.rb
@@ -26,16 +26,17 @@ module ActionCable::StreamTests
transmit_subscription_confirmation
end
- private def pick_coder(coder)
- case coder
- when nil, "json"
- ActiveSupport::JSON
- when "custom"
- DummyEncoder
- when "none"
- nil
+ private
+ def pick_coder(coder)
+ case coder
+ when nil, "json"
+ ActiveSupport::JSON
+ when "custom"
+ DummyEncoder
+ when "none"
+ nil
+ end
end
- end
end
module DummyEncoder