diff options
author | Kasper Timm Hansen <kaspth@gmail.com> | 2018-09-23 19:39:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-23 19:39:15 +0200 |
commit | 22dc2b3db894cb709c132456d787166839455a8e (patch) | |
tree | 860d7050325891b01735d9f69daf6db7fef3208c /actioncable/test/channel | |
parent | 58f80d6be8d8ed4c7a11dfef5de0b8874807bfdc (diff) | |
parent | 0fe2bb816f60f4daf5d0d24468af94be971d0eaf (diff) | |
download | rails-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/test/channel')
-rw-r--r-- | actioncable/test/channel/stream_test.rb | 19 |
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 |