+ Ruby on Rails 8.1.0.rc1
diff --git a/src/classes/AbstractController/ActionNotFound.html b/src/classes/AbstractController/ActionNotFound.html
index d0a2393360..faa9a9542d 100644
--- a/src/classes/AbstractController/ActionNotFound.html
+++ b/src/classes/AbstractController/ActionNotFound.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/AbstractController/Base.html b/src/classes/AbstractController/Base.html
index 7ebd56b0a0..4fad9e6b82 100644
--- a/src/classes/AbstractController/Base.html
+++ b/src/classes/AbstractController/Base.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -173,11 +173,11 @@
# File actionpack/lib/abstract_controller/base.rb, line 57
- def abstract!
- @abstract = true
- end
+def abstract!
+ @abstract = true
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -208,19 +208,20 @@
# File actionpack/lib/abstract_controller/base.rb, line 93
- def action_methods
- @action_methods ||= begin
- # All public instance methods of this class, including ancestors except for
- # public instance methods of Base and its ancestors.
- methods = public_instance_methods(true) - internal_methods
- # Be sure to include shadowed public instance methods of this class.
- methods.concat(public_instance_methods(false))
- methods.map!(&:to_s)
- methods.to_set
- end
- end
+def action_methods
+ @action_methods ||= begin
+ # All public instance methods of this class, including ancestors except for
+ # public instance methods of Base and its ancestors.
+ methods = public_instance_methods(true) - internal_methods
+ # Be sure to include shadowed public instance methods of this class.
+ methods.concat(public_instance_methods(false))
+ methods.reject! { |m| m.start_with?("_") }
+ methods.map!(&:name)
+ methods.to_set
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -250,12 +251,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 108
- def clear_action_methods!
- @action_methods = nil
- end
+ # File actionpack/lib/abstract_controller/base.rb, line 109
+def clear_action_methods!
+ @action_methods = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -292,12 +293,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 120
- def controller_path
- @controller_path ||= name.delete_suffix("Controller").underscore unless anonymous?
- end
+ # File actionpack/lib/abstract_controller/base.rb, line 121
+def controller_path
+ @controller_path ||= name.delete_suffix("Controller").underscore unless anonymous?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -328,19 +329,19 @@
# File actionpack/lib/abstract_controller/base.rb, line 77
- def internal_methods
- controller = self
- methods = []
+def internal_methods
+ controller = self
+ methods = []
- until controller.abstract?
- methods += controller.public_instance_methods(false)
- controller = controller.superclass
- end
+ until controller.abstract?
+ methods += controller.public_instance_methods(false)
+ controller = controller.superclass
+ end
- controller.public_instance_methods(true) - methods
- end
+ controller.public_instance_methods(true) - methods
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -370,13 +371,13 @@
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 129
- def method_added(name)
- super
- clear_action_methods!
- end
+ # File actionpack/lib/abstract_controller/base.rb, line 130
+def method_added(name)
+ super
+ clear_action_methods!
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -391,7 +392,7 @@
- Returns true if the given controller is capable of rendering a path. A subclass of AbstractController::Base may return false. An Email controller for example does not support paths, only full URLs.
+ Returns true if the given controller is capable of rendering a path. A subclass of AbstractController::Base may return false. An Email controller for example does not support paths, only full URLs.
@@ -406,12 +407,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 193
- def self.supports_path?
- true
- end
+ # File actionpack/lib/abstract_controller/base.rb, line 194
+def self.supports_path?
+ true
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -445,12 +446,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 165
- def action_methods
- self.class.action_methods
- end
+ # File actionpack/lib/abstract_controller/base.rb, line 166
+def action_methods
+ self.class.action_methods
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -481,10 +482,10 @@
# File actionpack/lib/abstract_controller/base.rb, line 43
- attr_internal :action_name
+attr_internal :action_name
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -505,7 +506,7 @@
Parameters
-
-
action_name - The name of an action to be tested
+action_name - The name of an action to be tested
@@ -521,12 +522,12 @@ Parameters
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 180
- def available_action?(action_name)
- _find_action_name(action_name)
- end
+ # File actionpack/lib/abstract_controller/base.rb, line 181
+def available_action?(action_name)
+ _find_action_name(action_name)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -556,12 +557,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 160
- def controller_path
- self.class.controller_path
- end
+ # File actionpack/lib/abstract_controller/base.rb, line 161
+def controller_path
+ self.class.controller_path
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -592,10 +593,10 @@
# File actionpack/lib/abstract_controller/base.rb, line 47
- attr_internal :formats
+attr_internal :formats
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -625,12 +626,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 186
- def performed?
- response_body
- end
+ # File actionpack/lib/abstract_controller/base.rb, line 187
+def performed?
+ response_body
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -662,20 +663,20 @@
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 147
- def process(action, ...)
- @_action_name = action.to_s
+ # File actionpack/lib/abstract_controller/base.rb, line 148
+def process(action, ...)
+ @_action_name = action.to_s
- unless action_name = _find_action_name(@_action_name)
- raise ActionNotFound.new("The action '#{action}' could not be found for #{self.class.name}", self, action)
- end
+ unless action_name = _find_action_name(@_action_name)
+ raise ActionNotFound.new("The action '#{action}' could not be found for #{self.class.name}", self, action)
+ end
- @_response_body = nil
+ @_response_body = nil
- process_action(action_name, ...)
- end
+ process_action(action_name, ...)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -706,10 +707,10 @@
# File actionpack/lib/abstract_controller/base.rb, line 39
- attr_internal :response_body
+attr_internal :response_body
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Caching.html b/src/classes/AbstractController/Caching.html
index bf5c746308..5712afd4d1 100644
--- a/src/classes/AbstractController/Caching.html
+++ b/src/classes/AbstractController/Caching.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -127,11 +127,11 @@
# File actionpack/lib/abstract_controller/caching.rb, line 57
- def view_cache_dependencies
- self.class._view_cache_dependencies.filter_map { |dep| instance_exec(&dep) }
- end
+def view_cache_dependencies
+ self.class._view_cache_dependencies.filter_map { |dep| instance_exec(&dep) }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -165,15 +165,15 @@
# File actionpack/lib/abstract_controller/caching.rb, line 63
- def cache(key, options = {}, &block) # :doc:
- if cache_configured?
- cache_store.fetch(ActiveSupport::Cache.expand_cache_key(key, :controller), options, &block)
- else
- yield
- end
- end
+def cache(key, options = {}, &block) # :doc:
+ if cache_configured?
+ cache_store.fetch(ActiveSupport::Cache.expand_cache_key(key, :controller), options, &block)
+ else
+ yield
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Caching/ClassMethods.html b/src/classes/AbstractController/Caching/ClassMethods.html
index a5c5346161..769e43a1d0 100644
--- a/src/classes/AbstractController/Caching/ClassMethods.html
+++ b/src/classes/AbstractController/Caching/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -82,11 +82,11 @@
# File actionpack/lib/abstract_controller/caching.rb, line 52
- def view_cache_dependency(&dependency)
- self._view_cache_dependencies += [dependency]
- end
+def view_cache_dependency(&dependency)
+ self._view_cache_dependencies += [dependency]
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Caching/ConfigMethods.html b/src/classes/AbstractController/Caching/ConfigMethods.html
index 32afaceaa6..9b5ab3b1d2 100644
--- a/src/classes/AbstractController/Caching/ConfigMethods.html
+++ b/src/classes/AbstractController/Caching/ConfigMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actionpack/lib/abstract_controller/caching.rb, line 15
- def cache_store
- config.cache_store
- end
+def cache_store
+ config.cache_store
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -121,11 +121,11 @@
# File actionpack/lib/abstract_controller/caching.rb, line 19
- def cache_store=(store)
- config.cache_store = ActiveSupport::Cache.lookup_store(*store)
- end
+def cache_store=(store)
+ config.cache_store = ActiveSupport::Cache.lookup_store(*store)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Caching/Fragments.html b/src/classes/AbstractController/Caching/Fragments.html
index a121e2e7a5..c3adf29074 100644
--- a/src/classes/AbstractController/Caching/Fragments.html
+++ b/src/classes/AbstractController/Caching/Fragments.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -108,7 +108,7 @@
- Given a key (as described in expire_fragment), returns a key array suitable for use in reading, writing, or expiring a cached fragment. All keys begin with :views, followed by ENV["RAILS_CACHE_ID"] or ENV["RAILS_APP_VERSION"] if set, followed by any controller-wide key prefix values, ending with the specified key value.
+ Given a key (as described in expire_fragment), returns a key array suitable for use in reading, writing, or expiring a cached fragment. All keys begin with :views, followed by ENV["RAILS_CACHE_ID"] or ENV["RAILS_APP_VERSION"] if set, followed by any controller-wide key prefix values, ending with the specified key value.
@@ -124,17 +124,17 @@
# File actionpack/lib/abstract_controller/caching/fragments.rb, line 68
- def combined_fragment_cache_key(key)
- head = self.class.fragment_cache_keys.map { |k| instance_exec(&k) }
- tail = key.is_a?(Hash) ? url_for(key).split("://").last : key
-
- cache_key = [:views, ENV["RAILS_CACHE_ID"] || ENV["RAILS_APP_VERSION"], head, tail]
- cache_key.flatten!(1)
- cache_key.compact!
- cache_key
- end
+def combined_fragment_cache_key(key)
+ head = self.class.fragment_cache_keys.map { |k| instance_exec(&k) }
+ tail = key.is_a?(Hash) ? url_for(key).split("://").last : key
+
+ cache_key = [:views, ENV["RAILS_CACHE_ID"] || ENV["RAILS_APP_VERSION"], head, tail]
+ cache_key.flatten!(1)
+ cache_key.compact!
+ cache_key
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -176,20 +176,20 @@
# File actionpack/lib/abstract_controller/caching/fragments.rb, line 131
- def expire_fragment(key, options = nil)
- return unless cache_configured?
- key = combined_fragment_cache_key(key) unless key.is_a?(Regexp)
-
- instrument_fragment_cache :expire_fragment, key do
- if key.is_a?(Regexp)
- cache_store.delete_matched(key, options)
- else
- cache_store.delete(key, options)
- end
- end
- end
+def expire_fragment(key, options = nil)
+ return unless cache_configured?
+ key = combined_fragment_cache_key(key) unless key.is_a?(Regexp)
+
+ instrument_fragment_cache :expire_fragment, key do
+ if key.is_a?(Regexp)
+ cache_store.delete_matched(key, options)
+ else
+ cache_store.delete(key, options)
+ end
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -204,7 +204,7 @@
- Check if a cached fragment from the location signified by key exists (see expire_fragment for acceptable formats).
+ Check if a cached fragment from the location signified by key exists (see expire_fragment for acceptable formats).
@@ -220,16 +220,16 @@
# File actionpack/lib/abstract_controller/caching/fragments.rb, line 105
- def fragment_exist?(key, options = nil)
- return unless cache_configured?
- key = combined_fragment_cache_key(key)
-
- instrument_fragment_cache :exist_fragment?, key do
- cache_store.exist?(key, options)
- end
- end
+def fragment_exist?(key, options = nil)
+ return unless cache_configured?
+ key = combined_fragment_cache_key(key)
+
+ instrument_fragment_cache :exist_fragment?, key do
+ cache_store.exist?(key, options)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -244,7 +244,7 @@
- Reads a cached fragment from the location signified by key (see expire_fragment for acceptable formats).
+ Reads a cached fragment from the location signified by key (see expire_fragment for acceptable formats).
@@ -260,17 +260,17 @@
# File actionpack/lib/abstract_controller/caching/fragments.rb, line 93
- def read_fragment(key, options = nil)
- return unless cache_configured?
-
- key = combined_fragment_cache_key(key)
- instrument_fragment_cache :read_fragment, key do
- result = cache_store.read(key, options)
- result.respond_to?(:html_safe) ? result.html_safe : result
- end
- end
+def read_fragment(key, options = nil)
+ return unless cache_configured?
+
+ key = combined_fragment_cache_key(key)
+ instrument_fragment_cache :read_fragment, key do
+ result = cache_store.read(key, options)
+ result.respond_to?(:html_safe) ? result.html_safe : result
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -285,7 +285,7 @@
- Writes content to the location signified by key (see expire_fragment for acceptable formats).
+ Writes content to the location signified by key (see expire_fragment for acceptable formats).
@@ -301,18 +301,18 @@
# File actionpack/lib/abstract_controller/caching/fragments.rb, line 80
- def write_fragment(key, content, options = nil)
- return content unless cache_configured?
-
- key = combined_fragment_cache_key(key)
- instrument_fragment_cache :write_fragment, key do
- content = content.to_str
- cache_store.write(key, content, options)
- end
- content
- end
+def write_fragment(key, content, options = nil)
+ return content unless cache_configured?
+
+ key = combined_fragment_cache_key(key)
+ instrument_fragment_cache :write_fragment, key do
+ content = content.to_str
+ cache_store.write(key, content, options)
+ end
+ content
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Caching/Fragments/ClassMethods.html b/src/classes/AbstractController/Caching/Fragments/ClassMethods.html
index f684e4fb8f..3fd0838698 100644
--- a/src/classes/AbstractController/Caching/Fragments/ClassMethods.html
+++ b/src/classes/AbstractController/Caching/Fragments/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -98,11 +98,11 @@
# File actionpack/lib/abstract_controller/caching/fragments.rb, line 58
- def fragment_cache_key(value = nil, &key)
- self.fragment_cache_keys += [key || -> { value }]
- end
+def fragment_cache_key(value = nil, &key)
+ self.fragment_cache_keys += [key || -> { value }]
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Callbacks.html b/src/classes/AbstractController/Callbacks.html
index 4e3a570e15..36bffc7d1d 100644
--- a/src/classes/AbstractController/Callbacks.html
+++ b/src/classes/AbstractController/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/AbstractController/Callbacks/ClassMethods.html b/src/classes/AbstractController/Callbacks/ClassMethods.html
index 8df003036a..43c33d5431 100644
--- a/src/classes/AbstractController/Callbacks/ClassMethods.html
+++ b/src/classes/AbstractController/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -148,18 +148,18 @@ Block Parameters
# File actionpack/lib/abstract_controller/callbacks.rb, line 120
- def _insert_callbacks(callbacks, block = nil)
- options = callbacks.extract_options!
- callbacks.push(block) if block
- options[:filters] = callbacks
- _normalize_callback_options(options)
- options.delete(:filters)
- callbacks.each do |callback|
- yield callback, options
- end
- end
+def _insert_callbacks(callbacks, block = nil)
+ options = callbacks.extract_options!
+ callbacks.push(block) if block
+ options[:filters] = callbacks
+ _normalize_callback_options(options)
+ options.delete(:filters)
+ callbacks.each do |callback|
+ yield callback, options
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -209,12 +209,12 @@ Options
# File actionpack/lib/abstract_controller/callbacks.rb, line 93
- def _normalize_callback_options(options)
- _normalize_callback_option(options, :only, :if)
- _normalize_callback_option(options, :except, :unless)
- end
+def _normalize_callback_options(options)
+ _normalize_callback_option(options, :only, :if)
+ _normalize_callback_option(options, :except, :unless)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,7 +240,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -264,7 +264,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -288,7 +288,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -314,7 +314,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -338,7 +338,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -364,7 +364,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -388,7 +388,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -412,7 +412,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -438,7 +438,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -462,7 +462,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -486,7 +486,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -510,7 +510,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Collector.html b/src/classes/AbstractController/Collector.html
index 346619e2c1..763d356b2e 100644
--- a/src/classes/AbstractController/Collector.html
+++ b/src/classes/AbstractController/Collector.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -81,16 +81,16 @@
# File actionpack/lib/abstract_controller/collector.rb, line 9
- def self.generate_method_for_mime(mime)
- sym = mime.is_a?(Symbol) ? mime : mime.to_sym
- class_eval <<-RUBY, __FILE__, __LINE__ + 1
- def #{sym}(...)
- custom(Mime[:#{sym}], ...)
- end
- RUBY
- end
+def self.generate_method_for_mime(mime)
+ sym = mime.is_a?(Symbol) ? mime : mime.to_sym
+ class_eval <<-RUBY, __FILE__, __LINE__ + 1
+ def #{sym}(...)
+ custom(Mime[:#{sym}], ...)
+ end
+ RUBY
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/DoubleRenderError.html b/src/classes/AbstractController/DoubleRenderError.html
index b0a21b293d..8f48bc9ef3 100644
--- a/src/classes/AbstractController/DoubleRenderError.html
+++ b/src/classes/AbstractController/DoubleRenderError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -100,11 +100,11 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 13
- def initialize(message = nil)
- super(message || DEFAULT_MESSAGE)
- end
+def initialize(message = nil)
+ super(message || DEFAULT_MESSAGE)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Helpers.html b/src/classes/AbstractController/Helpers.html
index 9fc0534a60..b4d98aa351 100644
--- a/src/classes/AbstractController/Helpers.html
+++ b/src/classes/AbstractController/Helpers.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,11 +95,11 @@
# File actionpack/lib/abstract_controller/helpers.rb, line 28
- def _helpers
- self.class._helpers
- end
+def _helpers
+ self.class._helpers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Helpers/ClassMethods.html b/src/classes/AbstractController/Helpers/ClassMethods.html
index 8900a598d0..33df6d47c3 100644
--- a/src/classes/AbstractController/Helpers/ClassMethods.html
+++ b/src/classes/AbstractController/Helpers/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -119,7 +119,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -148,14 +148,14 @@
# File actionpack/lib/abstract_controller/helpers.rb, line 218
- def _helpers_for_modification
- unless @_helpers
- self._helpers = define_helpers_module(self, superclass._helpers)
- end
- _helpers
- end
+def _helpers_for_modification
+ unless @_helpers
+ self._helpers = define_helpers_module(self, superclass._helpers)
+ end
+ _helpers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -186,16 +186,16 @@
# File actionpack/lib/abstract_controller/helpers.rb, line 209
- def clear_helpers
- inherited_helper_methods = _helper_methods
- self._helpers = Module.new
- self._helper_methods = Array.new
-
- inherited_helper_methods.each { |meth| helper_method meth }
- default_helper_module! unless anonymous?
- end
+def clear_helpers
+ inherited_helper_methods = _helper_methods
+ self._helpers = Module.new
+ self._helper_methods = Array.new
+
+ inherited_helper_methods.each { |meth| helper_method meth }
+ default_helper_module! unless anonymous?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -274,16 +274,16 @@
# File actionpack/lib/abstract_controller/helpers.rb, line 198
- def helper(*args, &block)
- modules_for_helpers(args).each do |mod|
- next if _helpers.include?(mod)
- _helpers_for_modification.include(mod)
- end
-
- _helpers_for_modification.module_eval(&block) if block_given?
- end
+def helper(*args, &block)
+ modules_for_helpers(args).each do |mod|
+ next if _helpers.include?(mod)
+ _helpers_for_modification.include(mod)
+ end
+
+ _helpers_for_modification.module_eval(&block) if block_given?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -338,26 +338,26 @@ Parameters
# File actionpack/lib/abstract_controller/helpers.rb, line 128
- def helper_method(*methods)
- methods.flatten!
- self._helper_methods += methods
-
- location = caller_locations(1, 1).first
- file, line = location.path, location.lineno
-
- methods.each do |method|
- # def current_user(...)
- # controller.send(:'current_user', ...)
- # end
- _helpers_for_modification.class_eval <<~ruby_eval.lines.map(&:strip).join(";"), file, line
- def #{method}(...)
- controller.send(:'#{method}', ...)
- end
- ruby_eval
- end
- end
+def helper_method(*methods)
+ methods.flatten!
+ self._helper_methods += methods
+
+ location = caller_locations(1, 1).first
+ file, line = location.path, location.lineno
+
+ methods.each do |method|
+ # def current_user(...)
+ # controller.send(:'current_user', ...)
+ # end
+ _helpers_for_modification.class_eval <<~ruby_eval.lines.map(&:strip).join(";"), file, line
+ def #{method}(...)
+ controller.send(:'#{method}', ...)
+ end
+ ruby_eval
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -388,15 +388,15 @@
# File actionpack/lib/abstract_controller/helpers.rb, line 68
- def inherited(klass)
- # Inherited from parent by default
- klass._helpers = nil
+def inherited(klass)
+ # Inherited from parent by default
+ klass._helpers = nil
- klass.class_eval { default_helper_module! } unless klass.anonymous?
- super
- end
+ klass.class_eval { default_helper_module! } unless klass.anonymous?
+ super
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -426,7 +426,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Railties.html b/src/classes/AbstractController/Railties.html
index ddb634ab93..e9e5642902 100644
--- a/src/classes/AbstractController/Railties.html
+++ b/src/classes/AbstractController/Railties.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/AbstractController/Railties/RoutesHelpers.html b/src/classes/AbstractController/Railties/RoutesHelpers.html
index 2b3b00e29d..b053082e31 100644
--- a/src/classes/AbstractController/Railties/RoutesHelpers.html
+++ b/src/classes/AbstractController/Railties/RoutesHelpers.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -81,21 +81,21 @@
# File actionpack/lib/abstract_controller/railties/routes_helpers.rb, line 10
- def self.with(routes, include_path_helpers = true)
- Module.new do
- define_method(:inherited) do |klass|
- super(klass)
-
- if namespace = klass.module_parents.detect { |m| m.respond_to?(:railtie_routes_url_helpers) }
- klass.include(namespace.railtie_routes_url_helpers(include_path_helpers))
- else
- klass.include(routes.url_helpers(include_path_helpers))
- end
- end
- end
- end
+def self.with(routes, include_path_helpers = true)
+ Module.new do
+ define_method(:inherited) do |klass|
+ super(klass)
+
+ if namespace = klass.module_parents.detect { |m| m.respond_to?(:railtie_routes_url_helpers) }
+ klass.include(namespace.railtie_routes_url_helpers(include_path_helpers))
+ else
+ klass.include(routes.url_helpers(include_path_helpers))
+ end
+ end
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Rendering.html b/src/classes/AbstractController/Rendering.html
index 872a9d8b43..0fa902a303 100644
--- a/src/classes/AbstractController/Rendering.html
+++ b/src/classes/AbstractController/Rendering.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -123,7 +123,7 @@
Normalizes arguments and options, and then delegates to render_to_body and sticks the result in self.response_body.
-Supported options depend on the underlying render_to_body implementation.
+Supported options depend on the underlying render_to_body implementation.
@@ -139,19 +139,19 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 26
- def render(*args, &block)
- options = _normalize_render(*args, &block)
- rendered_body = render_to_body(options)
- if options[:html]
- _set_html_content_type
- else
- _set_rendered_content_type rendered_format
- end
- _set_vary_header
- self.response_body = rendered_body
- end
+def render(*args, &block)
+ options = _normalize_render(*args, &block)
+ rendered_body = render_to_body(options)
+ if options[:html]
+ _set_html_content_type
+ else
+ _set_rendered_content_type rendered_format
+ end
+ _set_vary_header
+ self.response_body = rendered_body
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -182,10 +182,10 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 50
- def render_to_body(options = {})
- end
+def render_to_body(options = {})
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -218,12 +218,12 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 44
- def render_to_string(*args, &block)
- options = _normalize_render(*args, &block)
- render_to_body(options)
- end
+def render_to_string(*args, &block)
+ options = _normalize_render(*args, &block)
+ render_to_body(options)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -254,11 +254,11 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 54
- def rendered_format
- Mime[:text]
- end
+def rendered_format
+ Mime[:text]
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -289,15 +289,15 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 62
- def view_assigns
- variables = instance_variables - _protected_ivars
+def view_assigns
+ variables = instance_variables - _protected_ivars
- variables.each_with_object({}) do |name, hash|
- hash[name.slice(1, name.length)] = instance_variable_get(name)
- end
- end
+ variables.each_with_object({}) do |name, hash|
+ hash[name.slice(1, name.length)] = instance_variable_get(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -331,21 +331,21 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 73
- def _normalize_args(action = nil, options = {}) # :doc:
- if action.respond_to?(:permitted?)
- if action.permitted?
- action
- else
- raise ArgumentError, "render parameters are not permitted"
- end
- elsif action.is_a?(Hash)
- action
- else
- options
- end
- end
+def _normalize_args(action = nil, options = {}) # :doc:
+ if action.respond_to?(:permitted?)
+ if action.permitted?
+ action
+ else
+ raise ArgumentError, "render parameters are not permitted"
+ end
+ elsif action.is_a?(Hash)
+ action
+ else
+ options
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -376,11 +376,11 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 88
- def _normalize_options(options) # :doc:
- options
- end
+def _normalize_options(options) # :doc:
+ options
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -411,11 +411,11 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 93
- def _process_options(options) # :doc:
- options
- end
+def _process_options(options) # :doc:
+ options
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Translation.html b/src/classes/AbstractController/Translation.html
index e429818684..446e93e2cd 100644
--- a/src/classes/AbstractController/Translation.html
+++ b/src/classes/AbstractController/Translation.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -123,11 +123,11 @@
# File actionpack/lib/abstract_controller/translation.rb, line 37
- def localize(object, **options)
- I18n.localize(object, **options)
- end
+def localize(object, **options)
+ I18n.localize(object, **options)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -189,25 +189,25 @@
# File actionpack/lib/abstract_controller/translation.rb, line 17
- def translate(key, **options)
- if key&.start_with?(".")
- path = controller_path.tr("/", ".")
- defaults = [:"#{path}#{key}"]
- defaults << options[:default] if options[:default]
- options[:default] = defaults.flatten
- key = "#{path}.#{action_name}#{key}"
- end
-
- if options[:default] && ActiveSupport::HtmlSafeTranslation.html_safe_translation_key?(key)
- options[:default] = Array(options[:default]).map do |value|
- value.is_a?(String) ? ERB::Util.html_escape(value) : value
- end
- end
-
- ActiveSupport::HtmlSafeTranslation.translate(key, **options)
- end
+def translate(key, **options)
+ if key&.start_with?(".")
+ path = controller_path.tr("/", ".")
+ defaults = [:"#{path}#{key}"]
+ defaults << options[:default] if options[:default]
+ options[:default] = defaults.flatten
+ key = "#{path}.#{action_name}#{key}"
+ end
+
+ if options[:default] && ActiveSupport::HtmlSafeTranslation.html_safe_translation_key?(key)
+ options[:default] = Array(options[:default]).map do |value|
+ value.is_a?(String) ? ERB::Util.html_escape(value) : value
+ end
+ end
+
+ ActiveSupport::HtmlSafeTranslation.translate(key, **options)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/UrlFor.html b/src/classes/AbstractController/UrlFor.html
index 8d49da9f5c..bd5d0224eb 100644
--- a/src/classes/AbstractController/UrlFor.html
+++ b/src/classes/AbstractController/UrlFor.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -119,12 +119,12 @@
# File actionpack/lib/abstract_controller/url_for.rb, line 18
- def _routes
- raise "In order to use #url_for, you must include routing helpers explicitly. " \
- "For instance, `include Rails.application.routes.url_helpers`."
- end
+def _routes
+ raise "In order to use #url_for, you must include routing helpers explicitly. " \
+ "For instance, `include Rails.application.routes.url_helpers`."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/UrlFor/ClassMethods.html b/src/classes/AbstractController/UrlFor/ClassMethods.html
index cd0e5e9509..e4471b2d66 100644
--- a/src/classes/AbstractController/UrlFor/ClassMethods.html
+++ b/src/classes/AbstractController/UrlFor/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actionpack/lib/abstract_controller/url_for.rb, line 24
- def _routes
- nil
- end
+def _routes
+ nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -121,15 +121,15 @@
# File actionpack/lib/abstract_controller/url_for.rb, line 28
- def action_methods
- @action_methods ||= if _routes
- super - _routes.named_routes.helper_names
- else
- super
- end
- end
+def action_methods
+ @action_methods ||= if _routes
+ super - _routes.named_routes.helper_names
+ else
+ super
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable.html b/src/classes/ActionCable.html
index 4951b5813f..5e5f891dce 100644
--- a/src/classes/ActionCable.html
+++ b/src/classes/ActionCable.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -267,11 +267,11 @@
# File actioncable/lib/action_cable/gem_version.rb, line 7
- def self.gem_version
- Gem::Version.new VERSION::STRING
- end
+def self.gem_version
+ Gem::Version.new VERSION::STRING
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -302,11 +302,11 @@
# File actioncable/lib/action_cable/version.rb, line 9
- def self.version
- gem_version
- end
+def self.version
+ gem_version
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -341,11 +341,11 @@
# File actioncable/lib/action_cable.rb, line 77
- def server
- @server ||= ActionCable::Server::Base.new
- end
+def server
+@server ||= ActionCable::Server::Base.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel.html b/src/classes/ActionCable/Channel.html
index 38c886ddbc..06b36ff362 100644
--- a/src/classes/ActionCable/Channel.html
+++ b/src/classes/ActionCable/Channel.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Channel/Base.html b/src/classes/ActionCable/Channel/Base.html
index bc63a53315..32e2ff9b70 100644
--- a/src/classes/ActionCable/Channel/Base.html
+++ b/src/classes/ActionCable/Channel/Base.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -82,7 +82,7 @@ Action process
end
-
In this example, the subscribed and unsubscribed methods are not callable methods, as they were already declared in ActionCable::Channel::Base, but #appear and #away are. #generate_connection_token is also not callable, since it’s a private method. You’ll see that appear accepts a data parameter, which it then uses as part of its model call. #away does not, since it’s simply a trigger action.
+In this example, the subscribed and unsubscribed methods are not callable methods, as they were already declared in ActionCable::Channel::Base, but appear and away are. generate_connection_token is also not callable, since it’s a private method. You’ll see that appear accepts a data parameter, which it then uses as part of its model call. away does not, since it’s simply a trigger action.
Also note that in this example, current_user is available because it was marked as an identifying attribute on the connection. All such identifiers will automatically create a delegation method of the same name on the channel instance.
@@ -307,19 +307,22 @@ Returns
# File actioncable/lib/action_cable/channel/base.rb, line 128
- def action_methods
- @action_methods ||= begin
- # All public instance methods of this class, including ancestors
- methods = (public_instance_methods(true) -
- # Except for public instance methods of Base and its ancestors
- ActionCable::Channel::Base.public_instance_methods(true) +
- # Be sure to include shadowed public instance methods of this class
- public_instance_methods(false)).uniq.map(&:to_s)
- methods.to_set
- end
- end
-
- 🔎 See on GitHub
+def action_methods
+ @action_methods ||= begin
+ # All public instance methods of this class, including ancestors
+ methods = (public_instance_methods(true) -
+ # Except for public instance methods of Base and its ancestors
+ ActionCable::Channel::Base.public_instance_methods(true) +
+ # Be sure to include shadowed public instance methods of this class
+ public_instance_methods(false)).uniq
+
+ methods.reject! { |m| m.start_with?("_") }
+ methods.map!(&:name)
+ methods.to_set
+ end
+end
+
+ 🔎 See on GitHub
@@ -349,26 +352,26 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 155
- def initialize(connection, identifier, params = {})
- @connection = connection
- @identifier = identifier
- @params = params
+ # File actioncable/lib/action_cable/channel/base.rb, line 158
+def initialize(connection, identifier, params = {})
+ @connection = connection
+ @identifier = identifier
+ @params = params
- # When a channel is streaming via pubsub, we want to delay the confirmation
- # transmission until pubsub subscription is confirmed.
- #
- # The counter starts at 1 because it's awaiting a call to #subscribe_to_channel
- @defer_subscription_confirmation_counter = Concurrent::AtomicFixnum.new(1)
+ # When a channel is streaming via pubsub, we want to delay the confirmation
+ # transmission until pubsub subscription is confirmed.
+ #
+ # The counter starts at 1 because it's awaiting a call to #subscribe_to_channel
+ @defer_subscription_confirmation_counter = Concurrent::AtomicFixnum.new(1)
- @reject_subscription = nil
- @subscription_confirmation_sent = nil
- @unsubscribed = false
+ @reject_subscription = nil
+ @subscription_confirmation_sent = nil
+ @unsubscribed = false
- delegate_connection_identifiers
- end
+ delegate_connection_identifiers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -401,12 +404,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 144
- def clear_action_methods! # :doc:
- @action_methods = nil
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 147
+def clear_action_methods! # :doc:
+ @action_methods = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -436,13 +439,13 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 149
- def method_added(name) # :doc:
- super
- clear_action_methods!
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 152
+def method_added(name) # :doc:
+ super
+ clear_action_methods!
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -476,21 +479,21 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 176
- def perform_action(data)
- action = extract_action(data)
+ # File actioncable/lib/action_cable/channel/base.rb, line 179
+def perform_action(data)
+ action = extract_action(data)
- if processable_action?(action)
- payload = { channel_class: self.class.name, action: action, data: data }
- ActiveSupport::Notifications.instrument("perform_action.action_cable", payload) do
- dispatch_action(action, data)
- end
- else
- logger.error "Unable to process #{action_signature(action, data)}"
- end
- end
+ if processable_action?(action)
+ payload = { channel_class: self.class.name, action: action, data: data }
+ ActiveSupport::Notifications.instrument("perform_action.action_cable", payload) do
+ dispatch_action(action, data)
+ end
+ else
+ logger.error "Unable to process #{action_signature(action, data)}"
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -520,17 +523,17 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 191
- def subscribe_to_channel
- run_callbacks :subscribe do
- subscribed
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 194
+def subscribe_to_channel
+ run_callbacks :subscribe do
+ subscribed
+ end
- reject_subscription if subscription_rejected?
- ensure_confirmation_sent
- end
+ reject_subscription if subscription_rejected?
+ ensure_confirmation_sent
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -563,12 +566,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 250
- def defer_subscription_confirmation! # :doc:
- @defer_subscription_confirmation_counter.increment
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 253
+def defer_subscription_confirmation! # :doc:
+ @defer_subscription_confirmation_counter.increment
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -598,12 +601,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 254
- def defer_subscription_confirmation? # :doc:
- @defer_subscription_confirmation_counter.value > 0
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 257
+def defer_subscription_confirmation? # :doc:
+ @defer_subscription_confirmation_counter.value > 0
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -633,14 +636,14 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 244
- def ensure_confirmation_sent # :doc:
- return if subscription_rejected?
- @defer_subscription_confirmation_counter.decrement
- transmit_subscription_confirmation unless defer_subscription_confirmation?
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 247
+def ensure_confirmation_sent # :doc:
+ return if subscription_rejected?
+ @defer_subscription_confirmation_counter.decrement
+ transmit_subscription_confirmation unless defer_subscription_confirmation?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -670,12 +673,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 262
- def reject # :doc:
- @reject_subscription = true
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 265
+def reject # :doc:
+ @reject_subscription = true
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -705,12 +708,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 218
- def subscribed # :doc:
- # Override in subclasses
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 221
+def subscribed # :doc:
+ # Override in subclasses
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -740,12 +743,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 258
- def subscription_confirmation_sent? # :doc:
- @subscription_confirmation_sent
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 261
+def subscription_confirmation_sent? # :doc:
+ @subscription_confirmation_sent
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -775,12 +778,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 266
- def subscription_rejected? # :doc:
- @reject_subscription
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 269
+def subscription_rejected? # :doc:
+ @reject_subscription
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -810,21 +813,21 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 231
- def transmit(data, via: nil) # :doc:
- logger.debug do
- status = "#{self.class.name} transmitting #{data.inspect.truncate(300)}"
- status += " (via #{via})" if via
- status
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 234
+def transmit(data, via: nil) # :doc:
+ logger.debug do
+ status = "#{self.class.name} transmitting #{data.inspect.truncate(300)}"
+ status += " (via #{via})" if via
+ status
+ end
- payload = { channel_class: self.class.name, data: data, via: via }
- ActiveSupport::Notifications.instrument("transmit.action_cable", payload) do
- connection.transmit identifier: @identifier, message: data
- end
- end
+ payload = { channel_class: self.class.name, data: data, via: via }
+ ActiveSupport::Notifications.instrument("transmit.action_cable", payload) do
+ connection.transmit identifier: @identifier, message: data
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -854,12 +857,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 224
- def unsubscribed # :doc:
- # Override in subclasses
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 227
+def unsubscribed # :doc:
+ # Override in subclasses
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Broadcasting.html b/src/classes/ActionCable/Channel/Broadcasting.html
index bb71b89445..7fecc3f6b8 100644
--- a/src/classes/ActionCable/Channel/Broadcasting.html
+++ b/src/classes/ActionCable/Channel/Broadcasting.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -99,11 +99,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 45
- def broadcast_to(model, message)
- self.class.broadcast_to(model, message)
- end
+def broadcast_to(model, message)
+ self.class.broadcast_to(model, message)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -134,11 +134,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 41
- def broadcasting_for(model)
- self.class.broadcasting_for(model)
- end
+def broadcasting_for(model)
+ self.class.broadcasting_for(model)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html b/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
index 684bccb1ab..432bb5d74f 100644
--- a/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 14
- def broadcast_to(broadcastables, message)
- ActionCable.server.broadcast(broadcasting_for(broadcastables), message)
- end
+def broadcast_to(broadcastables, message)
+ ActionCable.server.broadcast(broadcasting_for(broadcastables), message)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -126,11 +126,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 24
- def broadcasting_for(broadcastables)
- serialize_broadcasting([ channel_name ] + Array(broadcastables))
- end
+def broadcasting_for(broadcastables)
+ serialize_broadcasting([ channel_name ] + Array(broadcastables))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Callbacks.html b/src/classes/ActionCable/Channel/Callbacks.html
index 076bdbc8fa..64985186c3 100644
--- a/src/classes/ActionCable/Channel/Callbacks.html
+++ b/src/classes/ActionCable/Channel/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html b/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
index 6ee4317311..7949b5fdf6 100644
--- a/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -111,11 +111,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 60
- def after_subscribe(*methods, &block)
- set_callback(:subscribe, :after, *methods, &block)
- end
+def after_subscribe(*methods, &block)
+ set_callback(:subscribe, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -150,11 +150,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 69
- def after_unsubscribe(*methods, &block)
- set_callback(:unsubscribe, :after, *methods, &block)
- end
+def after_unsubscribe(*methods, &block)
+ set_callback(:unsubscribe, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -185,11 +185,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 48
- def before_subscribe(*methods, &block)
- set_callback(:subscribe, :before, *methods, &block)
- end
+def before_subscribe(*methods, &block)
+ set_callback(:subscribe, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -220,11 +220,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 65
- def before_unsubscribe(*methods, &block)
- set_callback(:unsubscribe, :before, *methods, &block)
- end
+def before_unsubscribe(*methods, &block)
+ set_callback(:unsubscribe, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/ChannelStub.html b/src/classes/ActionCable/Channel/ChannelStub.html
index 9db98daac2..d004896dc5 100644
--- a/src/classes/ActionCable/Channel/ChannelStub.html
+++ b/src/classes/ActionCable/Channel/ChannelStub.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -25,7 +25,7 @@
Action Cable Channel Stub
-
Stub stream_from to track streams for the channel. Add public aliases for subscription_confirmation_sent? and subscription_rejected?.
+Stub stream_from to track streams for the channel. Add public aliases for subscription_confirmation_sent? and subscription_rejected?.
@@ -114,11 +114,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 25
- def confirmed?
- subscription_confirmation_sent?
- end
+def confirmed?
+ subscription_confirmation_sent?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -149,11 +149,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 29
- def rejected?
- subscription_rejected?
- end
+def rejected?
+ subscription_rejected?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -188,9 +188,9 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 46
- def start_periodic_timers; end
+def start_periodic_timers; end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -221,11 +221,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 37
- def stop_all_streams
- @_streams = []
- end
+def stop_all_streams
+ @_streams = []
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -281,11 +281,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 33
- def stream_from(broadcasting, *)
- streams << broadcasting
- end
+def stream_from(broadcasting, *)
+ streams << broadcasting
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -316,11 +316,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 41
- def streams
- @_streams ||= []
- end
+def streams
+ @_streams ||= []
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/ConnectionStub.html b/src/classes/ActionCable/Channel/ConnectionStub.html
index 62c52b567f..0fdc0d8690 100644
--- a/src/classes/ActionCable/Channel/ConnectionStub.html
+++ b/src/classes/ActionCable/Channel/ConnectionStub.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -141,20 +141,20 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 55
- def initialize(identifiers = {})
- @server = ActionCable.server
- @transmissions = []
-
- identifiers.each do |identifier, val|
- define_singleton_method(identifier) { val }
- end
-
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @identifiers = identifiers.keys
- @logger = ActiveSupport::TaggedLogging.new ActiveSupport::Logger.new(StringIO.new)
- end
+def initialize(identifiers = {})
+ @server = ActionCable.server
+ @transmissions = []
+
+ identifiers.each do |identifier, val|
+ define_singleton_method(identifier) { val }
+ end
+
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @identifiers = identifiers.keys
+ @logger = ActiveSupport::TaggedLogging.new ActiveSupport::Logger.new(StringIO.new)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -189,11 +189,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 72
- def connection_identifier
- @connection_identifier ||= connection_gid(identifiers.filter_map { |id| send(id.to_sym) if id })
- end
+def connection_identifier
+ @connection_identifier ||= connection_gid(identifiers.filter_map { |id| send(id.to_sym) if id })
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -224,11 +224,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 68
- def transmit(cable_message)
- transmissions << cable_message.with_indifferent_access
- end
+def transmit(cable_message)
+ transmissions << cable_message.with_indifferent_access
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Naming.html b/src/classes/ActionCable/Channel/Naming.html
index 84bfc0232c..db2aa18589 100644
--- a/src/classes/ActionCable/Channel/Naming.html
+++ b/src/classes/ActionCable/Channel/Naming.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,11 +95,11 @@
# File actioncable/lib/action_cable/channel/naming.rb, line 23
- def channel_name
- self.class.channel_name
- end
+def channel_name
+ self.class.channel_name
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Naming/ClassMethods.html b/src/classes/ActionCable/Channel/Naming/ClassMethods.html
index b847309f12..e99c0744a7 100644
--- a/src/classes/ActionCable/Channel/Naming/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Naming/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -66,7 +66,7 @@
- Returns the name of the channel, underscored, without the Channel ending. If the channel is in a namespace, then the namespaces are represented by single colon separators in the channel name.
+ Returns the name of the channel, underscored, without the Channel ending. If the channel is in a namespace, then the namespaces are represented by single colon separators in the channel name.
ChatChannel.channel_name # => 'chat'
Chats::AppearancesChannel.channel_name # => 'chats:appearances'
@@ -87,11 +87,11 @@
# File actioncable/lib/action_cable/channel/naming.rb, line 18
- def channel_name
- @channel_name ||= name.delete_suffix("Channel").gsub("::", ":").underscore
- end
+def channel_name
+ @channel_name ||= name.delete_suffix("Channel").gsub("::", ":").underscore
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/NonInferrableChannelError.html b/src/classes/ActionCable/Channel/NonInferrableChannelError.html
index 034c36b135..1eac81cbd2 100644
--- a/src/classes/ActionCable/Channel/NonInferrableChannelError.html
+++ b/src/classes/ActionCable/Channel/NonInferrableChannelError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 13
- def initialize(name)
- super "Unable to determine the channel to test from #{name}. " +
- "You'll need to specify it using `tests YourChannel` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the channel to test from #{name}. " +
+ "You'll need to specify it using `tests YourChannel` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/PeriodicTimers.html b/src/classes/ActionCable/Channel/PeriodicTimers.html
index 88facef675..561da6e0dd 100644
--- a/src/classes/ActionCable/Channel/PeriodicTimers.html
+++ b/src/classes/ActionCable/Channel/PeriodicTimers.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html b/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
index 233865e2e3..a694f6de16 100644
--- a/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -91,30 +91,30 @@
# File actioncable/lib/action_cable/channel/periodic_timers.rb, line 31
- def periodically(callback_or_method_name = nil, every:, &block)
- callback =
- if block_given?
- raise ArgumentError, "Pass a block or provide a callback arg, not both" if callback_or_method_name
- block
- else
- case callback_or_method_name
- when Proc
- callback_or_method_name
- when Symbol
- -> { __send__ callback_or_method_name }
- else
- raise ArgumentError, "Expected a Symbol method name or a Proc, got #{callback_or_method_name.inspect}"
- end
- end
-
- unless every.kind_of?(Numeric) && every > 0
- raise ArgumentError, "Expected every: to be a positive number of seconds, got #{every.inspect}"
- end
-
- self.periodic_timers += [[ callback, every: every ]]
- end
+def periodically(callback_or_method_name = nil, every:, &block)
+ callback =
+ if block_given?
+ raise ArgumentError, "Pass a block or provide a callback arg, not both" if callback_or_method_name
+ block
+ else
+ case callback_or_method_name
+ when Proc
+ callback_or_method_name
+ when Symbol
+ -> { __send__ callback_or_method_name }
+ else
+ raise ArgumentError, "Expected a Symbol method name or a Proc, got #{callback_or_method_name.inspect}"
+ end
+ end
+
+ unless every.kind_of?(Numeric) && every > 0
+ raise ArgumentError, "Expected every: to be a positive number of seconds, got #{every.inspect}"
+ end
+
+ self.periodic_timers += [[ callback, every: every ]]
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Streams.html b/src/classes/ActionCable/Channel/Streams.html
index 0967feb616..a2e686a3e9 100644
--- a/src/classes/ActionCable/Channel/Streams.html
+++ b/src/classes/ActionCable/Channel/Streams.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -167,14 +167,14 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 137
- def stop_all_streams
- streams.each do |broadcasting, callback|
- pubsub.unsubscribe broadcasting, callback
- logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
- end.clear
- end
+def stop_all_streams
+ streams.each do |broadcasting, callback|
+ pubsub.unsubscribe broadcasting, callback
+ logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
+ end.clear
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -205,11 +205,11 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 132
- def stop_stream_for(model)
- stop_stream_from(broadcasting_for(model))
- end
+def stop_stream_for(model)
+ stop_stream_from(broadcasting_for(model))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,15 +240,15 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 123
- def stop_stream_from(broadcasting)
- callback = streams.delete(broadcasting)
- if callback
- pubsub.unsubscribe(broadcasting, callback)
- logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
- end
- end
+def stop_stream_from(broadcasting)
+ callback = streams.delete(broadcasting)
+ if callback
+ pubsub.unsubscribe(broadcasting, callback)
+ logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -281,11 +281,11 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 118
- def stream_for(broadcastables, callback = nil, coder: nil, &block)
- stream_from(broadcasting_for(broadcastables), callback || block, coder: coder)
- end
+def stream_for(broadcastables, callback = nil, coder: nil, &block)
+ stream_from(broadcasting_for(broadcastables), callback || block, coder: coder)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -316,28 +316,28 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 90
- def stream_from(broadcasting, callback = nil, coder: nil, &block)
- return if unsubscribed?
-
- broadcasting = String(broadcasting)
-
- # Don't send the confirmation until pubsub#subscribe is successful
- defer_subscription_confirmation!
-
- # Build a stream handler by wrapping the user-provided callback with a decoder
- # or defaulting to a JSON-decoding retransmitter.
- handler = worker_pool_stream_handler(broadcasting, callback || block, coder: coder)
- streams[broadcasting] = handler
-
- connection.server.event_loop.post do
- pubsub.subscribe(broadcasting, handler, lambda do
- ensure_confirmation_sent
- logger.info "#{self.class.name} is streaming from #{broadcasting}"
- end)
- end
- end
+def stream_from(broadcasting, callback = nil, coder: nil, &block)
+ return if unsubscribed?
+
+ broadcasting = String(broadcasting)
+
+ # Don't send the confirmation until pubsub#subscribe is successful
+ defer_subscription_confirmation!
+
+ # Build a stream handler by wrapping the user-provided callback with a decoder
+ # or defaulting to a JSON-decoding retransmitter.
+ handler = worker_pool_stream_handler(broadcasting, callback || block, coder: coder)
+ streams[broadcasting] = handler
+
+ connection.server.event_loop.post do
+ pubsub.subscribe(broadcasting, handler, lambda do
+ ensure_confirmation_sent
+ logger.info "#{self.class.name} is streaming from #{broadcasting}"
+ end)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -368,15 +368,15 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 146
- def stream_or_reject_for(model)
- if model
- stream_for model
- else
- reject
- end
- end
+def stream_or_reject_for(model)
+ if model
+ stream_for model
+ else
+ reject
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase.html b/src/classes/ActionCable/Channel/TestCase.html
index 08fb28c0cf..6317ff44d0 100644
--- a/src/classes/ActionCable/Channel/TestCase.html
+++ b/src/classes/ActionCable/Channel/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior.html b/src/classes/ActionCable/Channel/TestCase/Behavior.html
index b5f3a5cbb7..5a8ea0fd78 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -196,11 +196,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 282
- def assert_broadcast_on(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcast_on(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -231,11 +231,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 278
- def assert_broadcasts(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcasts(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,11 +272,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 326
- def assert_has_no_stream(stream)
- assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
- end
+def assert_has_no_stream(stream)
+ assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -313,11 +313,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 337
- def assert_has_no_stream_for(object)
- assert_has_no_stream(broadcasting_for(object))
- end
+def assert_has_no_stream_for(object)
+ assert_has_no_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -354,11 +354,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 304
- def assert_has_stream(stream)
- assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
- end
+def assert_has_stream(stream)
+ assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -395,11 +395,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 315
- def assert_has_stream_for(object)
- assert_has_stream(broadcasting_for(object))
- end
+def assert_has_stream_for(object)
+ assert_has_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -436,11 +436,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 293
- def assert_no_streams
- assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
- end
+def assert_no_streams
+ assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -473,12 +473,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 266
- def perform(action, data = {})
- check_subscribed!
- subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
- end
+def perform(action, data = {})
+ check_subscribed!
+ subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -516,11 +516,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 243
- def stub_connection(identifiers = {})
- @connection = ConnectionStub.new(identifiers)
- end
+def stub_connection(identifiers = {})
+ @connection = ConnectionStub.new(identifiers)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -551,15 +551,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 249
- def subscribe(params = {})
- @connection ||= stub_connection
- @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
- @subscription.singleton_class.include(ChannelStub)
- @subscription.subscribe_to_channel
- @subscription
- end
+def subscribe(params = {})
+ @connection ||= stub_connection
+ @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
+ @subscription.singleton_class.include(ChannelStub)
+ @subscription.subscribe_to_channel
+ @subscription
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -590,12 +590,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 272
- def transmissions
- # Return only directly sent message (via #transmit)
- connection.transmissions.filter_map { |data| data["message"] }
- end
+def transmissions
+ # Return only directly sent message (via #transmit)
+ connection.transmissions.filter_map { |data| data["message"] }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -626,12 +626,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 258
- def unsubscribe
- check_subscribed!
- subscription.unsubscribe_from_channel
- end
+def unsubscribe
+ check_subscribed!
+ subscription.unsubscribe_from_channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
index 48ea87f130..57efb4cdac 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 219
- def channel_class
- if channel = self._channel_class
- channel
- else
- tests determine_default_channel(name)
- end
- end
+def channel_class
+ if channel = self._channel_class
+ channel
+ else
+ tests determine_default_channel(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 227
- def determine_default_channel(name)
- channel = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Channel::Base
- end
- raise NonInferrableChannelError.new(name) if channel.nil?
- channel
- end
+def determine_default_channel(name)
+ channel = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Channel::Base
+ end
+ raise NonInferrableChannelError.new(name) if channel.nil?
+ channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 208
- def tests(channel)
- case channel
- when String, Symbol
- self._channel_class = channel.to_s.camelize.constantize
- when Module
- self._channel_class = channel
- else
- raise NonInferrableChannelError.new(channel)
- end
- end
+def tests(channel)
+ case channel
+ when String, Symbol
+ self._channel_class = channel.to_s.camelize.constantize
+ when Module
+ self._channel_class = channel
+ else
+ raise NonInferrableChannelError.new(channel)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection.html b/src/classes/ActionCable/Connection.html
index f832214f0e..7889c75284 100644
--- a/src/classes/ActionCable/Connection.html
+++ b/src/classes/ActionCable/Connection.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Assertions.html b/src/classes/ActionCable/Connection/Assertions.html
index 933ea80e4c..6b10ec5528 100644
--- a/src/classes/ActionCable/Connection/Assertions.html
+++ b/src/classes/ActionCable/Connection/Assertions.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 28
- def assert_reject_connection(&block)
- assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
- end
+def assert_reject_connection(&block)
+ assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization.html b/src/classes/ActionCable/Connection/Authorization.html
index feb855aa9e..baf85a37b3 100644
--- a/src/classes/ActionCable/Connection/Authorization.html
+++ b/src/classes/ActionCable/Connection/Authorization.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -97,12 +97,12 @@
# File actioncable/lib/action_cable/connection/authorization.rb, line 12
- def reject_unauthorized_connection
- logger.error "An unauthorized connection attempt was rejected"
- raise UnauthorizedError
- end
+def reject_unauthorized_connection
+ logger.error "An unauthorized connection attempt was rejected"
+ raise UnauthorizedError
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
index b63b282b0b..ff36299a28 100644
--- a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
+++ b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/Base.html b/src/classes/ActionCable/Connection/Base.html
index 36a2f1e1bb..ea0d62911f 100644
--- a/src/classes/ActionCable/Connection/Base.html
+++ b/src/classes/ActionCable/Connection/Base.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -255,21 +255,21 @@
# File actioncable/lib/action_cable/connection/base.rb, line 67
- def initialize(server, env, coder: ActiveSupport::JSON)
- @server, @env, @coder = server, env, coder
+def initialize(server, env, coder: ActiveSupport::JSON)
+ @server, @env, @coder = server, env, coder
- @worker_pool = server.worker_pool
- @logger = new_tagged_logger
+ @worker_pool = server.worker_pool
+ @logger = new_tagged_logger
- @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
+ @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
- @_internal_subscriptions = nil
- @started_at = Time.now
- end
+ @_internal_subscriptions = nil
+ @started_at = Time.now
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -304,11 +304,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 147
- def beat
- transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
- end
+def beat
+ transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -339,16 +339,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 120
- def close(reason: nil, reconnect: true)
- transmit(
- type: ActionCable::INTERNAL[:message_types][:disconnect],
- reason: reason,
- reconnect: reconnect
- )
- websocket.close
- end
+def close(reason: nil, reconnect: true)
+ transmit(
+ type: ActionCable::INTERNAL[:message_types][:disconnect],
+ reason: reason,
+ reconnect: reconnect
+ )
+ websocket.close
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -379,13 +379,13 @@
# File actioncable/lib/action_cable/connection/base.rb, line 109
- def handle_channel_command(payload)
- run_callbacks :command do
- subscriptions.execute_command payload
- end
- end
+def handle_channel_command(payload)
+ run_callbacks :command do
+ subscriptions.execute_command payload
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -416,11 +416,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 131
- def send_async(method, *arguments)
- worker_pool.async_invoke(self, method, *arguments)
- end
+def send_async(method, *arguments)
+ worker_pool.async_invoke(self, method, *arguments)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -451,16 +451,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 138
- def statistics
- {
- identifier: connection_identifier,
- started_at: @started_at,
- subscriptions: subscriptions.identifiers,
- request_id: @env["action_dispatch.request_id"]
- }
- end
+def statistics
+ {
+ identifier: connection_identifier,
+ started_at: @started_at,
+ subscriptions: subscriptions.identifiers,
+ request_id: @env["action_dispatch.request_id"]
+ }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -494,11 +494,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 187
- def cookies # :doc:
- request.cookie_jar
- end
+def cookies # :doc:
+ request.cookie_jar
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -529,14 +529,14 @@
# File actioncable/lib/action_cable/connection/base.rb, line 178
- def request # :doc:
- @request ||= begin
- environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
- ActionDispatch::Request.new(environment || env)
- end
- end
+def request # :doc:
+ @request ||= begin
+ environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
+ ActionDispatch::Request.new(environment || env)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Callbacks.html b/src/classes/ActionCable/Connection/Callbacks.html
index 818958bf81..d6504ca284 100644
--- a/src/classes/ActionCable/Connection/Callbacks.html
+++ b/src/classes/ActionCable/Connection/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
index 933056a029..6376d7195b 100644
--- a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,11 +90,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 47
- def after_command(*methods, &block)
- set_callback(:command, :after, *methods, &block)
- end
+def after_command(*methods, &block)
+ set_callback(:command, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -125,11 +125,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 51
- def around_command(*methods, &block)
- set_callback(:command, :around, *methods, &block)
- end
+def around_command(*methods, &block)
+ set_callback(:command, :around, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -160,11 +160,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 43
- def before_command(*methods, &block)
- set_callback(:command, :before, *methods, &block)
- end
+def before_command(*methods, &block)
+ set_callback(:command, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification.html b/src/classes/ActionCable/Connection/Identification.html
index f3dcea9bfc..063ca88999 100644
--- a/src/classes/ActionCable/Connection/Identification.html
+++ b/src/classes/ActionCable/Connection/Identification.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,15 +95,15 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 29
- def connection_identifier
- unless defined? @connection_identifier
- @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
- end
+def connection_identifier
+ unless defined? @connection_identifier
+ @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
+ end
- @connection_identifier
- end
+ @connection_identifier
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification/ClassMethods.html b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
index 324ded31f5..a3395ef8a3 100644
--- a/src/classes/ActionCable/Connection/Identification/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -84,12 +84,12 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 21
- def identified_by(*identifiers)
- Array(identifiers).each { |identifier| attr_accessor identifier }
- self.identifiers += identifiers
- end
+def identified_by(*identifiers)
+ Array(identifiers).each { |identifier| attr_accessor identifier }
+ self.identifiers += identifiers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/InternalChannel.html b/src/classes/ActionCable/Connection/InternalChannel.html
index 9b0144f690..cfdccceaf4 100644
--- a/src/classes/ActionCable/Connection/InternalChannel.html
+++ b/src/classes/ActionCable/Connection/InternalChannel.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
index 7167904452..bf0c696d62 100644
--- a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
+++ b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 15
- def initialize(name)
- super "Unable to determine the connection to test from #{name}. " +
- "You'll need to specify it using `tests YourConnection` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the connection to test from #{name}. " +
+ "You'll need to specify it using `tests YourConnection` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/StreamEventLoop.html b/src/classes/ActionCable/Connection/StreamEventLoop.html
index 2b71a213e3..f7c49354ef 100644
--- a/src/classes/ActionCable/Connection/StreamEventLoop.html
+++ b/src/classes/ActionCable/Connection/StreamEventLoop.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -111,16 +111,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 10
- def initialize
- @nio = @executor = @thread = nil
- @map = {}
- @stopping = false
- @todo = Queue.new
-
- @spawn_mutex = Mutex.new
- end
+def initialize
+ @nio = @executor = @thread = nil
+ @map = {}
+ @stopping = false
+ @todo = Queue.new
+
+ @spawn_mutex = Mutex.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -155,15 +155,15 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 30
- def attach(io, stream)
- @todo << lambda do
- @map[io] = @nio.register(io, :r)
- @map[io].value = stream
- end
- wakeup
- end
+def attach(io, stream)
+ @todo << lambda do
+ @map[io] = @nio.register(io, :r)
+ @map[io].value = stream
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -194,16 +194,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 38
- def detach(io, stream)
- @todo << lambda do
- @nio.deregister io
- @map.delete io
- io.close
- end
- wakeup
- end
+def detach(io, stream)
+ @todo << lambda do
+ @nio.deregister io
+ @map.delete io
+ io.close
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -234,14 +234,14 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 23
- def post(task = nil, &block)
- task ||= block
+def post(task = nil, &block)
+ task ||= block
- spawn
- @executor << task
- end
+ spawn
+ @executor << task
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,12 +272,12 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 56
- def stop
- @stopping = true
- wakeup if @nio
- end
+def stop
+ @stopping = true
+ wakeup if @nio
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -308,11 +308,11 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 19
- def timer(interval, &block)
- Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
- end
+def timer(interval, &block)
+ Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -343,16 +343,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 47
- def writes_pending(io)
- @todo << lambda do
- if monitor = @map[io]
- monitor.interests = :rw
- end
- end
- wakeup
- end
+def writes_pending(io)
+ @todo << lambda do
+ if monitor = @map[io]
+ monitor.interests = :rw
+ end
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
index f4d5cacc63..99731855fb 100644
--- a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
+++ b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -121,12 +121,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 16
- def initialize(logger, tags:)
- @logger = logger
- @tags = tags.flatten
- end
+def initialize(logger, tags:)
+ @logger = logger
+ @tags = tags.flatten
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -161,12 +161,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 21
- def add_tags(*tags)
- @tags += tags.flatten
- @tags = @tags.uniq
- end
+def add_tags(*tags)
+ @tags += tags.flatten
+ @tags = @tags.uniq
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -197,16 +197,16 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 26
- def tag(logger, &block)
- if logger.respond_to?(:tagged)
- current_tags = tags - logger.formatter.current_tags
- logger.tagged(*current_tags, &block)
- else
- yield
- end
- end
+def tag(logger, &block)
+ if logger.respond_to?(:tagged)
+ current_tags = tags - logger.formatter.current_tags
+ logger.tagged(*current_tags, &block)
+ else
+ yield
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,11 +240,11 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 42
- def log(type, message, &block) # :doc:
- tag(@logger) { @logger.send type, message, &block }
- end
+def log(type, message, &block) # :doc:
+ tag(@logger) { @logger.send type, message, &block }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase.html b/src/classes/ActionCable/Connection/TestCase.html
index 948378e491..39bc5cb056 100644
--- a/src/classes/ActionCable/Connection/TestCase.html
+++ b/src/classes/ActionCable/Connection/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior.html b/src/classes/ActionCable/Connection/TestCase/Behavior.html
index b87870becd..4ee0debbea 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -163,19 +163,19 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 192
- def connect(path = ActionCable.server.config.mount_path, **request_params)
- path ||= DEFAULT_PATH
+def connect(path = ActionCable.server.config.mount_path, **request_params)
+ path ||= DEFAULT_PATH
- connection = self.class.connection_class.allocate
- connection.singleton_class.include(TestConnection)
- connection.send(:initialize, build_test_request(path, **request_params))
- connection.connect if connection.respond_to?(:connect)
+ connection = self.class.connection_class.allocate
+ connection.singleton_class.include(TestConnection)
+ connection.send(:initialize, build_test_request(path, **request_params))
+ connection.connect if connection.respond_to?(:connect)
- # Only set instance variable if connected successfully
- @connection = connection
- end
+ # Only set instance variable if connected successfully
+ @connection = connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -206,11 +206,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 212
- def cookies
- @cookie_jar ||= TestCookieJar.new
- end
+def cookies
+ @cookie_jar ||= TestCookieJar.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -241,14 +241,14 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 205
- def disconnect
- raise "Must be connected!" if connection.nil?
+def disconnect
+ raise "Must be connected!" if connection.nil?
- connection.disconnect if connection.respond_to?(:disconnect)
- @connection = nil
- end
+ connection.disconnect if connection.respond_to?(:disconnect)
+ @connection = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
index 63444f4b27..99fc0e3f6f 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 167
- def connection_class
- if connection = self._connection_class
- connection
- else
- tests determine_default_connection(name)
- end
- end
+def connection_class
+ if connection = self._connection_class
+ connection
+ else
+ tests determine_default_connection(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 175
- def determine_default_connection(name)
- connection = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Connection::Base
- end
- raise NonInferrableConnectionError.new(name) if connection.nil?
- connection
- end
+def determine_default_connection(name)
+ connection = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Connection::Base
+ end
+ raise NonInferrableConnectionError.new(name) if connection.nil?
+ connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
+ Ruby on Rails 8.1.0.rc1
diff --git a/src/classes/AbstractController/Base.html b/src/classes/AbstractController/Base.html
index 7ebd56b0a0..4fad9e6b82 100644
--- a/src/classes/AbstractController/Base.html
+++ b/src/classes/AbstractController/Base.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -173,11 +173,11 @@
# File actionpack/lib/abstract_controller/base.rb, line 57
- def abstract!
- @abstract = true
- end
+def abstract!
+ @abstract = true
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -208,19 +208,20 @@
# File actionpack/lib/abstract_controller/base.rb, line 93
- def action_methods
- @action_methods ||= begin
- # All public instance methods of this class, including ancestors except for
- # public instance methods of Base and its ancestors.
- methods = public_instance_methods(true) - internal_methods
- # Be sure to include shadowed public instance methods of this class.
- methods.concat(public_instance_methods(false))
- methods.map!(&:to_s)
- methods.to_set
- end
- end
+def action_methods
+ @action_methods ||= begin
+ # All public instance methods of this class, including ancestors except for
+ # public instance methods of Base and its ancestors.
+ methods = public_instance_methods(true) - internal_methods
+ # Be sure to include shadowed public instance methods of this class.
+ methods.concat(public_instance_methods(false))
+ methods.reject! { |m| m.start_with?("_") }
+ methods.map!(&:name)
+ methods.to_set
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -250,12 +251,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 108
- def clear_action_methods!
- @action_methods = nil
- end
+ # File actionpack/lib/abstract_controller/base.rb, line 109
+def clear_action_methods!
+ @action_methods = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -292,12 +293,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 120
- def controller_path
- @controller_path ||= name.delete_suffix("Controller").underscore unless anonymous?
- end
+ # File actionpack/lib/abstract_controller/base.rb, line 121
+def controller_path
+ @controller_path ||= name.delete_suffix("Controller").underscore unless anonymous?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -328,19 +329,19 @@
# File actionpack/lib/abstract_controller/base.rb, line 77
- def internal_methods
- controller = self
- methods = []
+def internal_methods
+ controller = self
+ methods = []
- until controller.abstract?
- methods += controller.public_instance_methods(false)
- controller = controller.superclass
- end
+ until controller.abstract?
+ methods += controller.public_instance_methods(false)
+ controller = controller.superclass
+ end
- controller.public_instance_methods(true) - methods
- end
+ controller.public_instance_methods(true) - methods
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -370,13 +371,13 @@
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 129
- def method_added(name)
- super
- clear_action_methods!
- end
+ # File actionpack/lib/abstract_controller/base.rb, line 130
+def method_added(name)
+ super
+ clear_action_methods!
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -391,7 +392,7 @@
- Returns true if the given controller is capable of rendering a path. A subclass of AbstractController::Base may return false. An Email controller for example does not support paths, only full URLs.
+ Returns true if the given controller is capable of rendering a path. A subclass of AbstractController::Base may return false. An Email controller for example does not support paths, only full URLs.
@@ -406,12 +407,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 193
- def self.supports_path?
- true
- end
+ # File actionpack/lib/abstract_controller/base.rb, line 194
+def self.supports_path?
+ true
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -445,12 +446,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 165
- def action_methods
- self.class.action_methods
- end
+ # File actionpack/lib/abstract_controller/base.rb, line 166
+def action_methods
+ self.class.action_methods
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -481,10 +482,10 @@
# File actionpack/lib/abstract_controller/base.rb, line 43
- attr_internal :action_name
+attr_internal :action_name
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -505,7 +506,7 @@
Parameters
-
-
action_name - The name of an action to be tested
+action_name - The name of an action to be tested
@@ -521,12 +522,12 @@ Parameters
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 180
- def available_action?(action_name)
- _find_action_name(action_name)
- end
+ # File actionpack/lib/abstract_controller/base.rb, line 181
+def available_action?(action_name)
+ _find_action_name(action_name)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -556,12 +557,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 160
- def controller_path
- self.class.controller_path
- end
+ # File actionpack/lib/abstract_controller/base.rb, line 161
+def controller_path
+ self.class.controller_path
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -592,10 +593,10 @@
# File actionpack/lib/abstract_controller/base.rb, line 47
- attr_internal :formats
+attr_internal :formats
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -625,12 +626,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 186
- def performed?
- response_body
- end
+ # File actionpack/lib/abstract_controller/base.rb, line 187
+def performed?
+ response_body
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -662,20 +663,20 @@
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 147
- def process(action, ...)
- @_action_name = action.to_s
+ # File actionpack/lib/abstract_controller/base.rb, line 148
+def process(action, ...)
+ @_action_name = action.to_s
- unless action_name = _find_action_name(@_action_name)
- raise ActionNotFound.new("The action '#{action}' could not be found for #{self.class.name}", self, action)
- end
+ unless action_name = _find_action_name(@_action_name)
+ raise ActionNotFound.new("The action '#{action}' could not be found for #{self.class.name}", self, action)
+ end
- @_response_body = nil
+ @_response_body = nil
- process_action(action_name, ...)
- end
+ process_action(action_name, ...)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -706,10 +707,10 @@
# File actionpack/lib/abstract_controller/base.rb, line 39
- attr_internal :response_body
+attr_internal :response_body
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Caching.html b/src/classes/AbstractController/Caching.html
index bf5c746308..5712afd4d1 100644
--- a/src/classes/AbstractController/Caching.html
+++ b/src/classes/AbstractController/Caching.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -127,11 +127,11 @@
# File actionpack/lib/abstract_controller/caching.rb, line 57
- def view_cache_dependencies
- self.class._view_cache_dependencies.filter_map { |dep| instance_exec(&dep) }
- end
+def view_cache_dependencies
+ self.class._view_cache_dependencies.filter_map { |dep| instance_exec(&dep) }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -165,15 +165,15 @@
# File actionpack/lib/abstract_controller/caching.rb, line 63
- def cache(key, options = {}, &block) # :doc:
- if cache_configured?
- cache_store.fetch(ActiveSupport::Cache.expand_cache_key(key, :controller), options, &block)
- else
- yield
- end
- end
+def cache(key, options = {}, &block) # :doc:
+ if cache_configured?
+ cache_store.fetch(ActiveSupport::Cache.expand_cache_key(key, :controller), options, &block)
+ else
+ yield
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Caching/ClassMethods.html b/src/classes/AbstractController/Caching/ClassMethods.html
index a5c5346161..769e43a1d0 100644
--- a/src/classes/AbstractController/Caching/ClassMethods.html
+++ b/src/classes/AbstractController/Caching/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -82,11 +82,11 @@
# File actionpack/lib/abstract_controller/caching.rb, line 52
- def view_cache_dependency(&dependency)
- self._view_cache_dependencies += [dependency]
- end
+def view_cache_dependency(&dependency)
+ self._view_cache_dependencies += [dependency]
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Caching/ConfigMethods.html b/src/classes/AbstractController/Caching/ConfigMethods.html
index 32afaceaa6..9b5ab3b1d2 100644
--- a/src/classes/AbstractController/Caching/ConfigMethods.html
+++ b/src/classes/AbstractController/Caching/ConfigMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actionpack/lib/abstract_controller/caching.rb, line 15
- def cache_store
- config.cache_store
- end
+def cache_store
+ config.cache_store
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -121,11 +121,11 @@
# File actionpack/lib/abstract_controller/caching.rb, line 19
- def cache_store=(store)
- config.cache_store = ActiveSupport::Cache.lookup_store(*store)
- end
+def cache_store=(store)
+ config.cache_store = ActiveSupport::Cache.lookup_store(*store)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Caching/Fragments.html b/src/classes/AbstractController/Caching/Fragments.html
index a121e2e7a5..c3adf29074 100644
--- a/src/classes/AbstractController/Caching/Fragments.html
+++ b/src/classes/AbstractController/Caching/Fragments.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -108,7 +108,7 @@
- Given a key (as described in expire_fragment), returns a key array suitable for use in reading, writing, or expiring a cached fragment. All keys begin with :views, followed by ENV["RAILS_CACHE_ID"] or ENV["RAILS_APP_VERSION"] if set, followed by any controller-wide key prefix values, ending with the specified key value.
+ Given a key (as described in expire_fragment), returns a key array suitable for use in reading, writing, or expiring a cached fragment. All keys begin with :views, followed by ENV["RAILS_CACHE_ID"] or ENV["RAILS_APP_VERSION"] if set, followed by any controller-wide key prefix values, ending with the specified key value.
@@ -124,17 +124,17 @@
# File actionpack/lib/abstract_controller/caching/fragments.rb, line 68
- def combined_fragment_cache_key(key)
- head = self.class.fragment_cache_keys.map { |k| instance_exec(&k) }
- tail = key.is_a?(Hash) ? url_for(key).split("://").last : key
-
- cache_key = [:views, ENV["RAILS_CACHE_ID"] || ENV["RAILS_APP_VERSION"], head, tail]
- cache_key.flatten!(1)
- cache_key.compact!
- cache_key
- end
+def combined_fragment_cache_key(key)
+ head = self.class.fragment_cache_keys.map { |k| instance_exec(&k) }
+ tail = key.is_a?(Hash) ? url_for(key).split("://").last : key
+
+ cache_key = [:views, ENV["RAILS_CACHE_ID"] || ENV["RAILS_APP_VERSION"], head, tail]
+ cache_key.flatten!(1)
+ cache_key.compact!
+ cache_key
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -176,20 +176,20 @@
# File actionpack/lib/abstract_controller/caching/fragments.rb, line 131
- def expire_fragment(key, options = nil)
- return unless cache_configured?
- key = combined_fragment_cache_key(key) unless key.is_a?(Regexp)
-
- instrument_fragment_cache :expire_fragment, key do
- if key.is_a?(Regexp)
- cache_store.delete_matched(key, options)
- else
- cache_store.delete(key, options)
- end
- end
- end
+def expire_fragment(key, options = nil)
+ return unless cache_configured?
+ key = combined_fragment_cache_key(key) unless key.is_a?(Regexp)
+
+ instrument_fragment_cache :expire_fragment, key do
+ if key.is_a?(Regexp)
+ cache_store.delete_matched(key, options)
+ else
+ cache_store.delete(key, options)
+ end
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -204,7 +204,7 @@
- Check if a cached fragment from the location signified by key exists (see expire_fragment for acceptable formats).
+ Check if a cached fragment from the location signified by key exists (see expire_fragment for acceptable formats).
@@ -220,16 +220,16 @@
# File actionpack/lib/abstract_controller/caching/fragments.rb, line 105
- def fragment_exist?(key, options = nil)
- return unless cache_configured?
- key = combined_fragment_cache_key(key)
-
- instrument_fragment_cache :exist_fragment?, key do
- cache_store.exist?(key, options)
- end
- end
+def fragment_exist?(key, options = nil)
+ return unless cache_configured?
+ key = combined_fragment_cache_key(key)
+
+ instrument_fragment_cache :exist_fragment?, key do
+ cache_store.exist?(key, options)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -244,7 +244,7 @@
- Reads a cached fragment from the location signified by key (see expire_fragment for acceptable formats).
+ Reads a cached fragment from the location signified by key (see expire_fragment for acceptable formats).
@@ -260,17 +260,17 @@
# File actionpack/lib/abstract_controller/caching/fragments.rb, line 93
- def read_fragment(key, options = nil)
- return unless cache_configured?
-
- key = combined_fragment_cache_key(key)
- instrument_fragment_cache :read_fragment, key do
- result = cache_store.read(key, options)
- result.respond_to?(:html_safe) ? result.html_safe : result
- end
- end
+def read_fragment(key, options = nil)
+ return unless cache_configured?
+
+ key = combined_fragment_cache_key(key)
+ instrument_fragment_cache :read_fragment, key do
+ result = cache_store.read(key, options)
+ result.respond_to?(:html_safe) ? result.html_safe : result
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -285,7 +285,7 @@
- Writes content to the location signified by key (see expire_fragment for acceptable formats).
+ Writes content to the location signified by key (see expire_fragment for acceptable formats).
@@ -301,18 +301,18 @@
# File actionpack/lib/abstract_controller/caching/fragments.rb, line 80
- def write_fragment(key, content, options = nil)
- return content unless cache_configured?
-
- key = combined_fragment_cache_key(key)
- instrument_fragment_cache :write_fragment, key do
- content = content.to_str
- cache_store.write(key, content, options)
- end
- content
- end
+def write_fragment(key, content, options = nil)
+ return content unless cache_configured?
+
+ key = combined_fragment_cache_key(key)
+ instrument_fragment_cache :write_fragment, key do
+ content = content.to_str
+ cache_store.write(key, content, options)
+ end
+ content
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Caching/Fragments/ClassMethods.html b/src/classes/AbstractController/Caching/Fragments/ClassMethods.html
index f684e4fb8f..3fd0838698 100644
--- a/src/classes/AbstractController/Caching/Fragments/ClassMethods.html
+++ b/src/classes/AbstractController/Caching/Fragments/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -98,11 +98,11 @@
# File actionpack/lib/abstract_controller/caching/fragments.rb, line 58
- def fragment_cache_key(value = nil, &key)
- self.fragment_cache_keys += [key || -> { value }]
- end
+def fragment_cache_key(value = nil, &key)
+ self.fragment_cache_keys += [key || -> { value }]
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Callbacks.html b/src/classes/AbstractController/Callbacks.html
index 4e3a570e15..36bffc7d1d 100644
--- a/src/classes/AbstractController/Callbacks.html
+++ b/src/classes/AbstractController/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/AbstractController/Callbacks/ClassMethods.html b/src/classes/AbstractController/Callbacks/ClassMethods.html
index 8df003036a..43c33d5431 100644
--- a/src/classes/AbstractController/Callbacks/ClassMethods.html
+++ b/src/classes/AbstractController/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -148,18 +148,18 @@ Block Parameters
# File actionpack/lib/abstract_controller/callbacks.rb, line 120
- def _insert_callbacks(callbacks, block = nil)
- options = callbacks.extract_options!
- callbacks.push(block) if block
- options[:filters] = callbacks
- _normalize_callback_options(options)
- options.delete(:filters)
- callbacks.each do |callback|
- yield callback, options
- end
- end
+def _insert_callbacks(callbacks, block = nil)
+ options = callbacks.extract_options!
+ callbacks.push(block) if block
+ options[:filters] = callbacks
+ _normalize_callback_options(options)
+ options.delete(:filters)
+ callbacks.each do |callback|
+ yield callback, options
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -209,12 +209,12 @@ Options
# File actionpack/lib/abstract_controller/callbacks.rb, line 93
- def _normalize_callback_options(options)
- _normalize_callback_option(options, :only, :if)
- _normalize_callback_option(options, :except, :unless)
- end
+def _normalize_callback_options(options)
+ _normalize_callback_option(options, :only, :if)
+ _normalize_callback_option(options, :except, :unless)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,7 +240,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -264,7 +264,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -288,7 +288,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -314,7 +314,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -338,7 +338,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -364,7 +364,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -388,7 +388,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -412,7 +412,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -438,7 +438,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -462,7 +462,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -486,7 +486,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -510,7 +510,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Collector.html b/src/classes/AbstractController/Collector.html
index 346619e2c1..763d356b2e 100644
--- a/src/classes/AbstractController/Collector.html
+++ b/src/classes/AbstractController/Collector.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -81,16 +81,16 @@
# File actionpack/lib/abstract_controller/collector.rb, line 9
- def self.generate_method_for_mime(mime)
- sym = mime.is_a?(Symbol) ? mime : mime.to_sym
- class_eval <<-RUBY, __FILE__, __LINE__ + 1
- def #{sym}(...)
- custom(Mime[:#{sym}], ...)
- end
- RUBY
- end
+def self.generate_method_for_mime(mime)
+ sym = mime.is_a?(Symbol) ? mime : mime.to_sym
+ class_eval <<-RUBY, __FILE__, __LINE__ + 1
+ def #{sym}(...)
+ custom(Mime[:#{sym}], ...)
+ end
+ RUBY
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/DoubleRenderError.html b/src/classes/AbstractController/DoubleRenderError.html
index b0a21b293d..8f48bc9ef3 100644
--- a/src/classes/AbstractController/DoubleRenderError.html
+++ b/src/classes/AbstractController/DoubleRenderError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -100,11 +100,11 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 13
- def initialize(message = nil)
- super(message || DEFAULT_MESSAGE)
- end
+def initialize(message = nil)
+ super(message || DEFAULT_MESSAGE)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Helpers.html b/src/classes/AbstractController/Helpers.html
index 9fc0534a60..b4d98aa351 100644
--- a/src/classes/AbstractController/Helpers.html
+++ b/src/classes/AbstractController/Helpers.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,11 +95,11 @@
# File actionpack/lib/abstract_controller/helpers.rb, line 28
- def _helpers
- self.class._helpers
- end
+def _helpers
+ self.class._helpers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Helpers/ClassMethods.html b/src/classes/AbstractController/Helpers/ClassMethods.html
index 8900a598d0..33df6d47c3 100644
--- a/src/classes/AbstractController/Helpers/ClassMethods.html
+++ b/src/classes/AbstractController/Helpers/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -119,7 +119,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -148,14 +148,14 @@
# File actionpack/lib/abstract_controller/helpers.rb, line 218
- def _helpers_for_modification
- unless @_helpers
- self._helpers = define_helpers_module(self, superclass._helpers)
- end
- _helpers
- end
+def _helpers_for_modification
+ unless @_helpers
+ self._helpers = define_helpers_module(self, superclass._helpers)
+ end
+ _helpers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -186,16 +186,16 @@
# File actionpack/lib/abstract_controller/helpers.rb, line 209
- def clear_helpers
- inherited_helper_methods = _helper_methods
- self._helpers = Module.new
- self._helper_methods = Array.new
-
- inherited_helper_methods.each { |meth| helper_method meth }
- default_helper_module! unless anonymous?
- end
+def clear_helpers
+ inherited_helper_methods = _helper_methods
+ self._helpers = Module.new
+ self._helper_methods = Array.new
+
+ inherited_helper_methods.each { |meth| helper_method meth }
+ default_helper_module! unless anonymous?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -274,16 +274,16 @@
# File actionpack/lib/abstract_controller/helpers.rb, line 198
- def helper(*args, &block)
- modules_for_helpers(args).each do |mod|
- next if _helpers.include?(mod)
- _helpers_for_modification.include(mod)
- end
-
- _helpers_for_modification.module_eval(&block) if block_given?
- end
+def helper(*args, &block)
+ modules_for_helpers(args).each do |mod|
+ next if _helpers.include?(mod)
+ _helpers_for_modification.include(mod)
+ end
+
+ _helpers_for_modification.module_eval(&block) if block_given?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -338,26 +338,26 @@ Parameters
# File actionpack/lib/abstract_controller/helpers.rb, line 128
- def helper_method(*methods)
- methods.flatten!
- self._helper_methods += methods
-
- location = caller_locations(1, 1).first
- file, line = location.path, location.lineno
-
- methods.each do |method|
- # def current_user(...)
- # controller.send(:'current_user', ...)
- # end
- _helpers_for_modification.class_eval <<~ruby_eval.lines.map(&:strip).join(";"), file, line
- def #{method}(...)
- controller.send(:'#{method}', ...)
- end
- ruby_eval
- end
- end
+def helper_method(*methods)
+ methods.flatten!
+ self._helper_methods += methods
+
+ location = caller_locations(1, 1).first
+ file, line = location.path, location.lineno
+
+ methods.each do |method|
+ # def current_user(...)
+ # controller.send(:'current_user', ...)
+ # end
+ _helpers_for_modification.class_eval <<~ruby_eval.lines.map(&:strip).join(";"), file, line
+ def #{method}(...)
+ controller.send(:'#{method}', ...)
+ end
+ ruby_eval
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -388,15 +388,15 @@
# File actionpack/lib/abstract_controller/helpers.rb, line 68
- def inherited(klass)
- # Inherited from parent by default
- klass._helpers = nil
+def inherited(klass)
+ # Inherited from parent by default
+ klass._helpers = nil
- klass.class_eval { default_helper_module! } unless klass.anonymous?
- super
- end
+ klass.class_eval { default_helper_module! } unless klass.anonymous?
+ super
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -426,7 +426,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Railties.html b/src/classes/AbstractController/Railties.html
index ddb634ab93..e9e5642902 100644
--- a/src/classes/AbstractController/Railties.html
+++ b/src/classes/AbstractController/Railties.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/AbstractController/Railties/RoutesHelpers.html b/src/classes/AbstractController/Railties/RoutesHelpers.html
index 2b3b00e29d..b053082e31 100644
--- a/src/classes/AbstractController/Railties/RoutesHelpers.html
+++ b/src/classes/AbstractController/Railties/RoutesHelpers.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -81,21 +81,21 @@
# File actionpack/lib/abstract_controller/railties/routes_helpers.rb, line 10
- def self.with(routes, include_path_helpers = true)
- Module.new do
- define_method(:inherited) do |klass|
- super(klass)
-
- if namespace = klass.module_parents.detect { |m| m.respond_to?(:railtie_routes_url_helpers) }
- klass.include(namespace.railtie_routes_url_helpers(include_path_helpers))
- else
- klass.include(routes.url_helpers(include_path_helpers))
- end
- end
- end
- end
+def self.with(routes, include_path_helpers = true)
+ Module.new do
+ define_method(:inherited) do |klass|
+ super(klass)
+
+ if namespace = klass.module_parents.detect { |m| m.respond_to?(:railtie_routes_url_helpers) }
+ klass.include(namespace.railtie_routes_url_helpers(include_path_helpers))
+ else
+ klass.include(routes.url_helpers(include_path_helpers))
+ end
+ end
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Rendering.html b/src/classes/AbstractController/Rendering.html
index 872a9d8b43..0fa902a303 100644
--- a/src/classes/AbstractController/Rendering.html
+++ b/src/classes/AbstractController/Rendering.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -123,7 +123,7 @@
Normalizes arguments and options, and then delegates to render_to_body and sticks the result in self.response_body.
-Supported options depend on the underlying render_to_body implementation.
+Supported options depend on the underlying render_to_body implementation.
@@ -139,19 +139,19 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 26
- def render(*args, &block)
- options = _normalize_render(*args, &block)
- rendered_body = render_to_body(options)
- if options[:html]
- _set_html_content_type
- else
- _set_rendered_content_type rendered_format
- end
- _set_vary_header
- self.response_body = rendered_body
- end
+def render(*args, &block)
+ options = _normalize_render(*args, &block)
+ rendered_body = render_to_body(options)
+ if options[:html]
+ _set_html_content_type
+ else
+ _set_rendered_content_type rendered_format
+ end
+ _set_vary_header
+ self.response_body = rendered_body
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -182,10 +182,10 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 50
- def render_to_body(options = {})
- end
+def render_to_body(options = {})
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -218,12 +218,12 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 44
- def render_to_string(*args, &block)
- options = _normalize_render(*args, &block)
- render_to_body(options)
- end
+def render_to_string(*args, &block)
+ options = _normalize_render(*args, &block)
+ render_to_body(options)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -254,11 +254,11 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 54
- def rendered_format
- Mime[:text]
- end
+def rendered_format
+ Mime[:text]
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -289,15 +289,15 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 62
- def view_assigns
- variables = instance_variables - _protected_ivars
+def view_assigns
+ variables = instance_variables - _protected_ivars
- variables.each_with_object({}) do |name, hash|
- hash[name.slice(1, name.length)] = instance_variable_get(name)
- end
- end
+ variables.each_with_object({}) do |name, hash|
+ hash[name.slice(1, name.length)] = instance_variable_get(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -331,21 +331,21 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 73
- def _normalize_args(action = nil, options = {}) # :doc:
- if action.respond_to?(:permitted?)
- if action.permitted?
- action
- else
- raise ArgumentError, "render parameters are not permitted"
- end
- elsif action.is_a?(Hash)
- action
- else
- options
- end
- end
+def _normalize_args(action = nil, options = {}) # :doc:
+ if action.respond_to?(:permitted?)
+ if action.permitted?
+ action
+ else
+ raise ArgumentError, "render parameters are not permitted"
+ end
+ elsif action.is_a?(Hash)
+ action
+ else
+ options
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -376,11 +376,11 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 88
- def _normalize_options(options) # :doc:
- options
- end
+def _normalize_options(options) # :doc:
+ options
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -411,11 +411,11 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 93
- def _process_options(options) # :doc:
- options
- end
+def _process_options(options) # :doc:
+ options
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Translation.html b/src/classes/AbstractController/Translation.html
index e429818684..446e93e2cd 100644
--- a/src/classes/AbstractController/Translation.html
+++ b/src/classes/AbstractController/Translation.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -123,11 +123,11 @@
# File actionpack/lib/abstract_controller/translation.rb, line 37
- def localize(object, **options)
- I18n.localize(object, **options)
- end
+def localize(object, **options)
+ I18n.localize(object, **options)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -189,25 +189,25 @@
# File actionpack/lib/abstract_controller/translation.rb, line 17
- def translate(key, **options)
- if key&.start_with?(".")
- path = controller_path.tr("/", ".")
- defaults = [:"#{path}#{key}"]
- defaults << options[:default] if options[:default]
- options[:default] = defaults.flatten
- key = "#{path}.#{action_name}#{key}"
- end
-
- if options[:default] && ActiveSupport::HtmlSafeTranslation.html_safe_translation_key?(key)
- options[:default] = Array(options[:default]).map do |value|
- value.is_a?(String) ? ERB::Util.html_escape(value) : value
- end
- end
-
- ActiveSupport::HtmlSafeTranslation.translate(key, **options)
- end
+def translate(key, **options)
+ if key&.start_with?(".")
+ path = controller_path.tr("/", ".")
+ defaults = [:"#{path}#{key}"]
+ defaults << options[:default] if options[:default]
+ options[:default] = defaults.flatten
+ key = "#{path}.#{action_name}#{key}"
+ end
+
+ if options[:default] && ActiveSupport::HtmlSafeTranslation.html_safe_translation_key?(key)
+ options[:default] = Array(options[:default]).map do |value|
+ value.is_a?(String) ? ERB::Util.html_escape(value) : value
+ end
+ end
+
+ ActiveSupport::HtmlSafeTranslation.translate(key, **options)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/UrlFor.html b/src/classes/AbstractController/UrlFor.html
index 8d49da9f5c..bd5d0224eb 100644
--- a/src/classes/AbstractController/UrlFor.html
+++ b/src/classes/AbstractController/UrlFor.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -119,12 +119,12 @@
# File actionpack/lib/abstract_controller/url_for.rb, line 18
- def _routes
- raise "In order to use #url_for, you must include routing helpers explicitly. " \
- "For instance, `include Rails.application.routes.url_helpers`."
- end
+def _routes
+ raise "In order to use #url_for, you must include routing helpers explicitly. " \
+ "For instance, `include Rails.application.routes.url_helpers`."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/UrlFor/ClassMethods.html b/src/classes/AbstractController/UrlFor/ClassMethods.html
index cd0e5e9509..e4471b2d66 100644
--- a/src/classes/AbstractController/UrlFor/ClassMethods.html
+++ b/src/classes/AbstractController/UrlFor/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actionpack/lib/abstract_controller/url_for.rb, line 24
- def _routes
- nil
- end
+def _routes
+ nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -121,15 +121,15 @@
# File actionpack/lib/abstract_controller/url_for.rb, line 28
- def action_methods
- @action_methods ||= if _routes
- super - _routes.named_routes.helper_names
- else
- super
- end
- end
+def action_methods
+ @action_methods ||= if _routes
+ super - _routes.named_routes.helper_names
+ else
+ super
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable.html b/src/classes/ActionCable.html
index 4951b5813f..5e5f891dce 100644
--- a/src/classes/ActionCable.html
+++ b/src/classes/ActionCable.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -267,11 +267,11 @@
# File actioncable/lib/action_cable/gem_version.rb, line 7
- def self.gem_version
- Gem::Version.new VERSION::STRING
- end
+def self.gem_version
+ Gem::Version.new VERSION::STRING
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -302,11 +302,11 @@
# File actioncable/lib/action_cable/version.rb, line 9
- def self.version
- gem_version
- end
+def self.version
+ gem_version
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -341,11 +341,11 @@
# File actioncable/lib/action_cable.rb, line 77
- def server
- @server ||= ActionCable::Server::Base.new
- end
+def server
+@server ||= ActionCable::Server::Base.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel.html b/src/classes/ActionCable/Channel.html
index 38c886ddbc..06b36ff362 100644
--- a/src/classes/ActionCable/Channel.html
+++ b/src/classes/ActionCable/Channel.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Channel/Base.html b/src/classes/ActionCable/Channel/Base.html
index bc63a53315..32e2ff9b70 100644
--- a/src/classes/ActionCable/Channel/Base.html
+++ b/src/classes/ActionCable/Channel/Base.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -82,7 +82,7 @@ Action process
end
-
In this example, the subscribed and unsubscribed methods are not callable methods, as they were already declared in ActionCable::Channel::Base, but #appear and #away are. #generate_connection_token is also not callable, since it’s a private method. You’ll see that appear accepts a data parameter, which it then uses as part of its model call. #away does not, since it’s simply a trigger action.
+In this example, the subscribed and unsubscribed methods are not callable methods, as they were already declared in ActionCable::Channel::Base, but appear and away are. generate_connection_token is also not callable, since it’s a private method. You’ll see that appear accepts a data parameter, which it then uses as part of its model call. away does not, since it’s simply a trigger action.
Also note that in this example, current_user is available because it was marked as an identifying attribute on the connection. All such identifiers will automatically create a delegation method of the same name on the channel instance.
@@ -307,19 +307,22 @@ Returns
# File actioncable/lib/action_cable/channel/base.rb, line 128
- def action_methods
- @action_methods ||= begin
- # All public instance methods of this class, including ancestors
- methods = (public_instance_methods(true) -
- # Except for public instance methods of Base and its ancestors
- ActionCable::Channel::Base.public_instance_methods(true) +
- # Be sure to include shadowed public instance methods of this class
- public_instance_methods(false)).uniq.map(&:to_s)
- methods.to_set
- end
- end
-
- 🔎 See on GitHub
+def action_methods
+ @action_methods ||= begin
+ # All public instance methods of this class, including ancestors
+ methods = (public_instance_methods(true) -
+ # Except for public instance methods of Base and its ancestors
+ ActionCable::Channel::Base.public_instance_methods(true) +
+ # Be sure to include shadowed public instance methods of this class
+ public_instance_methods(false)).uniq
+
+ methods.reject! { |m| m.start_with?("_") }
+ methods.map!(&:name)
+ methods.to_set
+ end
+end
+
+ 🔎 See on GitHub
@@ -349,26 +352,26 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 155
- def initialize(connection, identifier, params = {})
- @connection = connection
- @identifier = identifier
- @params = params
+ # File actioncable/lib/action_cable/channel/base.rb, line 158
+def initialize(connection, identifier, params = {})
+ @connection = connection
+ @identifier = identifier
+ @params = params
- # When a channel is streaming via pubsub, we want to delay the confirmation
- # transmission until pubsub subscription is confirmed.
- #
- # The counter starts at 1 because it's awaiting a call to #subscribe_to_channel
- @defer_subscription_confirmation_counter = Concurrent::AtomicFixnum.new(1)
+ # When a channel is streaming via pubsub, we want to delay the confirmation
+ # transmission until pubsub subscription is confirmed.
+ #
+ # The counter starts at 1 because it's awaiting a call to #subscribe_to_channel
+ @defer_subscription_confirmation_counter = Concurrent::AtomicFixnum.new(1)
- @reject_subscription = nil
- @subscription_confirmation_sent = nil
- @unsubscribed = false
+ @reject_subscription = nil
+ @subscription_confirmation_sent = nil
+ @unsubscribed = false
- delegate_connection_identifiers
- end
+ delegate_connection_identifiers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -401,12 +404,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 144
- def clear_action_methods! # :doc:
- @action_methods = nil
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 147
+def clear_action_methods! # :doc:
+ @action_methods = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -436,13 +439,13 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 149
- def method_added(name) # :doc:
- super
- clear_action_methods!
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 152
+def method_added(name) # :doc:
+ super
+ clear_action_methods!
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -476,21 +479,21 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 176
- def perform_action(data)
- action = extract_action(data)
+ # File actioncable/lib/action_cable/channel/base.rb, line 179
+def perform_action(data)
+ action = extract_action(data)
- if processable_action?(action)
- payload = { channel_class: self.class.name, action: action, data: data }
- ActiveSupport::Notifications.instrument("perform_action.action_cable", payload) do
- dispatch_action(action, data)
- end
- else
- logger.error "Unable to process #{action_signature(action, data)}"
- end
- end
+ if processable_action?(action)
+ payload = { channel_class: self.class.name, action: action, data: data }
+ ActiveSupport::Notifications.instrument("perform_action.action_cable", payload) do
+ dispatch_action(action, data)
+ end
+ else
+ logger.error "Unable to process #{action_signature(action, data)}"
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -520,17 +523,17 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 191
- def subscribe_to_channel
- run_callbacks :subscribe do
- subscribed
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 194
+def subscribe_to_channel
+ run_callbacks :subscribe do
+ subscribed
+ end
- reject_subscription if subscription_rejected?
- ensure_confirmation_sent
- end
+ reject_subscription if subscription_rejected?
+ ensure_confirmation_sent
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -563,12 +566,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 250
- def defer_subscription_confirmation! # :doc:
- @defer_subscription_confirmation_counter.increment
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 253
+def defer_subscription_confirmation! # :doc:
+ @defer_subscription_confirmation_counter.increment
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -598,12 +601,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 254
- def defer_subscription_confirmation? # :doc:
- @defer_subscription_confirmation_counter.value > 0
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 257
+def defer_subscription_confirmation? # :doc:
+ @defer_subscription_confirmation_counter.value > 0
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -633,14 +636,14 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 244
- def ensure_confirmation_sent # :doc:
- return if subscription_rejected?
- @defer_subscription_confirmation_counter.decrement
- transmit_subscription_confirmation unless defer_subscription_confirmation?
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 247
+def ensure_confirmation_sent # :doc:
+ return if subscription_rejected?
+ @defer_subscription_confirmation_counter.decrement
+ transmit_subscription_confirmation unless defer_subscription_confirmation?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -670,12 +673,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 262
- def reject # :doc:
- @reject_subscription = true
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 265
+def reject # :doc:
+ @reject_subscription = true
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -705,12 +708,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 218
- def subscribed # :doc:
- # Override in subclasses
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 221
+def subscribed # :doc:
+ # Override in subclasses
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -740,12 +743,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 258
- def subscription_confirmation_sent? # :doc:
- @subscription_confirmation_sent
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 261
+def subscription_confirmation_sent? # :doc:
+ @subscription_confirmation_sent
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -775,12 +778,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 266
- def subscription_rejected? # :doc:
- @reject_subscription
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 269
+def subscription_rejected? # :doc:
+ @reject_subscription
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -810,21 +813,21 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 231
- def transmit(data, via: nil) # :doc:
- logger.debug do
- status = "#{self.class.name} transmitting #{data.inspect.truncate(300)}"
- status += " (via #{via})" if via
- status
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 234
+def transmit(data, via: nil) # :doc:
+ logger.debug do
+ status = "#{self.class.name} transmitting #{data.inspect.truncate(300)}"
+ status += " (via #{via})" if via
+ status
+ end
- payload = { channel_class: self.class.name, data: data, via: via }
- ActiveSupport::Notifications.instrument("transmit.action_cable", payload) do
- connection.transmit identifier: @identifier, message: data
- end
- end
+ payload = { channel_class: self.class.name, data: data, via: via }
+ ActiveSupport::Notifications.instrument("transmit.action_cable", payload) do
+ connection.transmit identifier: @identifier, message: data
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -854,12 +857,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 224
- def unsubscribed # :doc:
- # Override in subclasses
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 227
+def unsubscribed # :doc:
+ # Override in subclasses
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Broadcasting.html b/src/classes/ActionCable/Channel/Broadcasting.html
index bb71b89445..7fecc3f6b8 100644
--- a/src/classes/ActionCable/Channel/Broadcasting.html
+++ b/src/classes/ActionCable/Channel/Broadcasting.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -99,11 +99,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 45
- def broadcast_to(model, message)
- self.class.broadcast_to(model, message)
- end
+def broadcast_to(model, message)
+ self.class.broadcast_to(model, message)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -134,11 +134,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 41
- def broadcasting_for(model)
- self.class.broadcasting_for(model)
- end
+def broadcasting_for(model)
+ self.class.broadcasting_for(model)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html b/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
index 684bccb1ab..432bb5d74f 100644
--- a/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 14
- def broadcast_to(broadcastables, message)
- ActionCable.server.broadcast(broadcasting_for(broadcastables), message)
- end
+def broadcast_to(broadcastables, message)
+ ActionCable.server.broadcast(broadcasting_for(broadcastables), message)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -126,11 +126,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 24
- def broadcasting_for(broadcastables)
- serialize_broadcasting([ channel_name ] + Array(broadcastables))
- end
+def broadcasting_for(broadcastables)
+ serialize_broadcasting([ channel_name ] + Array(broadcastables))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Callbacks.html b/src/classes/ActionCable/Channel/Callbacks.html
index 076bdbc8fa..64985186c3 100644
--- a/src/classes/ActionCable/Channel/Callbacks.html
+++ b/src/classes/ActionCable/Channel/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html b/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
index 6ee4317311..7949b5fdf6 100644
--- a/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -111,11 +111,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 60
- def after_subscribe(*methods, &block)
- set_callback(:subscribe, :after, *methods, &block)
- end
+def after_subscribe(*methods, &block)
+ set_callback(:subscribe, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -150,11 +150,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 69
- def after_unsubscribe(*methods, &block)
- set_callback(:unsubscribe, :after, *methods, &block)
- end
+def after_unsubscribe(*methods, &block)
+ set_callback(:unsubscribe, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -185,11 +185,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 48
- def before_subscribe(*methods, &block)
- set_callback(:subscribe, :before, *methods, &block)
- end
+def before_subscribe(*methods, &block)
+ set_callback(:subscribe, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -220,11 +220,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 65
- def before_unsubscribe(*methods, &block)
- set_callback(:unsubscribe, :before, *methods, &block)
- end
+def before_unsubscribe(*methods, &block)
+ set_callback(:unsubscribe, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/ChannelStub.html b/src/classes/ActionCable/Channel/ChannelStub.html
index 9db98daac2..d004896dc5 100644
--- a/src/classes/ActionCable/Channel/ChannelStub.html
+++ b/src/classes/ActionCable/Channel/ChannelStub.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -25,7 +25,7 @@
Action Cable Channel Stub
-
Stub stream_from to track streams for the channel. Add public aliases for subscription_confirmation_sent? and subscription_rejected?.
+Stub stream_from to track streams for the channel. Add public aliases for subscription_confirmation_sent? and subscription_rejected?.
@@ -114,11 +114,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 25
- def confirmed?
- subscription_confirmation_sent?
- end
+def confirmed?
+ subscription_confirmation_sent?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -149,11 +149,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 29
- def rejected?
- subscription_rejected?
- end
+def rejected?
+ subscription_rejected?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -188,9 +188,9 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 46
- def start_periodic_timers; end
+def start_periodic_timers; end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -221,11 +221,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 37
- def stop_all_streams
- @_streams = []
- end
+def stop_all_streams
+ @_streams = []
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -281,11 +281,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 33
- def stream_from(broadcasting, *)
- streams << broadcasting
- end
+def stream_from(broadcasting, *)
+ streams << broadcasting
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -316,11 +316,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 41
- def streams
- @_streams ||= []
- end
+def streams
+ @_streams ||= []
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/ConnectionStub.html b/src/classes/ActionCable/Channel/ConnectionStub.html
index 62c52b567f..0fdc0d8690 100644
--- a/src/classes/ActionCable/Channel/ConnectionStub.html
+++ b/src/classes/ActionCable/Channel/ConnectionStub.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -141,20 +141,20 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 55
- def initialize(identifiers = {})
- @server = ActionCable.server
- @transmissions = []
-
- identifiers.each do |identifier, val|
- define_singleton_method(identifier) { val }
- end
-
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @identifiers = identifiers.keys
- @logger = ActiveSupport::TaggedLogging.new ActiveSupport::Logger.new(StringIO.new)
- end
+def initialize(identifiers = {})
+ @server = ActionCable.server
+ @transmissions = []
+
+ identifiers.each do |identifier, val|
+ define_singleton_method(identifier) { val }
+ end
+
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @identifiers = identifiers.keys
+ @logger = ActiveSupport::TaggedLogging.new ActiveSupport::Logger.new(StringIO.new)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -189,11 +189,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 72
- def connection_identifier
- @connection_identifier ||= connection_gid(identifiers.filter_map { |id| send(id.to_sym) if id })
- end
+def connection_identifier
+ @connection_identifier ||= connection_gid(identifiers.filter_map { |id| send(id.to_sym) if id })
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -224,11 +224,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 68
- def transmit(cable_message)
- transmissions << cable_message.with_indifferent_access
- end
+def transmit(cable_message)
+ transmissions << cable_message.with_indifferent_access
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Naming.html b/src/classes/ActionCable/Channel/Naming.html
index 84bfc0232c..db2aa18589 100644
--- a/src/classes/ActionCable/Channel/Naming.html
+++ b/src/classes/ActionCable/Channel/Naming.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,11 +95,11 @@
# File actioncable/lib/action_cable/channel/naming.rb, line 23
- def channel_name
- self.class.channel_name
- end
+def channel_name
+ self.class.channel_name
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Naming/ClassMethods.html b/src/classes/ActionCable/Channel/Naming/ClassMethods.html
index b847309f12..e99c0744a7 100644
--- a/src/classes/ActionCable/Channel/Naming/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Naming/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -66,7 +66,7 @@
- Returns the name of the channel, underscored, without the Channel ending. If the channel is in a namespace, then the namespaces are represented by single colon separators in the channel name.
+ Returns the name of the channel, underscored, without the Channel ending. If the channel is in a namespace, then the namespaces are represented by single colon separators in the channel name.
ChatChannel.channel_name # => 'chat'
Chats::AppearancesChannel.channel_name # => 'chats:appearances'
@@ -87,11 +87,11 @@
# File actioncable/lib/action_cable/channel/naming.rb, line 18
- def channel_name
- @channel_name ||= name.delete_suffix("Channel").gsub("::", ":").underscore
- end
+def channel_name
+ @channel_name ||= name.delete_suffix("Channel").gsub("::", ":").underscore
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/NonInferrableChannelError.html b/src/classes/ActionCable/Channel/NonInferrableChannelError.html
index 034c36b135..1eac81cbd2 100644
--- a/src/classes/ActionCable/Channel/NonInferrableChannelError.html
+++ b/src/classes/ActionCable/Channel/NonInferrableChannelError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 13
- def initialize(name)
- super "Unable to determine the channel to test from #{name}. " +
- "You'll need to specify it using `tests YourChannel` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the channel to test from #{name}. " +
+ "You'll need to specify it using `tests YourChannel` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/PeriodicTimers.html b/src/classes/ActionCable/Channel/PeriodicTimers.html
index 88facef675..561da6e0dd 100644
--- a/src/classes/ActionCable/Channel/PeriodicTimers.html
+++ b/src/classes/ActionCable/Channel/PeriodicTimers.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html b/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
index 233865e2e3..a694f6de16 100644
--- a/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -91,30 +91,30 @@
# File actioncable/lib/action_cable/channel/periodic_timers.rb, line 31
- def periodically(callback_or_method_name = nil, every:, &block)
- callback =
- if block_given?
- raise ArgumentError, "Pass a block or provide a callback arg, not both" if callback_or_method_name
- block
- else
- case callback_or_method_name
- when Proc
- callback_or_method_name
- when Symbol
- -> { __send__ callback_or_method_name }
- else
- raise ArgumentError, "Expected a Symbol method name or a Proc, got #{callback_or_method_name.inspect}"
- end
- end
-
- unless every.kind_of?(Numeric) && every > 0
- raise ArgumentError, "Expected every: to be a positive number of seconds, got #{every.inspect}"
- end
-
- self.periodic_timers += [[ callback, every: every ]]
- end
+def periodically(callback_or_method_name = nil, every:, &block)
+ callback =
+ if block_given?
+ raise ArgumentError, "Pass a block or provide a callback arg, not both" if callback_or_method_name
+ block
+ else
+ case callback_or_method_name
+ when Proc
+ callback_or_method_name
+ when Symbol
+ -> { __send__ callback_or_method_name }
+ else
+ raise ArgumentError, "Expected a Symbol method name or a Proc, got #{callback_or_method_name.inspect}"
+ end
+ end
+
+ unless every.kind_of?(Numeric) && every > 0
+ raise ArgumentError, "Expected every: to be a positive number of seconds, got #{every.inspect}"
+ end
+
+ self.periodic_timers += [[ callback, every: every ]]
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Streams.html b/src/classes/ActionCable/Channel/Streams.html
index 0967feb616..a2e686a3e9 100644
--- a/src/classes/ActionCable/Channel/Streams.html
+++ b/src/classes/ActionCable/Channel/Streams.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -167,14 +167,14 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 137
- def stop_all_streams
- streams.each do |broadcasting, callback|
- pubsub.unsubscribe broadcasting, callback
- logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
- end.clear
- end
+def stop_all_streams
+ streams.each do |broadcasting, callback|
+ pubsub.unsubscribe broadcasting, callback
+ logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
+ end.clear
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -205,11 +205,11 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 132
- def stop_stream_for(model)
- stop_stream_from(broadcasting_for(model))
- end
+def stop_stream_for(model)
+ stop_stream_from(broadcasting_for(model))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,15 +240,15 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 123
- def stop_stream_from(broadcasting)
- callback = streams.delete(broadcasting)
- if callback
- pubsub.unsubscribe(broadcasting, callback)
- logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
- end
- end
+def stop_stream_from(broadcasting)
+ callback = streams.delete(broadcasting)
+ if callback
+ pubsub.unsubscribe(broadcasting, callback)
+ logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -281,11 +281,11 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 118
- def stream_for(broadcastables, callback = nil, coder: nil, &block)
- stream_from(broadcasting_for(broadcastables), callback || block, coder: coder)
- end
+def stream_for(broadcastables, callback = nil, coder: nil, &block)
+ stream_from(broadcasting_for(broadcastables), callback || block, coder: coder)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -316,28 +316,28 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 90
- def stream_from(broadcasting, callback = nil, coder: nil, &block)
- return if unsubscribed?
-
- broadcasting = String(broadcasting)
-
- # Don't send the confirmation until pubsub#subscribe is successful
- defer_subscription_confirmation!
-
- # Build a stream handler by wrapping the user-provided callback with a decoder
- # or defaulting to a JSON-decoding retransmitter.
- handler = worker_pool_stream_handler(broadcasting, callback || block, coder: coder)
- streams[broadcasting] = handler
-
- connection.server.event_loop.post do
- pubsub.subscribe(broadcasting, handler, lambda do
- ensure_confirmation_sent
- logger.info "#{self.class.name} is streaming from #{broadcasting}"
- end)
- end
- end
+def stream_from(broadcasting, callback = nil, coder: nil, &block)
+ return if unsubscribed?
+
+ broadcasting = String(broadcasting)
+
+ # Don't send the confirmation until pubsub#subscribe is successful
+ defer_subscription_confirmation!
+
+ # Build a stream handler by wrapping the user-provided callback with a decoder
+ # or defaulting to a JSON-decoding retransmitter.
+ handler = worker_pool_stream_handler(broadcasting, callback || block, coder: coder)
+ streams[broadcasting] = handler
+
+ connection.server.event_loop.post do
+ pubsub.subscribe(broadcasting, handler, lambda do
+ ensure_confirmation_sent
+ logger.info "#{self.class.name} is streaming from #{broadcasting}"
+ end)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -368,15 +368,15 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 146
- def stream_or_reject_for(model)
- if model
- stream_for model
- else
- reject
- end
- end
+def stream_or_reject_for(model)
+ if model
+ stream_for model
+ else
+ reject
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase.html b/src/classes/ActionCable/Channel/TestCase.html
index 08fb28c0cf..6317ff44d0 100644
--- a/src/classes/ActionCable/Channel/TestCase.html
+++ b/src/classes/ActionCable/Channel/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior.html b/src/classes/ActionCable/Channel/TestCase/Behavior.html
index b5f3a5cbb7..5a8ea0fd78 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -196,11 +196,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 282
- def assert_broadcast_on(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcast_on(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -231,11 +231,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 278
- def assert_broadcasts(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcasts(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,11 +272,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 326
- def assert_has_no_stream(stream)
- assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
- end
+def assert_has_no_stream(stream)
+ assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -313,11 +313,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 337
- def assert_has_no_stream_for(object)
- assert_has_no_stream(broadcasting_for(object))
- end
+def assert_has_no_stream_for(object)
+ assert_has_no_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -354,11 +354,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 304
- def assert_has_stream(stream)
- assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
- end
+def assert_has_stream(stream)
+ assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -395,11 +395,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 315
- def assert_has_stream_for(object)
- assert_has_stream(broadcasting_for(object))
- end
+def assert_has_stream_for(object)
+ assert_has_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -436,11 +436,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 293
- def assert_no_streams
- assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
- end
+def assert_no_streams
+ assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -473,12 +473,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 266
- def perform(action, data = {})
- check_subscribed!
- subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
- end
+def perform(action, data = {})
+ check_subscribed!
+ subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -516,11 +516,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 243
- def stub_connection(identifiers = {})
- @connection = ConnectionStub.new(identifiers)
- end
+def stub_connection(identifiers = {})
+ @connection = ConnectionStub.new(identifiers)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -551,15 +551,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 249
- def subscribe(params = {})
- @connection ||= stub_connection
- @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
- @subscription.singleton_class.include(ChannelStub)
- @subscription.subscribe_to_channel
- @subscription
- end
+def subscribe(params = {})
+ @connection ||= stub_connection
+ @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
+ @subscription.singleton_class.include(ChannelStub)
+ @subscription.subscribe_to_channel
+ @subscription
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -590,12 +590,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 272
- def transmissions
- # Return only directly sent message (via #transmit)
- connection.transmissions.filter_map { |data| data["message"] }
- end
+def transmissions
+ # Return only directly sent message (via #transmit)
+ connection.transmissions.filter_map { |data| data["message"] }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -626,12 +626,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 258
- def unsubscribe
- check_subscribed!
- subscription.unsubscribe_from_channel
- end
+def unsubscribe
+ check_subscribed!
+ subscription.unsubscribe_from_channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
index 48ea87f130..57efb4cdac 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 219
- def channel_class
- if channel = self._channel_class
- channel
- else
- tests determine_default_channel(name)
- end
- end
+def channel_class
+ if channel = self._channel_class
+ channel
+ else
+ tests determine_default_channel(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 227
- def determine_default_channel(name)
- channel = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Channel::Base
- end
- raise NonInferrableChannelError.new(name) if channel.nil?
- channel
- end
+def determine_default_channel(name)
+ channel = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Channel::Base
+ end
+ raise NonInferrableChannelError.new(name) if channel.nil?
+ channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 208
- def tests(channel)
- case channel
- when String, Symbol
- self._channel_class = channel.to_s.camelize.constantize
- when Module
- self._channel_class = channel
- else
- raise NonInferrableChannelError.new(channel)
- end
- end
+def tests(channel)
+ case channel
+ when String, Symbol
+ self._channel_class = channel.to_s.camelize.constantize
+ when Module
+ self._channel_class = channel
+ else
+ raise NonInferrableChannelError.new(channel)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection.html b/src/classes/ActionCable/Connection.html
index f832214f0e..7889c75284 100644
--- a/src/classes/ActionCable/Connection.html
+++ b/src/classes/ActionCable/Connection.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Assertions.html b/src/classes/ActionCable/Connection/Assertions.html
index 933ea80e4c..6b10ec5528 100644
--- a/src/classes/ActionCable/Connection/Assertions.html
+++ b/src/classes/ActionCable/Connection/Assertions.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 28
- def assert_reject_connection(&block)
- assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
- end
+def assert_reject_connection(&block)
+ assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization.html b/src/classes/ActionCable/Connection/Authorization.html
index feb855aa9e..baf85a37b3 100644
--- a/src/classes/ActionCable/Connection/Authorization.html
+++ b/src/classes/ActionCable/Connection/Authorization.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -97,12 +97,12 @@
# File actioncable/lib/action_cable/connection/authorization.rb, line 12
- def reject_unauthorized_connection
- logger.error "An unauthorized connection attempt was rejected"
- raise UnauthorizedError
- end
+def reject_unauthorized_connection
+ logger.error "An unauthorized connection attempt was rejected"
+ raise UnauthorizedError
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
index b63b282b0b..ff36299a28 100644
--- a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
+++ b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/Base.html b/src/classes/ActionCable/Connection/Base.html
index 36a2f1e1bb..ea0d62911f 100644
--- a/src/classes/ActionCable/Connection/Base.html
+++ b/src/classes/ActionCable/Connection/Base.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -255,21 +255,21 @@
# File actioncable/lib/action_cable/connection/base.rb, line 67
- def initialize(server, env, coder: ActiveSupport::JSON)
- @server, @env, @coder = server, env, coder
+def initialize(server, env, coder: ActiveSupport::JSON)
+ @server, @env, @coder = server, env, coder
- @worker_pool = server.worker_pool
- @logger = new_tagged_logger
+ @worker_pool = server.worker_pool
+ @logger = new_tagged_logger
- @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
+ @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
- @_internal_subscriptions = nil
- @started_at = Time.now
- end
+ @_internal_subscriptions = nil
+ @started_at = Time.now
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -304,11 +304,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 147
- def beat
- transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
- end
+def beat
+ transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -339,16 +339,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 120
- def close(reason: nil, reconnect: true)
- transmit(
- type: ActionCable::INTERNAL[:message_types][:disconnect],
- reason: reason,
- reconnect: reconnect
- )
- websocket.close
- end
+def close(reason: nil, reconnect: true)
+ transmit(
+ type: ActionCable::INTERNAL[:message_types][:disconnect],
+ reason: reason,
+ reconnect: reconnect
+ )
+ websocket.close
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -379,13 +379,13 @@
# File actioncable/lib/action_cable/connection/base.rb, line 109
- def handle_channel_command(payload)
- run_callbacks :command do
- subscriptions.execute_command payload
- end
- end
+def handle_channel_command(payload)
+ run_callbacks :command do
+ subscriptions.execute_command payload
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -416,11 +416,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 131
- def send_async(method, *arguments)
- worker_pool.async_invoke(self, method, *arguments)
- end
+def send_async(method, *arguments)
+ worker_pool.async_invoke(self, method, *arguments)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -451,16 +451,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 138
- def statistics
- {
- identifier: connection_identifier,
- started_at: @started_at,
- subscriptions: subscriptions.identifiers,
- request_id: @env["action_dispatch.request_id"]
- }
- end
+def statistics
+ {
+ identifier: connection_identifier,
+ started_at: @started_at,
+ subscriptions: subscriptions.identifiers,
+ request_id: @env["action_dispatch.request_id"]
+ }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -494,11 +494,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 187
- def cookies # :doc:
- request.cookie_jar
- end
+def cookies # :doc:
+ request.cookie_jar
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -529,14 +529,14 @@
# File actioncable/lib/action_cable/connection/base.rb, line 178
- def request # :doc:
- @request ||= begin
- environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
- ActionDispatch::Request.new(environment || env)
- end
- end
+def request # :doc:
+ @request ||= begin
+ environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
+ ActionDispatch::Request.new(environment || env)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Callbacks.html b/src/classes/ActionCable/Connection/Callbacks.html
index 818958bf81..d6504ca284 100644
--- a/src/classes/ActionCable/Connection/Callbacks.html
+++ b/src/classes/ActionCable/Connection/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
index 933056a029..6376d7195b 100644
--- a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,11 +90,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 47
- def after_command(*methods, &block)
- set_callback(:command, :after, *methods, &block)
- end
+def after_command(*methods, &block)
+ set_callback(:command, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -125,11 +125,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 51
- def around_command(*methods, &block)
- set_callback(:command, :around, *methods, &block)
- end
+def around_command(*methods, &block)
+ set_callback(:command, :around, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -160,11 +160,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 43
- def before_command(*methods, &block)
- set_callback(:command, :before, *methods, &block)
- end
+def before_command(*methods, &block)
+ set_callback(:command, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification.html b/src/classes/ActionCable/Connection/Identification.html
index f3dcea9bfc..063ca88999 100644
--- a/src/classes/ActionCable/Connection/Identification.html
+++ b/src/classes/ActionCable/Connection/Identification.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,15 +95,15 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 29
- def connection_identifier
- unless defined? @connection_identifier
- @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
- end
+def connection_identifier
+ unless defined? @connection_identifier
+ @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
+ end
- @connection_identifier
- end
+ @connection_identifier
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification/ClassMethods.html b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
index 324ded31f5..a3395ef8a3 100644
--- a/src/classes/ActionCable/Connection/Identification/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -84,12 +84,12 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 21
- def identified_by(*identifiers)
- Array(identifiers).each { |identifier| attr_accessor identifier }
- self.identifiers += identifiers
- end
+def identified_by(*identifiers)
+ Array(identifiers).each { |identifier| attr_accessor identifier }
+ self.identifiers += identifiers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/InternalChannel.html b/src/classes/ActionCable/Connection/InternalChannel.html
index 9b0144f690..cfdccceaf4 100644
--- a/src/classes/ActionCable/Connection/InternalChannel.html
+++ b/src/classes/ActionCable/Connection/InternalChannel.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
index 7167904452..bf0c696d62 100644
--- a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
+++ b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 15
- def initialize(name)
- super "Unable to determine the connection to test from #{name}. " +
- "You'll need to specify it using `tests YourConnection` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the connection to test from #{name}. " +
+ "You'll need to specify it using `tests YourConnection` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/StreamEventLoop.html b/src/classes/ActionCable/Connection/StreamEventLoop.html
index 2b71a213e3..f7c49354ef 100644
--- a/src/classes/ActionCable/Connection/StreamEventLoop.html
+++ b/src/classes/ActionCable/Connection/StreamEventLoop.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -111,16 +111,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 10
- def initialize
- @nio = @executor = @thread = nil
- @map = {}
- @stopping = false
- @todo = Queue.new
-
- @spawn_mutex = Mutex.new
- end
+def initialize
+ @nio = @executor = @thread = nil
+ @map = {}
+ @stopping = false
+ @todo = Queue.new
+
+ @spawn_mutex = Mutex.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -155,15 +155,15 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 30
- def attach(io, stream)
- @todo << lambda do
- @map[io] = @nio.register(io, :r)
- @map[io].value = stream
- end
- wakeup
- end
+def attach(io, stream)
+ @todo << lambda do
+ @map[io] = @nio.register(io, :r)
+ @map[io].value = stream
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -194,16 +194,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 38
- def detach(io, stream)
- @todo << lambda do
- @nio.deregister io
- @map.delete io
- io.close
- end
- wakeup
- end
+def detach(io, stream)
+ @todo << lambda do
+ @nio.deregister io
+ @map.delete io
+ io.close
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -234,14 +234,14 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 23
- def post(task = nil, &block)
- task ||= block
+def post(task = nil, &block)
+ task ||= block
- spawn
- @executor << task
- end
+ spawn
+ @executor << task
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,12 +272,12 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 56
- def stop
- @stopping = true
- wakeup if @nio
- end
+def stop
+ @stopping = true
+ wakeup if @nio
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -308,11 +308,11 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 19
- def timer(interval, &block)
- Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
- end
+def timer(interval, &block)
+ Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -343,16 +343,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 47
- def writes_pending(io)
- @todo << lambda do
- if monitor = @map[io]
- monitor.interests = :rw
- end
- end
- wakeup
- end
+def writes_pending(io)
+ @todo << lambda do
+ if monitor = @map[io]
+ monitor.interests = :rw
+ end
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
index f4d5cacc63..99731855fb 100644
--- a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
+++ b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -121,12 +121,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 16
- def initialize(logger, tags:)
- @logger = logger
- @tags = tags.flatten
- end
+def initialize(logger, tags:)
+ @logger = logger
+ @tags = tags.flatten
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -161,12 +161,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 21
- def add_tags(*tags)
- @tags += tags.flatten
- @tags = @tags.uniq
- end
+def add_tags(*tags)
+ @tags += tags.flatten
+ @tags = @tags.uniq
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -197,16 +197,16 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 26
- def tag(logger, &block)
- if logger.respond_to?(:tagged)
- current_tags = tags - logger.formatter.current_tags
- logger.tagged(*current_tags, &block)
- else
- yield
- end
- end
+def tag(logger, &block)
+ if logger.respond_to?(:tagged)
+ current_tags = tags - logger.formatter.current_tags
+ logger.tagged(*current_tags, &block)
+ else
+ yield
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,11 +240,11 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 42
- def log(type, message, &block) # :doc:
- tag(@logger) { @logger.send type, message, &block }
- end
+def log(type, message, &block) # :doc:
+ tag(@logger) { @logger.send type, message, &block }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase.html b/src/classes/ActionCable/Connection/TestCase.html
index 948378e491..39bc5cb056 100644
--- a/src/classes/ActionCable/Connection/TestCase.html
+++ b/src/classes/ActionCable/Connection/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior.html b/src/classes/ActionCable/Connection/TestCase/Behavior.html
index b87870becd..4ee0debbea 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -163,19 +163,19 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 192
- def connect(path = ActionCable.server.config.mount_path, **request_params)
- path ||= DEFAULT_PATH
+def connect(path = ActionCable.server.config.mount_path, **request_params)
+ path ||= DEFAULT_PATH
- connection = self.class.connection_class.allocate
- connection.singleton_class.include(TestConnection)
- connection.send(:initialize, build_test_request(path, **request_params))
- connection.connect if connection.respond_to?(:connect)
+ connection = self.class.connection_class.allocate
+ connection.singleton_class.include(TestConnection)
+ connection.send(:initialize, build_test_request(path, **request_params))
+ connection.connect if connection.respond_to?(:connect)
- # Only set instance variable if connected successfully
- @connection = connection
- end
+ # Only set instance variable if connected successfully
+ @connection = connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -206,11 +206,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 212
- def cookies
- @cookie_jar ||= TestCookieJar.new
- end
+def cookies
+ @cookie_jar ||= TestCookieJar.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -241,14 +241,14 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 205
- def disconnect
- raise "Must be connected!" if connection.nil?
+def disconnect
+ raise "Must be connected!" if connection.nil?
- connection.disconnect if connection.respond_to?(:disconnect)
- @connection = nil
- end
+ connection.disconnect if connection.respond_to?(:disconnect)
+ @connection = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
index 63444f4b27..99fc0e3f6f 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 167
- def connection_class
- if connection = self._connection_class
- connection
- else
- tests determine_default_connection(name)
- end
- end
+def connection_class
+ if connection = self._connection_class
+ connection
+ else
+ tests determine_default_connection(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 175
- def determine_default_connection(name)
- connection = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Connection::Base
- end
- raise NonInferrableConnectionError.new(name) if connection.nil?
- connection
- end
+def determine_default_connection(name)
+ connection = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Connection::Base
+ end
+ raise NonInferrableConnectionError.new(name) if connection.nil?
+ connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
+ Ruby on Rails 8.1.0.rc1
@@ -173,11 +173,11 @@
# File actionpack/lib/abstract_controller/base.rb, line 57
- def abstract!
- @abstract = true
- end
+def abstract!
+ @abstract = true
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -208,19 +208,20 @@
# File actionpack/lib/abstract_controller/base.rb, line 93
- def action_methods
- @action_methods ||= begin
- # All public instance methods of this class, including ancestors except for
- # public instance methods of Base and its ancestors.
- methods = public_instance_methods(true) - internal_methods
- # Be sure to include shadowed public instance methods of this class.
- methods.concat(public_instance_methods(false))
- methods.map!(&:to_s)
- methods.to_set
- end
- end
+def action_methods
+ @action_methods ||= begin
+ # All public instance methods of this class, including ancestors except for
+ # public instance methods of Base and its ancestors.
+ methods = public_instance_methods(true) - internal_methods
+ # Be sure to include shadowed public instance methods of this class.
+ methods.concat(public_instance_methods(false))
+ methods.reject! { |m| m.start_with?("_") }
+ methods.map!(&:name)
+ methods.to_set
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -250,12 +251,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 108
- def clear_action_methods!
- @action_methods = nil
- end
+ # File actionpack/lib/abstract_controller/base.rb, line 109
+def clear_action_methods!
+ @action_methods = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -292,12 +293,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 120
- def controller_path
- @controller_path ||= name.delete_suffix("Controller").underscore unless anonymous?
- end
+ # File actionpack/lib/abstract_controller/base.rb, line 121
+def controller_path
+ @controller_path ||= name.delete_suffix("Controller").underscore unless anonymous?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -328,19 +329,19 @@
# File actionpack/lib/abstract_controller/base.rb, line 77
- def internal_methods
- controller = self
- methods = []
+def internal_methods
+ controller = self
+ methods = []
- until controller.abstract?
- methods += controller.public_instance_methods(false)
- controller = controller.superclass
- end
+ until controller.abstract?
+ methods += controller.public_instance_methods(false)
+ controller = controller.superclass
+ end
- controller.public_instance_methods(true) - methods
- end
+ controller.public_instance_methods(true) - methods
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -370,13 +371,13 @@
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 129
- def method_added(name)
- super
- clear_action_methods!
- end
+ # File actionpack/lib/abstract_controller/base.rb, line 130
+def method_added(name)
+ super
+ clear_action_methods!
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -391,7 +392,7 @@
- Returns true if the given controller is capable of rendering a path. A subclass of AbstractController::Base may return false. An Email controller for example does not support paths, only full URLs.
+ Returns true if the given controller is capable of rendering a path. A subclass of AbstractController::Base may return false. An Email controller for example does not support paths, only full URLs.
@@ -406,12 +407,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 193
- def self.supports_path?
- true
- end
+ # File actionpack/lib/abstract_controller/base.rb, line 194
+def self.supports_path?
+ true
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -445,12 +446,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 165
- def action_methods
- self.class.action_methods
- end
+ # File actionpack/lib/abstract_controller/base.rb, line 166
+def action_methods
+ self.class.action_methods
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -481,10 +482,10 @@
# File actionpack/lib/abstract_controller/base.rb, line 43
- attr_internal :action_name
+attr_internal :action_name
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -505,7 +506,7 @@
Parameters
-
-
action_name - The name of an action to be tested
+action_name - The name of an action to be tested
# File actionpack/lib/abstract_controller/base.rb, line 57
- def abstract!
- @abstract = true
- end
+def abstract!
+ @abstract = true
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -208,19 +208,20 @@
# File actionpack/lib/abstract_controller/base.rb, line 93
- def action_methods
- @action_methods ||= begin
- # All public instance methods of this class, including ancestors except for
- # public instance methods of Base and its ancestors.
- methods = public_instance_methods(true) - internal_methods
- # Be sure to include shadowed public instance methods of this class.
- methods.concat(public_instance_methods(false))
- methods.map!(&:to_s)
- methods.to_set
- end
- end
+def action_methods
+ @action_methods ||= begin
+ # All public instance methods of this class, including ancestors except for
+ # public instance methods of Base and its ancestors.
+ methods = public_instance_methods(true) - internal_methods
+ # Be sure to include shadowed public instance methods of this class.
+ methods.concat(public_instance_methods(false))
+ methods.reject! { |m| m.start_with?("_") }
+ methods.map!(&:name)
+ methods.to_set
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -250,12 +251,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 108
- def clear_action_methods!
- @action_methods = nil
- end
+ # File actionpack/lib/abstract_controller/base.rb, line 109
+def clear_action_methods!
+ @action_methods = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -292,12 +293,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 120
- def controller_path
- @controller_path ||= name.delete_suffix("Controller").underscore unless anonymous?
- end
+ # File actionpack/lib/abstract_controller/base.rb, line 121
+def controller_path
+ @controller_path ||= name.delete_suffix("Controller").underscore unless anonymous?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -328,19 +329,19 @@
# File actionpack/lib/abstract_controller/base.rb, line 77
- def internal_methods
- controller = self
- methods = []
+def internal_methods
+ controller = self
+ methods = []
- until controller.abstract?
- methods += controller.public_instance_methods(false)
- controller = controller.superclass
- end
+ until controller.abstract?
+ methods += controller.public_instance_methods(false)
+ controller = controller.superclass
+ end
- controller.public_instance_methods(true) - methods
- end
+ controller.public_instance_methods(true) - methods
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -370,13 +371,13 @@
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 129
- def method_added(name)
- super
- clear_action_methods!
- end
+ # File actionpack/lib/abstract_controller/base.rb, line 130
+def method_added(name)
+ super
+ clear_action_methods!
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -391,7 +392,7 @@
- Returns true if the given controller is capable of rendering a path. A subclass of AbstractController::Base may return false. An Email controller for example does not support paths, only full URLs.
+ Returns true if the given controller is capable of rendering a path. A subclass of AbstractController::Base may return false. An Email controller for example does not support paths, only full URLs.
@@ -406,12 +407,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 193
- def self.supports_path?
- true
- end
+ # File actionpack/lib/abstract_controller/base.rb, line 194
+def self.supports_path?
+ true
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -445,12 +446,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 165
- def action_methods
- self.class.action_methods
- end
+ # File actionpack/lib/abstract_controller/base.rb, line 166
+def action_methods
+ self.class.action_methods
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -481,10 +482,10 @@
# File actionpack/lib/abstract_controller/base.rb, line 43
- attr_internal :action_name
+attr_internal :action_name
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -505,7 +506,7 @@
Parameters
-
-
action_name - The name of an action to be tested
+action_name - The name of an action to be tested
# File actionpack/lib/abstract_controller/base.rb, line 93
- def action_methods
- @action_methods ||= begin
- # All public instance methods of this class, including ancestors except for
- # public instance methods of Base and its ancestors.
- methods = public_instance_methods(true) - internal_methods
- # Be sure to include shadowed public instance methods of this class.
- methods.concat(public_instance_methods(false))
- methods.map!(&:to_s)
- methods.to_set
- end
- end# File actionpack/lib/abstract_controller/base.rb, line 108
- def clear_action_methods!
- @action_methods = nil
- end
+ # File actionpack/lib/abstract_controller/base.rb, line 109
+def clear_action_methods!
+ @action_methods = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -292,12 +293,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 120
- def controller_path
- @controller_path ||= name.delete_suffix("Controller").underscore unless anonymous?
- end
+ # File actionpack/lib/abstract_controller/base.rb, line 121
+def controller_path
+ @controller_path ||= name.delete_suffix("Controller").underscore unless anonymous?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -328,19 +329,19 @@
# File actionpack/lib/abstract_controller/base.rb, line 77
- def internal_methods
- controller = self
- methods = []
+def internal_methods
+ controller = self
+ methods = []
- until controller.abstract?
- methods += controller.public_instance_methods(false)
- controller = controller.superclass
- end
+ until controller.abstract?
+ methods += controller.public_instance_methods(false)
+ controller = controller.superclass
+ end
- controller.public_instance_methods(true) - methods
- end
+ controller.public_instance_methods(true) - methods
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -370,13 +371,13 @@
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 129
- def method_added(name)
- super
- clear_action_methods!
- end
+ # File actionpack/lib/abstract_controller/base.rb, line 130
+def method_added(name)
+ super
+ clear_action_methods!
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -391,7 +392,7 @@
- Returns true if the given controller is capable of rendering a path. A subclass of AbstractController::Base may return false. An Email controller for example does not support paths, only full URLs.
+ Returns true if the given controller is capable of rendering a path. A subclass of AbstractController::Base may return false. An Email controller for example does not support paths, only full URLs.
@@ -406,12 +407,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 193
- def self.supports_path?
- true
- end
+ # File actionpack/lib/abstract_controller/base.rb, line 194
+def self.supports_path?
+ true
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -445,12 +446,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 165
- def action_methods
- self.class.action_methods
- end
+ # File actionpack/lib/abstract_controller/base.rb, line 166
+def action_methods
+ self.class.action_methods
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -481,10 +482,10 @@
# File actionpack/lib/abstract_controller/base.rb, line 43
- attr_internal :action_name
+attr_internal :action_name
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -505,7 +506,7 @@
Parameters
-
-
action_name - The name of an action to be tested
+action_name - The name of an action to be tested
# File actionpack/lib/abstract_controller/base.rb, line 120
- def controller_path
- @controller_path ||= name.delete_suffix("Controller").underscore unless anonymous?
- end# File actionpack/lib/abstract_controller/base.rb, line 121
+def controller_path
+ @controller_path ||= name.delete_suffix("Controller").underscore unless anonymous?
+end# File actionpack/lib/abstract_controller/base.rb, line 77
- def internal_methods
- controller = self
- methods = []
+def internal_methods
+ controller = self
+ methods = []
- until controller.abstract?
- methods += controller.public_instance_methods(false)
- controller = controller.superclass
- end
+ until controller.abstract?
+ methods += controller.public_instance_methods(false)
+ controller = controller.superclass
+ end
- controller.public_instance_methods(true) - methods
- end
+ controller.public_instance_methods(true) - methods
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -370,13 +371,13 @@
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 129
- def method_added(name)
- super
- clear_action_methods!
- end
+ # File actionpack/lib/abstract_controller/base.rb, line 130
+def method_added(name)
+ super
+ clear_action_methods!
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -391,7 +392,7 @@
- Returns true if the given controller is capable of rendering a path. A subclass of AbstractController::Base may return false. An Email controller for example does not support paths, only full URLs.
+ Returns true if the given controller is capable of rendering a path. A subclass of AbstractController::Base may return false. An Email controller for example does not support paths, only full URLs.
@@ -406,12 +407,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 193
- def self.supports_path?
- true
- end
+ # File actionpack/lib/abstract_controller/base.rb, line 194
+def self.supports_path?
+ true
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -445,12 +446,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 165
- def action_methods
- self.class.action_methods
- end
+ # File actionpack/lib/abstract_controller/base.rb, line 166
+def action_methods
+ self.class.action_methods
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -481,10 +482,10 @@
# File actionpack/lib/abstract_controller/base.rb, line 43
- attr_internal :action_name
+attr_internal :action_name
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -505,7 +506,7 @@
Parameters
-
-
action_name - The name of an action to be tested
+action_name - The name of an action to be tested
# File actionpack/lib/abstract_controller/base.rb, line 129
- def method_added(name)
- super
- clear_action_methods!
- end# File actionpack/lib/abstract_controller/base.rb, line 130
+def method_added(name)
+ super
+ clear_action_methods!
+endReturns true if the given controller is capable of rendering a path. A subclass of AbstractController::Base may return false. An Email controller for example does not support paths, only full URLs.
Returns true if the given controller is capable of rendering a path. A subclass of AbstractController::Base may return false. An Email controller for example does not support paths, only full URLs.
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 193
- def self.supports_path?
- true
- end
+ # File actionpack/lib/abstract_controller/base.rb, line 194
+def self.supports_path?
+ true
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -445,12 +446,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 165
- def action_methods
- self.class.action_methods
- end
+ # File actionpack/lib/abstract_controller/base.rb, line 166
+def action_methods
+ self.class.action_methods
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -481,10 +482,10 @@
# File actionpack/lib/abstract_controller/base.rb, line 43
- attr_internal :action_name
+attr_internal :action_name
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -505,7 +506,7 @@
Parameters
-
-
action_name - The name of an action to be tested
+action_name - The name of an action to be tested
# File actionpack/lib/abstract_controller/base.rb, line 193
- def self.supports_path?
- true
- end# File actionpack/lib/abstract_controller/base.rb, line 194
+def self.supports_path?
+ true
+end# File actionpack/lib/abstract_controller/base.rb, line 165
- def action_methods
- self.class.action_methods
- end
+ # File actionpack/lib/abstract_controller/base.rb, line 166
+def action_methods
+ self.class.action_methods
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -481,10 +482,10 @@
# File actionpack/lib/abstract_controller/base.rb, line 43
- attr_internal :action_name
+attr_internal :action_name
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -505,7 +506,7 @@
Parameters
-
-
action_name - The name of an action to be tested
+action_name - The name of an action to be tested
# File actionpack/lib/abstract_controller/base.rb, line 43
- attr_internal :action_name
+attr_internal :action_name
Parameters
-
-
+action_name- The name of an action to be testedaction_name- The name of an action to be tested
Parameters
📝 Source code -# File actionpack/lib/abstract_controller/base.rb, line 180
- def available_action?(action_name)
- _find_action_name(action_name)
- end
+ # File actionpack/lib/abstract_controller/base.rb, line 181
+def available_action?(action_name)
+ _find_action_name(action_name)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -556,12 +557,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 160
- def controller_path
- self.class.controller_path
- end
+ # File actionpack/lib/abstract_controller/base.rb, line 161
+def controller_path
+ self.class.controller_path
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -592,10 +593,10 @@
# File actionpack/lib/abstract_controller/base.rb, line 47
- attr_internal :formats
+attr_internal :formats
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -625,12 +626,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 186
- def performed?
- response_body
- end
+ # File actionpack/lib/abstract_controller/base.rb, line 187
+def performed?
+ response_body
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -662,20 +663,20 @@
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 147
- def process(action, ...)
- @_action_name = action.to_s
+ # File actionpack/lib/abstract_controller/base.rb, line 148
+def process(action, ...)
+ @_action_name = action.to_s
- unless action_name = _find_action_name(@_action_name)
- raise ActionNotFound.new("The action '#{action}' could not be found for #{self.class.name}", self, action)
- end
+ unless action_name = _find_action_name(@_action_name)
+ raise ActionNotFound.new("The action '#{action}' could not be found for #{self.class.name}", self, action)
+ end
- @_response_body = nil
+ @_response_body = nil
- process_action(action_name, ...)
- end
+ process_action(action_name, ...)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -706,10 +707,10 @@
# File actionpack/lib/abstract_controller/base.rb, line 39
- attr_internal :response_body
+attr_internal :response_body
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Caching.html b/src/classes/AbstractController/Caching.html
index bf5c746308..5712afd4d1 100644
--- a/src/classes/AbstractController/Caching.html
+++ b/src/classes/AbstractController/Caching.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -127,11 +127,11 @@
# File actionpack/lib/abstract_controller/caching.rb, line 57
- def view_cache_dependencies
- self.class._view_cache_dependencies.filter_map { |dep| instance_exec(&dep) }
- end
+def view_cache_dependencies
+ self.class._view_cache_dependencies.filter_map { |dep| instance_exec(&dep) }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -165,15 +165,15 @@
# File actionpack/lib/abstract_controller/caching.rb, line 63
- def cache(key, options = {}, &block) # :doc:
- if cache_configured?
- cache_store.fetch(ActiveSupport::Cache.expand_cache_key(key, :controller), options, &block)
- else
- yield
- end
- end
+def cache(key, options = {}, &block) # :doc:
+ if cache_configured?
+ cache_store.fetch(ActiveSupport::Cache.expand_cache_key(key, :controller), options, &block)
+ else
+ yield
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Caching/ClassMethods.html b/src/classes/AbstractController/Caching/ClassMethods.html
index a5c5346161..769e43a1d0 100644
--- a/src/classes/AbstractController/Caching/ClassMethods.html
+++ b/src/classes/AbstractController/Caching/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -82,11 +82,11 @@
# File actionpack/lib/abstract_controller/caching.rb, line 52
- def view_cache_dependency(&dependency)
- self._view_cache_dependencies += [dependency]
- end
+def view_cache_dependency(&dependency)
+ self._view_cache_dependencies += [dependency]
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Caching/ConfigMethods.html b/src/classes/AbstractController/Caching/ConfigMethods.html
index 32afaceaa6..9b5ab3b1d2 100644
--- a/src/classes/AbstractController/Caching/ConfigMethods.html
+++ b/src/classes/AbstractController/Caching/ConfigMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actionpack/lib/abstract_controller/caching.rb, line 15
- def cache_store
- config.cache_store
- end
+def cache_store
+ config.cache_store
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -121,11 +121,11 @@
# File actionpack/lib/abstract_controller/caching.rb, line 19
- def cache_store=(store)
- config.cache_store = ActiveSupport::Cache.lookup_store(*store)
- end
+def cache_store=(store)
+ config.cache_store = ActiveSupport::Cache.lookup_store(*store)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Caching/Fragments.html b/src/classes/AbstractController/Caching/Fragments.html
index a121e2e7a5..c3adf29074 100644
--- a/src/classes/AbstractController/Caching/Fragments.html
+++ b/src/classes/AbstractController/Caching/Fragments.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -108,7 +108,7 @@
- Given a key (as described in expire_fragment), returns a key array suitable for use in reading, writing, or expiring a cached fragment. All keys begin with :views, followed by ENV["RAILS_CACHE_ID"] or ENV["RAILS_APP_VERSION"] if set, followed by any controller-wide key prefix values, ending with the specified key value.
+ Given a key (as described in expire_fragment), returns a key array suitable for use in reading, writing, or expiring a cached fragment. All keys begin with :views, followed by ENV["RAILS_CACHE_ID"] or ENV["RAILS_APP_VERSION"] if set, followed by any controller-wide key prefix values, ending with the specified key value.
@@ -124,17 +124,17 @@
# File actionpack/lib/abstract_controller/caching/fragments.rb, line 68
- def combined_fragment_cache_key(key)
- head = self.class.fragment_cache_keys.map { |k| instance_exec(&k) }
- tail = key.is_a?(Hash) ? url_for(key).split("://").last : key
-
- cache_key = [:views, ENV["RAILS_CACHE_ID"] || ENV["RAILS_APP_VERSION"], head, tail]
- cache_key.flatten!(1)
- cache_key.compact!
- cache_key
- end
+def combined_fragment_cache_key(key)
+ head = self.class.fragment_cache_keys.map { |k| instance_exec(&k) }
+ tail = key.is_a?(Hash) ? url_for(key).split("://").last : key
+
+ cache_key = [:views, ENV["RAILS_CACHE_ID"] || ENV["RAILS_APP_VERSION"], head, tail]
+ cache_key.flatten!(1)
+ cache_key.compact!
+ cache_key
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -176,20 +176,20 @@
# File actionpack/lib/abstract_controller/caching/fragments.rb, line 131
- def expire_fragment(key, options = nil)
- return unless cache_configured?
- key = combined_fragment_cache_key(key) unless key.is_a?(Regexp)
-
- instrument_fragment_cache :expire_fragment, key do
- if key.is_a?(Regexp)
- cache_store.delete_matched(key, options)
- else
- cache_store.delete(key, options)
- end
- end
- end
+def expire_fragment(key, options = nil)
+ return unless cache_configured?
+ key = combined_fragment_cache_key(key) unless key.is_a?(Regexp)
+
+ instrument_fragment_cache :expire_fragment, key do
+ if key.is_a?(Regexp)
+ cache_store.delete_matched(key, options)
+ else
+ cache_store.delete(key, options)
+ end
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -204,7 +204,7 @@
- Check if a cached fragment from the location signified by key exists (see expire_fragment for acceptable formats).
+ Check if a cached fragment from the location signified by key exists (see expire_fragment for acceptable formats).
@@ -220,16 +220,16 @@
# File actionpack/lib/abstract_controller/caching/fragments.rb, line 105
- def fragment_exist?(key, options = nil)
- return unless cache_configured?
- key = combined_fragment_cache_key(key)
-
- instrument_fragment_cache :exist_fragment?, key do
- cache_store.exist?(key, options)
- end
- end
+def fragment_exist?(key, options = nil)
+ return unless cache_configured?
+ key = combined_fragment_cache_key(key)
+
+ instrument_fragment_cache :exist_fragment?, key do
+ cache_store.exist?(key, options)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -244,7 +244,7 @@
- Reads a cached fragment from the location signified by key (see expire_fragment for acceptable formats).
+ Reads a cached fragment from the location signified by key (see expire_fragment for acceptable formats).
@@ -260,17 +260,17 @@
# File actionpack/lib/abstract_controller/caching/fragments.rb, line 93
- def read_fragment(key, options = nil)
- return unless cache_configured?
-
- key = combined_fragment_cache_key(key)
- instrument_fragment_cache :read_fragment, key do
- result = cache_store.read(key, options)
- result.respond_to?(:html_safe) ? result.html_safe : result
- end
- end
+def read_fragment(key, options = nil)
+ return unless cache_configured?
+
+ key = combined_fragment_cache_key(key)
+ instrument_fragment_cache :read_fragment, key do
+ result = cache_store.read(key, options)
+ result.respond_to?(:html_safe) ? result.html_safe : result
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -285,7 +285,7 @@
- Writes content to the location signified by key (see expire_fragment for acceptable formats).
+ Writes content to the location signified by key (see expire_fragment for acceptable formats).
@@ -301,18 +301,18 @@
# File actionpack/lib/abstract_controller/caching/fragments.rb, line 80
- def write_fragment(key, content, options = nil)
- return content unless cache_configured?
-
- key = combined_fragment_cache_key(key)
- instrument_fragment_cache :write_fragment, key do
- content = content.to_str
- cache_store.write(key, content, options)
- end
- content
- end
+def write_fragment(key, content, options = nil)
+ return content unless cache_configured?
+
+ key = combined_fragment_cache_key(key)
+ instrument_fragment_cache :write_fragment, key do
+ content = content.to_str
+ cache_store.write(key, content, options)
+ end
+ content
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Caching/Fragments/ClassMethods.html b/src/classes/AbstractController/Caching/Fragments/ClassMethods.html
index f684e4fb8f..3fd0838698 100644
--- a/src/classes/AbstractController/Caching/Fragments/ClassMethods.html
+++ b/src/classes/AbstractController/Caching/Fragments/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -98,11 +98,11 @@
# File actionpack/lib/abstract_controller/caching/fragments.rb, line 58
- def fragment_cache_key(value = nil, &key)
- self.fragment_cache_keys += [key || -> { value }]
- end
+def fragment_cache_key(value = nil, &key)
+ self.fragment_cache_keys += [key || -> { value }]
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Callbacks.html b/src/classes/AbstractController/Callbacks.html
index 4e3a570e15..36bffc7d1d 100644
--- a/src/classes/AbstractController/Callbacks.html
+++ b/src/classes/AbstractController/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/AbstractController/Callbacks/ClassMethods.html b/src/classes/AbstractController/Callbacks/ClassMethods.html
index 8df003036a..43c33d5431 100644
--- a/src/classes/AbstractController/Callbacks/ClassMethods.html
+++ b/src/classes/AbstractController/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -148,18 +148,18 @@ Block Parameters
# File actionpack/lib/abstract_controller/callbacks.rb, line 120
- def _insert_callbacks(callbacks, block = nil)
- options = callbacks.extract_options!
- callbacks.push(block) if block
- options[:filters] = callbacks
- _normalize_callback_options(options)
- options.delete(:filters)
- callbacks.each do |callback|
- yield callback, options
- end
- end
+def _insert_callbacks(callbacks, block = nil)
+ options = callbacks.extract_options!
+ callbacks.push(block) if block
+ options[:filters] = callbacks
+ _normalize_callback_options(options)
+ options.delete(:filters)
+ callbacks.each do |callback|
+ yield callback, options
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -209,12 +209,12 @@ Options
# File actionpack/lib/abstract_controller/callbacks.rb, line 93
- def _normalize_callback_options(options)
- _normalize_callback_option(options, :only, :if)
- _normalize_callback_option(options, :except, :unless)
- end
+def _normalize_callback_options(options)
+ _normalize_callback_option(options, :only, :if)
+ _normalize_callback_option(options, :except, :unless)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,7 +240,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -264,7 +264,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -288,7 +288,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -314,7 +314,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -338,7 +338,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -364,7 +364,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -388,7 +388,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -412,7 +412,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -438,7 +438,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -462,7 +462,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -486,7 +486,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -510,7 +510,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Collector.html b/src/classes/AbstractController/Collector.html
index 346619e2c1..763d356b2e 100644
--- a/src/classes/AbstractController/Collector.html
+++ b/src/classes/AbstractController/Collector.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -81,16 +81,16 @@
# File actionpack/lib/abstract_controller/collector.rb, line 9
- def self.generate_method_for_mime(mime)
- sym = mime.is_a?(Symbol) ? mime : mime.to_sym
- class_eval <<-RUBY, __FILE__, __LINE__ + 1
- def #{sym}(...)
- custom(Mime[:#{sym}], ...)
- end
- RUBY
- end
+def self.generate_method_for_mime(mime)
+ sym = mime.is_a?(Symbol) ? mime : mime.to_sym
+ class_eval <<-RUBY, __FILE__, __LINE__ + 1
+ def #{sym}(...)
+ custom(Mime[:#{sym}], ...)
+ end
+ RUBY
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/DoubleRenderError.html b/src/classes/AbstractController/DoubleRenderError.html
index b0a21b293d..8f48bc9ef3 100644
--- a/src/classes/AbstractController/DoubleRenderError.html
+++ b/src/classes/AbstractController/DoubleRenderError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -100,11 +100,11 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 13
- def initialize(message = nil)
- super(message || DEFAULT_MESSAGE)
- end
+def initialize(message = nil)
+ super(message || DEFAULT_MESSAGE)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Helpers.html b/src/classes/AbstractController/Helpers.html
index 9fc0534a60..b4d98aa351 100644
--- a/src/classes/AbstractController/Helpers.html
+++ b/src/classes/AbstractController/Helpers.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,11 +95,11 @@
# File actionpack/lib/abstract_controller/helpers.rb, line 28
- def _helpers
- self.class._helpers
- end
+def _helpers
+ self.class._helpers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Helpers/ClassMethods.html b/src/classes/AbstractController/Helpers/ClassMethods.html
index 8900a598d0..33df6d47c3 100644
--- a/src/classes/AbstractController/Helpers/ClassMethods.html
+++ b/src/classes/AbstractController/Helpers/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -119,7 +119,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -148,14 +148,14 @@
# File actionpack/lib/abstract_controller/helpers.rb, line 218
- def _helpers_for_modification
- unless @_helpers
- self._helpers = define_helpers_module(self, superclass._helpers)
- end
- _helpers
- end
+def _helpers_for_modification
+ unless @_helpers
+ self._helpers = define_helpers_module(self, superclass._helpers)
+ end
+ _helpers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -186,16 +186,16 @@
# File actionpack/lib/abstract_controller/helpers.rb, line 209
- def clear_helpers
- inherited_helper_methods = _helper_methods
- self._helpers = Module.new
- self._helper_methods = Array.new
-
- inherited_helper_methods.each { |meth| helper_method meth }
- default_helper_module! unless anonymous?
- end
+def clear_helpers
+ inherited_helper_methods = _helper_methods
+ self._helpers = Module.new
+ self._helper_methods = Array.new
+
+ inherited_helper_methods.each { |meth| helper_method meth }
+ default_helper_module! unless anonymous?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -274,16 +274,16 @@
# File actionpack/lib/abstract_controller/helpers.rb, line 198
- def helper(*args, &block)
- modules_for_helpers(args).each do |mod|
- next if _helpers.include?(mod)
- _helpers_for_modification.include(mod)
- end
-
- _helpers_for_modification.module_eval(&block) if block_given?
- end
+def helper(*args, &block)
+ modules_for_helpers(args).each do |mod|
+ next if _helpers.include?(mod)
+ _helpers_for_modification.include(mod)
+ end
+
+ _helpers_for_modification.module_eval(&block) if block_given?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -338,26 +338,26 @@ Parameters
# File actionpack/lib/abstract_controller/helpers.rb, line 128
- def helper_method(*methods)
- methods.flatten!
- self._helper_methods += methods
-
- location = caller_locations(1, 1).first
- file, line = location.path, location.lineno
-
- methods.each do |method|
- # def current_user(...)
- # controller.send(:'current_user', ...)
- # end
- _helpers_for_modification.class_eval <<~ruby_eval.lines.map(&:strip).join(";"), file, line
- def #{method}(...)
- controller.send(:'#{method}', ...)
- end
- ruby_eval
- end
- end
+def helper_method(*methods)
+ methods.flatten!
+ self._helper_methods += methods
+
+ location = caller_locations(1, 1).first
+ file, line = location.path, location.lineno
+
+ methods.each do |method|
+ # def current_user(...)
+ # controller.send(:'current_user', ...)
+ # end
+ _helpers_for_modification.class_eval <<~ruby_eval.lines.map(&:strip).join(";"), file, line
+ def #{method}(...)
+ controller.send(:'#{method}', ...)
+ end
+ ruby_eval
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -388,15 +388,15 @@
# File actionpack/lib/abstract_controller/helpers.rb, line 68
- def inherited(klass)
- # Inherited from parent by default
- klass._helpers = nil
+def inherited(klass)
+ # Inherited from parent by default
+ klass._helpers = nil
- klass.class_eval { default_helper_module! } unless klass.anonymous?
- super
- end
+ klass.class_eval { default_helper_module! } unless klass.anonymous?
+ super
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -426,7 +426,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Railties.html b/src/classes/AbstractController/Railties.html
index ddb634ab93..e9e5642902 100644
--- a/src/classes/AbstractController/Railties.html
+++ b/src/classes/AbstractController/Railties.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/AbstractController/Railties/RoutesHelpers.html b/src/classes/AbstractController/Railties/RoutesHelpers.html
index 2b3b00e29d..b053082e31 100644
--- a/src/classes/AbstractController/Railties/RoutesHelpers.html
+++ b/src/classes/AbstractController/Railties/RoutesHelpers.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -81,21 +81,21 @@
# File actionpack/lib/abstract_controller/railties/routes_helpers.rb, line 10
- def self.with(routes, include_path_helpers = true)
- Module.new do
- define_method(:inherited) do |klass|
- super(klass)
-
- if namespace = klass.module_parents.detect { |m| m.respond_to?(:railtie_routes_url_helpers) }
- klass.include(namespace.railtie_routes_url_helpers(include_path_helpers))
- else
- klass.include(routes.url_helpers(include_path_helpers))
- end
- end
- end
- end
+def self.with(routes, include_path_helpers = true)
+ Module.new do
+ define_method(:inherited) do |klass|
+ super(klass)
+
+ if namespace = klass.module_parents.detect { |m| m.respond_to?(:railtie_routes_url_helpers) }
+ klass.include(namespace.railtie_routes_url_helpers(include_path_helpers))
+ else
+ klass.include(routes.url_helpers(include_path_helpers))
+ end
+ end
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Rendering.html b/src/classes/AbstractController/Rendering.html
index 872a9d8b43..0fa902a303 100644
--- a/src/classes/AbstractController/Rendering.html
+++ b/src/classes/AbstractController/Rendering.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -123,7 +123,7 @@
Normalizes arguments and options, and then delegates to render_to_body and sticks the result in self.response_body.
-Supported options depend on the underlying render_to_body implementation.
+Supported options depend on the underlying render_to_body implementation.
@@ -139,19 +139,19 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 26
- def render(*args, &block)
- options = _normalize_render(*args, &block)
- rendered_body = render_to_body(options)
- if options[:html]
- _set_html_content_type
- else
- _set_rendered_content_type rendered_format
- end
- _set_vary_header
- self.response_body = rendered_body
- end
+def render(*args, &block)
+ options = _normalize_render(*args, &block)
+ rendered_body = render_to_body(options)
+ if options[:html]
+ _set_html_content_type
+ else
+ _set_rendered_content_type rendered_format
+ end
+ _set_vary_header
+ self.response_body = rendered_body
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -182,10 +182,10 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 50
- def render_to_body(options = {})
- end
+def render_to_body(options = {})
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -218,12 +218,12 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 44
- def render_to_string(*args, &block)
- options = _normalize_render(*args, &block)
- render_to_body(options)
- end
+def render_to_string(*args, &block)
+ options = _normalize_render(*args, &block)
+ render_to_body(options)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -254,11 +254,11 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 54
- def rendered_format
- Mime[:text]
- end
+def rendered_format
+ Mime[:text]
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -289,15 +289,15 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 62
- def view_assigns
- variables = instance_variables - _protected_ivars
+def view_assigns
+ variables = instance_variables - _protected_ivars
- variables.each_with_object({}) do |name, hash|
- hash[name.slice(1, name.length)] = instance_variable_get(name)
- end
- end
+ variables.each_with_object({}) do |name, hash|
+ hash[name.slice(1, name.length)] = instance_variable_get(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -331,21 +331,21 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 73
- def _normalize_args(action = nil, options = {}) # :doc:
- if action.respond_to?(:permitted?)
- if action.permitted?
- action
- else
- raise ArgumentError, "render parameters are not permitted"
- end
- elsif action.is_a?(Hash)
- action
- else
- options
- end
- end
+def _normalize_args(action = nil, options = {}) # :doc:
+ if action.respond_to?(:permitted?)
+ if action.permitted?
+ action
+ else
+ raise ArgumentError, "render parameters are not permitted"
+ end
+ elsif action.is_a?(Hash)
+ action
+ else
+ options
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -376,11 +376,11 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 88
- def _normalize_options(options) # :doc:
- options
- end
+def _normalize_options(options) # :doc:
+ options
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -411,11 +411,11 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 93
- def _process_options(options) # :doc:
- options
- end
+def _process_options(options) # :doc:
+ options
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Translation.html b/src/classes/AbstractController/Translation.html
index e429818684..446e93e2cd 100644
--- a/src/classes/AbstractController/Translation.html
+++ b/src/classes/AbstractController/Translation.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -123,11 +123,11 @@
# File actionpack/lib/abstract_controller/translation.rb, line 37
- def localize(object, **options)
- I18n.localize(object, **options)
- end
+def localize(object, **options)
+ I18n.localize(object, **options)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -189,25 +189,25 @@
# File actionpack/lib/abstract_controller/translation.rb, line 17
- def translate(key, **options)
- if key&.start_with?(".")
- path = controller_path.tr("/", ".")
- defaults = [:"#{path}#{key}"]
- defaults << options[:default] if options[:default]
- options[:default] = defaults.flatten
- key = "#{path}.#{action_name}#{key}"
- end
-
- if options[:default] && ActiveSupport::HtmlSafeTranslation.html_safe_translation_key?(key)
- options[:default] = Array(options[:default]).map do |value|
- value.is_a?(String) ? ERB::Util.html_escape(value) : value
- end
- end
-
- ActiveSupport::HtmlSafeTranslation.translate(key, **options)
- end
+def translate(key, **options)
+ if key&.start_with?(".")
+ path = controller_path.tr("/", ".")
+ defaults = [:"#{path}#{key}"]
+ defaults << options[:default] if options[:default]
+ options[:default] = defaults.flatten
+ key = "#{path}.#{action_name}#{key}"
+ end
+
+ if options[:default] && ActiveSupport::HtmlSafeTranslation.html_safe_translation_key?(key)
+ options[:default] = Array(options[:default]).map do |value|
+ value.is_a?(String) ? ERB::Util.html_escape(value) : value
+ end
+ end
+
+ ActiveSupport::HtmlSafeTranslation.translate(key, **options)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/UrlFor.html b/src/classes/AbstractController/UrlFor.html
index 8d49da9f5c..bd5d0224eb 100644
--- a/src/classes/AbstractController/UrlFor.html
+++ b/src/classes/AbstractController/UrlFor.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -119,12 +119,12 @@
# File actionpack/lib/abstract_controller/url_for.rb, line 18
- def _routes
- raise "In order to use #url_for, you must include routing helpers explicitly. " \
- "For instance, `include Rails.application.routes.url_helpers`."
- end
+def _routes
+ raise "In order to use #url_for, you must include routing helpers explicitly. " \
+ "For instance, `include Rails.application.routes.url_helpers`."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/UrlFor/ClassMethods.html b/src/classes/AbstractController/UrlFor/ClassMethods.html
index cd0e5e9509..e4471b2d66 100644
--- a/src/classes/AbstractController/UrlFor/ClassMethods.html
+++ b/src/classes/AbstractController/UrlFor/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actionpack/lib/abstract_controller/url_for.rb, line 24
- def _routes
- nil
- end
+def _routes
+ nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -121,15 +121,15 @@
# File actionpack/lib/abstract_controller/url_for.rb, line 28
- def action_methods
- @action_methods ||= if _routes
- super - _routes.named_routes.helper_names
- else
- super
- end
- end
+def action_methods
+ @action_methods ||= if _routes
+ super - _routes.named_routes.helper_names
+ else
+ super
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable.html b/src/classes/ActionCable.html
index 4951b5813f..5e5f891dce 100644
--- a/src/classes/ActionCable.html
+++ b/src/classes/ActionCable.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -267,11 +267,11 @@
# File actioncable/lib/action_cable/gem_version.rb, line 7
- def self.gem_version
- Gem::Version.new VERSION::STRING
- end
+def self.gem_version
+ Gem::Version.new VERSION::STRING
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -302,11 +302,11 @@
# File actioncable/lib/action_cable/version.rb, line 9
- def self.version
- gem_version
- end
+def self.version
+ gem_version
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -341,11 +341,11 @@
# File actioncable/lib/action_cable.rb, line 77
- def server
- @server ||= ActionCable::Server::Base.new
- end
+def server
+@server ||= ActionCable::Server::Base.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel.html b/src/classes/ActionCable/Channel.html
index 38c886ddbc..06b36ff362 100644
--- a/src/classes/ActionCable/Channel.html
+++ b/src/classes/ActionCable/Channel.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Channel/Base.html b/src/classes/ActionCable/Channel/Base.html
index bc63a53315..32e2ff9b70 100644
--- a/src/classes/ActionCable/Channel/Base.html
+++ b/src/classes/ActionCable/Channel/Base.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -82,7 +82,7 @@ Action process
end
-
In this example, the subscribed and unsubscribed methods are not callable methods, as they were already declared in ActionCable::Channel::Base, but #appear and #away are. #generate_connection_token is also not callable, since it’s a private method. You’ll see that appear accepts a data parameter, which it then uses as part of its model call. #away does not, since it’s simply a trigger action.
+In this example, the subscribed and unsubscribed methods are not callable methods, as they were already declared in ActionCable::Channel::Base, but appear and away are. generate_connection_token is also not callable, since it’s a private method. You’ll see that appear accepts a data parameter, which it then uses as part of its model call. away does not, since it’s simply a trigger action.
Also note that in this example, current_user is available because it was marked as an identifying attribute on the connection. All such identifiers will automatically create a delegation method of the same name on the channel instance.
@@ -307,19 +307,22 @@ Returns
# File actioncable/lib/action_cable/channel/base.rb, line 128
- def action_methods
- @action_methods ||= begin
- # All public instance methods of this class, including ancestors
- methods = (public_instance_methods(true) -
- # Except for public instance methods of Base and its ancestors
- ActionCable::Channel::Base.public_instance_methods(true) +
- # Be sure to include shadowed public instance methods of this class
- public_instance_methods(false)).uniq.map(&:to_s)
- methods.to_set
- end
- end
-
- 🔎 See on GitHub
+def action_methods
+ @action_methods ||= begin
+ # All public instance methods of this class, including ancestors
+ methods = (public_instance_methods(true) -
+ # Except for public instance methods of Base and its ancestors
+ ActionCable::Channel::Base.public_instance_methods(true) +
+ # Be sure to include shadowed public instance methods of this class
+ public_instance_methods(false)).uniq
+
+ methods.reject! { |m| m.start_with?("_") }
+ methods.map!(&:name)
+ methods.to_set
+ end
+end
+
+ 🔎 See on GitHub
@@ -349,26 +352,26 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 155
- def initialize(connection, identifier, params = {})
- @connection = connection
- @identifier = identifier
- @params = params
+ # File actioncable/lib/action_cable/channel/base.rb, line 158
+def initialize(connection, identifier, params = {})
+ @connection = connection
+ @identifier = identifier
+ @params = params
- # When a channel is streaming via pubsub, we want to delay the confirmation
- # transmission until pubsub subscription is confirmed.
- #
- # The counter starts at 1 because it's awaiting a call to #subscribe_to_channel
- @defer_subscription_confirmation_counter = Concurrent::AtomicFixnum.new(1)
+ # When a channel is streaming via pubsub, we want to delay the confirmation
+ # transmission until pubsub subscription is confirmed.
+ #
+ # The counter starts at 1 because it's awaiting a call to #subscribe_to_channel
+ @defer_subscription_confirmation_counter = Concurrent::AtomicFixnum.new(1)
- @reject_subscription = nil
- @subscription_confirmation_sent = nil
- @unsubscribed = false
+ @reject_subscription = nil
+ @subscription_confirmation_sent = nil
+ @unsubscribed = false
- delegate_connection_identifiers
- end
+ delegate_connection_identifiers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -401,12 +404,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 144
- def clear_action_methods! # :doc:
- @action_methods = nil
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 147
+def clear_action_methods! # :doc:
+ @action_methods = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -436,13 +439,13 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 149
- def method_added(name) # :doc:
- super
- clear_action_methods!
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 152
+def method_added(name) # :doc:
+ super
+ clear_action_methods!
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -476,21 +479,21 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 176
- def perform_action(data)
- action = extract_action(data)
+ # File actioncable/lib/action_cable/channel/base.rb, line 179
+def perform_action(data)
+ action = extract_action(data)
- if processable_action?(action)
- payload = { channel_class: self.class.name, action: action, data: data }
- ActiveSupport::Notifications.instrument("perform_action.action_cable", payload) do
- dispatch_action(action, data)
- end
- else
- logger.error "Unable to process #{action_signature(action, data)}"
- end
- end
+ if processable_action?(action)
+ payload = { channel_class: self.class.name, action: action, data: data }
+ ActiveSupport::Notifications.instrument("perform_action.action_cable", payload) do
+ dispatch_action(action, data)
+ end
+ else
+ logger.error "Unable to process #{action_signature(action, data)}"
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -520,17 +523,17 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 191
- def subscribe_to_channel
- run_callbacks :subscribe do
- subscribed
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 194
+def subscribe_to_channel
+ run_callbacks :subscribe do
+ subscribed
+ end
- reject_subscription if subscription_rejected?
- ensure_confirmation_sent
- end
+ reject_subscription if subscription_rejected?
+ ensure_confirmation_sent
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -563,12 +566,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 250
- def defer_subscription_confirmation! # :doc:
- @defer_subscription_confirmation_counter.increment
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 253
+def defer_subscription_confirmation! # :doc:
+ @defer_subscription_confirmation_counter.increment
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -598,12 +601,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 254
- def defer_subscription_confirmation? # :doc:
- @defer_subscription_confirmation_counter.value > 0
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 257
+def defer_subscription_confirmation? # :doc:
+ @defer_subscription_confirmation_counter.value > 0
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -633,14 +636,14 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 244
- def ensure_confirmation_sent # :doc:
- return if subscription_rejected?
- @defer_subscription_confirmation_counter.decrement
- transmit_subscription_confirmation unless defer_subscription_confirmation?
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 247
+def ensure_confirmation_sent # :doc:
+ return if subscription_rejected?
+ @defer_subscription_confirmation_counter.decrement
+ transmit_subscription_confirmation unless defer_subscription_confirmation?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -670,12 +673,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 262
- def reject # :doc:
- @reject_subscription = true
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 265
+def reject # :doc:
+ @reject_subscription = true
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -705,12 +708,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 218
- def subscribed # :doc:
- # Override in subclasses
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 221
+def subscribed # :doc:
+ # Override in subclasses
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -740,12 +743,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 258
- def subscription_confirmation_sent? # :doc:
- @subscription_confirmation_sent
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 261
+def subscription_confirmation_sent? # :doc:
+ @subscription_confirmation_sent
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -775,12 +778,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 266
- def subscription_rejected? # :doc:
- @reject_subscription
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 269
+def subscription_rejected? # :doc:
+ @reject_subscription
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -810,21 +813,21 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 231
- def transmit(data, via: nil) # :doc:
- logger.debug do
- status = "#{self.class.name} transmitting #{data.inspect.truncate(300)}"
- status += " (via #{via})" if via
- status
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 234
+def transmit(data, via: nil) # :doc:
+ logger.debug do
+ status = "#{self.class.name} transmitting #{data.inspect.truncate(300)}"
+ status += " (via #{via})" if via
+ status
+ end
- payload = { channel_class: self.class.name, data: data, via: via }
- ActiveSupport::Notifications.instrument("transmit.action_cable", payload) do
- connection.transmit identifier: @identifier, message: data
- end
- end
+ payload = { channel_class: self.class.name, data: data, via: via }
+ ActiveSupport::Notifications.instrument("transmit.action_cable", payload) do
+ connection.transmit identifier: @identifier, message: data
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -854,12 +857,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 224
- def unsubscribed # :doc:
- # Override in subclasses
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 227
+def unsubscribed # :doc:
+ # Override in subclasses
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Broadcasting.html b/src/classes/ActionCable/Channel/Broadcasting.html
index bb71b89445..7fecc3f6b8 100644
--- a/src/classes/ActionCable/Channel/Broadcasting.html
+++ b/src/classes/ActionCable/Channel/Broadcasting.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -99,11 +99,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 45
- def broadcast_to(model, message)
- self.class.broadcast_to(model, message)
- end
+def broadcast_to(model, message)
+ self.class.broadcast_to(model, message)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -134,11 +134,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 41
- def broadcasting_for(model)
- self.class.broadcasting_for(model)
- end
+def broadcasting_for(model)
+ self.class.broadcasting_for(model)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html b/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
index 684bccb1ab..432bb5d74f 100644
--- a/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 14
- def broadcast_to(broadcastables, message)
- ActionCable.server.broadcast(broadcasting_for(broadcastables), message)
- end
+def broadcast_to(broadcastables, message)
+ ActionCable.server.broadcast(broadcasting_for(broadcastables), message)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -126,11 +126,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 24
- def broadcasting_for(broadcastables)
- serialize_broadcasting([ channel_name ] + Array(broadcastables))
- end
+def broadcasting_for(broadcastables)
+ serialize_broadcasting([ channel_name ] + Array(broadcastables))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Callbacks.html b/src/classes/ActionCable/Channel/Callbacks.html
index 076bdbc8fa..64985186c3 100644
--- a/src/classes/ActionCable/Channel/Callbacks.html
+++ b/src/classes/ActionCable/Channel/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html b/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
index 6ee4317311..7949b5fdf6 100644
--- a/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -111,11 +111,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 60
- def after_subscribe(*methods, &block)
- set_callback(:subscribe, :after, *methods, &block)
- end
+def after_subscribe(*methods, &block)
+ set_callback(:subscribe, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -150,11 +150,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 69
- def after_unsubscribe(*methods, &block)
- set_callback(:unsubscribe, :after, *methods, &block)
- end
+def after_unsubscribe(*methods, &block)
+ set_callback(:unsubscribe, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -185,11 +185,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 48
- def before_subscribe(*methods, &block)
- set_callback(:subscribe, :before, *methods, &block)
- end
+def before_subscribe(*methods, &block)
+ set_callback(:subscribe, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -220,11 +220,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 65
- def before_unsubscribe(*methods, &block)
- set_callback(:unsubscribe, :before, *methods, &block)
- end
+def before_unsubscribe(*methods, &block)
+ set_callback(:unsubscribe, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/ChannelStub.html b/src/classes/ActionCable/Channel/ChannelStub.html
index 9db98daac2..d004896dc5 100644
--- a/src/classes/ActionCable/Channel/ChannelStub.html
+++ b/src/classes/ActionCable/Channel/ChannelStub.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -25,7 +25,7 @@
Action Cable Channel Stub
-
Stub stream_from to track streams for the channel. Add public aliases for subscription_confirmation_sent? and subscription_rejected?.
+Stub stream_from to track streams for the channel. Add public aliases for subscription_confirmation_sent? and subscription_rejected?.
@@ -114,11 +114,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 25
- def confirmed?
- subscription_confirmation_sent?
- end
+def confirmed?
+ subscription_confirmation_sent?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -149,11 +149,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 29
- def rejected?
- subscription_rejected?
- end
+def rejected?
+ subscription_rejected?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -188,9 +188,9 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 46
- def start_periodic_timers; end
+def start_periodic_timers; end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -221,11 +221,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 37
- def stop_all_streams
- @_streams = []
- end
+def stop_all_streams
+ @_streams = []
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -281,11 +281,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 33
- def stream_from(broadcasting, *)
- streams << broadcasting
- end
+def stream_from(broadcasting, *)
+ streams << broadcasting
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -316,11 +316,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 41
- def streams
- @_streams ||= []
- end
+def streams
+ @_streams ||= []
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/ConnectionStub.html b/src/classes/ActionCable/Channel/ConnectionStub.html
index 62c52b567f..0fdc0d8690 100644
--- a/src/classes/ActionCable/Channel/ConnectionStub.html
+++ b/src/classes/ActionCable/Channel/ConnectionStub.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -141,20 +141,20 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 55
- def initialize(identifiers = {})
- @server = ActionCable.server
- @transmissions = []
-
- identifiers.each do |identifier, val|
- define_singleton_method(identifier) { val }
- end
-
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @identifiers = identifiers.keys
- @logger = ActiveSupport::TaggedLogging.new ActiveSupport::Logger.new(StringIO.new)
- end
+def initialize(identifiers = {})
+ @server = ActionCable.server
+ @transmissions = []
+
+ identifiers.each do |identifier, val|
+ define_singleton_method(identifier) { val }
+ end
+
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @identifiers = identifiers.keys
+ @logger = ActiveSupport::TaggedLogging.new ActiveSupport::Logger.new(StringIO.new)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -189,11 +189,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 72
- def connection_identifier
- @connection_identifier ||= connection_gid(identifiers.filter_map { |id| send(id.to_sym) if id })
- end
+def connection_identifier
+ @connection_identifier ||= connection_gid(identifiers.filter_map { |id| send(id.to_sym) if id })
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -224,11 +224,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 68
- def transmit(cable_message)
- transmissions << cable_message.with_indifferent_access
- end
+def transmit(cable_message)
+ transmissions << cable_message.with_indifferent_access
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Naming.html b/src/classes/ActionCable/Channel/Naming.html
index 84bfc0232c..db2aa18589 100644
--- a/src/classes/ActionCable/Channel/Naming.html
+++ b/src/classes/ActionCable/Channel/Naming.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,11 +95,11 @@
# File actioncable/lib/action_cable/channel/naming.rb, line 23
- def channel_name
- self.class.channel_name
- end
+def channel_name
+ self.class.channel_name
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Naming/ClassMethods.html b/src/classes/ActionCable/Channel/Naming/ClassMethods.html
index b847309f12..e99c0744a7 100644
--- a/src/classes/ActionCable/Channel/Naming/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Naming/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -66,7 +66,7 @@
- Returns the name of the channel, underscored, without the Channel ending. If the channel is in a namespace, then the namespaces are represented by single colon separators in the channel name.
+ Returns the name of the channel, underscored, without the Channel ending. If the channel is in a namespace, then the namespaces are represented by single colon separators in the channel name.
ChatChannel.channel_name # => 'chat'
Chats::AppearancesChannel.channel_name # => 'chats:appearances'
@@ -87,11 +87,11 @@
# File actioncable/lib/action_cable/channel/naming.rb, line 18
- def channel_name
- @channel_name ||= name.delete_suffix("Channel").gsub("::", ":").underscore
- end
+def channel_name
+ @channel_name ||= name.delete_suffix("Channel").gsub("::", ":").underscore
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/NonInferrableChannelError.html b/src/classes/ActionCable/Channel/NonInferrableChannelError.html
index 034c36b135..1eac81cbd2 100644
--- a/src/classes/ActionCable/Channel/NonInferrableChannelError.html
+++ b/src/classes/ActionCable/Channel/NonInferrableChannelError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 13
- def initialize(name)
- super "Unable to determine the channel to test from #{name}. " +
- "You'll need to specify it using `tests YourChannel` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the channel to test from #{name}. " +
+ "You'll need to specify it using `tests YourChannel` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/PeriodicTimers.html b/src/classes/ActionCable/Channel/PeriodicTimers.html
index 88facef675..561da6e0dd 100644
--- a/src/classes/ActionCable/Channel/PeriodicTimers.html
+++ b/src/classes/ActionCable/Channel/PeriodicTimers.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html b/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
index 233865e2e3..a694f6de16 100644
--- a/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -91,30 +91,30 @@
# File actioncable/lib/action_cable/channel/periodic_timers.rb, line 31
- def periodically(callback_or_method_name = nil, every:, &block)
- callback =
- if block_given?
- raise ArgumentError, "Pass a block or provide a callback arg, not both" if callback_or_method_name
- block
- else
- case callback_or_method_name
- when Proc
- callback_or_method_name
- when Symbol
- -> { __send__ callback_or_method_name }
- else
- raise ArgumentError, "Expected a Symbol method name or a Proc, got #{callback_or_method_name.inspect}"
- end
- end
-
- unless every.kind_of?(Numeric) && every > 0
- raise ArgumentError, "Expected every: to be a positive number of seconds, got #{every.inspect}"
- end
-
- self.periodic_timers += [[ callback, every: every ]]
- end
+def periodically(callback_or_method_name = nil, every:, &block)
+ callback =
+ if block_given?
+ raise ArgumentError, "Pass a block or provide a callback arg, not both" if callback_or_method_name
+ block
+ else
+ case callback_or_method_name
+ when Proc
+ callback_or_method_name
+ when Symbol
+ -> { __send__ callback_or_method_name }
+ else
+ raise ArgumentError, "Expected a Symbol method name or a Proc, got #{callback_or_method_name.inspect}"
+ end
+ end
+
+ unless every.kind_of?(Numeric) && every > 0
+ raise ArgumentError, "Expected every: to be a positive number of seconds, got #{every.inspect}"
+ end
+
+ self.periodic_timers += [[ callback, every: every ]]
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Streams.html b/src/classes/ActionCable/Channel/Streams.html
index 0967feb616..a2e686a3e9 100644
--- a/src/classes/ActionCable/Channel/Streams.html
+++ b/src/classes/ActionCable/Channel/Streams.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -167,14 +167,14 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 137
- def stop_all_streams
- streams.each do |broadcasting, callback|
- pubsub.unsubscribe broadcasting, callback
- logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
- end.clear
- end
+def stop_all_streams
+ streams.each do |broadcasting, callback|
+ pubsub.unsubscribe broadcasting, callback
+ logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
+ end.clear
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -205,11 +205,11 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 132
- def stop_stream_for(model)
- stop_stream_from(broadcasting_for(model))
- end
+def stop_stream_for(model)
+ stop_stream_from(broadcasting_for(model))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,15 +240,15 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 123
- def stop_stream_from(broadcasting)
- callback = streams.delete(broadcasting)
- if callback
- pubsub.unsubscribe(broadcasting, callback)
- logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
- end
- end
+def stop_stream_from(broadcasting)
+ callback = streams.delete(broadcasting)
+ if callback
+ pubsub.unsubscribe(broadcasting, callback)
+ logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -281,11 +281,11 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 118
- def stream_for(broadcastables, callback = nil, coder: nil, &block)
- stream_from(broadcasting_for(broadcastables), callback || block, coder: coder)
- end
+def stream_for(broadcastables, callback = nil, coder: nil, &block)
+ stream_from(broadcasting_for(broadcastables), callback || block, coder: coder)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -316,28 +316,28 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 90
- def stream_from(broadcasting, callback = nil, coder: nil, &block)
- return if unsubscribed?
-
- broadcasting = String(broadcasting)
-
- # Don't send the confirmation until pubsub#subscribe is successful
- defer_subscription_confirmation!
-
- # Build a stream handler by wrapping the user-provided callback with a decoder
- # or defaulting to a JSON-decoding retransmitter.
- handler = worker_pool_stream_handler(broadcasting, callback || block, coder: coder)
- streams[broadcasting] = handler
-
- connection.server.event_loop.post do
- pubsub.subscribe(broadcasting, handler, lambda do
- ensure_confirmation_sent
- logger.info "#{self.class.name} is streaming from #{broadcasting}"
- end)
- end
- end
+def stream_from(broadcasting, callback = nil, coder: nil, &block)
+ return if unsubscribed?
+
+ broadcasting = String(broadcasting)
+
+ # Don't send the confirmation until pubsub#subscribe is successful
+ defer_subscription_confirmation!
+
+ # Build a stream handler by wrapping the user-provided callback with a decoder
+ # or defaulting to a JSON-decoding retransmitter.
+ handler = worker_pool_stream_handler(broadcasting, callback || block, coder: coder)
+ streams[broadcasting] = handler
+
+ connection.server.event_loop.post do
+ pubsub.subscribe(broadcasting, handler, lambda do
+ ensure_confirmation_sent
+ logger.info "#{self.class.name} is streaming from #{broadcasting}"
+ end)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -368,15 +368,15 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 146
- def stream_or_reject_for(model)
- if model
- stream_for model
- else
- reject
- end
- end
+def stream_or_reject_for(model)
+ if model
+ stream_for model
+ else
+ reject
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase.html b/src/classes/ActionCable/Channel/TestCase.html
index 08fb28c0cf..6317ff44d0 100644
--- a/src/classes/ActionCable/Channel/TestCase.html
+++ b/src/classes/ActionCable/Channel/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior.html b/src/classes/ActionCable/Channel/TestCase/Behavior.html
index b5f3a5cbb7..5a8ea0fd78 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -196,11 +196,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 282
- def assert_broadcast_on(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcast_on(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -231,11 +231,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 278
- def assert_broadcasts(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcasts(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,11 +272,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 326
- def assert_has_no_stream(stream)
- assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
- end
+def assert_has_no_stream(stream)
+ assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -313,11 +313,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 337
- def assert_has_no_stream_for(object)
- assert_has_no_stream(broadcasting_for(object))
- end
+def assert_has_no_stream_for(object)
+ assert_has_no_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -354,11 +354,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 304
- def assert_has_stream(stream)
- assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
- end
+def assert_has_stream(stream)
+ assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -395,11 +395,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 315
- def assert_has_stream_for(object)
- assert_has_stream(broadcasting_for(object))
- end
+def assert_has_stream_for(object)
+ assert_has_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -436,11 +436,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 293
- def assert_no_streams
- assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
- end
+def assert_no_streams
+ assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -473,12 +473,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 266
- def perform(action, data = {})
- check_subscribed!
- subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
- end
+def perform(action, data = {})
+ check_subscribed!
+ subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -516,11 +516,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 243
- def stub_connection(identifiers = {})
- @connection = ConnectionStub.new(identifiers)
- end
+def stub_connection(identifiers = {})
+ @connection = ConnectionStub.new(identifiers)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -551,15 +551,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 249
- def subscribe(params = {})
- @connection ||= stub_connection
- @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
- @subscription.singleton_class.include(ChannelStub)
- @subscription.subscribe_to_channel
- @subscription
- end
+def subscribe(params = {})
+ @connection ||= stub_connection
+ @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
+ @subscription.singleton_class.include(ChannelStub)
+ @subscription.subscribe_to_channel
+ @subscription
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -590,12 +590,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 272
- def transmissions
- # Return only directly sent message (via #transmit)
- connection.transmissions.filter_map { |data| data["message"] }
- end
+def transmissions
+ # Return only directly sent message (via #transmit)
+ connection.transmissions.filter_map { |data| data["message"] }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -626,12 +626,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 258
- def unsubscribe
- check_subscribed!
- subscription.unsubscribe_from_channel
- end
+def unsubscribe
+ check_subscribed!
+ subscription.unsubscribe_from_channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
index 48ea87f130..57efb4cdac 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 219
- def channel_class
- if channel = self._channel_class
- channel
- else
- tests determine_default_channel(name)
- end
- end
+def channel_class
+ if channel = self._channel_class
+ channel
+ else
+ tests determine_default_channel(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 227
- def determine_default_channel(name)
- channel = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Channel::Base
- end
- raise NonInferrableChannelError.new(name) if channel.nil?
- channel
- end
+def determine_default_channel(name)
+ channel = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Channel::Base
+ end
+ raise NonInferrableChannelError.new(name) if channel.nil?
+ channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 208
- def tests(channel)
- case channel
- when String, Symbol
- self._channel_class = channel.to_s.camelize.constantize
- when Module
- self._channel_class = channel
- else
- raise NonInferrableChannelError.new(channel)
- end
- end
+def tests(channel)
+ case channel
+ when String, Symbol
+ self._channel_class = channel.to_s.camelize.constantize
+ when Module
+ self._channel_class = channel
+ else
+ raise NonInferrableChannelError.new(channel)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection.html b/src/classes/ActionCable/Connection.html
index f832214f0e..7889c75284 100644
--- a/src/classes/ActionCable/Connection.html
+++ b/src/classes/ActionCable/Connection.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Assertions.html b/src/classes/ActionCable/Connection/Assertions.html
index 933ea80e4c..6b10ec5528 100644
--- a/src/classes/ActionCable/Connection/Assertions.html
+++ b/src/classes/ActionCable/Connection/Assertions.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 28
- def assert_reject_connection(&block)
- assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
- end
+def assert_reject_connection(&block)
+ assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization.html b/src/classes/ActionCable/Connection/Authorization.html
index feb855aa9e..baf85a37b3 100644
--- a/src/classes/ActionCable/Connection/Authorization.html
+++ b/src/classes/ActionCable/Connection/Authorization.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -97,12 +97,12 @@
# File actioncable/lib/action_cable/connection/authorization.rb, line 12
- def reject_unauthorized_connection
- logger.error "An unauthorized connection attempt was rejected"
- raise UnauthorizedError
- end
+def reject_unauthorized_connection
+ logger.error "An unauthorized connection attempt was rejected"
+ raise UnauthorizedError
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
index b63b282b0b..ff36299a28 100644
--- a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
+++ b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/Base.html b/src/classes/ActionCable/Connection/Base.html
index 36a2f1e1bb..ea0d62911f 100644
--- a/src/classes/ActionCable/Connection/Base.html
+++ b/src/classes/ActionCable/Connection/Base.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -255,21 +255,21 @@
# File actioncable/lib/action_cable/connection/base.rb, line 67
- def initialize(server, env, coder: ActiveSupport::JSON)
- @server, @env, @coder = server, env, coder
+def initialize(server, env, coder: ActiveSupport::JSON)
+ @server, @env, @coder = server, env, coder
- @worker_pool = server.worker_pool
- @logger = new_tagged_logger
+ @worker_pool = server.worker_pool
+ @logger = new_tagged_logger
- @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
+ @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
- @_internal_subscriptions = nil
- @started_at = Time.now
- end
+ @_internal_subscriptions = nil
+ @started_at = Time.now
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -304,11 +304,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 147
- def beat
- transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
- end
+def beat
+ transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -339,16 +339,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 120
- def close(reason: nil, reconnect: true)
- transmit(
- type: ActionCable::INTERNAL[:message_types][:disconnect],
- reason: reason,
- reconnect: reconnect
- )
- websocket.close
- end
+def close(reason: nil, reconnect: true)
+ transmit(
+ type: ActionCable::INTERNAL[:message_types][:disconnect],
+ reason: reason,
+ reconnect: reconnect
+ )
+ websocket.close
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -379,13 +379,13 @@
# File actioncable/lib/action_cable/connection/base.rb, line 109
- def handle_channel_command(payload)
- run_callbacks :command do
- subscriptions.execute_command payload
- end
- end
+def handle_channel_command(payload)
+ run_callbacks :command do
+ subscriptions.execute_command payload
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -416,11 +416,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 131
- def send_async(method, *arguments)
- worker_pool.async_invoke(self, method, *arguments)
- end
+def send_async(method, *arguments)
+ worker_pool.async_invoke(self, method, *arguments)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -451,16 +451,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 138
- def statistics
- {
- identifier: connection_identifier,
- started_at: @started_at,
- subscriptions: subscriptions.identifiers,
- request_id: @env["action_dispatch.request_id"]
- }
- end
+def statistics
+ {
+ identifier: connection_identifier,
+ started_at: @started_at,
+ subscriptions: subscriptions.identifiers,
+ request_id: @env["action_dispatch.request_id"]
+ }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -494,11 +494,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 187
- def cookies # :doc:
- request.cookie_jar
- end
+def cookies # :doc:
+ request.cookie_jar
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -529,14 +529,14 @@
# File actioncable/lib/action_cable/connection/base.rb, line 178
- def request # :doc:
- @request ||= begin
- environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
- ActionDispatch::Request.new(environment || env)
- end
- end
+def request # :doc:
+ @request ||= begin
+ environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
+ ActionDispatch::Request.new(environment || env)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Callbacks.html b/src/classes/ActionCable/Connection/Callbacks.html
index 818958bf81..d6504ca284 100644
--- a/src/classes/ActionCable/Connection/Callbacks.html
+++ b/src/classes/ActionCable/Connection/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
index 933056a029..6376d7195b 100644
--- a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,11 +90,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 47
- def after_command(*methods, &block)
- set_callback(:command, :after, *methods, &block)
- end
+def after_command(*methods, &block)
+ set_callback(:command, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -125,11 +125,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 51
- def around_command(*methods, &block)
- set_callback(:command, :around, *methods, &block)
- end
+def around_command(*methods, &block)
+ set_callback(:command, :around, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -160,11 +160,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 43
- def before_command(*methods, &block)
- set_callback(:command, :before, *methods, &block)
- end
+def before_command(*methods, &block)
+ set_callback(:command, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification.html b/src/classes/ActionCable/Connection/Identification.html
index f3dcea9bfc..063ca88999 100644
--- a/src/classes/ActionCable/Connection/Identification.html
+++ b/src/classes/ActionCable/Connection/Identification.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,15 +95,15 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 29
- def connection_identifier
- unless defined? @connection_identifier
- @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
- end
+def connection_identifier
+ unless defined? @connection_identifier
+ @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
+ end
- @connection_identifier
- end
+ @connection_identifier
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification/ClassMethods.html b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
index 324ded31f5..a3395ef8a3 100644
--- a/src/classes/ActionCable/Connection/Identification/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -84,12 +84,12 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 21
- def identified_by(*identifiers)
- Array(identifiers).each { |identifier| attr_accessor identifier }
- self.identifiers += identifiers
- end
+def identified_by(*identifiers)
+ Array(identifiers).each { |identifier| attr_accessor identifier }
+ self.identifiers += identifiers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/InternalChannel.html b/src/classes/ActionCable/Connection/InternalChannel.html
index 9b0144f690..cfdccceaf4 100644
--- a/src/classes/ActionCable/Connection/InternalChannel.html
+++ b/src/classes/ActionCable/Connection/InternalChannel.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
index 7167904452..bf0c696d62 100644
--- a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
+++ b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 15
- def initialize(name)
- super "Unable to determine the connection to test from #{name}. " +
- "You'll need to specify it using `tests YourConnection` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the connection to test from #{name}. " +
+ "You'll need to specify it using `tests YourConnection` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/StreamEventLoop.html b/src/classes/ActionCable/Connection/StreamEventLoop.html
index 2b71a213e3..f7c49354ef 100644
--- a/src/classes/ActionCable/Connection/StreamEventLoop.html
+++ b/src/classes/ActionCable/Connection/StreamEventLoop.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -111,16 +111,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 10
- def initialize
- @nio = @executor = @thread = nil
- @map = {}
- @stopping = false
- @todo = Queue.new
-
- @spawn_mutex = Mutex.new
- end
+def initialize
+ @nio = @executor = @thread = nil
+ @map = {}
+ @stopping = false
+ @todo = Queue.new
+
+ @spawn_mutex = Mutex.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -155,15 +155,15 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 30
- def attach(io, stream)
- @todo << lambda do
- @map[io] = @nio.register(io, :r)
- @map[io].value = stream
- end
- wakeup
- end
+def attach(io, stream)
+ @todo << lambda do
+ @map[io] = @nio.register(io, :r)
+ @map[io].value = stream
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -194,16 +194,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 38
- def detach(io, stream)
- @todo << lambda do
- @nio.deregister io
- @map.delete io
- io.close
- end
- wakeup
- end
+def detach(io, stream)
+ @todo << lambda do
+ @nio.deregister io
+ @map.delete io
+ io.close
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -234,14 +234,14 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 23
- def post(task = nil, &block)
- task ||= block
+def post(task = nil, &block)
+ task ||= block
- spawn
- @executor << task
- end
+ spawn
+ @executor << task
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,12 +272,12 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 56
- def stop
- @stopping = true
- wakeup if @nio
- end
+def stop
+ @stopping = true
+ wakeup if @nio
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -308,11 +308,11 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 19
- def timer(interval, &block)
- Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
- end
+def timer(interval, &block)
+ Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -343,16 +343,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 47
- def writes_pending(io)
- @todo << lambda do
- if monitor = @map[io]
- monitor.interests = :rw
- end
- end
- wakeup
- end
+def writes_pending(io)
+ @todo << lambda do
+ if monitor = @map[io]
+ monitor.interests = :rw
+ end
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
index f4d5cacc63..99731855fb 100644
--- a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
+++ b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -121,12 +121,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 16
- def initialize(logger, tags:)
- @logger = logger
- @tags = tags.flatten
- end
+def initialize(logger, tags:)
+ @logger = logger
+ @tags = tags.flatten
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -161,12 +161,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 21
- def add_tags(*tags)
- @tags += tags.flatten
- @tags = @tags.uniq
- end
+def add_tags(*tags)
+ @tags += tags.flatten
+ @tags = @tags.uniq
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -197,16 +197,16 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 26
- def tag(logger, &block)
- if logger.respond_to?(:tagged)
- current_tags = tags - logger.formatter.current_tags
- logger.tagged(*current_tags, &block)
- else
- yield
- end
- end
+def tag(logger, &block)
+ if logger.respond_to?(:tagged)
+ current_tags = tags - logger.formatter.current_tags
+ logger.tagged(*current_tags, &block)
+ else
+ yield
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,11 +240,11 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 42
- def log(type, message, &block) # :doc:
- tag(@logger) { @logger.send type, message, &block }
- end
+def log(type, message, &block) # :doc:
+ tag(@logger) { @logger.send type, message, &block }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase.html b/src/classes/ActionCable/Connection/TestCase.html
index 948378e491..39bc5cb056 100644
--- a/src/classes/ActionCable/Connection/TestCase.html
+++ b/src/classes/ActionCable/Connection/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior.html b/src/classes/ActionCable/Connection/TestCase/Behavior.html
index b87870becd..4ee0debbea 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -163,19 +163,19 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 192
- def connect(path = ActionCable.server.config.mount_path, **request_params)
- path ||= DEFAULT_PATH
+def connect(path = ActionCable.server.config.mount_path, **request_params)
+ path ||= DEFAULT_PATH
- connection = self.class.connection_class.allocate
- connection.singleton_class.include(TestConnection)
- connection.send(:initialize, build_test_request(path, **request_params))
- connection.connect if connection.respond_to?(:connect)
+ connection = self.class.connection_class.allocate
+ connection.singleton_class.include(TestConnection)
+ connection.send(:initialize, build_test_request(path, **request_params))
+ connection.connect if connection.respond_to?(:connect)
- # Only set instance variable if connected successfully
- @connection = connection
- end
+ # Only set instance variable if connected successfully
+ @connection = connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -206,11 +206,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 212
- def cookies
- @cookie_jar ||= TestCookieJar.new
- end
+def cookies
+ @cookie_jar ||= TestCookieJar.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -241,14 +241,14 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 205
- def disconnect
- raise "Must be connected!" if connection.nil?
+def disconnect
+ raise "Must be connected!" if connection.nil?
- connection.disconnect if connection.respond_to?(:disconnect)
- @connection = nil
- end
+ connection.disconnect if connection.respond_to?(:disconnect)
+ @connection = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
index 63444f4b27..99fc0e3f6f 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 167
- def connection_class
- if connection = self._connection_class
- connection
- else
- tests determine_default_connection(name)
- end
- end
+def connection_class
+ if connection = self._connection_class
+ connection
+ else
+ tests determine_default_connection(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 175
- def determine_default_connection(name)
- connection = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Connection::Base
- end
- raise NonInferrableConnectionError.new(name) if connection.nil?
- connection
- end
+def determine_default_connection(name)
+ connection = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Connection::Base
+ end
+ raise NonInferrableConnectionError.new(name) if connection.nil?
+ connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actionpack/lib/abstract_controller/base.rb, line 160
- def controller_path
- self.class.controller_path
- end# File actionpack/lib/abstract_controller/base.rb, line 161
+def controller_path
+ self.class.controller_path
+end# File actionpack/lib/abstract_controller/base.rb, line 47
- attr_internal :formats
+attr_internal :formats
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -625,12 +626,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 186
- def performed?
- response_body
- end
+ # File actionpack/lib/abstract_controller/base.rb, line 187
+def performed?
+ response_body
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -662,20 +663,20 @@
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 147
- def process(action, ...)
- @_action_name = action.to_s
+ # File actionpack/lib/abstract_controller/base.rb, line 148
+def process(action, ...)
+ @_action_name = action.to_s
- unless action_name = _find_action_name(@_action_name)
- raise ActionNotFound.new("The action '#{action}' could not be found for #{self.class.name}", self, action)
- end
+ unless action_name = _find_action_name(@_action_name)
+ raise ActionNotFound.new("The action '#{action}' could not be found for #{self.class.name}", self, action)
+ end
- @_response_body = nil
+ @_response_body = nil
- process_action(action_name, ...)
- end
+ process_action(action_name, ...)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -706,10 +707,10 @@
# File actionpack/lib/abstract_controller/base.rb, line 39
- attr_internal :response_body
+attr_internal :response_body
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Caching.html b/src/classes/AbstractController/Caching.html
index bf5c746308..5712afd4d1 100644
--- a/src/classes/AbstractController/Caching.html
+++ b/src/classes/AbstractController/Caching.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -127,11 +127,11 @@
# File actionpack/lib/abstract_controller/caching.rb, line 57
- def view_cache_dependencies
- self.class._view_cache_dependencies.filter_map { |dep| instance_exec(&dep) }
- end
+def view_cache_dependencies
+ self.class._view_cache_dependencies.filter_map { |dep| instance_exec(&dep) }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -165,15 +165,15 @@
# File actionpack/lib/abstract_controller/caching.rb, line 63
- def cache(key, options = {}, &block) # :doc:
- if cache_configured?
- cache_store.fetch(ActiveSupport::Cache.expand_cache_key(key, :controller), options, &block)
- else
- yield
- end
- end
+def cache(key, options = {}, &block) # :doc:
+ if cache_configured?
+ cache_store.fetch(ActiveSupport::Cache.expand_cache_key(key, :controller), options, &block)
+ else
+ yield
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Caching/ClassMethods.html b/src/classes/AbstractController/Caching/ClassMethods.html
index a5c5346161..769e43a1d0 100644
--- a/src/classes/AbstractController/Caching/ClassMethods.html
+++ b/src/classes/AbstractController/Caching/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -82,11 +82,11 @@
# File actionpack/lib/abstract_controller/caching.rb, line 52
- def view_cache_dependency(&dependency)
- self._view_cache_dependencies += [dependency]
- end
+def view_cache_dependency(&dependency)
+ self._view_cache_dependencies += [dependency]
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Caching/ConfigMethods.html b/src/classes/AbstractController/Caching/ConfigMethods.html
index 32afaceaa6..9b5ab3b1d2 100644
--- a/src/classes/AbstractController/Caching/ConfigMethods.html
+++ b/src/classes/AbstractController/Caching/ConfigMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actionpack/lib/abstract_controller/caching.rb, line 15
- def cache_store
- config.cache_store
- end
+def cache_store
+ config.cache_store
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -121,11 +121,11 @@
# File actionpack/lib/abstract_controller/caching.rb, line 19
- def cache_store=(store)
- config.cache_store = ActiveSupport::Cache.lookup_store(*store)
- end
+def cache_store=(store)
+ config.cache_store = ActiveSupport::Cache.lookup_store(*store)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Caching/Fragments.html b/src/classes/AbstractController/Caching/Fragments.html
index a121e2e7a5..c3adf29074 100644
--- a/src/classes/AbstractController/Caching/Fragments.html
+++ b/src/classes/AbstractController/Caching/Fragments.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -108,7 +108,7 @@
- Given a key (as described in expire_fragment), returns a key array suitable for use in reading, writing, or expiring a cached fragment. All keys begin with :views, followed by ENV["RAILS_CACHE_ID"] or ENV["RAILS_APP_VERSION"] if set, followed by any controller-wide key prefix values, ending with the specified key value.
+ Given a key (as described in expire_fragment), returns a key array suitable for use in reading, writing, or expiring a cached fragment. All keys begin with :views, followed by ENV["RAILS_CACHE_ID"] or ENV["RAILS_APP_VERSION"] if set, followed by any controller-wide key prefix values, ending with the specified key value.
@@ -124,17 +124,17 @@
# File actionpack/lib/abstract_controller/caching/fragments.rb, line 68
- def combined_fragment_cache_key(key)
- head = self.class.fragment_cache_keys.map { |k| instance_exec(&k) }
- tail = key.is_a?(Hash) ? url_for(key).split("://").last : key
-
- cache_key = [:views, ENV["RAILS_CACHE_ID"] || ENV["RAILS_APP_VERSION"], head, tail]
- cache_key.flatten!(1)
- cache_key.compact!
- cache_key
- end
+def combined_fragment_cache_key(key)
+ head = self.class.fragment_cache_keys.map { |k| instance_exec(&k) }
+ tail = key.is_a?(Hash) ? url_for(key).split("://").last : key
+
+ cache_key = [:views, ENV["RAILS_CACHE_ID"] || ENV["RAILS_APP_VERSION"], head, tail]
+ cache_key.flatten!(1)
+ cache_key.compact!
+ cache_key
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -176,20 +176,20 @@
# File actionpack/lib/abstract_controller/caching/fragments.rb, line 131
- def expire_fragment(key, options = nil)
- return unless cache_configured?
- key = combined_fragment_cache_key(key) unless key.is_a?(Regexp)
-
- instrument_fragment_cache :expire_fragment, key do
- if key.is_a?(Regexp)
- cache_store.delete_matched(key, options)
- else
- cache_store.delete(key, options)
- end
- end
- end
+def expire_fragment(key, options = nil)
+ return unless cache_configured?
+ key = combined_fragment_cache_key(key) unless key.is_a?(Regexp)
+
+ instrument_fragment_cache :expire_fragment, key do
+ if key.is_a?(Regexp)
+ cache_store.delete_matched(key, options)
+ else
+ cache_store.delete(key, options)
+ end
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -204,7 +204,7 @@
- Check if a cached fragment from the location signified by key exists (see expire_fragment for acceptable formats).
+ Check if a cached fragment from the location signified by key exists (see expire_fragment for acceptable formats).
@@ -220,16 +220,16 @@
# File actionpack/lib/abstract_controller/caching/fragments.rb, line 105
- def fragment_exist?(key, options = nil)
- return unless cache_configured?
- key = combined_fragment_cache_key(key)
-
- instrument_fragment_cache :exist_fragment?, key do
- cache_store.exist?(key, options)
- end
- end
+def fragment_exist?(key, options = nil)
+ return unless cache_configured?
+ key = combined_fragment_cache_key(key)
+
+ instrument_fragment_cache :exist_fragment?, key do
+ cache_store.exist?(key, options)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -244,7 +244,7 @@
- Reads a cached fragment from the location signified by key (see expire_fragment for acceptable formats).
+ Reads a cached fragment from the location signified by key (see expire_fragment for acceptable formats).
@@ -260,17 +260,17 @@
# File actionpack/lib/abstract_controller/caching/fragments.rb, line 93
- def read_fragment(key, options = nil)
- return unless cache_configured?
-
- key = combined_fragment_cache_key(key)
- instrument_fragment_cache :read_fragment, key do
- result = cache_store.read(key, options)
- result.respond_to?(:html_safe) ? result.html_safe : result
- end
- end
+def read_fragment(key, options = nil)
+ return unless cache_configured?
+
+ key = combined_fragment_cache_key(key)
+ instrument_fragment_cache :read_fragment, key do
+ result = cache_store.read(key, options)
+ result.respond_to?(:html_safe) ? result.html_safe : result
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -285,7 +285,7 @@
- Writes content to the location signified by key (see expire_fragment for acceptable formats).
+ Writes content to the location signified by key (see expire_fragment for acceptable formats).
@@ -301,18 +301,18 @@
# File actionpack/lib/abstract_controller/caching/fragments.rb, line 80
- def write_fragment(key, content, options = nil)
- return content unless cache_configured?
-
- key = combined_fragment_cache_key(key)
- instrument_fragment_cache :write_fragment, key do
- content = content.to_str
- cache_store.write(key, content, options)
- end
- content
- end
+def write_fragment(key, content, options = nil)
+ return content unless cache_configured?
+
+ key = combined_fragment_cache_key(key)
+ instrument_fragment_cache :write_fragment, key do
+ content = content.to_str
+ cache_store.write(key, content, options)
+ end
+ content
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Caching/Fragments/ClassMethods.html b/src/classes/AbstractController/Caching/Fragments/ClassMethods.html
index f684e4fb8f..3fd0838698 100644
--- a/src/classes/AbstractController/Caching/Fragments/ClassMethods.html
+++ b/src/classes/AbstractController/Caching/Fragments/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -98,11 +98,11 @@
# File actionpack/lib/abstract_controller/caching/fragments.rb, line 58
- def fragment_cache_key(value = nil, &key)
- self.fragment_cache_keys += [key || -> { value }]
- end
+def fragment_cache_key(value = nil, &key)
+ self.fragment_cache_keys += [key || -> { value }]
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Callbacks.html b/src/classes/AbstractController/Callbacks.html
index 4e3a570e15..36bffc7d1d 100644
--- a/src/classes/AbstractController/Callbacks.html
+++ b/src/classes/AbstractController/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/AbstractController/Callbacks/ClassMethods.html b/src/classes/AbstractController/Callbacks/ClassMethods.html
index 8df003036a..43c33d5431 100644
--- a/src/classes/AbstractController/Callbacks/ClassMethods.html
+++ b/src/classes/AbstractController/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -148,18 +148,18 @@ Block Parameters
# File actionpack/lib/abstract_controller/callbacks.rb, line 120
- def _insert_callbacks(callbacks, block = nil)
- options = callbacks.extract_options!
- callbacks.push(block) if block
- options[:filters] = callbacks
- _normalize_callback_options(options)
- options.delete(:filters)
- callbacks.each do |callback|
- yield callback, options
- end
- end
+def _insert_callbacks(callbacks, block = nil)
+ options = callbacks.extract_options!
+ callbacks.push(block) if block
+ options[:filters] = callbacks
+ _normalize_callback_options(options)
+ options.delete(:filters)
+ callbacks.each do |callback|
+ yield callback, options
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -209,12 +209,12 @@ Options
# File actionpack/lib/abstract_controller/callbacks.rb, line 93
- def _normalize_callback_options(options)
- _normalize_callback_option(options, :only, :if)
- _normalize_callback_option(options, :except, :unless)
- end
+def _normalize_callback_options(options)
+ _normalize_callback_option(options, :only, :if)
+ _normalize_callback_option(options, :except, :unless)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,7 +240,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -264,7 +264,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -288,7 +288,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -314,7 +314,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -338,7 +338,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -364,7 +364,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -388,7 +388,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -412,7 +412,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -438,7 +438,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -462,7 +462,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -486,7 +486,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -510,7 +510,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Collector.html b/src/classes/AbstractController/Collector.html
index 346619e2c1..763d356b2e 100644
--- a/src/classes/AbstractController/Collector.html
+++ b/src/classes/AbstractController/Collector.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -81,16 +81,16 @@
# File actionpack/lib/abstract_controller/collector.rb, line 9
- def self.generate_method_for_mime(mime)
- sym = mime.is_a?(Symbol) ? mime : mime.to_sym
- class_eval <<-RUBY, __FILE__, __LINE__ + 1
- def #{sym}(...)
- custom(Mime[:#{sym}], ...)
- end
- RUBY
- end
+def self.generate_method_for_mime(mime)
+ sym = mime.is_a?(Symbol) ? mime : mime.to_sym
+ class_eval <<-RUBY, __FILE__, __LINE__ + 1
+ def #{sym}(...)
+ custom(Mime[:#{sym}], ...)
+ end
+ RUBY
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/DoubleRenderError.html b/src/classes/AbstractController/DoubleRenderError.html
index b0a21b293d..8f48bc9ef3 100644
--- a/src/classes/AbstractController/DoubleRenderError.html
+++ b/src/classes/AbstractController/DoubleRenderError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -100,11 +100,11 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 13
- def initialize(message = nil)
- super(message || DEFAULT_MESSAGE)
- end
+def initialize(message = nil)
+ super(message || DEFAULT_MESSAGE)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Helpers.html b/src/classes/AbstractController/Helpers.html
index 9fc0534a60..b4d98aa351 100644
--- a/src/classes/AbstractController/Helpers.html
+++ b/src/classes/AbstractController/Helpers.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,11 +95,11 @@
# File actionpack/lib/abstract_controller/helpers.rb, line 28
- def _helpers
- self.class._helpers
- end
+def _helpers
+ self.class._helpers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Helpers/ClassMethods.html b/src/classes/AbstractController/Helpers/ClassMethods.html
index 8900a598d0..33df6d47c3 100644
--- a/src/classes/AbstractController/Helpers/ClassMethods.html
+++ b/src/classes/AbstractController/Helpers/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -119,7 +119,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -148,14 +148,14 @@
# File actionpack/lib/abstract_controller/helpers.rb, line 218
- def _helpers_for_modification
- unless @_helpers
- self._helpers = define_helpers_module(self, superclass._helpers)
- end
- _helpers
- end
+def _helpers_for_modification
+ unless @_helpers
+ self._helpers = define_helpers_module(self, superclass._helpers)
+ end
+ _helpers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -186,16 +186,16 @@
# File actionpack/lib/abstract_controller/helpers.rb, line 209
- def clear_helpers
- inherited_helper_methods = _helper_methods
- self._helpers = Module.new
- self._helper_methods = Array.new
-
- inherited_helper_methods.each { |meth| helper_method meth }
- default_helper_module! unless anonymous?
- end
+def clear_helpers
+ inherited_helper_methods = _helper_methods
+ self._helpers = Module.new
+ self._helper_methods = Array.new
+
+ inherited_helper_methods.each { |meth| helper_method meth }
+ default_helper_module! unless anonymous?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -274,16 +274,16 @@
# File actionpack/lib/abstract_controller/helpers.rb, line 198
- def helper(*args, &block)
- modules_for_helpers(args).each do |mod|
- next if _helpers.include?(mod)
- _helpers_for_modification.include(mod)
- end
-
- _helpers_for_modification.module_eval(&block) if block_given?
- end
+def helper(*args, &block)
+ modules_for_helpers(args).each do |mod|
+ next if _helpers.include?(mod)
+ _helpers_for_modification.include(mod)
+ end
+
+ _helpers_for_modification.module_eval(&block) if block_given?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -338,26 +338,26 @@ Parameters
# File actionpack/lib/abstract_controller/helpers.rb, line 128
- def helper_method(*methods)
- methods.flatten!
- self._helper_methods += methods
-
- location = caller_locations(1, 1).first
- file, line = location.path, location.lineno
-
- methods.each do |method|
- # def current_user(...)
- # controller.send(:'current_user', ...)
- # end
- _helpers_for_modification.class_eval <<~ruby_eval.lines.map(&:strip).join(";"), file, line
- def #{method}(...)
- controller.send(:'#{method}', ...)
- end
- ruby_eval
- end
- end
+def helper_method(*methods)
+ methods.flatten!
+ self._helper_methods += methods
+
+ location = caller_locations(1, 1).first
+ file, line = location.path, location.lineno
+
+ methods.each do |method|
+ # def current_user(...)
+ # controller.send(:'current_user', ...)
+ # end
+ _helpers_for_modification.class_eval <<~ruby_eval.lines.map(&:strip).join(";"), file, line
+ def #{method}(...)
+ controller.send(:'#{method}', ...)
+ end
+ ruby_eval
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -388,15 +388,15 @@
# File actionpack/lib/abstract_controller/helpers.rb, line 68
- def inherited(klass)
- # Inherited from parent by default
- klass._helpers = nil
+def inherited(klass)
+ # Inherited from parent by default
+ klass._helpers = nil
- klass.class_eval { default_helper_module! } unless klass.anonymous?
- super
- end
+ klass.class_eval { default_helper_module! } unless klass.anonymous?
+ super
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -426,7 +426,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Railties.html b/src/classes/AbstractController/Railties.html
index ddb634ab93..e9e5642902 100644
--- a/src/classes/AbstractController/Railties.html
+++ b/src/classes/AbstractController/Railties.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/AbstractController/Railties/RoutesHelpers.html b/src/classes/AbstractController/Railties/RoutesHelpers.html
index 2b3b00e29d..b053082e31 100644
--- a/src/classes/AbstractController/Railties/RoutesHelpers.html
+++ b/src/classes/AbstractController/Railties/RoutesHelpers.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -81,21 +81,21 @@
# File actionpack/lib/abstract_controller/railties/routes_helpers.rb, line 10
- def self.with(routes, include_path_helpers = true)
- Module.new do
- define_method(:inherited) do |klass|
- super(klass)
-
- if namespace = klass.module_parents.detect { |m| m.respond_to?(:railtie_routes_url_helpers) }
- klass.include(namespace.railtie_routes_url_helpers(include_path_helpers))
- else
- klass.include(routes.url_helpers(include_path_helpers))
- end
- end
- end
- end
+def self.with(routes, include_path_helpers = true)
+ Module.new do
+ define_method(:inherited) do |klass|
+ super(klass)
+
+ if namespace = klass.module_parents.detect { |m| m.respond_to?(:railtie_routes_url_helpers) }
+ klass.include(namespace.railtie_routes_url_helpers(include_path_helpers))
+ else
+ klass.include(routes.url_helpers(include_path_helpers))
+ end
+ end
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Rendering.html b/src/classes/AbstractController/Rendering.html
index 872a9d8b43..0fa902a303 100644
--- a/src/classes/AbstractController/Rendering.html
+++ b/src/classes/AbstractController/Rendering.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -123,7 +123,7 @@
Normalizes arguments and options, and then delegates to render_to_body and sticks the result in self.response_body.
-Supported options depend on the underlying render_to_body implementation.
+Supported options depend on the underlying render_to_body implementation.
@@ -139,19 +139,19 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 26
- def render(*args, &block)
- options = _normalize_render(*args, &block)
- rendered_body = render_to_body(options)
- if options[:html]
- _set_html_content_type
- else
- _set_rendered_content_type rendered_format
- end
- _set_vary_header
- self.response_body = rendered_body
- end
+def render(*args, &block)
+ options = _normalize_render(*args, &block)
+ rendered_body = render_to_body(options)
+ if options[:html]
+ _set_html_content_type
+ else
+ _set_rendered_content_type rendered_format
+ end
+ _set_vary_header
+ self.response_body = rendered_body
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -182,10 +182,10 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 50
- def render_to_body(options = {})
- end
+def render_to_body(options = {})
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -218,12 +218,12 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 44
- def render_to_string(*args, &block)
- options = _normalize_render(*args, &block)
- render_to_body(options)
- end
+def render_to_string(*args, &block)
+ options = _normalize_render(*args, &block)
+ render_to_body(options)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -254,11 +254,11 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 54
- def rendered_format
- Mime[:text]
- end
+def rendered_format
+ Mime[:text]
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -289,15 +289,15 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 62
- def view_assigns
- variables = instance_variables - _protected_ivars
+def view_assigns
+ variables = instance_variables - _protected_ivars
- variables.each_with_object({}) do |name, hash|
- hash[name.slice(1, name.length)] = instance_variable_get(name)
- end
- end
+ variables.each_with_object({}) do |name, hash|
+ hash[name.slice(1, name.length)] = instance_variable_get(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -331,21 +331,21 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 73
- def _normalize_args(action = nil, options = {}) # :doc:
- if action.respond_to?(:permitted?)
- if action.permitted?
- action
- else
- raise ArgumentError, "render parameters are not permitted"
- end
- elsif action.is_a?(Hash)
- action
- else
- options
- end
- end
+def _normalize_args(action = nil, options = {}) # :doc:
+ if action.respond_to?(:permitted?)
+ if action.permitted?
+ action
+ else
+ raise ArgumentError, "render parameters are not permitted"
+ end
+ elsif action.is_a?(Hash)
+ action
+ else
+ options
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -376,11 +376,11 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 88
- def _normalize_options(options) # :doc:
- options
- end
+def _normalize_options(options) # :doc:
+ options
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -411,11 +411,11 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 93
- def _process_options(options) # :doc:
- options
- end
+def _process_options(options) # :doc:
+ options
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Translation.html b/src/classes/AbstractController/Translation.html
index e429818684..446e93e2cd 100644
--- a/src/classes/AbstractController/Translation.html
+++ b/src/classes/AbstractController/Translation.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -123,11 +123,11 @@
# File actionpack/lib/abstract_controller/translation.rb, line 37
- def localize(object, **options)
- I18n.localize(object, **options)
- end
+def localize(object, **options)
+ I18n.localize(object, **options)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -189,25 +189,25 @@
# File actionpack/lib/abstract_controller/translation.rb, line 17
- def translate(key, **options)
- if key&.start_with?(".")
- path = controller_path.tr("/", ".")
- defaults = [:"#{path}#{key}"]
- defaults << options[:default] if options[:default]
- options[:default] = defaults.flatten
- key = "#{path}.#{action_name}#{key}"
- end
-
- if options[:default] && ActiveSupport::HtmlSafeTranslation.html_safe_translation_key?(key)
- options[:default] = Array(options[:default]).map do |value|
- value.is_a?(String) ? ERB::Util.html_escape(value) : value
- end
- end
-
- ActiveSupport::HtmlSafeTranslation.translate(key, **options)
- end
+def translate(key, **options)
+ if key&.start_with?(".")
+ path = controller_path.tr("/", ".")
+ defaults = [:"#{path}#{key}"]
+ defaults << options[:default] if options[:default]
+ options[:default] = defaults.flatten
+ key = "#{path}.#{action_name}#{key}"
+ end
+
+ if options[:default] && ActiveSupport::HtmlSafeTranslation.html_safe_translation_key?(key)
+ options[:default] = Array(options[:default]).map do |value|
+ value.is_a?(String) ? ERB::Util.html_escape(value) : value
+ end
+ end
+
+ ActiveSupport::HtmlSafeTranslation.translate(key, **options)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/UrlFor.html b/src/classes/AbstractController/UrlFor.html
index 8d49da9f5c..bd5d0224eb 100644
--- a/src/classes/AbstractController/UrlFor.html
+++ b/src/classes/AbstractController/UrlFor.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -119,12 +119,12 @@
# File actionpack/lib/abstract_controller/url_for.rb, line 18
- def _routes
- raise "In order to use #url_for, you must include routing helpers explicitly. " \
- "For instance, `include Rails.application.routes.url_helpers`."
- end
+def _routes
+ raise "In order to use #url_for, you must include routing helpers explicitly. " \
+ "For instance, `include Rails.application.routes.url_helpers`."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/UrlFor/ClassMethods.html b/src/classes/AbstractController/UrlFor/ClassMethods.html
index cd0e5e9509..e4471b2d66 100644
--- a/src/classes/AbstractController/UrlFor/ClassMethods.html
+++ b/src/classes/AbstractController/UrlFor/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actionpack/lib/abstract_controller/url_for.rb, line 24
- def _routes
- nil
- end
+def _routes
+ nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -121,15 +121,15 @@
# File actionpack/lib/abstract_controller/url_for.rb, line 28
- def action_methods
- @action_methods ||= if _routes
- super - _routes.named_routes.helper_names
- else
- super
- end
- end
+def action_methods
+ @action_methods ||= if _routes
+ super - _routes.named_routes.helper_names
+ else
+ super
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable.html b/src/classes/ActionCable.html
index 4951b5813f..5e5f891dce 100644
--- a/src/classes/ActionCable.html
+++ b/src/classes/ActionCable.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -267,11 +267,11 @@
# File actioncable/lib/action_cable/gem_version.rb, line 7
- def self.gem_version
- Gem::Version.new VERSION::STRING
- end
+def self.gem_version
+ Gem::Version.new VERSION::STRING
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -302,11 +302,11 @@
# File actioncable/lib/action_cable/version.rb, line 9
- def self.version
- gem_version
- end
+def self.version
+ gem_version
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -341,11 +341,11 @@
# File actioncable/lib/action_cable.rb, line 77
- def server
- @server ||= ActionCable::Server::Base.new
- end
+def server
+@server ||= ActionCable::Server::Base.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel.html b/src/classes/ActionCable/Channel.html
index 38c886ddbc..06b36ff362 100644
--- a/src/classes/ActionCable/Channel.html
+++ b/src/classes/ActionCable/Channel.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Channel/Base.html b/src/classes/ActionCable/Channel/Base.html
index bc63a53315..32e2ff9b70 100644
--- a/src/classes/ActionCable/Channel/Base.html
+++ b/src/classes/ActionCable/Channel/Base.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -82,7 +82,7 @@ Action process
end
-
In this example, the subscribed and unsubscribed methods are not callable methods, as they were already declared in ActionCable::Channel::Base, but #appear and #away are. #generate_connection_token is also not callable, since it’s a private method. You’ll see that appear accepts a data parameter, which it then uses as part of its model call. #away does not, since it’s simply a trigger action.
+In this example, the subscribed and unsubscribed methods are not callable methods, as they were already declared in ActionCable::Channel::Base, but appear and away are. generate_connection_token is also not callable, since it’s a private method. You’ll see that appear accepts a data parameter, which it then uses as part of its model call. away does not, since it’s simply a trigger action.
Also note that in this example, current_user is available because it was marked as an identifying attribute on the connection. All such identifiers will automatically create a delegation method of the same name on the channel instance.
@@ -307,19 +307,22 @@ Returns
# File actioncable/lib/action_cable/channel/base.rb, line 128
- def action_methods
- @action_methods ||= begin
- # All public instance methods of this class, including ancestors
- methods = (public_instance_methods(true) -
- # Except for public instance methods of Base and its ancestors
- ActionCable::Channel::Base.public_instance_methods(true) +
- # Be sure to include shadowed public instance methods of this class
- public_instance_methods(false)).uniq.map(&:to_s)
- methods.to_set
- end
- end
-
- 🔎 See on GitHub
+def action_methods
+ @action_methods ||= begin
+ # All public instance methods of this class, including ancestors
+ methods = (public_instance_methods(true) -
+ # Except for public instance methods of Base and its ancestors
+ ActionCable::Channel::Base.public_instance_methods(true) +
+ # Be sure to include shadowed public instance methods of this class
+ public_instance_methods(false)).uniq
+
+ methods.reject! { |m| m.start_with?("_") }
+ methods.map!(&:name)
+ methods.to_set
+ end
+end
+
+ 🔎 See on GitHub
@@ -349,26 +352,26 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 155
- def initialize(connection, identifier, params = {})
- @connection = connection
- @identifier = identifier
- @params = params
+ # File actioncable/lib/action_cable/channel/base.rb, line 158
+def initialize(connection, identifier, params = {})
+ @connection = connection
+ @identifier = identifier
+ @params = params
- # When a channel is streaming via pubsub, we want to delay the confirmation
- # transmission until pubsub subscription is confirmed.
- #
- # The counter starts at 1 because it's awaiting a call to #subscribe_to_channel
- @defer_subscription_confirmation_counter = Concurrent::AtomicFixnum.new(1)
+ # When a channel is streaming via pubsub, we want to delay the confirmation
+ # transmission until pubsub subscription is confirmed.
+ #
+ # The counter starts at 1 because it's awaiting a call to #subscribe_to_channel
+ @defer_subscription_confirmation_counter = Concurrent::AtomicFixnum.new(1)
- @reject_subscription = nil
- @subscription_confirmation_sent = nil
- @unsubscribed = false
+ @reject_subscription = nil
+ @subscription_confirmation_sent = nil
+ @unsubscribed = false
- delegate_connection_identifiers
- end
+ delegate_connection_identifiers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -401,12 +404,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 144
- def clear_action_methods! # :doc:
- @action_methods = nil
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 147
+def clear_action_methods! # :doc:
+ @action_methods = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -436,13 +439,13 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 149
- def method_added(name) # :doc:
- super
- clear_action_methods!
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 152
+def method_added(name) # :doc:
+ super
+ clear_action_methods!
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -476,21 +479,21 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 176
- def perform_action(data)
- action = extract_action(data)
+ # File actioncable/lib/action_cable/channel/base.rb, line 179
+def perform_action(data)
+ action = extract_action(data)
- if processable_action?(action)
- payload = { channel_class: self.class.name, action: action, data: data }
- ActiveSupport::Notifications.instrument("perform_action.action_cable", payload) do
- dispatch_action(action, data)
- end
- else
- logger.error "Unable to process #{action_signature(action, data)}"
- end
- end
+ if processable_action?(action)
+ payload = { channel_class: self.class.name, action: action, data: data }
+ ActiveSupport::Notifications.instrument("perform_action.action_cable", payload) do
+ dispatch_action(action, data)
+ end
+ else
+ logger.error "Unable to process #{action_signature(action, data)}"
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -520,17 +523,17 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 191
- def subscribe_to_channel
- run_callbacks :subscribe do
- subscribed
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 194
+def subscribe_to_channel
+ run_callbacks :subscribe do
+ subscribed
+ end
- reject_subscription if subscription_rejected?
- ensure_confirmation_sent
- end
+ reject_subscription if subscription_rejected?
+ ensure_confirmation_sent
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -563,12 +566,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 250
- def defer_subscription_confirmation! # :doc:
- @defer_subscription_confirmation_counter.increment
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 253
+def defer_subscription_confirmation! # :doc:
+ @defer_subscription_confirmation_counter.increment
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -598,12 +601,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 254
- def defer_subscription_confirmation? # :doc:
- @defer_subscription_confirmation_counter.value > 0
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 257
+def defer_subscription_confirmation? # :doc:
+ @defer_subscription_confirmation_counter.value > 0
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -633,14 +636,14 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 244
- def ensure_confirmation_sent # :doc:
- return if subscription_rejected?
- @defer_subscription_confirmation_counter.decrement
- transmit_subscription_confirmation unless defer_subscription_confirmation?
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 247
+def ensure_confirmation_sent # :doc:
+ return if subscription_rejected?
+ @defer_subscription_confirmation_counter.decrement
+ transmit_subscription_confirmation unless defer_subscription_confirmation?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -670,12 +673,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 262
- def reject # :doc:
- @reject_subscription = true
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 265
+def reject # :doc:
+ @reject_subscription = true
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -705,12 +708,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 218
- def subscribed # :doc:
- # Override in subclasses
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 221
+def subscribed # :doc:
+ # Override in subclasses
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -740,12 +743,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 258
- def subscription_confirmation_sent? # :doc:
- @subscription_confirmation_sent
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 261
+def subscription_confirmation_sent? # :doc:
+ @subscription_confirmation_sent
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -775,12 +778,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 266
- def subscription_rejected? # :doc:
- @reject_subscription
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 269
+def subscription_rejected? # :doc:
+ @reject_subscription
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -810,21 +813,21 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 231
- def transmit(data, via: nil) # :doc:
- logger.debug do
- status = "#{self.class.name} transmitting #{data.inspect.truncate(300)}"
- status += " (via #{via})" if via
- status
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 234
+def transmit(data, via: nil) # :doc:
+ logger.debug do
+ status = "#{self.class.name} transmitting #{data.inspect.truncate(300)}"
+ status += " (via #{via})" if via
+ status
+ end
- payload = { channel_class: self.class.name, data: data, via: via }
- ActiveSupport::Notifications.instrument("transmit.action_cable", payload) do
- connection.transmit identifier: @identifier, message: data
- end
- end
+ payload = { channel_class: self.class.name, data: data, via: via }
+ ActiveSupport::Notifications.instrument("transmit.action_cable", payload) do
+ connection.transmit identifier: @identifier, message: data
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -854,12 +857,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 224
- def unsubscribed # :doc:
- # Override in subclasses
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 227
+def unsubscribed # :doc:
+ # Override in subclasses
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Broadcasting.html b/src/classes/ActionCable/Channel/Broadcasting.html
index bb71b89445..7fecc3f6b8 100644
--- a/src/classes/ActionCable/Channel/Broadcasting.html
+++ b/src/classes/ActionCable/Channel/Broadcasting.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -99,11 +99,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 45
- def broadcast_to(model, message)
- self.class.broadcast_to(model, message)
- end
+def broadcast_to(model, message)
+ self.class.broadcast_to(model, message)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -134,11 +134,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 41
- def broadcasting_for(model)
- self.class.broadcasting_for(model)
- end
+def broadcasting_for(model)
+ self.class.broadcasting_for(model)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html b/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
index 684bccb1ab..432bb5d74f 100644
--- a/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 14
- def broadcast_to(broadcastables, message)
- ActionCable.server.broadcast(broadcasting_for(broadcastables), message)
- end
+def broadcast_to(broadcastables, message)
+ ActionCable.server.broadcast(broadcasting_for(broadcastables), message)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -126,11 +126,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 24
- def broadcasting_for(broadcastables)
- serialize_broadcasting([ channel_name ] + Array(broadcastables))
- end
+def broadcasting_for(broadcastables)
+ serialize_broadcasting([ channel_name ] + Array(broadcastables))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Callbacks.html b/src/classes/ActionCable/Channel/Callbacks.html
index 076bdbc8fa..64985186c3 100644
--- a/src/classes/ActionCable/Channel/Callbacks.html
+++ b/src/classes/ActionCable/Channel/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html b/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
index 6ee4317311..7949b5fdf6 100644
--- a/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -111,11 +111,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 60
- def after_subscribe(*methods, &block)
- set_callback(:subscribe, :after, *methods, &block)
- end
+def after_subscribe(*methods, &block)
+ set_callback(:subscribe, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -150,11 +150,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 69
- def after_unsubscribe(*methods, &block)
- set_callback(:unsubscribe, :after, *methods, &block)
- end
+def after_unsubscribe(*methods, &block)
+ set_callback(:unsubscribe, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -185,11 +185,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 48
- def before_subscribe(*methods, &block)
- set_callback(:subscribe, :before, *methods, &block)
- end
+def before_subscribe(*methods, &block)
+ set_callback(:subscribe, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -220,11 +220,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 65
- def before_unsubscribe(*methods, &block)
- set_callback(:unsubscribe, :before, *methods, &block)
- end
+def before_unsubscribe(*methods, &block)
+ set_callback(:unsubscribe, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/ChannelStub.html b/src/classes/ActionCable/Channel/ChannelStub.html
index 9db98daac2..d004896dc5 100644
--- a/src/classes/ActionCable/Channel/ChannelStub.html
+++ b/src/classes/ActionCable/Channel/ChannelStub.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -25,7 +25,7 @@
Action Cable Channel Stub
-
Stub stream_from to track streams for the channel. Add public aliases for subscription_confirmation_sent? and subscription_rejected?.
+Stub stream_from to track streams for the channel. Add public aliases for subscription_confirmation_sent? and subscription_rejected?.
@@ -114,11 +114,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 25
- def confirmed?
- subscription_confirmation_sent?
- end
+def confirmed?
+ subscription_confirmation_sent?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -149,11 +149,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 29
- def rejected?
- subscription_rejected?
- end
+def rejected?
+ subscription_rejected?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -188,9 +188,9 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 46
- def start_periodic_timers; end
+def start_periodic_timers; end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -221,11 +221,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 37
- def stop_all_streams
- @_streams = []
- end
+def stop_all_streams
+ @_streams = []
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -281,11 +281,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 33
- def stream_from(broadcasting, *)
- streams << broadcasting
- end
+def stream_from(broadcasting, *)
+ streams << broadcasting
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -316,11 +316,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 41
- def streams
- @_streams ||= []
- end
+def streams
+ @_streams ||= []
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/ConnectionStub.html b/src/classes/ActionCable/Channel/ConnectionStub.html
index 62c52b567f..0fdc0d8690 100644
--- a/src/classes/ActionCable/Channel/ConnectionStub.html
+++ b/src/classes/ActionCable/Channel/ConnectionStub.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -141,20 +141,20 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 55
- def initialize(identifiers = {})
- @server = ActionCable.server
- @transmissions = []
-
- identifiers.each do |identifier, val|
- define_singleton_method(identifier) { val }
- end
-
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @identifiers = identifiers.keys
- @logger = ActiveSupport::TaggedLogging.new ActiveSupport::Logger.new(StringIO.new)
- end
+def initialize(identifiers = {})
+ @server = ActionCable.server
+ @transmissions = []
+
+ identifiers.each do |identifier, val|
+ define_singleton_method(identifier) { val }
+ end
+
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @identifiers = identifiers.keys
+ @logger = ActiveSupport::TaggedLogging.new ActiveSupport::Logger.new(StringIO.new)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -189,11 +189,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 72
- def connection_identifier
- @connection_identifier ||= connection_gid(identifiers.filter_map { |id| send(id.to_sym) if id })
- end
+def connection_identifier
+ @connection_identifier ||= connection_gid(identifiers.filter_map { |id| send(id.to_sym) if id })
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -224,11 +224,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 68
- def transmit(cable_message)
- transmissions << cable_message.with_indifferent_access
- end
+def transmit(cable_message)
+ transmissions << cable_message.with_indifferent_access
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Naming.html b/src/classes/ActionCable/Channel/Naming.html
index 84bfc0232c..db2aa18589 100644
--- a/src/classes/ActionCable/Channel/Naming.html
+++ b/src/classes/ActionCable/Channel/Naming.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,11 +95,11 @@
# File actioncable/lib/action_cable/channel/naming.rb, line 23
- def channel_name
- self.class.channel_name
- end
+def channel_name
+ self.class.channel_name
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Naming/ClassMethods.html b/src/classes/ActionCable/Channel/Naming/ClassMethods.html
index b847309f12..e99c0744a7 100644
--- a/src/classes/ActionCable/Channel/Naming/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Naming/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -66,7 +66,7 @@
- Returns the name of the channel, underscored, without the Channel ending. If the channel is in a namespace, then the namespaces are represented by single colon separators in the channel name.
+ Returns the name of the channel, underscored, without the Channel ending. If the channel is in a namespace, then the namespaces are represented by single colon separators in the channel name.
ChatChannel.channel_name # => 'chat'
Chats::AppearancesChannel.channel_name # => 'chats:appearances'
@@ -87,11 +87,11 @@
# File actioncable/lib/action_cable/channel/naming.rb, line 18
- def channel_name
- @channel_name ||= name.delete_suffix("Channel").gsub("::", ":").underscore
- end
+def channel_name
+ @channel_name ||= name.delete_suffix("Channel").gsub("::", ":").underscore
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/NonInferrableChannelError.html b/src/classes/ActionCable/Channel/NonInferrableChannelError.html
index 034c36b135..1eac81cbd2 100644
--- a/src/classes/ActionCable/Channel/NonInferrableChannelError.html
+++ b/src/classes/ActionCable/Channel/NonInferrableChannelError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 13
- def initialize(name)
- super "Unable to determine the channel to test from #{name}. " +
- "You'll need to specify it using `tests YourChannel` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the channel to test from #{name}. " +
+ "You'll need to specify it using `tests YourChannel` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/PeriodicTimers.html b/src/classes/ActionCable/Channel/PeriodicTimers.html
index 88facef675..561da6e0dd 100644
--- a/src/classes/ActionCable/Channel/PeriodicTimers.html
+++ b/src/classes/ActionCable/Channel/PeriodicTimers.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html b/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
index 233865e2e3..a694f6de16 100644
--- a/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -91,30 +91,30 @@
# File actioncable/lib/action_cable/channel/periodic_timers.rb, line 31
- def periodically(callback_or_method_name = nil, every:, &block)
- callback =
- if block_given?
- raise ArgumentError, "Pass a block or provide a callback arg, not both" if callback_or_method_name
- block
- else
- case callback_or_method_name
- when Proc
- callback_or_method_name
- when Symbol
- -> { __send__ callback_or_method_name }
- else
- raise ArgumentError, "Expected a Symbol method name or a Proc, got #{callback_or_method_name.inspect}"
- end
- end
-
- unless every.kind_of?(Numeric) && every > 0
- raise ArgumentError, "Expected every: to be a positive number of seconds, got #{every.inspect}"
- end
-
- self.periodic_timers += [[ callback, every: every ]]
- end
+def periodically(callback_or_method_name = nil, every:, &block)
+ callback =
+ if block_given?
+ raise ArgumentError, "Pass a block or provide a callback arg, not both" if callback_or_method_name
+ block
+ else
+ case callback_or_method_name
+ when Proc
+ callback_or_method_name
+ when Symbol
+ -> { __send__ callback_or_method_name }
+ else
+ raise ArgumentError, "Expected a Symbol method name or a Proc, got #{callback_or_method_name.inspect}"
+ end
+ end
+
+ unless every.kind_of?(Numeric) && every > 0
+ raise ArgumentError, "Expected every: to be a positive number of seconds, got #{every.inspect}"
+ end
+
+ self.periodic_timers += [[ callback, every: every ]]
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Streams.html b/src/classes/ActionCable/Channel/Streams.html
index 0967feb616..a2e686a3e9 100644
--- a/src/classes/ActionCable/Channel/Streams.html
+++ b/src/classes/ActionCable/Channel/Streams.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -167,14 +167,14 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 137
- def stop_all_streams
- streams.each do |broadcasting, callback|
- pubsub.unsubscribe broadcasting, callback
- logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
- end.clear
- end
+def stop_all_streams
+ streams.each do |broadcasting, callback|
+ pubsub.unsubscribe broadcasting, callback
+ logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
+ end.clear
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -205,11 +205,11 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 132
- def stop_stream_for(model)
- stop_stream_from(broadcasting_for(model))
- end
+def stop_stream_for(model)
+ stop_stream_from(broadcasting_for(model))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,15 +240,15 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 123
- def stop_stream_from(broadcasting)
- callback = streams.delete(broadcasting)
- if callback
- pubsub.unsubscribe(broadcasting, callback)
- logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
- end
- end
+def stop_stream_from(broadcasting)
+ callback = streams.delete(broadcasting)
+ if callback
+ pubsub.unsubscribe(broadcasting, callback)
+ logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -281,11 +281,11 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 118
- def stream_for(broadcastables, callback = nil, coder: nil, &block)
- stream_from(broadcasting_for(broadcastables), callback || block, coder: coder)
- end
+def stream_for(broadcastables, callback = nil, coder: nil, &block)
+ stream_from(broadcasting_for(broadcastables), callback || block, coder: coder)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -316,28 +316,28 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 90
- def stream_from(broadcasting, callback = nil, coder: nil, &block)
- return if unsubscribed?
-
- broadcasting = String(broadcasting)
-
- # Don't send the confirmation until pubsub#subscribe is successful
- defer_subscription_confirmation!
-
- # Build a stream handler by wrapping the user-provided callback with a decoder
- # or defaulting to a JSON-decoding retransmitter.
- handler = worker_pool_stream_handler(broadcasting, callback || block, coder: coder)
- streams[broadcasting] = handler
-
- connection.server.event_loop.post do
- pubsub.subscribe(broadcasting, handler, lambda do
- ensure_confirmation_sent
- logger.info "#{self.class.name} is streaming from #{broadcasting}"
- end)
- end
- end
+def stream_from(broadcasting, callback = nil, coder: nil, &block)
+ return if unsubscribed?
+
+ broadcasting = String(broadcasting)
+
+ # Don't send the confirmation until pubsub#subscribe is successful
+ defer_subscription_confirmation!
+
+ # Build a stream handler by wrapping the user-provided callback with a decoder
+ # or defaulting to a JSON-decoding retransmitter.
+ handler = worker_pool_stream_handler(broadcasting, callback || block, coder: coder)
+ streams[broadcasting] = handler
+
+ connection.server.event_loop.post do
+ pubsub.subscribe(broadcasting, handler, lambda do
+ ensure_confirmation_sent
+ logger.info "#{self.class.name} is streaming from #{broadcasting}"
+ end)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -368,15 +368,15 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 146
- def stream_or_reject_for(model)
- if model
- stream_for model
- else
- reject
- end
- end
+def stream_or_reject_for(model)
+ if model
+ stream_for model
+ else
+ reject
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase.html b/src/classes/ActionCable/Channel/TestCase.html
index 08fb28c0cf..6317ff44d0 100644
--- a/src/classes/ActionCable/Channel/TestCase.html
+++ b/src/classes/ActionCable/Channel/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior.html b/src/classes/ActionCable/Channel/TestCase/Behavior.html
index b5f3a5cbb7..5a8ea0fd78 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -196,11 +196,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 282
- def assert_broadcast_on(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcast_on(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -231,11 +231,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 278
- def assert_broadcasts(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcasts(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,11 +272,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 326
- def assert_has_no_stream(stream)
- assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
- end
+def assert_has_no_stream(stream)
+ assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -313,11 +313,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 337
- def assert_has_no_stream_for(object)
- assert_has_no_stream(broadcasting_for(object))
- end
+def assert_has_no_stream_for(object)
+ assert_has_no_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -354,11 +354,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 304
- def assert_has_stream(stream)
- assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
- end
+def assert_has_stream(stream)
+ assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -395,11 +395,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 315
- def assert_has_stream_for(object)
- assert_has_stream(broadcasting_for(object))
- end
+def assert_has_stream_for(object)
+ assert_has_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -436,11 +436,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 293
- def assert_no_streams
- assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
- end
+def assert_no_streams
+ assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -473,12 +473,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 266
- def perform(action, data = {})
- check_subscribed!
- subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
- end
+def perform(action, data = {})
+ check_subscribed!
+ subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -516,11 +516,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 243
- def stub_connection(identifiers = {})
- @connection = ConnectionStub.new(identifiers)
- end
+def stub_connection(identifiers = {})
+ @connection = ConnectionStub.new(identifiers)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -551,15 +551,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 249
- def subscribe(params = {})
- @connection ||= stub_connection
- @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
- @subscription.singleton_class.include(ChannelStub)
- @subscription.subscribe_to_channel
- @subscription
- end
+def subscribe(params = {})
+ @connection ||= stub_connection
+ @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
+ @subscription.singleton_class.include(ChannelStub)
+ @subscription.subscribe_to_channel
+ @subscription
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -590,12 +590,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 272
- def transmissions
- # Return only directly sent message (via #transmit)
- connection.transmissions.filter_map { |data| data["message"] }
- end
+def transmissions
+ # Return only directly sent message (via #transmit)
+ connection.transmissions.filter_map { |data| data["message"] }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -626,12 +626,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 258
- def unsubscribe
- check_subscribed!
- subscription.unsubscribe_from_channel
- end
+def unsubscribe
+ check_subscribed!
+ subscription.unsubscribe_from_channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
index 48ea87f130..57efb4cdac 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 219
- def channel_class
- if channel = self._channel_class
- channel
- else
- tests determine_default_channel(name)
- end
- end
+def channel_class
+ if channel = self._channel_class
+ channel
+ else
+ tests determine_default_channel(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 227
- def determine_default_channel(name)
- channel = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Channel::Base
- end
- raise NonInferrableChannelError.new(name) if channel.nil?
- channel
- end
+def determine_default_channel(name)
+ channel = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Channel::Base
+ end
+ raise NonInferrableChannelError.new(name) if channel.nil?
+ channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 208
- def tests(channel)
- case channel
- when String, Symbol
- self._channel_class = channel.to_s.camelize.constantize
- when Module
- self._channel_class = channel
- else
- raise NonInferrableChannelError.new(channel)
- end
- end
+def tests(channel)
+ case channel
+ when String, Symbol
+ self._channel_class = channel.to_s.camelize.constantize
+ when Module
+ self._channel_class = channel
+ else
+ raise NonInferrableChannelError.new(channel)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection.html b/src/classes/ActionCable/Connection.html
index f832214f0e..7889c75284 100644
--- a/src/classes/ActionCable/Connection.html
+++ b/src/classes/ActionCable/Connection.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Assertions.html b/src/classes/ActionCable/Connection/Assertions.html
index 933ea80e4c..6b10ec5528 100644
--- a/src/classes/ActionCable/Connection/Assertions.html
+++ b/src/classes/ActionCable/Connection/Assertions.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 28
- def assert_reject_connection(&block)
- assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
- end
+def assert_reject_connection(&block)
+ assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization.html b/src/classes/ActionCable/Connection/Authorization.html
index feb855aa9e..baf85a37b3 100644
--- a/src/classes/ActionCable/Connection/Authorization.html
+++ b/src/classes/ActionCable/Connection/Authorization.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -97,12 +97,12 @@
# File actioncable/lib/action_cable/connection/authorization.rb, line 12
- def reject_unauthorized_connection
- logger.error "An unauthorized connection attempt was rejected"
- raise UnauthorizedError
- end
+def reject_unauthorized_connection
+ logger.error "An unauthorized connection attempt was rejected"
+ raise UnauthorizedError
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
index b63b282b0b..ff36299a28 100644
--- a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
+++ b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/Base.html b/src/classes/ActionCable/Connection/Base.html
index 36a2f1e1bb..ea0d62911f 100644
--- a/src/classes/ActionCable/Connection/Base.html
+++ b/src/classes/ActionCable/Connection/Base.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -255,21 +255,21 @@
# File actioncable/lib/action_cable/connection/base.rb, line 67
- def initialize(server, env, coder: ActiveSupport::JSON)
- @server, @env, @coder = server, env, coder
+def initialize(server, env, coder: ActiveSupport::JSON)
+ @server, @env, @coder = server, env, coder
- @worker_pool = server.worker_pool
- @logger = new_tagged_logger
+ @worker_pool = server.worker_pool
+ @logger = new_tagged_logger
- @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
+ @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
- @_internal_subscriptions = nil
- @started_at = Time.now
- end
+ @_internal_subscriptions = nil
+ @started_at = Time.now
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -304,11 +304,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 147
- def beat
- transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
- end
+def beat
+ transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -339,16 +339,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 120
- def close(reason: nil, reconnect: true)
- transmit(
- type: ActionCable::INTERNAL[:message_types][:disconnect],
- reason: reason,
- reconnect: reconnect
- )
- websocket.close
- end
+def close(reason: nil, reconnect: true)
+ transmit(
+ type: ActionCable::INTERNAL[:message_types][:disconnect],
+ reason: reason,
+ reconnect: reconnect
+ )
+ websocket.close
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -379,13 +379,13 @@
# File actioncable/lib/action_cable/connection/base.rb, line 109
- def handle_channel_command(payload)
- run_callbacks :command do
- subscriptions.execute_command payload
- end
- end
+def handle_channel_command(payload)
+ run_callbacks :command do
+ subscriptions.execute_command payload
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -416,11 +416,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 131
- def send_async(method, *arguments)
- worker_pool.async_invoke(self, method, *arguments)
- end
+def send_async(method, *arguments)
+ worker_pool.async_invoke(self, method, *arguments)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -451,16 +451,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 138
- def statistics
- {
- identifier: connection_identifier,
- started_at: @started_at,
- subscriptions: subscriptions.identifiers,
- request_id: @env["action_dispatch.request_id"]
- }
- end
+def statistics
+ {
+ identifier: connection_identifier,
+ started_at: @started_at,
+ subscriptions: subscriptions.identifiers,
+ request_id: @env["action_dispatch.request_id"]
+ }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -494,11 +494,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 187
- def cookies # :doc:
- request.cookie_jar
- end
+def cookies # :doc:
+ request.cookie_jar
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -529,14 +529,14 @@
# File actioncable/lib/action_cable/connection/base.rb, line 178
- def request # :doc:
- @request ||= begin
- environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
- ActionDispatch::Request.new(environment || env)
- end
- end
+def request # :doc:
+ @request ||= begin
+ environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
+ ActionDispatch::Request.new(environment || env)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Callbacks.html b/src/classes/ActionCable/Connection/Callbacks.html
index 818958bf81..d6504ca284 100644
--- a/src/classes/ActionCable/Connection/Callbacks.html
+++ b/src/classes/ActionCable/Connection/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
index 933056a029..6376d7195b 100644
--- a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,11 +90,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 47
- def after_command(*methods, &block)
- set_callback(:command, :after, *methods, &block)
- end
+def after_command(*methods, &block)
+ set_callback(:command, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -125,11 +125,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 51
- def around_command(*methods, &block)
- set_callback(:command, :around, *methods, &block)
- end
+def around_command(*methods, &block)
+ set_callback(:command, :around, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -160,11 +160,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 43
- def before_command(*methods, &block)
- set_callback(:command, :before, *methods, &block)
- end
+def before_command(*methods, &block)
+ set_callback(:command, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification.html b/src/classes/ActionCable/Connection/Identification.html
index f3dcea9bfc..063ca88999 100644
--- a/src/classes/ActionCable/Connection/Identification.html
+++ b/src/classes/ActionCable/Connection/Identification.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,15 +95,15 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 29
- def connection_identifier
- unless defined? @connection_identifier
- @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
- end
+def connection_identifier
+ unless defined? @connection_identifier
+ @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
+ end
- @connection_identifier
- end
+ @connection_identifier
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification/ClassMethods.html b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
index 324ded31f5..a3395ef8a3 100644
--- a/src/classes/ActionCable/Connection/Identification/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -84,12 +84,12 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 21
- def identified_by(*identifiers)
- Array(identifiers).each { |identifier| attr_accessor identifier }
- self.identifiers += identifiers
- end
+def identified_by(*identifiers)
+ Array(identifiers).each { |identifier| attr_accessor identifier }
+ self.identifiers += identifiers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/InternalChannel.html b/src/classes/ActionCable/Connection/InternalChannel.html
index 9b0144f690..cfdccceaf4 100644
--- a/src/classes/ActionCable/Connection/InternalChannel.html
+++ b/src/classes/ActionCable/Connection/InternalChannel.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
index 7167904452..bf0c696d62 100644
--- a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
+++ b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 15
- def initialize(name)
- super "Unable to determine the connection to test from #{name}. " +
- "You'll need to specify it using `tests YourConnection` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the connection to test from #{name}. " +
+ "You'll need to specify it using `tests YourConnection` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/StreamEventLoop.html b/src/classes/ActionCable/Connection/StreamEventLoop.html
index 2b71a213e3..f7c49354ef 100644
--- a/src/classes/ActionCable/Connection/StreamEventLoop.html
+++ b/src/classes/ActionCable/Connection/StreamEventLoop.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -111,16 +111,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 10
- def initialize
- @nio = @executor = @thread = nil
- @map = {}
- @stopping = false
- @todo = Queue.new
-
- @spawn_mutex = Mutex.new
- end
+def initialize
+ @nio = @executor = @thread = nil
+ @map = {}
+ @stopping = false
+ @todo = Queue.new
+
+ @spawn_mutex = Mutex.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -155,15 +155,15 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 30
- def attach(io, stream)
- @todo << lambda do
- @map[io] = @nio.register(io, :r)
- @map[io].value = stream
- end
- wakeup
- end
+def attach(io, stream)
+ @todo << lambda do
+ @map[io] = @nio.register(io, :r)
+ @map[io].value = stream
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -194,16 +194,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 38
- def detach(io, stream)
- @todo << lambda do
- @nio.deregister io
- @map.delete io
- io.close
- end
- wakeup
- end
+def detach(io, stream)
+ @todo << lambda do
+ @nio.deregister io
+ @map.delete io
+ io.close
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -234,14 +234,14 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 23
- def post(task = nil, &block)
- task ||= block
+def post(task = nil, &block)
+ task ||= block
- spawn
- @executor << task
- end
+ spawn
+ @executor << task
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,12 +272,12 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 56
- def stop
- @stopping = true
- wakeup if @nio
- end
+def stop
+ @stopping = true
+ wakeup if @nio
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -308,11 +308,11 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 19
- def timer(interval, &block)
- Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
- end
+def timer(interval, &block)
+ Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -343,16 +343,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 47
- def writes_pending(io)
- @todo << lambda do
- if monitor = @map[io]
- monitor.interests = :rw
- end
- end
- wakeup
- end
+def writes_pending(io)
+ @todo << lambda do
+ if monitor = @map[io]
+ monitor.interests = :rw
+ end
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
index f4d5cacc63..99731855fb 100644
--- a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
+++ b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -121,12 +121,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 16
- def initialize(logger, tags:)
- @logger = logger
- @tags = tags.flatten
- end
+def initialize(logger, tags:)
+ @logger = logger
+ @tags = tags.flatten
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -161,12 +161,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 21
- def add_tags(*tags)
- @tags += tags.flatten
- @tags = @tags.uniq
- end
+def add_tags(*tags)
+ @tags += tags.flatten
+ @tags = @tags.uniq
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -197,16 +197,16 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 26
- def tag(logger, &block)
- if logger.respond_to?(:tagged)
- current_tags = tags - logger.formatter.current_tags
- logger.tagged(*current_tags, &block)
- else
- yield
- end
- end
+def tag(logger, &block)
+ if logger.respond_to?(:tagged)
+ current_tags = tags - logger.formatter.current_tags
+ logger.tagged(*current_tags, &block)
+ else
+ yield
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,11 +240,11 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 42
- def log(type, message, &block) # :doc:
- tag(@logger) { @logger.send type, message, &block }
- end
+def log(type, message, &block) # :doc:
+ tag(@logger) { @logger.send type, message, &block }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase.html b/src/classes/ActionCable/Connection/TestCase.html
index 948378e491..39bc5cb056 100644
--- a/src/classes/ActionCable/Connection/TestCase.html
+++ b/src/classes/ActionCable/Connection/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior.html b/src/classes/ActionCable/Connection/TestCase/Behavior.html
index b87870becd..4ee0debbea 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -163,19 +163,19 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 192
- def connect(path = ActionCable.server.config.mount_path, **request_params)
- path ||= DEFAULT_PATH
+def connect(path = ActionCable.server.config.mount_path, **request_params)
+ path ||= DEFAULT_PATH
- connection = self.class.connection_class.allocate
- connection.singleton_class.include(TestConnection)
- connection.send(:initialize, build_test_request(path, **request_params))
- connection.connect if connection.respond_to?(:connect)
+ connection = self.class.connection_class.allocate
+ connection.singleton_class.include(TestConnection)
+ connection.send(:initialize, build_test_request(path, **request_params))
+ connection.connect if connection.respond_to?(:connect)
- # Only set instance variable if connected successfully
- @connection = connection
- end
+ # Only set instance variable if connected successfully
+ @connection = connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -206,11 +206,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 212
- def cookies
- @cookie_jar ||= TestCookieJar.new
- end
+def cookies
+ @cookie_jar ||= TestCookieJar.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -241,14 +241,14 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 205
- def disconnect
- raise "Must be connected!" if connection.nil?
+def disconnect
+ raise "Must be connected!" if connection.nil?
- connection.disconnect if connection.respond_to?(:disconnect)
- @connection = nil
- end
+ connection.disconnect if connection.respond_to?(:disconnect)
+ @connection = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
index 63444f4b27..99fc0e3f6f 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 167
- def connection_class
- if connection = self._connection_class
- connection
- else
- tests determine_default_connection(name)
- end
- end
+def connection_class
+ if connection = self._connection_class
+ connection
+ else
+ tests determine_default_connection(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 175
- def determine_default_connection(name)
- connection = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Connection::Base
- end
- raise NonInferrableConnectionError.new(name) if connection.nil?
- connection
- end
+def determine_default_connection(name)
+ connection = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Connection::Base
+ end
+ raise NonInferrableConnectionError.new(name) if connection.nil?
+ connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actionpack/lib/abstract_controller/base.rb, line 186
- def performed?
- response_body
- end# File actionpack/lib/abstract_controller/base.rb, line 187
+def performed?
+ response_body
+end# File actionpack/lib/abstract_controller/base.rb, line 147
- def process(action, ...)
- @_action_name = action.to_s
+ # File actionpack/lib/abstract_controller/base.rb, line 148
+def process(action, ...)
+ @_action_name = action.to_s
- unless action_name = _find_action_name(@_action_name)
- raise ActionNotFound.new("The action '#{action}' could not be found for #{self.class.name}", self, action)
- end
+ unless action_name = _find_action_name(@_action_name)
+ raise ActionNotFound.new("The action '#{action}' could not be found for #{self.class.name}", self, action)
+ end
- @_response_body = nil
+ @_response_body = nil
- process_action(action_name, ...)
- end
+ process_action(action_name, ...)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -706,10 +707,10 @@
# File actionpack/lib/abstract_controller/base.rb, line 39
- attr_internal :response_body
+attr_internal :response_body
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Caching.html b/src/classes/AbstractController/Caching.html
index bf5c746308..5712afd4d1 100644
--- a/src/classes/AbstractController/Caching.html
+++ b/src/classes/AbstractController/Caching.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -127,11 +127,11 @@
# File actionpack/lib/abstract_controller/caching.rb, line 57
- def view_cache_dependencies
- self.class._view_cache_dependencies.filter_map { |dep| instance_exec(&dep) }
- end
+def view_cache_dependencies
+ self.class._view_cache_dependencies.filter_map { |dep| instance_exec(&dep) }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -165,15 +165,15 @@
# File actionpack/lib/abstract_controller/caching.rb, line 63
- def cache(key, options = {}, &block) # :doc:
- if cache_configured?
- cache_store.fetch(ActiveSupport::Cache.expand_cache_key(key, :controller), options, &block)
- else
- yield
- end
- end
+def cache(key, options = {}, &block) # :doc:
+ if cache_configured?
+ cache_store.fetch(ActiveSupport::Cache.expand_cache_key(key, :controller), options, &block)
+ else
+ yield
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Caching/ClassMethods.html b/src/classes/AbstractController/Caching/ClassMethods.html
index a5c5346161..769e43a1d0 100644
--- a/src/classes/AbstractController/Caching/ClassMethods.html
+++ b/src/classes/AbstractController/Caching/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -82,11 +82,11 @@
# File actionpack/lib/abstract_controller/caching.rb, line 52
- def view_cache_dependency(&dependency)
- self._view_cache_dependencies += [dependency]
- end
+def view_cache_dependency(&dependency)
+ self._view_cache_dependencies += [dependency]
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Caching/ConfigMethods.html b/src/classes/AbstractController/Caching/ConfigMethods.html
index 32afaceaa6..9b5ab3b1d2 100644
--- a/src/classes/AbstractController/Caching/ConfigMethods.html
+++ b/src/classes/AbstractController/Caching/ConfigMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actionpack/lib/abstract_controller/caching.rb, line 15
- def cache_store
- config.cache_store
- end
+def cache_store
+ config.cache_store
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -121,11 +121,11 @@
# File actionpack/lib/abstract_controller/caching.rb, line 19
- def cache_store=(store)
- config.cache_store = ActiveSupport::Cache.lookup_store(*store)
- end
+def cache_store=(store)
+ config.cache_store = ActiveSupport::Cache.lookup_store(*store)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Caching/Fragments.html b/src/classes/AbstractController/Caching/Fragments.html
index a121e2e7a5..c3adf29074 100644
--- a/src/classes/AbstractController/Caching/Fragments.html
+++ b/src/classes/AbstractController/Caching/Fragments.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -108,7 +108,7 @@
- Given a key (as described in expire_fragment), returns a key array suitable for use in reading, writing, or expiring a cached fragment. All keys begin with :views, followed by ENV["RAILS_CACHE_ID"] or ENV["RAILS_APP_VERSION"] if set, followed by any controller-wide key prefix values, ending with the specified key value.
+ Given a key (as described in expire_fragment), returns a key array suitable for use in reading, writing, or expiring a cached fragment. All keys begin with :views, followed by ENV["RAILS_CACHE_ID"] or ENV["RAILS_APP_VERSION"] if set, followed by any controller-wide key prefix values, ending with the specified key value.
@@ -124,17 +124,17 @@
# File actionpack/lib/abstract_controller/caching/fragments.rb, line 68
- def combined_fragment_cache_key(key)
- head = self.class.fragment_cache_keys.map { |k| instance_exec(&k) }
- tail = key.is_a?(Hash) ? url_for(key).split("://").last : key
-
- cache_key = [:views, ENV["RAILS_CACHE_ID"] || ENV["RAILS_APP_VERSION"], head, tail]
- cache_key.flatten!(1)
- cache_key.compact!
- cache_key
- end
+def combined_fragment_cache_key(key)
+ head = self.class.fragment_cache_keys.map { |k| instance_exec(&k) }
+ tail = key.is_a?(Hash) ? url_for(key).split("://").last : key
+
+ cache_key = [:views, ENV["RAILS_CACHE_ID"] || ENV["RAILS_APP_VERSION"], head, tail]
+ cache_key.flatten!(1)
+ cache_key.compact!
+ cache_key
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -176,20 +176,20 @@
# File actionpack/lib/abstract_controller/caching/fragments.rb, line 131
- def expire_fragment(key, options = nil)
- return unless cache_configured?
- key = combined_fragment_cache_key(key) unless key.is_a?(Regexp)
-
- instrument_fragment_cache :expire_fragment, key do
- if key.is_a?(Regexp)
- cache_store.delete_matched(key, options)
- else
- cache_store.delete(key, options)
- end
- end
- end
+def expire_fragment(key, options = nil)
+ return unless cache_configured?
+ key = combined_fragment_cache_key(key) unless key.is_a?(Regexp)
+
+ instrument_fragment_cache :expire_fragment, key do
+ if key.is_a?(Regexp)
+ cache_store.delete_matched(key, options)
+ else
+ cache_store.delete(key, options)
+ end
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -204,7 +204,7 @@
- Check if a cached fragment from the location signified by key exists (see expire_fragment for acceptable formats).
+ Check if a cached fragment from the location signified by key exists (see expire_fragment for acceptable formats).
@@ -220,16 +220,16 @@
# File actionpack/lib/abstract_controller/caching/fragments.rb, line 105
- def fragment_exist?(key, options = nil)
- return unless cache_configured?
- key = combined_fragment_cache_key(key)
-
- instrument_fragment_cache :exist_fragment?, key do
- cache_store.exist?(key, options)
- end
- end
+def fragment_exist?(key, options = nil)
+ return unless cache_configured?
+ key = combined_fragment_cache_key(key)
+
+ instrument_fragment_cache :exist_fragment?, key do
+ cache_store.exist?(key, options)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -244,7 +244,7 @@
- Reads a cached fragment from the location signified by key (see expire_fragment for acceptable formats).
+ Reads a cached fragment from the location signified by key (see expire_fragment for acceptable formats).
@@ -260,17 +260,17 @@
# File actionpack/lib/abstract_controller/caching/fragments.rb, line 93
- def read_fragment(key, options = nil)
- return unless cache_configured?
-
- key = combined_fragment_cache_key(key)
- instrument_fragment_cache :read_fragment, key do
- result = cache_store.read(key, options)
- result.respond_to?(:html_safe) ? result.html_safe : result
- end
- end
+def read_fragment(key, options = nil)
+ return unless cache_configured?
+
+ key = combined_fragment_cache_key(key)
+ instrument_fragment_cache :read_fragment, key do
+ result = cache_store.read(key, options)
+ result.respond_to?(:html_safe) ? result.html_safe : result
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -285,7 +285,7 @@
- Writes content to the location signified by key (see expire_fragment for acceptable formats).
+ Writes content to the location signified by key (see expire_fragment for acceptable formats).
@@ -301,18 +301,18 @@
# File actionpack/lib/abstract_controller/caching/fragments.rb, line 80
- def write_fragment(key, content, options = nil)
- return content unless cache_configured?
-
- key = combined_fragment_cache_key(key)
- instrument_fragment_cache :write_fragment, key do
- content = content.to_str
- cache_store.write(key, content, options)
- end
- content
- end
+def write_fragment(key, content, options = nil)
+ return content unless cache_configured?
+
+ key = combined_fragment_cache_key(key)
+ instrument_fragment_cache :write_fragment, key do
+ content = content.to_str
+ cache_store.write(key, content, options)
+ end
+ content
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Caching/Fragments/ClassMethods.html b/src/classes/AbstractController/Caching/Fragments/ClassMethods.html
index f684e4fb8f..3fd0838698 100644
--- a/src/classes/AbstractController/Caching/Fragments/ClassMethods.html
+++ b/src/classes/AbstractController/Caching/Fragments/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -98,11 +98,11 @@
# File actionpack/lib/abstract_controller/caching/fragments.rb, line 58
- def fragment_cache_key(value = nil, &key)
- self.fragment_cache_keys += [key || -> { value }]
- end
+def fragment_cache_key(value = nil, &key)
+ self.fragment_cache_keys += [key || -> { value }]
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Callbacks.html b/src/classes/AbstractController/Callbacks.html
index 4e3a570e15..36bffc7d1d 100644
--- a/src/classes/AbstractController/Callbacks.html
+++ b/src/classes/AbstractController/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/AbstractController/Callbacks/ClassMethods.html b/src/classes/AbstractController/Callbacks/ClassMethods.html
index 8df003036a..43c33d5431 100644
--- a/src/classes/AbstractController/Callbacks/ClassMethods.html
+++ b/src/classes/AbstractController/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -148,18 +148,18 @@ Block Parameters
# File actionpack/lib/abstract_controller/callbacks.rb, line 120
- def _insert_callbacks(callbacks, block = nil)
- options = callbacks.extract_options!
- callbacks.push(block) if block
- options[:filters] = callbacks
- _normalize_callback_options(options)
- options.delete(:filters)
- callbacks.each do |callback|
- yield callback, options
- end
- end
+def _insert_callbacks(callbacks, block = nil)
+ options = callbacks.extract_options!
+ callbacks.push(block) if block
+ options[:filters] = callbacks
+ _normalize_callback_options(options)
+ options.delete(:filters)
+ callbacks.each do |callback|
+ yield callback, options
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -209,12 +209,12 @@ Options
# File actionpack/lib/abstract_controller/callbacks.rb, line 93
- def _normalize_callback_options(options)
- _normalize_callback_option(options, :only, :if)
- _normalize_callback_option(options, :except, :unless)
- end
+def _normalize_callback_options(options)
+ _normalize_callback_option(options, :only, :if)
+ _normalize_callback_option(options, :except, :unless)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,7 +240,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -264,7 +264,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -288,7 +288,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -314,7 +314,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -338,7 +338,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -364,7 +364,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -388,7 +388,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -412,7 +412,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -438,7 +438,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -462,7 +462,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -486,7 +486,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -510,7 +510,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Collector.html b/src/classes/AbstractController/Collector.html
index 346619e2c1..763d356b2e 100644
--- a/src/classes/AbstractController/Collector.html
+++ b/src/classes/AbstractController/Collector.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -81,16 +81,16 @@
# File actionpack/lib/abstract_controller/collector.rb, line 9
- def self.generate_method_for_mime(mime)
- sym = mime.is_a?(Symbol) ? mime : mime.to_sym
- class_eval <<-RUBY, __FILE__, __LINE__ + 1
- def #{sym}(...)
- custom(Mime[:#{sym}], ...)
- end
- RUBY
- end
+def self.generate_method_for_mime(mime)
+ sym = mime.is_a?(Symbol) ? mime : mime.to_sym
+ class_eval <<-RUBY, __FILE__, __LINE__ + 1
+ def #{sym}(...)
+ custom(Mime[:#{sym}], ...)
+ end
+ RUBY
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/DoubleRenderError.html b/src/classes/AbstractController/DoubleRenderError.html
index b0a21b293d..8f48bc9ef3 100644
--- a/src/classes/AbstractController/DoubleRenderError.html
+++ b/src/classes/AbstractController/DoubleRenderError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -100,11 +100,11 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 13
- def initialize(message = nil)
- super(message || DEFAULT_MESSAGE)
- end
+def initialize(message = nil)
+ super(message || DEFAULT_MESSAGE)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Helpers.html b/src/classes/AbstractController/Helpers.html
index 9fc0534a60..b4d98aa351 100644
--- a/src/classes/AbstractController/Helpers.html
+++ b/src/classes/AbstractController/Helpers.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,11 +95,11 @@
# File actionpack/lib/abstract_controller/helpers.rb, line 28
- def _helpers
- self.class._helpers
- end
+def _helpers
+ self.class._helpers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Helpers/ClassMethods.html b/src/classes/AbstractController/Helpers/ClassMethods.html
index 8900a598d0..33df6d47c3 100644
--- a/src/classes/AbstractController/Helpers/ClassMethods.html
+++ b/src/classes/AbstractController/Helpers/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -119,7 +119,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -148,14 +148,14 @@
# File actionpack/lib/abstract_controller/helpers.rb, line 218
- def _helpers_for_modification
- unless @_helpers
- self._helpers = define_helpers_module(self, superclass._helpers)
- end
- _helpers
- end
+def _helpers_for_modification
+ unless @_helpers
+ self._helpers = define_helpers_module(self, superclass._helpers)
+ end
+ _helpers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -186,16 +186,16 @@
# File actionpack/lib/abstract_controller/helpers.rb, line 209
- def clear_helpers
- inherited_helper_methods = _helper_methods
- self._helpers = Module.new
- self._helper_methods = Array.new
-
- inherited_helper_methods.each { |meth| helper_method meth }
- default_helper_module! unless anonymous?
- end
+def clear_helpers
+ inherited_helper_methods = _helper_methods
+ self._helpers = Module.new
+ self._helper_methods = Array.new
+
+ inherited_helper_methods.each { |meth| helper_method meth }
+ default_helper_module! unless anonymous?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -274,16 +274,16 @@
# File actionpack/lib/abstract_controller/helpers.rb, line 198
- def helper(*args, &block)
- modules_for_helpers(args).each do |mod|
- next if _helpers.include?(mod)
- _helpers_for_modification.include(mod)
- end
-
- _helpers_for_modification.module_eval(&block) if block_given?
- end
+def helper(*args, &block)
+ modules_for_helpers(args).each do |mod|
+ next if _helpers.include?(mod)
+ _helpers_for_modification.include(mod)
+ end
+
+ _helpers_for_modification.module_eval(&block) if block_given?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -338,26 +338,26 @@ Parameters
# File actionpack/lib/abstract_controller/helpers.rb, line 128
- def helper_method(*methods)
- methods.flatten!
- self._helper_methods += methods
-
- location = caller_locations(1, 1).first
- file, line = location.path, location.lineno
-
- methods.each do |method|
- # def current_user(...)
- # controller.send(:'current_user', ...)
- # end
- _helpers_for_modification.class_eval <<~ruby_eval.lines.map(&:strip).join(";"), file, line
- def #{method}(...)
- controller.send(:'#{method}', ...)
- end
- ruby_eval
- end
- end
+def helper_method(*methods)
+ methods.flatten!
+ self._helper_methods += methods
+
+ location = caller_locations(1, 1).first
+ file, line = location.path, location.lineno
+
+ methods.each do |method|
+ # def current_user(...)
+ # controller.send(:'current_user', ...)
+ # end
+ _helpers_for_modification.class_eval <<~ruby_eval.lines.map(&:strip).join(";"), file, line
+ def #{method}(...)
+ controller.send(:'#{method}', ...)
+ end
+ ruby_eval
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -388,15 +388,15 @@
# File actionpack/lib/abstract_controller/helpers.rb, line 68
- def inherited(klass)
- # Inherited from parent by default
- klass._helpers = nil
+def inherited(klass)
+ # Inherited from parent by default
+ klass._helpers = nil
- klass.class_eval { default_helper_module! } unless klass.anonymous?
- super
- end
+ klass.class_eval { default_helper_module! } unless klass.anonymous?
+ super
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -426,7 +426,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Railties.html b/src/classes/AbstractController/Railties.html
index ddb634ab93..e9e5642902 100644
--- a/src/classes/AbstractController/Railties.html
+++ b/src/classes/AbstractController/Railties.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/AbstractController/Railties/RoutesHelpers.html b/src/classes/AbstractController/Railties/RoutesHelpers.html
index 2b3b00e29d..b053082e31 100644
--- a/src/classes/AbstractController/Railties/RoutesHelpers.html
+++ b/src/classes/AbstractController/Railties/RoutesHelpers.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -81,21 +81,21 @@
# File actionpack/lib/abstract_controller/railties/routes_helpers.rb, line 10
- def self.with(routes, include_path_helpers = true)
- Module.new do
- define_method(:inherited) do |klass|
- super(klass)
-
- if namespace = klass.module_parents.detect { |m| m.respond_to?(:railtie_routes_url_helpers) }
- klass.include(namespace.railtie_routes_url_helpers(include_path_helpers))
- else
- klass.include(routes.url_helpers(include_path_helpers))
- end
- end
- end
- end
+def self.with(routes, include_path_helpers = true)
+ Module.new do
+ define_method(:inherited) do |klass|
+ super(klass)
+
+ if namespace = klass.module_parents.detect { |m| m.respond_to?(:railtie_routes_url_helpers) }
+ klass.include(namespace.railtie_routes_url_helpers(include_path_helpers))
+ else
+ klass.include(routes.url_helpers(include_path_helpers))
+ end
+ end
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Rendering.html b/src/classes/AbstractController/Rendering.html
index 872a9d8b43..0fa902a303 100644
--- a/src/classes/AbstractController/Rendering.html
+++ b/src/classes/AbstractController/Rendering.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -123,7 +123,7 @@
Normalizes arguments and options, and then delegates to render_to_body and sticks the result in self.response_body.
-Supported options depend on the underlying render_to_body implementation.
+Supported options depend on the underlying render_to_body implementation.
@@ -139,19 +139,19 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 26
- def render(*args, &block)
- options = _normalize_render(*args, &block)
- rendered_body = render_to_body(options)
- if options[:html]
- _set_html_content_type
- else
- _set_rendered_content_type rendered_format
- end
- _set_vary_header
- self.response_body = rendered_body
- end
+def render(*args, &block)
+ options = _normalize_render(*args, &block)
+ rendered_body = render_to_body(options)
+ if options[:html]
+ _set_html_content_type
+ else
+ _set_rendered_content_type rendered_format
+ end
+ _set_vary_header
+ self.response_body = rendered_body
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -182,10 +182,10 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 50
- def render_to_body(options = {})
- end
+def render_to_body(options = {})
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -218,12 +218,12 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 44
- def render_to_string(*args, &block)
- options = _normalize_render(*args, &block)
- render_to_body(options)
- end
+def render_to_string(*args, &block)
+ options = _normalize_render(*args, &block)
+ render_to_body(options)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -254,11 +254,11 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 54
- def rendered_format
- Mime[:text]
- end
+def rendered_format
+ Mime[:text]
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -289,15 +289,15 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 62
- def view_assigns
- variables = instance_variables - _protected_ivars
+def view_assigns
+ variables = instance_variables - _protected_ivars
- variables.each_with_object({}) do |name, hash|
- hash[name.slice(1, name.length)] = instance_variable_get(name)
- end
- end
+ variables.each_with_object({}) do |name, hash|
+ hash[name.slice(1, name.length)] = instance_variable_get(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -331,21 +331,21 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 73
- def _normalize_args(action = nil, options = {}) # :doc:
- if action.respond_to?(:permitted?)
- if action.permitted?
- action
- else
- raise ArgumentError, "render parameters are not permitted"
- end
- elsif action.is_a?(Hash)
- action
- else
- options
- end
- end
+def _normalize_args(action = nil, options = {}) # :doc:
+ if action.respond_to?(:permitted?)
+ if action.permitted?
+ action
+ else
+ raise ArgumentError, "render parameters are not permitted"
+ end
+ elsif action.is_a?(Hash)
+ action
+ else
+ options
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -376,11 +376,11 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 88
- def _normalize_options(options) # :doc:
- options
- end
+def _normalize_options(options) # :doc:
+ options
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -411,11 +411,11 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 93
- def _process_options(options) # :doc:
- options
- end
+def _process_options(options) # :doc:
+ options
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Translation.html b/src/classes/AbstractController/Translation.html
index e429818684..446e93e2cd 100644
--- a/src/classes/AbstractController/Translation.html
+++ b/src/classes/AbstractController/Translation.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -123,11 +123,11 @@
# File actionpack/lib/abstract_controller/translation.rb, line 37
- def localize(object, **options)
- I18n.localize(object, **options)
- end
+def localize(object, **options)
+ I18n.localize(object, **options)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -189,25 +189,25 @@
# File actionpack/lib/abstract_controller/translation.rb, line 17
- def translate(key, **options)
- if key&.start_with?(".")
- path = controller_path.tr("/", ".")
- defaults = [:"#{path}#{key}"]
- defaults << options[:default] if options[:default]
- options[:default] = defaults.flatten
- key = "#{path}.#{action_name}#{key}"
- end
-
- if options[:default] && ActiveSupport::HtmlSafeTranslation.html_safe_translation_key?(key)
- options[:default] = Array(options[:default]).map do |value|
- value.is_a?(String) ? ERB::Util.html_escape(value) : value
- end
- end
-
- ActiveSupport::HtmlSafeTranslation.translate(key, **options)
- end
+def translate(key, **options)
+ if key&.start_with?(".")
+ path = controller_path.tr("/", ".")
+ defaults = [:"#{path}#{key}"]
+ defaults << options[:default] if options[:default]
+ options[:default] = defaults.flatten
+ key = "#{path}.#{action_name}#{key}"
+ end
+
+ if options[:default] && ActiveSupport::HtmlSafeTranslation.html_safe_translation_key?(key)
+ options[:default] = Array(options[:default]).map do |value|
+ value.is_a?(String) ? ERB::Util.html_escape(value) : value
+ end
+ end
+
+ ActiveSupport::HtmlSafeTranslation.translate(key, **options)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/UrlFor.html b/src/classes/AbstractController/UrlFor.html
index 8d49da9f5c..bd5d0224eb 100644
--- a/src/classes/AbstractController/UrlFor.html
+++ b/src/classes/AbstractController/UrlFor.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -119,12 +119,12 @@
# File actionpack/lib/abstract_controller/url_for.rb, line 18
- def _routes
- raise "In order to use #url_for, you must include routing helpers explicitly. " \
- "For instance, `include Rails.application.routes.url_helpers`."
- end
+def _routes
+ raise "In order to use #url_for, you must include routing helpers explicitly. " \
+ "For instance, `include Rails.application.routes.url_helpers`."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/UrlFor/ClassMethods.html b/src/classes/AbstractController/UrlFor/ClassMethods.html
index cd0e5e9509..e4471b2d66 100644
--- a/src/classes/AbstractController/UrlFor/ClassMethods.html
+++ b/src/classes/AbstractController/UrlFor/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actionpack/lib/abstract_controller/url_for.rb, line 24
- def _routes
- nil
- end
+def _routes
+ nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -121,15 +121,15 @@
# File actionpack/lib/abstract_controller/url_for.rb, line 28
- def action_methods
- @action_methods ||= if _routes
- super - _routes.named_routes.helper_names
- else
- super
- end
- end
+def action_methods
+ @action_methods ||= if _routes
+ super - _routes.named_routes.helper_names
+ else
+ super
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable.html b/src/classes/ActionCable.html
index 4951b5813f..5e5f891dce 100644
--- a/src/classes/ActionCable.html
+++ b/src/classes/ActionCable.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -267,11 +267,11 @@
# File actioncable/lib/action_cable/gem_version.rb, line 7
- def self.gem_version
- Gem::Version.new VERSION::STRING
- end
+def self.gem_version
+ Gem::Version.new VERSION::STRING
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -302,11 +302,11 @@
# File actioncable/lib/action_cable/version.rb, line 9
- def self.version
- gem_version
- end
+def self.version
+ gem_version
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -341,11 +341,11 @@
# File actioncable/lib/action_cable.rb, line 77
- def server
- @server ||= ActionCable::Server::Base.new
- end
+def server
+@server ||= ActionCable::Server::Base.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel.html b/src/classes/ActionCable/Channel.html
index 38c886ddbc..06b36ff362 100644
--- a/src/classes/ActionCable/Channel.html
+++ b/src/classes/ActionCable/Channel.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Channel/Base.html b/src/classes/ActionCable/Channel/Base.html
index bc63a53315..32e2ff9b70 100644
--- a/src/classes/ActionCable/Channel/Base.html
+++ b/src/classes/ActionCable/Channel/Base.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -82,7 +82,7 @@ Action process
end
-
In this example, the subscribed and unsubscribed methods are not callable methods, as they were already declared in ActionCable::Channel::Base, but #appear and #away are. #generate_connection_token is also not callable, since it’s a private method. You’ll see that appear accepts a data parameter, which it then uses as part of its model call. #away does not, since it’s simply a trigger action.
+In this example, the subscribed and unsubscribed methods are not callable methods, as they were already declared in ActionCable::Channel::Base, but appear and away are. generate_connection_token is also not callable, since it’s a private method. You’ll see that appear accepts a data parameter, which it then uses as part of its model call. away does not, since it’s simply a trigger action.
Also note that in this example, current_user is available because it was marked as an identifying attribute on the connection. All such identifiers will automatically create a delegation method of the same name on the channel instance.
@@ -307,19 +307,22 @@ Returns
# File actioncable/lib/action_cable/channel/base.rb, line 128
- def action_methods
- @action_methods ||= begin
- # All public instance methods of this class, including ancestors
- methods = (public_instance_methods(true) -
- # Except for public instance methods of Base and its ancestors
- ActionCable::Channel::Base.public_instance_methods(true) +
- # Be sure to include shadowed public instance methods of this class
- public_instance_methods(false)).uniq.map(&:to_s)
- methods.to_set
- end
- end
-
- 🔎 See on GitHub
+def action_methods
+ @action_methods ||= begin
+ # All public instance methods of this class, including ancestors
+ methods = (public_instance_methods(true) -
+ # Except for public instance methods of Base and its ancestors
+ ActionCable::Channel::Base.public_instance_methods(true) +
+ # Be sure to include shadowed public instance methods of this class
+ public_instance_methods(false)).uniq
+
+ methods.reject! { |m| m.start_with?("_") }
+ methods.map!(&:name)
+ methods.to_set
+ end
+end
+
+ 🔎 See on GitHub
@@ -349,26 +352,26 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 155
- def initialize(connection, identifier, params = {})
- @connection = connection
- @identifier = identifier
- @params = params
+ # File actioncable/lib/action_cable/channel/base.rb, line 158
+def initialize(connection, identifier, params = {})
+ @connection = connection
+ @identifier = identifier
+ @params = params
- # When a channel is streaming via pubsub, we want to delay the confirmation
- # transmission until pubsub subscription is confirmed.
- #
- # The counter starts at 1 because it's awaiting a call to #subscribe_to_channel
- @defer_subscription_confirmation_counter = Concurrent::AtomicFixnum.new(1)
+ # When a channel is streaming via pubsub, we want to delay the confirmation
+ # transmission until pubsub subscription is confirmed.
+ #
+ # The counter starts at 1 because it's awaiting a call to #subscribe_to_channel
+ @defer_subscription_confirmation_counter = Concurrent::AtomicFixnum.new(1)
- @reject_subscription = nil
- @subscription_confirmation_sent = nil
- @unsubscribed = false
+ @reject_subscription = nil
+ @subscription_confirmation_sent = nil
+ @unsubscribed = false
- delegate_connection_identifiers
- end
+ delegate_connection_identifiers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -401,12 +404,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 144
- def clear_action_methods! # :doc:
- @action_methods = nil
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 147
+def clear_action_methods! # :doc:
+ @action_methods = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -436,13 +439,13 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 149
- def method_added(name) # :doc:
- super
- clear_action_methods!
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 152
+def method_added(name) # :doc:
+ super
+ clear_action_methods!
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -476,21 +479,21 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 176
- def perform_action(data)
- action = extract_action(data)
+ # File actioncable/lib/action_cable/channel/base.rb, line 179
+def perform_action(data)
+ action = extract_action(data)
- if processable_action?(action)
- payload = { channel_class: self.class.name, action: action, data: data }
- ActiveSupport::Notifications.instrument("perform_action.action_cable", payload) do
- dispatch_action(action, data)
- end
- else
- logger.error "Unable to process #{action_signature(action, data)}"
- end
- end
+ if processable_action?(action)
+ payload = { channel_class: self.class.name, action: action, data: data }
+ ActiveSupport::Notifications.instrument("perform_action.action_cable", payload) do
+ dispatch_action(action, data)
+ end
+ else
+ logger.error "Unable to process #{action_signature(action, data)}"
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -520,17 +523,17 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 191
- def subscribe_to_channel
- run_callbacks :subscribe do
- subscribed
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 194
+def subscribe_to_channel
+ run_callbacks :subscribe do
+ subscribed
+ end
- reject_subscription if subscription_rejected?
- ensure_confirmation_sent
- end
+ reject_subscription if subscription_rejected?
+ ensure_confirmation_sent
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -563,12 +566,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 250
- def defer_subscription_confirmation! # :doc:
- @defer_subscription_confirmation_counter.increment
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 253
+def defer_subscription_confirmation! # :doc:
+ @defer_subscription_confirmation_counter.increment
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -598,12 +601,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 254
- def defer_subscription_confirmation? # :doc:
- @defer_subscription_confirmation_counter.value > 0
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 257
+def defer_subscription_confirmation? # :doc:
+ @defer_subscription_confirmation_counter.value > 0
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -633,14 +636,14 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 244
- def ensure_confirmation_sent # :doc:
- return if subscription_rejected?
- @defer_subscription_confirmation_counter.decrement
- transmit_subscription_confirmation unless defer_subscription_confirmation?
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 247
+def ensure_confirmation_sent # :doc:
+ return if subscription_rejected?
+ @defer_subscription_confirmation_counter.decrement
+ transmit_subscription_confirmation unless defer_subscription_confirmation?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -670,12 +673,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 262
- def reject # :doc:
- @reject_subscription = true
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 265
+def reject # :doc:
+ @reject_subscription = true
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -705,12 +708,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 218
- def subscribed # :doc:
- # Override in subclasses
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 221
+def subscribed # :doc:
+ # Override in subclasses
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -740,12 +743,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 258
- def subscription_confirmation_sent? # :doc:
- @subscription_confirmation_sent
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 261
+def subscription_confirmation_sent? # :doc:
+ @subscription_confirmation_sent
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -775,12 +778,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 266
- def subscription_rejected? # :doc:
- @reject_subscription
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 269
+def subscription_rejected? # :doc:
+ @reject_subscription
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -810,21 +813,21 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 231
- def transmit(data, via: nil) # :doc:
- logger.debug do
- status = "#{self.class.name} transmitting #{data.inspect.truncate(300)}"
- status += " (via #{via})" if via
- status
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 234
+def transmit(data, via: nil) # :doc:
+ logger.debug do
+ status = "#{self.class.name} transmitting #{data.inspect.truncate(300)}"
+ status += " (via #{via})" if via
+ status
+ end
- payload = { channel_class: self.class.name, data: data, via: via }
- ActiveSupport::Notifications.instrument("transmit.action_cable", payload) do
- connection.transmit identifier: @identifier, message: data
- end
- end
+ payload = { channel_class: self.class.name, data: data, via: via }
+ ActiveSupport::Notifications.instrument("transmit.action_cable", payload) do
+ connection.transmit identifier: @identifier, message: data
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -854,12 +857,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 224
- def unsubscribed # :doc:
- # Override in subclasses
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 227
+def unsubscribed # :doc:
+ # Override in subclasses
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Broadcasting.html b/src/classes/ActionCable/Channel/Broadcasting.html
index bb71b89445..7fecc3f6b8 100644
--- a/src/classes/ActionCable/Channel/Broadcasting.html
+++ b/src/classes/ActionCable/Channel/Broadcasting.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -99,11 +99,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 45
- def broadcast_to(model, message)
- self.class.broadcast_to(model, message)
- end
+def broadcast_to(model, message)
+ self.class.broadcast_to(model, message)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -134,11 +134,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 41
- def broadcasting_for(model)
- self.class.broadcasting_for(model)
- end
+def broadcasting_for(model)
+ self.class.broadcasting_for(model)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html b/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
index 684bccb1ab..432bb5d74f 100644
--- a/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 14
- def broadcast_to(broadcastables, message)
- ActionCable.server.broadcast(broadcasting_for(broadcastables), message)
- end
+def broadcast_to(broadcastables, message)
+ ActionCable.server.broadcast(broadcasting_for(broadcastables), message)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -126,11 +126,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 24
- def broadcasting_for(broadcastables)
- serialize_broadcasting([ channel_name ] + Array(broadcastables))
- end
+def broadcasting_for(broadcastables)
+ serialize_broadcasting([ channel_name ] + Array(broadcastables))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Callbacks.html b/src/classes/ActionCable/Channel/Callbacks.html
index 076bdbc8fa..64985186c3 100644
--- a/src/classes/ActionCable/Channel/Callbacks.html
+++ b/src/classes/ActionCable/Channel/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html b/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
index 6ee4317311..7949b5fdf6 100644
--- a/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -111,11 +111,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 60
- def after_subscribe(*methods, &block)
- set_callback(:subscribe, :after, *methods, &block)
- end
+def after_subscribe(*methods, &block)
+ set_callback(:subscribe, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -150,11 +150,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 69
- def after_unsubscribe(*methods, &block)
- set_callback(:unsubscribe, :after, *methods, &block)
- end
+def after_unsubscribe(*methods, &block)
+ set_callback(:unsubscribe, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -185,11 +185,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 48
- def before_subscribe(*methods, &block)
- set_callback(:subscribe, :before, *methods, &block)
- end
+def before_subscribe(*methods, &block)
+ set_callback(:subscribe, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -220,11 +220,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 65
- def before_unsubscribe(*methods, &block)
- set_callback(:unsubscribe, :before, *methods, &block)
- end
+def before_unsubscribe(*methods, &block)
+ set_callback(:unsubscribe, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/ChannelStub.html b/src/classes/ActionCable/Channel/ChannelStub.html
index 9db98daac2..d004896dc5 100644
--- a/src/classes/ActionCable/Channel/ChannelStub.html
+++ b/src/classes/ActionCable/Channel/ChannelStub.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -25,7 +25,7 @@
Action Cable Channel Stub
-
Stub stream_from to track streams for the channel. Add public aliases for subscription_confirmation_sent? and subscription_rejected?.
+Stub stream_from to track streams for the channel. Add public aliases for subscription_confirmation_sent? and subscription_rejected?.
@@ -114,11 +114,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 25
- def confirmed?
- subscription_confirmation_sent?
- end
+def confirmed?
+ subscription_confirmation_sent?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -149,11 +149,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 29
- def rejected?
- subscription_rejected?
- end
+def rejected?
+ subscription_rejected?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -188,9 +188,9 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 46
- def start_periodic_timers; end
+def start_periodic_timers; end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -221,11 +221,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 37
- def stop_all_streams
- @_streams = []
- end
+def stop_all_streams
+ @_streams = []
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -281,11 +281,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 33
- def stream_from(broadcasting, *)
- streams << broadcasting
- end
+def stream_from(broadcasting, *)
+ streams << broadcasting
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -316,11 +316,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 41
- def streams
- @_streams ||= []
- end
+def streams
+ @_streams ||= []
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/ConnectionStub.html b/src/classes/ActionCable/Channel/ConnectionStub.html
index 62c52b567f..0fdc0d8690 100644
--- a/src/classes/ActionCable/Channel/ConnectionStub.html
+++ b/src/classes/ActionCable/Channel/ConnectionStub.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -141,20 +141,20 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 55
- def initialize(identifiers = {})
- @server = ActionCable.server
- @transmissions = []
-
- identifiers.each do |identifier, val|
- define_singleton_method(identifier) { val }
- end
-
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @identifiers = identifiers.keys
- @logger = ActiveSupport::TaggedLogging.new ActiveSupport::Logger.new(StringIO.new)
- end
+def initialize(identifiers = {})
+ @server = ActionCable.server
+ @transmissions = []
+
+ identifiers.each do |identifier, val|
+ define_singleton_method(identifier) { val }
+ end
+
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @identifiers = identifiers.keys
+ @logger = ActiveSupport::TaggedLogging.new ActiveSupport::Logger.new(StringIO.new)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -189,11 +189,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 72
- def connection_identifier
- @connection_identifier ||= connection_gid(identifiers.filter_map { |id| send(id.to_sym) if id })
- end
+def connection_identifier
+ @connection_identifier ||= connection_gid(identifiers.filter_map { |id| send(id.to_sym) if id })
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -224,11 +224,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 68
- def transmit(cable_message)
- transmissions << cable_message.with_indifferent_access
- end
+def transmit(cable_message)
+ transmissions << cable_message.with_indifferent_access
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Naming.html b/src/classes/ActionCable/Channel/Naming.html
index 84bfc0232c..db2aa18589 100644
--- a/src/classes/ActionCable/Channel/Naming.html
+++ b/src/classes/ActionCable/Channel/Naming.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,11 +95,11 @@
# File actioncable/lib/action_cable/channel/naming.rb, line 23
- def channel_name
- self.class.channel_name
- end
+def channel_name
+ self.class.channel_name
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Naming/ClassMethods.html b/src/classes/ActionCable/Channel/Naming/ClassMethods.html
index b847309f12..e99c0744a7 100644
--- a/src/classes/ActionCable/Channel/Naming/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Naming/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -66,7 +66,7 @@
- Returns the name of the channel, underscored, without the Channel ending. If the channel is in a namespace, then the namespaces are represented by single colon separators in the channel name.
+ Returns the name of the channel, underscored, without the Channel ending. If the channel is in a namespace, then the namespaces are represented by single colon separators in the channel name.
ChatChannel.channel_name # => 'chat'
Chats::AppearancesChannel.channel_name # => 'chats:appearances'
@@ -87,11 +87,11 @@
# File actioncable/lib/action_cable/channel/naming.rb, line 18
- def channel_name
- @channel_name ||= name.delete_suffix("Channel").gsub("::", ":").underscore
- end
+def channel_name
+ @channel_name ||= name.delete_suffix("Channel").gsub("::", ":").underscore
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/NonInferrableChannelError.html b/src/classes/ActionCable/Channel/NonInferrableChannelError.html
index 034c36b135..1eac81cbd2 100644
--- a/src/classes/ActionCable/Channel/NonInferrableChannelError.html
+++ b/src/classes/ActionCable/Channel/NonInferrableChannelError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 13
- def initialize(name)
- super "Unable to determine the channel to test from #{name}. " +
- "You'll need to specify it using `tests YourChannel` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the channel to test from #{name}. " +
+ "You'll need to specify it using `tests YourChannel` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/PeriodicTimers.html b/src/classes/ActionCable/Channel/PeriodicTimers.html
index 88facef675..561da6e0dd 100644
--- a/src/classes/ActionCable/Channel/PeriodicTimers.html
+++ b/src/classes/ActionCable/Channel/PeriodicTimers.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html b/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
index 233865e2e3..a694f6de16 100644
--- a/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -91,30 +91,30 @@
# File actioncable/lib/action_cable/channel/periodic_timers.rb, line 31
- def periodically(callback_or_method_name = nil, every:, &block)
- callback =
- if block_given?
- raise ArgumentError, "Pass a block or provide a callback arg, not both" if callback_or_method_name
- block
- else
- case callback_or_method_name
- when Proc
- callback_or_method_name
- when Symbol
- -> { __send__ callback_or_method_name }
- else
- raise ArgumentError, "Expected a Symbol method name or a Proc, got #{callback_or_method_name.inspect}"
- end
- end
-
- unless every.kind_of?(Numeric) && every > 0
- raise ArgumentError, "Expected every: to be a positive number of seconds, got #{every.inspect}"
- end
-
- self.periodic_timers += [[ callback, every: every ]]
- end
+def periodically(callback_or_method_name = nil, every:, &block)
+ callback =
+ if block_given?
+ raise ArgumentError, "Pass a block or provide a callback arg, not both" if callback_or_method_name
+ block
+ else
+ case callback_or_method_name
+ when Proc
+ callback_or_method_name
+ when Symbol
+ -> { __send__ callback_or_method_name }
+ else
+ raise ArgumentError, "Expected a Symbol method name or a Proc, got #{callback_or_method_name.inspect}"
+ end
+ end
+
+ unless every.kind_of?(Numeric) && every > 0
+ raise ArgumentError, "Expected every: to be a positive number of seconds, got #{every.inspect}"
+ end
+
+ self.periodic_timers += [[ callback, every: every ]]
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Streams.html b/src/classes/ActionCable/Channel/Streams.html
index 0967feb616..a2e686a3e9 100644
--- a/src/classes/ActionCable/Channel/Streams.html
+++ b/src/classes/ActionCable/Channel/Streams.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -167,14 +167,14 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 137
- def stop_all_streams
- streams.each do |broadcasting, callback|
- pubsub.unsubscribe broadcasting, callback
- logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
- end.clear
- end
+def stop_all_streams
+ streams.each do |broadcasting, callback|
+ pubsub.unsubscribe broadcasting, callback
+ logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
+ end.clear
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -205,11 +205,11 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 132
- def stop_stream_for(model)
- stop_stream_from(broadcasting_for(model))
- end
+def stop_stream_for(model)
+ stop_stream_from(broadcasting_for(model))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,15 +240,15 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 123
- def stop_stream_from(broadcasting)
- callback = streams.delete(broadcasting)
- if callback
- pubsub.unsubscribe(broadcasting, callback)
- logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
- end
- end
+def stop_stream_from(broadcasting)
+ callback = streams.delete(broadcasting)
+ if callback
+ pubsub.unsubscribe(broadcasting, callback)
+ logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -281,11 +281,11 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 118
- def stream_for(broadcastables, callback = nil, coder: nil, &block)
- stream_from(broadcasting_for(broadcastables), callback || block, coder: coder)
- end
+def stream_for(broadcastables, callback = nil, coder: nil, &block)
+ stream_from(broadcasting_for(broadcastables), callback || block, coder: coder)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -316,28 +316,28 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 90
- def stream_from(broadcasting, callback = nil, coder: nil, &block)
- return if unsubscribed?
-
- broadcasting = String(broadcasting)
-
- # Don't send the confirmation until pubsub#subscribe is successful
- defer_subscription_confirmation!
-
- # Build a stream handler by wrapping the user-provided callback with a decoder
- # or defaulting to a JSON-decoding retransmitter.
- handler = worker_pool_stream_handler(broadcasting, callback || block, coder: coder)
- streams[broadcasting] = handler
-
- connection.server.event_loop.post do
- pubsub.subscribe(broadcasting, handler, lambda do
- ensure_confirmation_sent
- logger.info "#{self.class.name} is streaming from #{broadcasting}"
- end)
- end
- end
+def stream_from(broadcasting, callback = nil, coder: nil, &block)
+ return if unsubscribed?
+
+ broadcasting = String(broadcasting)
+
+ # Don't send the confirmation until pubsub#subscribe is successful
+ defer_subscription_confirmation!
+
+ # Build a stream handler by wrapping the user-provided callback with a decoder
+ # or defaulting to a JSON-decoding retransmitter.
+ handler = worker_pool_stream_handler(broadcasting, callback || block, coder: coder)
+ streams[broadcasting] = handler
+
+ connection.server.event_loop.post do
+ pubsub.subscribe(broadcasting, handler, lambda do
+ ensure_confirmation_sent
+ logger.info "#{self.class.name} is streaming from #{broadcasting}"
+ end)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -368,15 +368,15 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 146
- def stream_or_reject_for(model)
- if model
- stream_for model
- else
- reject
- end
- end
+def stream_or_reject_for(model)
+ if model
+ stream_for model
+ else
+ reject
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase.html b/src/classes/ActionCable/Channel/TestCase.html
index 08fb28c0cf..6317ff44d0 100644
--- a/src/classes/ActionCable/Channel/TestCase.html
+++ b/src/classes/ActionCable/Channel/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior.html b/src/classes/ActionCable/Channel/TestCase/Behavior.html
index b5f3a5cbb7..5a8ea0fd78 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -196,11 +196,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 282
- def assert_broadcast_on(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcast_on(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -231,11 +231,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 278
- def assert_broadcasts(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcasts(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,11 +272,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 326
- def assert_has_no_stream(stream)
- assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
- end
+def assert_has_no_stream(stream)
+ assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -313,11 +313,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 337
- def assert_has_no_stream_for(object)
- assert_has_no_stream(broadcasting_for(object))
- end
+def assert_has_no_stream_for(object)
+ assert_has_no_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -354,11 +354,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 304
- def assert_has_stream(stream)
- assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
- end
+def assert_has_stream(stream)
+ assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -395,11 +395,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 315
- def assert_has_stream_for(object)
- assert_has_stream(broadcasting_for(object))
- end
+def assert_has_stream_for(object)
+ assert_has_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -436,11 +436,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 293
- def assert_no_streams
- assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
- end
+def assert_no_streams
+ assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -473,12 +473,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 266
- def perform(action, data = {})
- check_subscribed!
- subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
- end
+def perform(action, data = {})
+ check_subscribed!
+ subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -516,11 +516,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 243
- def stub_connection(identifiers = {})
- @connection = ConnectionStub.new(identifiers)
- end
+def stub_connection(identifiers = {})
+ @connection = ConnectionStub.new(identifiers)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -551,15 +551,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 249
- def subscribe(params = {})
- @connection ||= stub_connection
- @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
- @subscription.singleton_class.include(ChannelStub)
- @subscription.subscribe_to_channel
- @subscription
- end
+def subscribe(params = {})
+ @connection ||= stub_connection
+ @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
+ @subscription.singleton_class.include(ChannelStub)
+ @subscription.subscribe_to_channel
+ @subscription
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -590,12 +590,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 272
- def transmissions
- # Return only directly sent message (via #transmit)
- connection.transmissions.filter_map { |data| data["message"] }
- end
+def transmissions
+ # Return only directly sent message (via #transmit)
+ connection.transmissions.filter_map { |data| data["message"] }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -626,12 +626,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 258
- def unsubscribe
- check_subscribed!
- subscription.unsubscribe_from_channel
- end
+def unsubscribe
+ check_subscribed!
+ subscription.unsubscribe_from_channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
index 48ea87f130..57efb4cdac 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 219
- def channel_class
- if channel = self._channel_class
- channel
- else
- tests determine_default_channel(name)
- end
- end
+def channel_class
+ if channel = self._channel_class
+ channel
+ else
+ tests determine_default_channel(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 227
- def determine_default_channel(name)
- channel = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Channel::Base
- end
- raise NonInferrableChannelError.new(name) if channel.nil?
- channel
- end
+def determine_default_channel(name)
+ channel = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Channel::Base
+ end
+ raise NonInferrableChannelError.new(name) if channel.nil?
+ channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 208
- def tests(channel)
- case channel
- when String, Symbol
- self._channel_class = channel.to_s.camelize.constantize
- when Module
- self._channel_class = channel
- else
- raise NonInferrableChannelError.new(channel)
- end
- end
+def tests(channel)
+ case channel
+ when String, Symbol
+ self._channel_class = channel.to_s.camelize.constantize
+ when Module
+ self._channel_class = channel
+ else
+ raise NonInferrableChannelError.new(channel)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection.html b/src/classes/ActionCable/Connection.html
index f832214f0e..7889c75284 100644
--- a/src/classes/ActionCable/Connection.html
+++ b/src/classes/ActionCable/Connection.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Assertions.html b/src/classes/ActionCable/Connection/Assertions.html
index 933ea80e4c..6b10ec5528 100644
--- a/src/classes/ActionCable/Connection/Assertions.html
+++ b/src/classes/ActionCable/Connection/Assertions.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 28
- def assert_reject_connection(&block)
- assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
- end
+def assert_reject_connection(&block)
+ assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization.html b/src/classes/ActionCable/Connection/Authorization.html
index feb855aa9e..baf85a37b3 100644
--- a/src/classes/ActionCable/Connection/Authorization.html
+++ b/src/classes/ActionCable/Connection/Authorization.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -97,12 +97,12 @@
# File actioncable/lib/action_cable/connection/authorization.rb, line 12
- def reject_unauthorized_connection
- logger.error "An unauthorized connection attempt was rejected"
- raise UnauthorizedError
- end
+def reject_unauthorized_connection
+ logger.error "An unauthorized connection attempt was rejected"
+ raise UnauthorizedError
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
index b63b282b0b..ff36299a28 100644
--- a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
+++ b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/Base.html b/src/classes/ActionCable/Connection/Base.html
index 36a2f1e1bb..ea0d62911f 100644
--- a/src/classes/ActionCable/Connection/Base.html
+++ b/src/classes/ActionCable/Connection/Base.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -255,21 +255,21 @@
# File actioncable/lib/action_cable/connection/base.rb, line 67
- def initialize(server, env, coder: ActiveSupport::JSON)
- @server, @env, @coder = server, env, coder
+def initialize(server, env, coder: ActiveSupport::JSON)
+ @server, @env, @coder = server, env, coder
- @worker_pool = server.worker_pool
- @logger = new_tagged_logger
+ @worker_pool = server.worker_pool
+ @logger = new_tagged_logger
- @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
+ @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
- @_internal_subscriptions = nil
- @started_at = Time.now
- end
+ @_internal_subscriptions = nil
+ @started_at = Time.now
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -304,11 +304,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 147
- def beat
- transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
- end
+def beat
+ transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -339,16 +339,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 120
- def close(reason: nil, reconnect: true)
- transmit(
- type: ActionCable::INTERNAL[:message_types][:disconnect],
- reason: reason,
- reconnect: reconnect
- )
- websocket.close
- end
+def close(reason: nil, reconnect: true)
+ transmit(
+ type: ActionCable::INTERNAL[:message_types][:disconnect],
+ reason: reason,
+ reconnect: reconnect
+ )
+ websocket.close
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -379,13 +379,13 @@
# File actioncable/lib/action_cable/connection/base.rb, line 109
- def handle_channel_command(payload)
- run_callbacks :command do
- subscriptions.execute_command payload
- end
- end
+def handle_channel_command(payload)
+ run_callbacks :command do
+ subscriptions.execute_command payload
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -416,11 +416,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 131
- def send_async(method, *arguments)
- worker_pool.async_invoke(self, method, *arguments)
- end
+def send_async(method, *arguments)
+ worker_pool.async_invoke(self, method, *arguments)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -451,16 +451,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 138
- def statistics
- {
- identifier: connection_identifier,
- started_at: @started_at,
- subscriptions: subscriptions.identifiers,
- request_id: @env["action_dispatch.request_id"]
- }
- end
+def statistics
+ {
+ identifier: connection_identifier,
+ started_at: @started_at,
+ subscriptions: subscriptions.identifiers,
+ request_id: @env["action_dispatch.request_id"]
+ }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -494,11 +494,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 187
- def cookies # :doc:
- request.cookie_jar
- end
+def cookies # :doc:
+ request.cookie_jar
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -529,14 +529,14 @@
# File actioncable/lib/action_cable/connection/base.rb, line 178
- def request # :doc:
- @request ||= begin
- environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
- ActionDispatch::Request.new(environment || env)
- end
- end
+def request # :doc:
+ @request ||= begin
+ environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
+ ActionDispatch::Request.new(environment || env)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Callbacks.html b/src/classes/ActionCable/Connection/Callbacks.html
index 818958bf81..d6504ca284 100644
--- a/src/classes/ActionCable/Connection/Callbacks.html
+++ b/src/classes/ActionCable/Connection/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
index 933056a029..6376d7195b 100644
--- a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,11 +90,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 47
- def after_command(*methods, &block)
- set_callback(:command, :after, *methods, &block)
- end
+def after_command(*methods, &block)
+ set_callback(:command, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -125,11 +125,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 51
- def around_command(*methods, &block)
- set_callback(:command, :around, *methods, &block)
- end
+def around_command(*methods, &block)
+ set_callback(:command, :around, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -160,11 +160,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 43
- def before_command(*methods, &block)
- set_callback(:command, :before, *methods, &block)
- end
+def before_command(*methods, &block)
+ set_callback(:command, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification.html b/src/classes/ActionCable/Connection/Identification.html
index f3dcea9bfc..063ca88999 100644
--- a/src/classes/ActionCable/Connection/Identification.html
+++ b/src/classes/ActionCable/Connection/Identification.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,15 +95,15 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 29
- def connection_identifier
- unless defined? @connection_identifier
- @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
- end
+def connection_identifier
+ unless defined? @connection_identifier
+ @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
+ end
- @connection_identifier
- end
+ @connection_identifier
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification/ClassMethods.html b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
index 324ded31f5..a3395ef8a3 100644
--- a/src/classes/ActionCable/Connection/Identification/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -84,12 +84,12 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 21
- def identified_by(*identifiers)
- Array(identifiers).each { |identifier| attr_accessor identifier }
- self.identifiers += identifiers
- end
+def identified_by(*identifiers)
+ Array(identifiers).each { |identifier| attr_accessor identifier }
+ self.identifiers += identifiers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/InternalChannel.html b/src/classes/ActionCable/Connection/InternalChannel.html
index 9b0144f690..cfdccceaf4 100644
--- a/src/classes/ActionCable/Connection/InternalChannel.html
+++ b/src/classes/ActionCable/Connection/InternalChannel.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
index 7167904452..bf0c696d62 100644
--- a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
+++ b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 15
- def initialize(name)
- super "Unable to determine the connection to test from #{name}. " +
- "You'll need to specify it using `tests YourConnection` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the connection to test from #{name}. " +
+ "You'll need to specify it using `tests YourConnection` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/StreamEventLoop.html b/src/classes/ActionCable/Connection/StreamEventLoop.html
index 2b71a213e3..f7c49354ef 100644
--- a/src/classes/ActionCable/Connection/StreamEventLoop.html
+++ b/src/classes/ActionCable/Connection/StreamEventLoop.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -111,16 +111,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 10
- def initialize
- @nio = @executor = @thread = nil
- @map = {}
- @stopping = false
- @todo = Queue.new
-
- @spawn_mutex = Mutex.new
- end
+def initialize
+ @nio = @executor = @thread = nil
+ @map = {}
+ @stopping = false
+ @todo = Queue.new
+
+ @spawn_mutex = Mutex.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -155,15 +155,15 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 30
- def attach(io, stream)
- @todo << lambda do
- @map[io] = @nio.register(io, :r)
- @map[io].value = stream
- end
- wakeup
- end
+def attach(io, stream)
+ @todo << lambda do
+ @map[io] = @nio.register(io, :r)
+ @map[io].value = stream
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -194,16 +194,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 38
- def detach(io, stream)
- @todo << lambda do
- @nio.deregister io
- @map.delete io
- io.close
- end
- wakeup
- end
+def detach(io, stream)
+ @todo << lambda do
+ @nio.deregister io
+ @map.delete io
+ io.close
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -234,14 +234,14 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 23
- def post(task = nil, &block)
- task ||= block
+def post(task = nil, &block)
+ task ||= block
- spawn
- @executor << task
- end
+ spawn
+ @executor << task
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,12 +272,12 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 56
- def stop
- @stopping = true
- wakeup if @nio
- end
+def stop
+ @stopping = true
+ wakeup if @nio
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -308,11 +308,11 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 19
- def timer(interval, &block)
- Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
- end
+def timer(interval, &block)
+ Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -343,16 +343,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 47
- def writes_pending(io)
- @todo << lambda do
- if monitor = @map[io]
- monitor.interests = :rw
- end
- end
- wakeup
- end
+def writes_pending(io)
+ @todo << lambda do
+ if monitor = @map[io]
+ monitor.interests = :rw
+ end
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
index f4d5cacc63..99731855fb 100644
--- a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
+++ b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -121,12 +121,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 16
- def initialize(logger, tags:)
- @logger = logger
- @tags = tags.flatten
- end
+def initialize(logger, tags:)
+ @logger = logger
+ @tags = tags.flatten
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -161,12 +161,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 21
- def add_tags(*tags)
- @tags += tags.flatten
- @tags = @tags.uniq
- end
+def add_tags(*tags)
+ @tags += tags.flatten
+ @tags = @tags.uniq
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -197,16 +197,16 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 26
- def tag(logger, &block)
- if logger.respond_to?(:tagged)
- current_tags = tags - logger.formatter.current_tags
- logger.tagged(*current_tags, &block)
- else
- yield
- end
- end
+def tag(logger, &block)
+ if logger.respond_to?(:tagged)
+ current_tags = tags - logger.formatter.current_tags
+ logger.tagged(*current_tags, &block)
+ else
+ yield
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,11 +240,11 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 42
- def log(type, message, &block) # :doc:
- tag(@logger) { @logger.send type, message, &block }
- end
+def log(type, message, &block) # :doc:
+ tag(@logger) { @logger.send type, message, &block }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase.html b/src/classes/ActionCable/Connection/TestCase.html
index 948378e491..39bc5cb056 100644
--- a/src/classes/ActionCable/Connection/TestCase.html
+++ b/src/classes/ActionCable/Connection/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior.html b/src/classes/ActionCable/Connection/TestCase/Behavior.html
index b87870becd..4ee0debbea 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -163,19 +163,19 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 192
- def connect(path = ActionCable.server.config.mount_path, **request_params)
- path ||= DEFAULT_PATH
+def connect(path = ActionCable.server.config.mount_path, **request_params)
+ path ||= DEFAULT_PATH
- connection = self.class.connection_class.allocate
- connection.singleton_class.include(TestConnection)
- connection.send(:initialize, build_test_request(path, **request_params))
- connection.connect if connection.respond_to?(:connect)
+ connection = self.class.connection_class.allocate
+ connection.singleton_class.include(TestConnection)
+ connection.send(:initialize, build_test_request(path, **request_params))
+ connection.connect if connection.respond_to?(:connect)
- # Only set instance variable if connected successfully
- @connection = connection
- end
+ # Only set instance variable if connected successfully
+ @connection = connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -206,11 +206,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 212
- def cookies
- @cookie_jar ||= TestCookieJar.new
- end
+def cookies
+ @cookie_jar ||= TestCookieJar.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -241,14 +241,14 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 205
- def disconnect
- raise "Must be connected!" if connection.nil?
+def disconnect
+ raise "Must be connected!" if connection.nil?
- connection.disconnect if connection.respond_to?(:disconnect)
- @connection = nil
- end
+ connection.disconnect if connection.respond_to?(:disconnect)
+ @connection = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
index 63444f4b27..99fc0e3f6f 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 167
- def connection_class
- if connection = self._connection_class
- connection
- else
- tests determine_default_connection(name)
- end
- end
+def connection_class
+ if connection = self._connection_class
+ connection
+ else
+ tests determine_default_connection(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 175
- def determine_default_connection(name)
- connection = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Connection::Base
- end
- raise NonInferrableConnectionError.new(name) if connection.nil?
- connection
- end
+def determine_default_connection(name)
+ connection = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Connection::Base
+ end
+ raise NonInferrableConnectionError.new(name) if connection.nil?
+ connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actionpack/lib/abstract_controller/base.rb, line 39
- attr_internal :response_body
+attr_internal :response_body
+ Ruby on Rails 8.1.0.rc1
@@ -127,11 +127,11 @@
# File actionpack/lib/abstract_controller/caching.rb, line 57
- def view_cache_dependencies
- self.class._view_cache_dependencies.filter_map { |dep| instance_exec(&dep) }
- end
+def view_cache_dependencies
+ self.class._view_cache_dependencies.filter_map { |dep| instance_exec(&dep) }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -165,15 +165,15 @@
# File actionpack/lib/abstract_controller/caching.rb, line 63
- def cache(key, options = {}, &block) # :doc:
- if cache_configured?
- cache_store.fetch(ActiveSupport::Cache.expand_cache_key(key, :controller), options, &block)
- else
- yield
- end
- end
+def cache(key, options = {}, &block) # :doc:
+ if cache_configured?
+ cache_store.fetch(ActiveSupport::Cache.expand_cache_key(key, :controller), options, &block)
+ else
+ yield
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Caching/ClassMethods.html b/src/classes/AbstractController/Caching/ClassMethods.html
index a5c5346161..769e43a1d0 100644
--- a/src/classes/AbstractController/Caching/ClassMethods.html
+++ b/src/classes/AbstractController/Caching/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -82,11 +82,11 @@
# File actionpack/lib/abstract_controller/caching.rb, line 52
- def view_cache_dependency(&dependency)
- self._view_cache_dependencies += [dependency]
- end
+def view_cache_dependency(&dependency)
+ self._view_cache_dependencies += [dependency]
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Caching/ConfigMethods.html b/src/classes/AbstractController/Caching/ConfigMethods.html
index 32afaceaa6..9b5ab3b1d2 100644
--- a/src/classes/AbstractController/Caching/ConfigMethods.html
+++ b/src/classes/AbstractController/Caching/ConfigMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actionpack/lib/abstract_controller/caching.rb, line 15
- def cache_store
- config.cache_store
- end
+def cache_store
+ config.cache_store
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -121,11 +121,11 @@
# File actionpack/lib/abstract_controller/caching.rb, line 19
- def cache_store=(store)
- config.cache_store = ActiveSupport::Cache.lookup_store(*store)
- end
+def cache_store=(store)
+ config.cache_store = ActiveSupport::Cache.lookup_store(*store)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Caching/Fragments.html b/src/classes/AbstractController/Caching/Fragments.html
index a121e2e7a5..c3adf29074 100644
--- a/src/classes/AbstractController/Caching/Fragments.html
+++ b/src/classes/AbstractController/Caching/Fragments.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -108,7 +108,7 @@
- Given a key (as described in expire_fragment), returns a key array suitable for use in reading, writing, or expiring a cached fragment. All keys begin with :views, followed by ENV["RAILS_CACHE_ID"] or ENV["RAILS_APP_VERSION"] if set, followed by any controller-wide key prefix values, ending with the specified key value.
+ Given a key (as described in expire_fragment), returns a key array suitable for use in reading, writing, or expiring a cached fragment. All keys begin with :views, followed by ENV["RAILS_CACHE_ID"] or ENV["RAILS_APP_VERSION"] if set, followed by any controller-wide key prefix values, ending with the specified key value.
@@ -124,17 +124,17 @@
# File actionpack/lib/abstract_controller/caching/fragments.rb, line 68
- def combined_fragment_cache_key(key)
- head = self.class.fragment_cache_keys.map { |k| instance_exec(&k) }
- tail = key.is_a?(Hash) ? url_for(key).split("://").last : key
-
- cache_key = [:views, ENV["RAILS_CACHE_ID"] || ENV["RAILS_APP_VERSION"], head, tail]
- cache_key.flatten!(1)
- cache_key.compact!
- cache_key
- end
+def combined_fragment_cache_key(key)
+ head = self.class.fragment_cache_keys.map { |k| instance_exec(&k) }
+ tail = key.is_a?(Hash) ? url_for(key).split("://").last : key
+
+ cache_key = [:views, ENV["RAILS_CACHE_ID"] || ENV["RAILS_APP_VERSION"], head, tail]
+ cache_key.flatten!(1)
+ cache_key.compact!
+ cache_key
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -176,20 +176,20 @@
# File actionpack/lib/abstract_controller/caching/fragments.rb, line 131
- def expire_fragment(key, options = nil)
- return unless cache_configured?
- key = combined_fragment_cache_key(key) unless key.is_a?(Regexp)
-
- instrument_fragment_cache :expire_fragment, key do
- if key.is_a?(Regexp)
- cache_store.delete_matched(key, options)
- else
- cache_store.delete(key, options)
- end
- end
- end
+def expire_fragment(key, options = nil)
+ return unless cache_configured?
+ key = combined_fragment_cache_key(key) unless key.is_a?(Regexp)
+
+ instrument_fragment_cache :expire_fragment, key do
+ if key.is_a?(Regexp)
+ cache_store.delete_matched(key, options)
+ else
+ cache_store.delete(key, options)
+ end
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -204,7 +204,7 @@
- Check if a cached fragment from the location signified by key exists (see expire_fragment for acceptable formats).
+ Check if a cached fragment from the location signified by key exists (see expire_fragment for acceptable formats).
@@ -220,16 +220,16 @@
# File actionpack/lib/abstract_controller/caching/fragments.rb, line 105
- def fragment_exist?(key, options = nil)
- return unless cache_configured?
- key = combined_fragment_cache_key(key)
-
- instrument_fragment_cache :exist_fragment?, key do
- cache_store.exist?(key, options)
- end
- end
+def fragment_exist?(key, options = nil)
+ return unless cache_configured?
+ key = combined_fragment_cache_key(key)
+
+ instrument_fragment_cache :exist_fragment?, key do
+ cache_store.exist?(key, options)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -244,7 +244,7 @@
- Reads a cached fragment from the location signified by key (see expire_fragment for acceptable formats).
+ Reads a cached fragment from the location signified by key (see expire_fragment for acceptable formats).
@@ -260,17 +260,17 @@
# File actionpack/lib/abstract_controller/caching/fragments.rb, line 93
- def read_fragment(key, options = nil)
- return unless cache_configured?
-
- key = combined_fragment_cache_key(key)
- instrument_fragment_cache :read_fragment, key do
- result = cache_store.read(key, options)
- result.respond_to?(:html_safe) ? result.html_safe : result
- end
- end
+def read_fragment(key, options = nil)
+ return unless cache_configured?
+
+ key = combined_fragment_cache_key(key)
+ instrument_fragment_cache :read_fragment, key do
+ result = cache_store.read(key, options)
+ result.respond_to?(:html_safe) ? result.html_safe : result
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -285,7 +285,7 @@
- Writes content to the location signified by key (see expire_fragment for acceptable formats).
+ Writes content to the location signified by key (see expire_fragment for acceptable formats).
@@ -301,18 +301,18 @@
# File actionpack/lib/abstract_controller/caching/fragments.rb, line 80
- def write_fragment(key, content, options = nil)
- return content unless cache_configured?
-
- key = combined_fragment_cache_key(key)
- instrument_fragment_cache :write_fragment, key do
- content = content.to_str
- cache_store.write(key, content, options)
- end
- content
- end
+def write_fragment(key, content, options = nil)
+ return content unless cache_configured?
+
+ key = combined_fragment_cache_key(key)
+ instrument_fragment_cache :write_fragment, key do
+ content = content.to_str
+ cache_store.write(key, content, options)
+ end
+ content
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Caching/Fragments/ClassMethods.html b/src/classes/AbstractController/Caching/Fragments/ClassMethods.html
index f684e4fb8f..3fd0838698 100644
--- a/src/classes/AbstractController/Caching/Fragments/ClassMethods.html
+++ b/src/classes/AbstractController/Caching/Fragments/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -98,11 +98,11 @@
# File actionpack/lib/abstract_controller/caching/fragments.rb, line 58
- def fragment_cache_key(value = nil, &key)
- self.fragment_cache_keys += [key || -> { value }]
- end
+def fragment_cache_key(value = nil, &key)
+ self.fragment_cache_keys += [key || -> { value }]
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Callbacks.html b/src/classes/AbstractController/Callbacks.html
index 4e3a570e15..36bffc7d1d 100644
--- a/src/classes/AbstractController/Callbacks.html
+++ b/src/classes/AbstractController/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/AbstractController/Callbacks/ClassMethods.html b/src/classes/AbstractController/Callbacks/ClassMethods.html
index 8df003036a..43c33d5431 100644
--- a/src/classes/AbstractController/Callbacks/ClassMethods.html
+++ b/src/classes/AbstractController/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -148,18 +148,18 @@ Block Parameters
# File actionpack/lib/abstract_controller/callbacks.rb, line 120
- def _insert_callbacks(callbacks, block = nil)
- options = callbacks.extract_options!
- callbacks.push(block) if block
- options[:filters] = callbacks
- _normalize_callback_options(options)
- options.delete(:filters)
- callbacks.each do |callback|
- yield callback, options
- end
- end
+def _insert_callbacks(callbacks, block = nil)
+ options = callbacks.extract_options!
+ callbacks.push(block) if block
+ options[:filters] = callbacks
+ _normalize_callback_options(options)
+ options.delete(:filters)
+ callbacks.each do |callback|
+ yield callback, options
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -209,12 +209,12 @@ Options
# File actionpack/lib/abstract_controller/callbacks.rb, line 93
- def _normalize_callback_options(options)
- _normalize_callback_option(options, :only, :if)
- _normalize_callback_option(options, :except, :unless)
- end
+def _normalize_callback_options(options)
+ _normalize_callback_option(options, :only, :if)
+ _normalize_callback_option(options, :except, :unless)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,7 +240,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -264,7 +264,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -288,7 +288,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -314,7 +314,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -338,7 +338,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -364,7 +364,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -388,7 +388,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -412,7 +412,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -438,7 +438,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -462,7 +462,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -486,7 +486,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -510,7 +510,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Collector.html b/src/classes/AbstractController/Collector.html
index 346619e2c1..763d356b2e 100644
--- a/src/classes/AbstractController/Collector.html
+++ b/src/classes/AbstractController/Collector.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -81,16 +81,16 @@
# File actionpack/lib/abstract_controller/collector.rb, line 9
- def self.generate_method_for_mime(mime)
- sym = mime.is_a?(Symbol) ? mime : mime.to_sym
- class_eval <<-RUBY, __FILE__, __LINE__ + 1
- def #{sym}(...)
- custom(Mime[:#{sym}], ...)
- end
- RUBY
- end
+def self.generate_method_for_mime(mime)
+ sym = mime.is_a?(Symbol) ? mime : mime.to_sym
+ class_eval <<-RUBY, __FILE__, __LINE__ + 1
+ def #{sym}(...)
+ custom(Mime[:#{sym}], ...)
+ end
+ RUBY
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/DoubleRenderError.html b/src/classes/AbstractController/DoubleRenderError.html
index b0a21b293d..8f48bc9ef3 100644
--- a/src/classes/AbstractController/DoubleRenderError.html
+++ b/src/classes/AbstractController/DoubleRenderError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -100,11 +100,11 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 13
- def initialize(message = nil)
- super(message || DEFAULT_MESSAGE)
- end
+def initialize(message = nil)
+ super(message || DEFAULT_MESSAGE)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Helpers.html b/src/classes/AbstractController/Helpers.html
index 9fc0534a60..b4d98aa351 100644
--- a/src/classes/AbstractController/Helpers.html
+++ b/src/classes/AbstractController/Helpers.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,11 +95,11 @@
# File actionpack/lib/abstract_controller/helpers.rb, line 28
- def _helpers
- self.class._helpers
- end
+def _helpers
+ self.class._helpers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Helpers/ClassMethods.html b/src/classes/AbstractController/Helpers/ClassMethods.html
index 8900a598d0..33df6d47c3 100644
--- a/src/classes/AbstractController/Helpers/ClassMethods.html
+++ b/src/classes/AbstractController/Helpers/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -119,7 +119,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -148,14 +148,14 @@
# File actionpack/lib/abstract_controller/helpers.rb, line 218
- def _helpers_for_modification
- unless @_helpers
- self._helpers = define_helpers_module(self, superclass._helpers)
- end
- _helpers
- end
+def _helpers_for_modification
+ unless @_helpers
+ self._helpers = define_helpers_module(self, superclass._helpers)
+ end
+ _helpers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -186,16 +186,16 @@
# File actionpack/lib/abstract_controller/helpers.rb, line 209
- def clear_helpers
- inherited_helper_methods = _helper_methods
- self._helpers = Module.new
- self._helper_methods = Array.new
-
- inherited_helper_methods.each { |meth| helper_method meth }
- default_helper_module! unless anonymous?
- end
+def clear_helpers
+ inherited_helper_methods = _helper_methods
+ self._helpers = Module.new
+ self._helper_methods = Array.new
+
+ inherited_helper_methods.each { |meth| helper_method meth }
+ default_helper_module! unless anonymous?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -274,16 +274,16 @@
# File actionpack/lib/abstract_controller/helpers.rb, line 198
- def helper(*args, &block)
- modules_for_helpers(args).each do |mod|
- next if _helpers.include?(mod)
- _helpers_for_modification.include(mod)
- end
-
- _helpers_for_modification.module_eval(&block) if block_given?
- end
+def helper(*args, &block)
+ modules_for_helpers(args).each do |mod|
+ next if _helpers.include?(mod)
+ _helpers_for_modification.include(mod)
+ end
+
+ _helpers_for_modification.module_eval(&block) if block_given?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -338,26 +338,26 @@ Parameters
# File actionpack/lib/abstract_controller/helpers.rb, line 128
- def helper_method(*methods)
- methods.flatten!
- self._helper_methods += methods
-
- location = caller_locations(1, 1).first
- file, line = location.path, location.lineno
-
- methods.each do |method|
- # def current_user(...)
- # controller.send(:'current_user', ...)
- # end
- _helpers_for_modification.class_eval <<~ruby_eval.lines.map(&:strip).join(";"), file, line
- def #{method}(...)
- controller.send(:'#{method}', ...)
- end
- ruby_eval
- end
- end
+def helper_method(*methods)
+ methods.flatten!
+ self._helper_methods += methods
+
+ location = caller_locations(1, 1).first
+ file, line = location.path, location.lineno
+
+ methods.each do |method|
+ # def current_user(...)
+ # controller.send(:'current_user', ...)
+ # end
+ _helpers_for_modification.class_eval <<~ruby_eval.lines.map(&:strip).join(";"), file, line
+ def #{method}(...)
+ controller.send(:'#{method}', ...)
+ end
+ ruby_eval
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -388,15 +388,15 @@
# File actionpack/lib/abstract_controller/helpers.rb, line 68
- def inherited(klass)
- # Inherited from parent by default
- klass._helpers = nil
+def inherited(klass)
+ # Inherited from parent by default
+ klass._helpers = nil
- klass.class_eval { default_helper_module! } unless klass.anonymous?
- super
- end
+ klass.class_eval { default_helper_module! } unless klass.anonymous?
+ super
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -426,7 +426,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Railties.html b/src/classes/AbstractController/Railties.html
index ddb634ab93..e9e5642902 100644
--- a/src/classes/AbstractController/Railties.html
+++ b/src/classes/AbstractController/Railties.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/AbstractController/Railties/RoutesHelpers.html b/src/classes/AbstractController/Railties/RoutesHelpers.html
index 2b3b00e29d..b053082e31 100644
--- a/src/classes/AbstractController/Railties/RoutesHelpers.html
+++ b/src/classes/AbstractController/Railties/RoutesHelpers.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -81,21 +81,21 @@
# File actionpack/lib/abstract_controller/railties/routes_helpers.rb, line 10
- def self.with(routes, include_path_helpers = true)
- Module.new do
- define_method(:inherited) do |klass|
- super(klass)
-
- if namespace = klass.module_parents.detect { |m| m.respond_to?(:railtie_routes_url_helpers) }
- klass.include(namespace.railtie_routes_url_helpers(include_path_helpers))
- else
- klass.include(routes.url_helpers(include_path_helpers))
- end
- end
- end
- end
+def self.with(routes, include_path_helpers = true)
+ Module.new do
+ define_method(:inherited) do |klass|
+ super(klass)
+
+ if namespace = klass.module_parents.detect { |m| m.respond_to?(:railtie_routes_url_helpers) }
+ klass.include(namespace.railtie_routes_url_helpers(include_path_helpers))
+ else
+ klass.include(routes.url_helpers(include_path_helpers))
+ end
+ end
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Rendering.html b/src/classes/AbstractController/Rendering.html
index 872a9d8b43..0fa902a303 100644
--- a/src/classes/AbstractController/Rendering.html
+++ b/src/classes/AbstractController/Rendering.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -123,7 +123,7 @@
Normalizes arguments and options, and then delegates to render_to_body and sticks the result in self.response_body.
-Supported options depend on the underlying render_to_body implementation.
+Supported options depend on the underlying render_to_body implementation.
@@ -139,19 +139,19 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 26
- def render(*args, &block)
- options = _normalize_render(*args, &block)
- rendered_body = render_to_body(options)
- if options[:html]
- _set_html_content_type
- else
- _set_rendered_content_type rendered_format
- end
- _set_vary_header
- self.response_body = rendered_body
- end
+def render(*args, &block)
+ options = _normalize_render(*args, &block)
+ rendered_body = render_to_body(options)
+ if options[:html]
+ _set_html_content_type
+ else
+ _set_rendered_content_type rendered_format
+ end
+ _set_vary_header
+ self.response_body = rendered_body
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -182,10 +182,10 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 50
- def render_to_body(options = {})
- end
+def render_to_body(options = {})
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -218,12 +218,12 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 44
- def render_to_string(*args, &block)
- options = _normalize_render(*args, &block)
- render_to_body(options)
- end
+def render_to_string(*args, &block)
+ options = _normalize_render(*args, &block)
+ render_to_body(options)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -254,11 +254,11 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 54
- def rendered_format
- Mime[:text]
- end
+def rendered_format
+ Mime[:text]
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -289,15 +289,15 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 62
- def view_assigns
- variables = instance_variables - _protected_ivars
+def view_assigns
+ variables = instance_variables - _protected_ivars
- variables.each_with_object({}) do |name, hash|
- hash[name.slice(1, name.length)] = instance_variable_get(name)
- end
- end
+ variables.each_with_object({}) do |name, hash|
+ hash[name.slice(1, name.length)] = instance_variable_get(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -331,21 +331,21 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 73
- def _normalize_args(action = nil, options = {}) # :doc:
- if action.respond_to?(:permitted?)
- if action.permitted?
- action
- else
- raise ArgumentError, "render parameters are not permitted"
- end
- elsif action.is_a?(Hash)
- action
- else
- options
- end
- end
+def _normalize_args(action = nil, options = {}) # :doc:
+ if action.respond_to?(:permitted?)
+ if action.permitted?
+ action
+ else
+ raise ArgumentError, "render parameters are not permitted"
+ end
+ elsif action.is_a?(Hash)
+ action
+ else
+ options
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -376,11 +376,11 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 88
- def _normalize_options(options) # :doc:
- options
- end
+def _normalize_options(options) # :doc:
+ options
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -411,11 +411,11 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 93
- def _process_options(options) # :doc:
- options
- end
+def _process_options(options) # :doc:
+ options
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Translation.html b/src/classes/AbstractController/Translation.html
index e429818684..446e93e2cd 100644
--- a/src/classes/AbstractController/Translation.html
+++ b/src/classes/AbstractController/Translation.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -123,11 +123,11 @@
# File actionpack/lib/abstract_controller/translation.rb, line 37
- def localize(object, **options)
- I18n.localize(object, **options)
- end
+def localize(object, **options)
+ I18n.localize(object, **options)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -189,25 +189,25 @@
# File actionpack/lib/abstract_controller/translation.rb, line 17
- def translate(key, **options)
- if key&.start_with?(".")
- path = controller_path.tr("/", ".")
- defaults = [:"#{path}#{key}"]
- defaults << options[:default] if options[:default]
- options[:default] = defaults.flatten
- key = "#{path}.#{action_name}#{key}"
- end
-
- if options[:default] && ActiveSupport::HtmlSafeTranslation.html_safe_translation_key?(key)
- options[:default] = Array(options[:default]).map do |value|
- value.is_a?(String) ? ERB::Util.html_escape(value) : value
- end
- end
-
- ActiveSupport::HtmlSafeTranslation.translate(key, **options)
- end
+def translate(key, **options)
+ if key&.start_with?(".")
+ path = controller_path.tr("/", ".")
+ defaults = [:"#{path}#{key}"]
+ defaults << options[:default] if options[:default]
+ options[:default] = defaults.flatten
+ key = "#{path}.#{action_name}#{key}"
+ end
+
+ if options[:default] && ActiveSupport::HtmlSafeTranslation.html_safe_translation_key?(key)
+ options[:default] = Array(options[:default]).map do |value|
+ value.is_a?(String) ? ERB::Util.html_escape(value) : value
+ end
+ end
+
+ ActiveSupport::HtmlSafeTranslation.translate(key, **options)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/UrlFor.html b/src/classes/AbstractController/UrlFor.html
index 8d49da9f5c..bd5d0224eb 100644
--- a/src/classes/AbstractController/UrlFor.html
+++ b/src/classes/AbstractController/UrlFor.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -119,12 +119,12 @@
# File actionpack/lib/abstract_controller/url_for.rb, line 18
- def _routes
- raise "In order to use #url_for, you must include routing helpers explicitly. " \
- "For instance, `include Rails.application.routes.url_helpers`."
- end
+def _routes
+ raise "In order to use #url_for, you must include routing helpers explicitly. " \
+ "For instance, `include Rails.application.routes.url_helpers`."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/UrlFor/ClassMethods.html b/src/classes/AbstractController/UrlFor/ClassMethods.html
index cd0e5e9509..e4471b2d66 100644
--- a/src/classes/AbstractController/UrlFor/ClassMethods.html
+++ b/src/classes/AbstractController/UrlFor/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actionpack/lib/abstract_controller/url_for.rb, line 24
- def _routes
- nil
- end
+def _routes
+ nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -121,15 +121,15 @@
# File actionpack/lib/abstract_controller/url_for.rb, line 28
- def action_methods
- @action_methods ||= if _routes
- super - _routes.named_routes.helper_names
- else
- super
- end
- end
+def action_methods
+ @action_methods ||= if _routes
+ super - _routes.named_routes.helper_names
+ else
+ super
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable.html b/src/classes/ActionCable.html
index 4951b5813f..5e5f891dce 100644
--- a/src/classes/ActionCable.html
+++ b/src/classes/ActionCable.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -267,11 +267,11 @@
# File actioncable/lib/action_cable/gem_version.rb, line 7
- def self.gem_version
- Gem::Version.new VERSION::STRING
- end
+def self.gem_version
+ Gem::Version.new VERSION::STRING
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -302,11 +302,11 @@
# File actioncable/lib/action_cable/version.rb, line 9
- def self.version
- gem_version
- end
+def self.version
+ gem_version
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -341,11 +341,11 @@
# File actioncable/lib/action_cable.rb, line 77
- def server
- @server ||= ActionCable::Server::Base.new
- end
+def server
+@server ||= ActionCable::Server::Base.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel.html b/src/classes/ActionCable/Channel.html
index 38c886ddbc..06b36ff362 100644
--- a/src/classes/ActionCable/Channel.html
+++ b/src/classes/ActionCable/Channel.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Channel/Base.html b/src/classes/ActionCable/Channel/Base.html
index bc63a53315..32e2ff9b70 100644
--- a/src/classes/ActionCable/Channel/Base.html
+++ b/src/classes/ActionCable/Channel/Base.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -82,7 +82,7 @@ Action process
end
-
In this example, the subscribed and unsubscribed methods are not callable methods, as they were already declared in ActionCable::Channel::Base, but #appear and #away are. #generate_connection_token is also not callable, since it’s a private method. You’ll see that appear accepts a data parameter, which it then uses as part of its model call. #away does not, since it’s simply a trigger action.
+In this example, the subscribed and unsubscribed methods are not callable methods, as they were already declared in ActionCable::Channel::Base, but appear and away are. generate_connection_token is also not callable, since it’s a private method. You’ll see that appear accepts a data parameter, which it then uses as part of its model call. away does not, since it’s simply a trigger action.
Also note that in this example, current_user is available because it was marked as an identifying attribute on the connection. All such identifiers will automatically create a delegation method of the same name on the channel instance.
@@ -307,19 +307,22 @@ Returns
# File actioncable/lib/action_cable/channel/base.rb, line 128
- def action_methods
- @action_methods ||= begin
- # All public instance methods of this class, including ancestors
- methods = (public_instance_methods(true) -
- # Except for public instance methods of Base and its ancestors
- ActionCable::Channel::Base.public_instance_methods(true) +
- # Be sure to include shadowed public instance methods of this class
- public_instance_methods(false)).uniq.map(&:to_s)
- methods.to_set
- end
- end
-
- 🔎 See on GitHub
+def action_methods
+ @action_methods ||= begin
+ # All public instance methods of this class, including ancestors
+ methods = (public_instance_methods(true) -
+ # Except for public instance methods of Base and its ancestors
+ ActionCable::Channel::Base.public_instance_methods(true) +
+ # Be sure to include shadowed public instance methods of this class
+ public_instance_methods(false)).uniq
+
+ methods.reject! { |m| m.start_with?("_") }
+ methods.map!(&:name)
+ methods.to_set
+ end
+end
+
+ 🔎 See on GitHub
@@ -349,26 +352,26 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 155
- def initialize(connection, identifier, params = {})
- @connection = connection
- @identifier = identifier
- @params = params
+ # File actioncable/lib/action_cable/channel/base.rb, line 158
+def initialize(connection, identifier, params = {})
+ @connection = connection
+ @identifier = identifier
+ @params = params
- # When a channel is streaming via pubsub, we want to delay the confirmation
- # transmission until pubsub subscription is confirmed.
- #
- # The counter starts at 1 because it's awaiting a call to #subscribe_to_channel
- @defer_subscription_confirmation_counter = Concurrent::AtomicFixnum.new(1)
+ # When a channel is streaming via pubsub, we want to delay the confirmation
+ # transmission until pubsub subscription is confirmed.
+ #
+ # The counter starts at 1 because it's awaiting a call to #subscribe_to_channel
+ @defer_subscription_confirmation_counter = Concurrent::AtomicFixnum.new(1)
- @reject_subscription = nil
- @subscription_confirmation_sent = nil
- @unsubscribed = false
+ @reject_subscription = nil
+ @subscription_confirmation_sent = nil
+ @unsubscribed = false
- delegate_connection_identifiers
- end
+ delegate_connection_identifiers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -401,12 +404,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 144
- def clear_action_methods! # :doc:
- @action_methods = nil
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 147
+def clear_action_methods! # :doc:
+ @action_methods = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -436,13 +439,13 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 149
- def method_added(name) # :doc:
- super
- clear_action_methods!
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 152
+def method_added(name) # :doc:
+ super
+ clear_action_methods!
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -476,21 +479,21 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 176
- def perform_action(data)
- action = extract_action(data)
+ # File actioncable/lib/action_cable/channel/base.rb, line 179
+def perform_action(data)
+ action = extract_action(data)
- if processable_action?(action)
- payload = { channel_class: self.class.name, action: action, data: data }
- ActiveSupport::Notifications.instrument("perform_action.action_cable", payload) do
- dispatch_action(action, data)
- end
- else
- logger.error "Unable to process #{action_signature(action, data)}"
- end
- end
+ if processable_action?(action)
+ payload = { channel_class: self.class.name, action: action, data: data }
+ ActiveSupport::Notifications.instrument("perform_action.action_cable", payload) do
+ dispatch_action(action, data)
+ end
+ else
+ logger.error "Unable to process #{action_signature(action, data)}"
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -520,17 +523,17 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 191
- def subscribe_to_channel
- run_callbacks :subscribe do
- subscribed
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 194
+def subscribe_to_channel
+ run_callbacks :subscribe do
+ subscribed
+ end
- reject_subscription if subscription_rejected?
- ensure_confirmation_sent
- end
+ reject_subscription if subscription_rejected?
+ ensure_confirmation_sent
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -563,12 +566,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 250
- def defer_subscription_confirmation! # :doc:
- @defer_subscription_confirmation_counter.increment
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 253
+def defer_subscription_confirmation! # :doc:
+ @defer_subscription_confirmation_counter.increment
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -598,12 +601,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 254
- def defer_subscription_confirmation? # :doc:
- @defer_subscription_confirmation_counter.value > 0
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 257
+def defer_subscription_confirmation? # :doc:
+ @defer_subscription_confirmation_counter.value > 0
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -633,14 +636,14 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 244
- def ensure_confirmation_sent # :doc:
- return if subscription_rejected?
- @defer_subscription_confirmation_counter.decrement
- transmit_subscription_confirmation unless defer_subscription_confirmation?
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 247
+def ensure_confirmation_sent # :doc:
+ return if subscription_rejected?
+ @defer_subscription_confirmation_counter.decrement
+ transmit_subscription_confirmation unless defer_subscription_confirmation?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -670,12 +673,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 262
- def reject # :doc:
- @reject_subscription = true
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 265
+def reject # :doc:
+ @reject_subscription = true
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -705,12 +708,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 218
- def subscribed # :doc:
- # Override in subclasses
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 221
+def subscribed # :doc:
+ # Override in subclasses
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -740,12 +743,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 258
- def subscription_confirmation_sent? # :doc:
- @subscription_confirmation_sent
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 261
+def subscription_confirmation_sent? # :doc:
+ @subscription_confirmation_sent
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -775,12 +778,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 266
- def subscription_rejected? # :doc:
- @reject_subscription
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 269
+def subscription_rejected? # :doc:
+ @reject_subscription
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -810,21 +813,21 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 231
- def transmit(data, via: nil) # :doc:
- logger.debug do
- status = "#{self.class.name} transmitting #{data.inspect.truncate(300)}"
- status += " (via #{via})" if via
- status
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 234
+def transmit(data, via: nil) # :doc:
+ logger.debug do
+ status = "#{self.class.name} transmitting #{data.inspect.truncate(300)}"
+ status += " (via #{via})" if via
+ status
+ end
- payload = { channel_class: self.class.name, data: data, via: via }
- ActiveSupport::Notifications.instrument("transmit.action_cable", payload) do
- connection.transmit identifier: @identifier, message: data
- end
- end
+ payload = { channel_class: self.class.name, data: data, via: via }
+ ActiveSupport::Notifications.instrument("transmit.action_cable", payload) do
+ connection.transmit identifier: @identifier, message: data
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -854,12 +857,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 224
- def unsubscribed # :doc:
- # Override in subclasses
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 227
+def unsubscribed # :doc:
+ # Override in subclasses
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Broadcasting.html b/src/classes/ActionCable/Channel/Broadcasting.html
index bb71b89445..7fecc3f6b8 100644
--- a/src/classes/ActionCable/Channel/Broadcasting.html
+++ b/src/classes/ActionCable/Channel/Broadcasting.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -99,11 +99,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 45
- def broadcast_to(model, message)
- self.class.broadcast_to(model, message)
- end
+def broadcast_to(model, message)
+ self.class.broadcast_to(model, message)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -134,11 +134,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 41
- def broadcasting_for(model)
- self.class.broadcasting_for(model)
- end
+def broadcasting_for(model)
+ self.class.broadcasting_for(model)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html b/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
index 684bccb1ab..432bb5d74f 100644
--- a/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 14
- def broadcast_to(broadcastables, message)
- ActionCable.server.broadcast(broadcasting_for(broadcastables), message)
- end
+def broadcast_to(broadcastables, message)
+ ActionCable.server.broadcast(broadcasting_for(broadcastables), message)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -126,11 +126,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 24
- def broadcasting_for(broadcastables)
- serialize_broadcasting([ channel_name ] + Array(broadcastables))
- end
+def broadcasting_for(broadcastables)
+ serialize_broadcasting([ channel_name ] + Array(broadcastables))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Callbacks.html b/src/classes/ActionCable/Channel/Callbacks.html
index 076bdbc8fa..64985186c3 100644
--- a/src/classes/ActionCable/Channel/Callbacks.html
+++ b/src/classes/ActionCable/Channel/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html b/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
index 6ee4317311..7949b5fdf6 100644
--- a/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -111,11 +111,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 60
- def after_subscribe(*methods, &block)
- set_callback(:subscribe, :after, *methods, &block)
- end
+def after_subscribe(*methods, &block)
+ set_callback(:subscribe, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -150,11 +150,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 69
- def after_unsubscribe(*methods, &block)
- set_callback(:unsubscribe, :after, *methods, &block)
- end
+def after_unsubscribe(*methods, &block)
+ set_callback(:unsubscribe, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -185,11 +185,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 48
- def before_subscribe(*methods, &block)
- set_callback(:subscribe, :before, *methods, &block)
- end
+def before_subscribe(*methods, &block)
+ set_callback(:subscribe, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -220,11 +220,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 65
- def before_unsubscribe(*methods, &block)
- set_callback(:unsubscribe, :before, *methods, &block)
- end
+def before_unsubscribe(*methods, &block)
+ set_callback(:unsubscribe, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/ChannelStub.html b/src/classes/ActionCable/Channel/ChannelStub.html
index 9db98daac2..d004896dc5 100644
--- a/src/classes/ActionCable/Channel/ChannelStub.html
+++ b/src/classes/ActionCable/Channel/ChannelStub.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -25,7 +25,7 @@
Action Cable Channel Stub
-
Stub stream_from to track streams for the channel. Add public aliases for subscription_confirmation_sent? and subscription_rejected?.
+Stub stream_from to track streams for the channel. Add public aliases for subscription_confirmation_sent? and subscription_rejected?.
@@ -114,11 +114,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 25
- def confirmed?
- subscription_confirmation_sent?
- end
+def confirmed?
+ subscription_confirmation_sent?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -149,11 +149,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 29
- def rejected?
- subscription_rejected?
- end
+def rejected?
+ subscription_rejected?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -188,9 +188,9 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 46
- def start_periodic_timers; end
+def start_periodic_timers; end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -221,11 +221,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 37
- def stop_all_streams
- @_streams = []
- end
+def stop_all_streams
+ @_streams = []
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -281,11 +281,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 33
- def stream_from(broadcasting, *)
- streams << broadcasting
- end
+def stream_from(broadcasting, *)
+ streams << broadcasting
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -316,11 +316,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 41
- def streams
- @_streams ||= []
- end
+def streams
+ @_streams ||= []
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/ConnectionStub.html b/src/classes/ActionCable/Channel/ConnectionStub.html
index 62c52b567f..0fdc0d8690 100644
--- a/src/classes/ActionCable/Channel/ConnectionStub.html
+++ b/src/classes/ActionCable/Channel/ConnectionStub.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -141,20 +141,20 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 55
- def initialize(identifiers = {})
- @server = ActionCable.server
- @transmissions = []
-
- identifiers.each do |identifier, val|
- define_singleton_method(identifier) { val }
- end
-
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @identifiers = identifiers.keys
- @logger = ActiveSupport::TaggedLogging.new ActiveSupport::Logger.new(StringIO.new)
- end
+def initialize(identifiers = {})
+ @server = ActionCable.server
+ @transmissions = []
+
+ identifiers.each do |identifier, val|
+ define_singleton_method(identifier) { val }
+ end
+
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @identifiers = identifiers.keys
+ @logger = ActiveSupport::TaggedLogging.new ActiveSupport::Logger.new(StringIO.new)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -189,11 +189,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 72
- def connection_identifier
- @connection_identifier ||= connection_gid(identifiers.filter_map { |id| send(id.to_sym) if id })
- end
+def connection_identifier
+ @connection_identifier ||= connection_gid(identifiers.filter_map { |id| send(id.to_sym) if id })
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -224,11 +224,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 68
- def transmit(cable_message)
- transmissions << cable_message.with_indifferent_access
- end
+def transmit(cable_message)
+ transmissions << cable_message.with_indifferent_access
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Naming.html b/src/classes/ActionCable/Channel/Naming.html
index 84bfc0232c..db2aa18589 100644
--- a/src/classes/ActionCable/Channel/Naming.html
+++ b/src/classes/ActionCable/Channel/Naming.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,11 +95,11 @@
# File actioncable/lib/action_cable/channel/naming.rb, line 23
- def channel_name
- self.class.channel_name
- end
+def channel_name
+ self.class.channel_name
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Naming/ClassMethods.html b/src/classes/ActionCable/Channel/Naming/ClassMethods.html
index b847309f12..e99c0744a7 100644
--- a/src/classes/ActionCable/Channel/Naming/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Naming/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -66,7 +66,7 @@
- Returns the name of the channel, underscored, without the Channel ending. If the channel is in a namespace, then the namespaces are represented by single colon separators in the channel name.
+ Returns the name of the channel, underscored, without the Channel ending. If the channel is in a namespace, then the namespaces are represented by single colon separators in the channel name.
ChatChannel.channel_name # => 'chat'
Chats::AppearancesChannel.channel_name # => 'chats:appearances'
@@ -87,11 +87,11 @@
# File actioncable/lib/action_cable/channel/naming.rb, line 18
- def channel_name
- @channel_name ||= name.delete_suffix("Channel").gsub("::", ":").underscore
- end
+def channel_name
+ @channel_name ||= name.delete_suffix("Channel").gsub("::", ":").underscore
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/NonInferrableChannelError.html b/src/classes/ActionCable/Channel/NonInferrableChannelError.html
index 034c36b135..1eac81cbd2 100644
--- a/src/classes/ActionCable/Channel/NonInferrableChannelError.html
+++ b/src/classes/ActionCable/Channel/NonInferrableChannelError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 13
- def initialize(name)
- super "Unable to determine the channel to test from #{name}. " +
- "You'll need to specify it using `tests YourChannel` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the channel to test from #{name}. " +
+ "You'll need to specify it using `tests YourChannel` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/PeriodicTimers.html b/src/classes/ActionCable/Channel/PeriodicTimers.html
index 88facef675..561da6e0dd 100644
--- a/src/classes/ActionCable/Channel/PeriodicTimers.html
+++ b/src/classes/ActionCable/Channel/PeriodicTimers.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html b/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
index 233865e2e3..a694f6de16 100644
--- a/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -91,30 +91,30 @@
# File actioncable/lib/action_cable/channel/periodic_timers.rb, line 31
- def periodically(callback_or_method_name = nil, every:, &block)
- callback =
- if block_given?
- raise ArgumentError, "Pass a block or provide a callback arg, not both" if callback_or_method_name
- block
- else
- case callback_or_method_name
- when Proc
- callback_or_method_name
- when Symbol
- -> { __send__ callback_or_method_name }
- else
- raise ArgumentError, "Expected a Symbol method name or a Proc, got #{callback_or_method_name.inspect}"
- end
- end
-
- unless every.kind_of?(Numeric) && every > 0
- raise ArgumentError, "Expected every: to be a positive number of seconds, got #{every.inspect}"
- end
-
- self.periodic_timers += [[ callback, every: every ]]
- end
+def periodically(callback_or_method_name = nil, every:, &block)
+ callback =
+ if block_given?
+ raise ArgumentError, "Pass a block or provide a callback arg, not both" if callback_or_method_name
+ block
+ else
+ case callback_or_method_name
+ when Proc
+ callback_or_method_name
+ when Symbol
+ -> { __send__ callback_or_method_name }
+ else
+ raise ArgumentError, "Expected a Symbol method name or a Proc, got #{callback_or_method_name.inspect}"
+ end
+ end
+
+ unless every.kind_of?(Numeric) && every > 0
+ raise ArgumentError, "Expected every: to be a positive number of seconds, got #{every.inspect}"
+ end
+
+ self.periodic_timers += [[ callback, every: every ]]
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Streams.html b/src/classes/ActionCable/Channel/Streams.html
index 0967feb616..a2e686a3e9 100644
--- a/src/classes/ActionCable/Channel/Streams.html
+++ b/src/classes/ActionCable/Channel/Streams.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -167,14 +167,14 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 137
- def stop_all_streams
- streams.each do |broadcasting, callback|
- pubsub.unsubscribe broadcasting, callback
- logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
- end.clear
- end
+def stop_all_streams
+ streams.each do |broadcasting, callback|
+ pubsub.unsubscribe broadcasting, callback
+ logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
+ end.clear
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -205,11 +205,11 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 132
- def stop_stream_for(model)
- stop_stream_from(broadcasting_for(model))
- end
+def stop_stream_for(model)
+ stop_stream_from(broadcasting_for(model))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,15 +240,15 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 123
- def stop_stream_from(broadcasting)
- callback = streams.delete(broadcasting)
- if callback
- pubsub.unsubscribe(broadcasting, callback)
- logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
- end
- end
+def stop_stream_from(broadcasting)
+ callback = streams.delete(broadcasting)
+ if callback
+ pubsub.unsubscribe(broadcasting, callback)
+ logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -281,11 +281,11 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 118
- def stream_for(broadcastables, callback = nil, coder: nil, &block)
- stream_from(broadcasting_for(broadcastables), callback || block, coder: coder)
- end
+def stream_for(broadcastables, callback = nil, coder: nil, &block)
+ stream_from(broadcasting_for(broadcastables), callback || block, coder: coder)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -316,28 +316,28 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 90
- def stream_from(broadcasting, callback = nil, coder: nil, &block)
- return if unsubscribed?
-
- broadcasting = String(broadcasting)
-
- # Don't send the confirmation until pubsub#subscribe is successful
- defer_subscription_confirmation!
-
- # Build a stream handler by wrapping the user-provided callback with a decoder
- # or defaulting to a JSON-decoding retransmitter.
- handler = worker_pool_stream_handler(broadcasting, callback || block, coder: coder)
- streams[broadcasting] = handler
-
- connection.server.event_loop.post do
- pubsub.subscribe(broadcasting, handler, lambda do
- ensure_confirmation_sent
- logger.info "#{self.class.name} is streaming from #{broadcasting}"
- end)
- end
- end
+def stream_from(broadcasting, callback = nil, coder: nil, &block)
+ return if unsubscribed?
+
+ broadcasting = String(broadcasting)
+
+ # Don't send the confirmation until pubsub#subscribe is successful
+ defer_subscription_confirmation!
+
+ # Build a stream handler by wrapping the user-provided callback with a decoder
+ # or defaulting to a JSON-decoding retransmitter.
+ handler = worker_pool_stream_handler(broadcasting, callback || block, coder: coder)
+ streams[broadcasting] = handler
+
+ connection.server.event_loop.post do
+ pubsub.subscribe(broadcasting, handler, lambda do
+ ensure_confirmation_sent
+ logger.info "#{self.class.name} is streaming from #{broadcasting}"
+ end)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -368,15 +368,15 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 146
- def stream_or_reject_for(model)
- if model
- stream_for model
- else
- reject
- end
- end
+def stream_or_reject_for(model)
+ if model
+ stream_for model
+ else
+ reject
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase.html b/src/classes/ActionCable/Channel/TestCase.html
index 08fb28c0cf..6317ff44d0 100644
--- a/src/classes/ActionCable/Channel/TestCase.html
+++ b/src/classes/ActionCable/Channel/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior.html b/src/classes/ActionCable/Channel/TestCase/Behavior.html
index b5f3a5cbb7..5a8ea0fd78 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -196,11 +196,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 282
- def assert_broadcast_on(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcast_on(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -231,11 +231,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 278
- def assert_broadcasts(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcasts(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,11 +272,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 326
- def assert_has_no_stream(stream)
- assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
- end
+def assert_has_no_stream(stream)
+ assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -313,11 +313,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 337
- def assert_has_no_stream_for(object)
- assert_has_no_stream(broadcasting_for(object))
- end
+def assert_has_no_stream_for(object)
+ assert_has_no_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -354,11 +354,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 304
- def assert_has_stream(stream)
- assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
- end
+def assert_has_stream(stream)
+ assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -395,11 +395,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 315
- def assert_has_stream_for(object)
- assert_has_stream(broadcasting_for(object))
- end
+def assert_has_stream_for(object)
+ assert_has_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -436,11 +436,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 293
- def assert_no_streams
- assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
- end
+def assert_no_streams
+ assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -473,12 +473,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 266
- def perform(action, data = {})
- check_subscribed!
- subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
- end
+def perform(action, data = {})
+ check_subscribed!
+ subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -516,11 +516,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 243
- def stub_connection(identifiers = {})
- @connection = ConnectionStub.new(identifiers)
- end
+def stub_connection(identifiers = {})
+ @connection = ConnectionStub.new(identifiers)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -551,15 +551,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 249
- def subscribe(params = {})
- @connection ||= stub_connection
- @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
- @subscription.singleton_class.include(ChannelStub)
- @subscription.subscribe_to_channel
- @subscription
- end
+def subscribe(params = {})
+ @connection ||= stub_connection
+ @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
+ @subscription.singleton_class.include(ChannelStub)
+ @subscription.subscribe_to_channel
+ @subscription
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -590,12 +590,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 272
- def transmissions
- # Return only directly sent message (via #transmit)
- connection.transmissions.filter_map { |data| data["message"] }
- end
+def transmissions
+ # Return only directly sent message (via #transmit)
+ connection.transmissions.filter_map { |data| data["message"] }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -626,12 +626,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 258
- def unsubscribe
- check_subscribed!
- subscription.unsubscribe_from_channel
- end
+def unsubscribe
+ check_subscribed!
+ subscription.unsubscribe_from_channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
index 48ea87f130..57efb4cdac 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 219
- def channel_class
- if channel = self._channel_class
- channel
- else
- tests determine_default_channel(name)
- end
- end
+def channel_class
+ if channel = self._channel_class
+ channel
+ else
+ tests determine_default_channel(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 227
- def determine_default_channel(name)
- channel = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Channel::Base
- end
- raise NonInferrableChannelError.new(name) if channel.nil?
- channel
- end
+def determine_default_channel(name)
+ channel = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Channel::Base
+ end
+ raise NonInferrableChannelError.new(name) if channel.nil?
+ channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 208
- def tests(channel)
- case channel
- when String, Symbol
- self._channel_class = channel.to_s.camelize.constantize
- when Module
- self._channel_class = channel
- else
- raise NonInferrableChannelError.new(channel)
- end
- end
+def tests(channel)
+ case channel
+ when String, Symbol
+ self._channel_class = channel.to_s.camelize.constantize
+ when Module
+ self._channel_class = channel
+ else
+ raise NonInferrableChannelError.new(channel)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection.html b/src/classes/ActionCable/Connection.html
index f832214f0e..7889c75284 100644
--- a/src/classes/ActionCable/Connection.html
+++ b/src/classes/ActionCable/Connection.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Assertions.html b/src/classes/ActionCable/Connection/Assertions.html
index 933ea80e4c..6b10ec5528 100644
--- a/src/classes/ActionCable/Connection/Assertions.html
+++ b/src/classes/ActionCable/Connection/Assertions.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 28
- def assert_reject_connection(&block)
- assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
- end
+def assert_reject_connection(&block)
+ assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization.html b/src/classes/ActionCable/Connection/Authorization.html
index feb855aa9e..baf85a37b3 100644
--- a/src/classes/ActionCable/Connection/Authorization.html
+++ b/src/classes/ActionCable/Connection/Authorization.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -97,12 +97,12 @@
# File actioncable/lib/action_cable/connection/authorization.rb, line 12
- def reject_unauthorized_connection
- logger.error "An unauthorized connection attempt was rejected"
- raise UnauthorizedError
- end
+def reject_unauthorized_connection
+ logger.error "An unauthorized connection attempt was rejected"
+ raise UnauthorizedError
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
index b63b282b0b..ff36299a28 100644
--- a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
+++ b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/Base.html b/src/classes/ActionCable/Connection/Base.html
index 36a2f1e1bb..ea0d62911f 100644
--- a/src/classes/ActionCable/Connection/Base.html
+++ b/src/classes/ActionCable/Connection/Base.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -255,21 +255,21 @@
# File actioncable/lib/action_cable/connection/base.rb, line 67
- def initialize(server, env, coder: ActiveSupport::JSON)
- @server, @env, @coder = server, env, coder
+def initialize(server, env, coder: ActiveSupport::JSON)
+ @server, @env, @coder = server, env, coder
- @worker_pool = server.worker_pool
- @logger = new_tagged_logger
+ @worker_pool = server.worker_pool
+ @logger = new_tagged_logger
- @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
+ @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
- @_internal_subscriptions = nil
- @started_at = Time.now
- end
+ @_internal_subscriptions = nil
+ @started_at = Time.now
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -304,11 +304,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 147
- def beat
- transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
- end
+def beat
+ transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -339,16 +339,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 120
- def close(reason: nil, reconnect: true)
- transmit(
- type: ActionCable::INTERNAL[:message_types][:disconnect],
- reason: reason,
- reconnect: reconnect
- )
- websocket.close
- end
+def close(reason: nil, reconnect: true)
+ transmit(
+ type: ActionCable::INTERNAL[:message_types][:disconnect],
+ reason: reason,
+ reconnect: reconnect
+ )
+ websocket.close
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -379,13 +379,13 @@
# File actioncable/lib/action_cable/connection/base.rb, line 109
- def handle_channel_command(payload)
- run_callbacks :command do
- subscriptions.execute_command payload
- end
- end
+def handle_channel_command(payload)
+ run_callbacks :command do
+ subscriptions.execute_command payload
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -416,11 +416,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 131
- def send_async(method, *arguments)
- worker_pool.async_invoke(self, method, *arguments)
- end
+def send_async(method, *arguments)
+ worker_pool.async_invoke(self, method, *arguments)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -451,16 +451,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 138
- def statistics
- {
- identifier: connection_identifier,
- started_at: @started_at,
- subscriptions: subscriptions.identifiers,
- request_id: @env["action_dispatch.request_id"]
- }
- end
+def statistics
+ {
+ identifier: connection_identifier,
+ started_at: @started_at,
+ subscriptions: subscriptions.identifiers,
+ request_id: @env["action_dispatch.request_id"]
+ }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -494,11 +494,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 187
- def cookies # :doc:
- request.cookie_jar
- end
+def cookies # :doc:
+ request.cookie_jar
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -529,14 +529,14 @@
# File actioncable/lib/action_cable/connection/base.rb, line 178
- def request # :doc:
- @request ||= begin
- environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
- ActionDispatch::Request.new(environment || env)
- end
- end
+def request # :doc:
+ @request ||= begin
+ environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
+ ActionDispatch::Request.new(environment || env)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Callbacks.html b/src/classes/ActionCable/Connection/Callbacks.html
index 818958bf81..d6504ca284 100644
--- a/src/classes/ActionCable/Connection/Callbacks.html
+++ b/src/classes/ActionCable/Connection/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
index 933056a029..6376d7195b 100644
--- a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,11 +90,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 47
- def after_command(*methods, &block)
- set_callback(:command, :after, *methods, &block)
- end
+def after_command(*methods, &block)
+ set_callback(:command, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -125,11 +125,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 51
- def around_command(*methods, &block)
- set_callback(:command, :around, *methods, &block)
- end
+def around_command(*methods, &block)
+ set_callback(:command, :around, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -160,11 +160,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 43
- def before_command(*methods, &block)
- set_callback(:command, :before, *methods, &block)
- end
+def before_command(*methods, &block)
+ set_callback(:command, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification.html b/src/classes/ActionCable/Connection/Identification.html
index f3dcea9bfc..063ca88999 100644
--- a/src/classes/ActionCable/Connection/Identification.html
+++ b/src/classes/ActionCable/Connection/Identification.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,15 +95,15 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 29
- def connection_identifier
- unless defined? @connection_identifier
- @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
- end
+def connection_identifier
+ unless defined? @connection_identifier
+ @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
+ end
- @connection_identifier
- end
+ @connection_identifier
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification/ClassMethods.html b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
index 324ded31f5..a3395ef8a3 100644
--- a/src/classes/ActionCable/Connection/Identification/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -84,12 +84,12 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 21
- def identified_by(*identifiers)
- Array(identifiers).each { |identifier| attr_accessor identifier }
- self.identifiers += identifiers
- end
+def identified_by(*identifiers)
+ Array(identifiers).each { |identifier| attr_accessor identifier }
+ self.identifiers += identifiers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/InternalChannel.html b/src/classes/ActionCable/Connection/InternalChannel.html
index 9b0144f690..cfdccceaf4 100644
--- a/src/classes/ActionCable/Connection/InternalChannel.html
+++ b/src/classes/ActionCable/Connection/InternalChannel.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
index 7167904452..bf0c696d62 100644
--- a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
+++ b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 15
- def initialize(name)
- super "Unable to determine the connection to test from #{name}. " +
- "You'll need to specify it using `tests YourConnection` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the connection to test from #{name}. " +
+ "You'll need to specify it using `tests YourConnection` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/StreamEventLoop.html b/src/classes/ActionCable/Connection/StreamEventLoop.html
index 2b71a213e3..f7c49354ef 100644
--- a/src/classes/ActionCable/Connection/StreamEventLoop.html
+++ b/src/classes/ActionCable/Connection/StreamEventLoop.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -111,16 +111,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 10
- def initialize
- @nio = @executor = @thread = nil
- @map = {}
- @stopping = false
- @todo = Queue.new
-
- @spawn_mutex = Mutex.new
- end
+def initialize
+ @nio = @executor = @thread = nil
+ @map = {}
+ @stopping = false
+ @todo = Queue.new
+
+ @spawn_mutex = Mutex.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -155,15 +155,15 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 30
- def attach(io, stream)
- @todo << lambda do
- @map[io] = @nio.register(io, :r)
- @map[io].value = stream
- end
- wakeup
- end
+def attach(io, stream)
+ @todo << lambda do
+ @map[io] = @nio.register(io, :r)
+ @map[io].value = stream
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -194,16 +194,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 38
- def detach(io, stream)
- @todo << lambda do
- @nio.deregister io
- @map.delete io
- io.close
- end
- wakeup
- end
+def detach(io, stream)
+ @todo << lambda do
+ @nio.deregister io
+ @map.delete io
+ io.close
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -234,14 +234,14 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 23
- def post(task = nil, &block)
- task ||= block
+def post(task = nil, &block)
+ task ||= block
- spawn
- @executor << task
- end
+ spawn
+ @executor << task
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,12 +272,12 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 56
- def stop
- @stopping = true
- wakeup if @nio
- end
+def stop
+ @stopping = true
+ wakeup if @nio
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -308,11 +308,11 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 19
- def timer(interval, &block)
- Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
- end
+def timer(interval, &block)
+ Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -343,16 +343,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 47
- def writes_pending(io)
- @todo << lambda do
- if monitor = @map[io]
- monitor.interests = :rw
- end
- end
- wakeup
- end
+def writes_pending(io)
+ @todo << lambda do
+ if monitor = @map[io]
+ monitor.interests = :rw
+ end
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
index f4d5cacc63..99731855fb 100644
--- a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
+++ b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -121,12 +121,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 16
- def initialize(logger, tags:)
- @logger = logger
- @tags = tags.flatten
- end
+def initialize(logger, tags:)
+ @logger = logger
+ @tags = tags.flatten
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -161,12 +161,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 21
- def add_tags(*tags)
- @tags += tags.flatten
- @tags = @tags.uniq
- end
+def add_tags(*tags)
+ @tags += tags.flatten
+ @tags = @tags.uniq
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -197,16 +197,16 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 26
- def tag(logger, &block)
- if logger.respond_to?(:tagged)
- current_tags = tags - logger.formatter.current_tags
- logger.tagged(*current_tags, &block)
- else
- yield
- end
- end
+def tag(logger, &block)
+ if logger.respond_to?(:tagged)
+ current_tags = tags - logger.formatter.current_tags
+ logger.tagged(*current_tags, &block)
+ else
+ yield
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,11 +240,11 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 42
- def log(type, message, &block) # :doc:
- tag(@logger) { @logger.send type, message, &block }
- end
+def log(type, message, &block) # :doc:
+ tag(@logger) { @logger.send type, message, &block }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase.html b/src/classes/ActionCable/Connection/TestCase.html
index 948378e491..39bc5cb056 100644
--- a/src/classes/ActionCable/Connection/TestCase.html
+++ b/src/classes/ActionCable/Connection/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior.html b/src/classes/ActionCable/Connection/TestCase/Behavior.html
index b87870becd..4ee0debbea 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -163,19 +163,19 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 192
- def connect(path = ActionCable.server.config.mount_path, **request_params)
- path ||= DEFAULT_PATH
+def connect(path = ActionCable.server.config.mount_path, **request_params)
+ path ||= DEFAULT_PATH
- connection = self.class.connection_class.allocate
- connection.singleton_class.include(TestConnection)
- connection.send(:initialize, build_test_request(path, **request_params))
- connection.connect if connection.respond_to?(:connect)
+ connection = self.class.connection_class.allocate
+ connection.singleton_class.include(TestConnection)
+ connection.send(:initialize, build_test_request(path, **request_params))
+ connection.connect if connection.respond_to?(:connect)
- # Only set instance variable if connected successfully
- @connection = connection
- end
+ # Only set instance variable if connected successfully
+ @connection = connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -206,11 +206,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 212
- def cookies
- @cookie_jar ||= TestCookieJar.new
- end
+def cookies
+ @cookie_jar ||= TestCookieJar.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -241,14 +241,14 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 205
- def disconnect
- raise "Must be connected!" if connection.nil?
+def disconnect
+ raise "Must be connected!" if connection.nil?
- connection.disconnect if connection.respond_to?(:disconnect)
- @connection = nil
- end
+ connection.disconnect if connection.respond_to?(:disconnect)
+ @connection = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
index 63444f4b27..99fc0e3f6f 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 167
- def connection_class
- if connection = self._connection_class
- connection
- else
- tests determine_default_connection(name)
- end
- end
+def connection_class
+ if connection = self._connection_class
+ connection
+ else
+ tests determine_default_connection(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 175
- def determine_default_connection(name)
- connection = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Connection::Base
- end
- raise NonInferrableConnectionError.new(name) if connection.nil?
- connection
- end
+def determine_default_connection(name)
+ connection = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Connection::Base
+ end
+ raise NonInferrableConnectionError.new(name) if connection.nil?
+ connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actionpack/lib/abstract_controller/caching.rb, line 57
- def view_cache_dependencies
- self.class._view_cache_dependencies.filter_map { |dep| instance_exec(&dep) }
- end
+def view_cache_dependencies
+ self.class._view_cache_dependencies.filter_map { |dep| instance_exec(&dep) }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -165,15 +165,15 @@
# File actionpack/lib/abstract_controller/caching.rb, line 63
- def cache(key, options = {}, &block) # :doc:
- if cache_configured?
- cache_store.fetch(ActiveSupport::Cache.expand_cache_key(key, :controller), options, &block)
- else
- yield
- end
- end
+def cache(key, options = {}, &block) # :doc:
+ if cache_configured?
+ cache_store.fetch(ActiveSupport::Cache.expand_cache_key(key, :controller), options, &block)
+ else
+ yield
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Caching/ClassMethods.html b/src/classes/AbstractController/Caching/ClassMethods.html
index a5c5346161..769e43a1d0 100644
--- a/src/classes/AbstractController/Caching/ClassMethods.html
+++ b/src/classes/AbstractController/Caching/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -82,11 +82,11 @@
# File actionpack/lib/abstract_controller/caching.rb, line 52
- def view_cache_dependency(&dependency)
- self._view_cache_dependencies += [dependency]
- end
+def view_cache_dependency(&dependency)
+ self._view_cache_dependencies += [dependency]
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Caching/ConfigMethods.html b/src/classes/AbstractController/Caching/ConfigMethods.html
index 32afaceaa6..9b5ab3b1d2 100644
--- a/src/classes/AbstractController/Caching/ConfigMethods.html
+++ b/src/classes/AbstractController/Caching/ConfigMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actionpack/lib/abstract_controller/caching.rb, line 15
- def cache_store
- config.cache_store
- end
+def cache_store
+ config.cache_store
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -121,11 +121,11 @@
# File actionpack/lib/abstract_controller/caching.rb, line 19
- def cache_store=(store)
- config.cache_store = ActiveSupport::Cache.lookup_store(*store)
- end
+def cache_store=(store)
+ config.cache_store = ActiveSupport::Cache.lookup_store(*store)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Caching/Fragments.html b/src/classes/AbstractController/Caching/Fragments.html
index a121e2e7a5..c3adf29074 100644
--- a/src/classes/AbstractController/Caching/Fragments.html
+++ b/src/classes/AbstractController/Caching/Fragments.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -108,7 +108,7 @@
- Given a key (as described in expire_fragment), returns a key array suitable for use in reading, writing, or expiring a cached fragment. All keys begin with :views, followed by ENV["RAILS_CACHE_ID"] or ENV["RAILS_APP_VERSION"] if set, followed by any controller-wide key prefix values, ending with the specified key value.
+ Given a key (as described in expire_fragment), returns a key array suitable for use in reading, writing, or expiring a cached fragment. All keys begin with :views, followed by ENV["RAILS_CACHE_ID"] or ENV["RAILS_APP_VERSION"] if set, followed by any controller-wide key prefix values, ending with the specified key value.
@@ -124,17 +124,17 @@
# File actionpack/lib/abstract_controller/caching/fragments.rb, line 68
- def combined_fragment_cache_key(key)
- head = self.class.fragment_cache_keys.map { |k| instance_exec(&k) }
- tail = key.is_a?(Hash) ? url_for(key).split("://").last : key
-
- cache_key = [:views, ENV["RAILS_CACHE_ID"] || ENV["RAILS_APP_VERSION"], head, tail]
- cache_key.flatten!(1)
- cache_key.compact!
- cache_key
- end
+def combined_fragment_cache_key(key)
+ head = self.class.fragment_cache_keys.map { |k| instance_exec(&k) }
+ tail = key.is_a?(Hash) ? url_for(key).split("://").last : key
+
+ cache_key = [:views, ENV["RAILS_CACHE_ID"] || ENV["RAILS_APP_VERSION"], head, tail]
+ cache_key.flatten!(1)
+ cache_key.compact!
+ cache_key
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -176,20 +176,20 @@
# File actionpack/lib/abstract_controller/caching/fragments.rb, line 131
- def expire_fragment(key, options = nil)
- return unless cache_configured?
- key = combined_fragment_cache_key(key) unless key.is_a?(Regexp)
-
- instrument_fragment_cache :expire_fragment, key do
- if key.is_a?(Regexp)
- cache_store.delete_matched(key, options)
- else
- cache_store.delete(key, options)
- end
- end
- end
+def expire_fragment(key, options = nil)
+ return unless cache_configured?
+ key = combined_fragment_cache_key(key) unless key.is_a?(Regexp)
+
+ instrument_fragment_cache :expire_fragment, key do
+ if key.is_a?(Regexp)
+ cache_store.delete_matched(key, options)
+ else
+ cache_store.delete(key, options)
+ end
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -204,7 +204,7 @@
- Check if a cached fragment from the location signified by key exists (see expire_fragment for acceptable formats).
+ Check if a cached fragment from the location signified by key exists (see expire_fragment for acceptable formats).
@@ -220,16 +220,16 @@
# File actionpack/lib/abstract_controller/caching/fragments.rb, line 105
- def fragment_exist?(key, options = nil)
- return unless cache_configured?
- key = combined_fragment_cache_key(key)
-
- instrument_fragment_cache :exist_fragment?, key do
- cache_store.exist?(key, options)
- end
- end
+def fragment_exist?(key, options = nil)
+ return unless cache_configured?
+ key = combined_fragment_cache_key(key)
+
+ instrument_fragment_cache :exist_fragment?, key do
+ cache_store.exist?(key, options)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -244,7 +244,7 @@
- Reads a cached fragment from the location signified by key (see expire_fragment for acceptable formats).
+ Reads a cached fragment from the location signified by key (see expire_fragment for acceptable formats).
@@ -260,17 +260,17 @@
# File actionpack/lib/abstract_controller/caching/fragments.rb, line 93
- def read_fragment(key, options = nil)
- return unless cache_configured?
-
- key = combined_fragment_cache_key(key)
- instrument_fragment_cache :read_fragment, key do
- result = cache_store.read(key, options)
- result.respond_to?(:html_safe) ? result.html_safe : result
- end
- end
+def read_fragment(key, options = nil)
+ return unless cache_configured?
+
+ key = combined_fragment_cache_key(key)
+ instrument_fragment_cache :read_fragment, key do
+ result = cache_store.read(key, options)
+ result.respond_to?(:html_safe) ? result.html_safe : result
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -285,7 +285,7 @@
- Writes content to the location signified by key (see expire_fragment for acceptable formats).
+ Writes content to the location signified by key (see expire_fragment for acceptable formats).
@@ -301,18 +301,18 @@
# File actionpack/lib/abstract_controller/caching/fragments.rb, line 80
- def write_fragment(key, content, options = nil)
- return content unless cache_configured?
-
- key = combined_fragment_cache_key(key)
- instrument_fragment_cache :write_fragment, key do
- content = content.to_str
- cache_store.write(key, content, options)
- end
- content
- end
+def write_fragment(key, content, options = nil)
+ return content unless cache_configured?
+
+ key = combined_fragment_cache_key(key)
+ instrument_fragment_cache :write_fragment, key do
+ content = content.to_str
+ cache_store.write(key, content, options)
+ end
+ content
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Caching/Fragments/ClassMethods.html b/src/classes/AbstractController/Caching/Fragments/ClassMethods.html
index f684e4fb8f..3fd0838698 100644
--- a/src/classes/AbstractController/Caching/Fragments/ClassMethods.html
+++ b/src/classes/AbstractController/Caching/Fragments/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -98,11 +98,11 @@
# File actionpack/lib/abstract_controller/caching/fragments.rb, line 58
- def fragment_cache_key(value = nil, &key)
- self.fragment_cache_keys += [key || -> { value }]
- end
+def fragment_cache_key(value = nil, &key)
+ self.fragment_cache_keys += [key || -> { value }]
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Callbacks.html b/src/classes/AbstractController/Callbacks.html
index 4e3a570e15..36bffc7d1d 100644
--- a/src/classes/AbstractController/Callbacks.html
+++ b/src/classes/AbstractController/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/AbstractController/Callbacks/ClassMethods.html b/src/classes/AbstractController/Callbacks/ClassMethods.html
index 8df003036a..43c33d5431 100644
--- a/src/classes/AbstractController/Callbacks/ClassMethods.html
+++ b/src/classes/AbstractController/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -148,18 +148,18 @@ Block Parameters
# File actionpack/lib/abstract_controller/callbacks.rb, line 120
- def _insert_callbacks(callbacks, block = nil)
- options = callbacks.extract_options!
- callbacks.push(block) if block
- options[:filters] = callbacks
- _normalize_callback_options(options)
- options.delete(:filters)
- callbacks.each do |callback|
- yield callback, options
- end
- end
+def _insert_callbacks(callbacks, block = nil)
+ options = callbacks.extract_options!
+ callbacks.push(block) if block
+ options[:filters] = callbacks
+ _normalize_callback_options(options)
+ options.delete(:filters)
+ callbacks.each do |callback|
+ yield callback, options
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -209,12 +209,12 @@ Options
# File actionpack/lib/abstract_controller/callbacks.rb, line 93
- def _normalize_callback_options(options)
- _normalize_callback_option(options, :only, :if)
- _normalize_callback_option(options, :except, :unless)
- end
+def _normalize_callback_options(options)
+ _normalize_callback_option(options, :only, :if)
+ _normalize_callback_option(options, :except, :unless)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,7 +240,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -264,7 +264,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -288,7 +288,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -314,7 +314,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -338,7 +338,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -364,7 +364,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -388,7 +388,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -412,7 +412,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -438,7 +438,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -462,7 +462,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -486,7 +486,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -510,7 +510,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Collector.html b/src/classes/AbstractController/Collector.html
index 346619e2c1..763d356b2e 100644
--- a/src/classes/AbstractController/Collector.html
+++ b/src/classes/AbstractController/Collector.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -81,16 +81,16 @@
# File actionpack/lib/abstract_controller/collector.rb, line 9
- def self.generate_method_for_mime(mime)
- sym = mime.is_a?(Symbol) ? mime : mime.to_sym
- class_eval <<-RUBY, __FILE__, __LINE__ + 1
- def #{sym}(...)
- custom(Mime[:#{sym}], ...)
- end
- RUBY
- end
+def self.generate_method_for_mime(mime)
+ sym = mime.is_a?(Symbol) ? mime : mime.to_sym
+ class_eval <<-RUBY, __FILE__, __LINE__ + 1
+ def #{sym}(...)
+ custom(Mime[:#{sym}], ...)
+ end
+ RUBY
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/DoubleRenderError.html b/src/classes/AbstractController/DoubleRenderError.html
index b0a21b293d..8f48bc9ef3 100644
--- a/src/classes/AbstractController/DoubleRenderError.html
+++ b/src/classes/AbstractController/DoubleRenderError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -100,11 +100,11 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 13
- def initialize(message = nil)
- super(message || DEFAULT_MESSAGE)
- end
+def initialize(message = nil)
+ super(message || DEFAULT_MESSAGE)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Helpers.html b/src/classes/AbstractController/Helpers.html
index 9fc0534a60..b4d98aa351 100644
--- a/src/classes/AbstractController/Helpers.html
+++ b/src/classes/AbstractController/Helpers.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,11 +95,11 @@
# File actionpack/lib/abstract_controller/helpers.rb, line 28
- def _helpers
- self.class._helpers
- end
+def _helpers
+ self.class._helpers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Helpers/ClassMethods.html b/src/classes/AbstractController/Helpers/ClassMethods.html
index 8900a598d0..33df6d47c3 100644
--- a/src/classes/AbstractController/Helpers/ClassMethods.html
+++ b/src/classes/AbstractController/Helpers/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -119,7 +119,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -148,14 +148,14 @@
# File actionpack/lib/abstract_controller/helpers.rb, line 218
- def _helpers_for_modification
- unless @_helpers
- self._helpers = define_helpers_module(self, superclass._helpers)
- end
- _helpers
- end
+def _helpers_for_modification
+ unless @_helpers
+ self._helpers = define_helpers_module(self, superclass._helpers)
+ end
+ _helpers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -186,16 +186,16 @@
# File actionpack/lib/abstract_controller/helpers.rb, line 209
- def clear_helpers
- inherited_helper_methods = _helper_methods
- self._helpers = Module.new
- self._helper_methods = Array.new
-
- inherited_helper_methods.each { |meth| helper_method meth }
- default_helper_module! unless anonymous?
- end
+def clear_helpers
+ inherited_helper_methods = _helper_methods
+ self._helpers = Module.new
+ self._helper_methods = Array.new
+
+ inherited_helper_methods.each { |meth| helper_method meth }
+ default_helper_module! unless anonymous?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -274,16 +274,16 @@
# File actionpack/lib/abstract_controller/helpers.rb, line 198
- def helper(*args, &block)
- modules_for_helpers(args).each do |mod|
- next if _helpers.include?(mod)
- _helpers_for_modification.include(mod)
- end
-
- _helpers_for_modification.module_eval(&block) if block_given?
- end
+def helper(*args, &block)
+ modules_for_helpers(args).each do |mod|
+ next if _helpers.include?(mod)
+ _helpers_for_modification.include(mod)
+ end
+
+ _helpers_for_modification.module_eval(&block) if block_given?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -338,26 +338,26 @@ Parameters
# File actionpack/lib/abstract_controller/helpers.rb, line 128
- def helper_method(*methods)
- methods.flatten!
- self._helper_methods += methods
-
- location = caller_locations(1, 1).first
- file, line = location.path, location.lineno
-
- methods.each do |method|
- # def current_user(...)
- # controller.send(:'current_user', ...)
- # end
- _helpers_for_modification.class_eval <<~ruby_eval.lines.map(&:strip).join(";"), file, line
- def #{method}(...)
- controller.send(:'#{method}', ...)
- end
- ruby_eval
- end
- end
+def helper_method(*methods)
+ methods.flatten!
+ self._helper_methods += methods
+
+ location = caller_locations(1, 1).first
+ file, line = location.path, location.lineno
+
+ methods.each do |method|
+ # def current_user(...)
+ # controller.send(:'current_user', ...)
+ # end
+ _helpers_for_modification.class_eval <<~ruby_eval.lines.map(&:strip).join(";"), file, line
+ def #{method}(...)
+ controller.send(:'#{method}', ...)
+ end
+ ruby_eval
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -388,15 +388,15 @@
# File actionpack/lib/abstract_controller/helpers.rb, line 68
- def inherited(klass)
- # Inherited from parent by default
- klass._helpers = nil
+def inherited(klass)
+ # Inherited from parent by default
+ klass._helpers = nil
- klass.class_eval { default_helper_module! } unless klass.anonymous?
- super
- end
+ klass.class_eval { default_helper_module! } unless klass.anonymous?
+ super
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -426,7 +426,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Railties.html b/src/classes/AbstractController/Railties.html
index ddb634ab93..e9e5642902 100644
--- a/src/classes/AbstractController/Railties.html
+++ b/src/classes/AbstractController/Railties.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/AbstractController/Railties/RoutesHelpers.html b/src/classes/AbstractController/Railties/RoutesHelpers.html
index 2b3b00e29d..b053082e31 100644
--- a/src/classes/AbstractController/Railties/RoutesHelpers.html
+++ b/src/classes/AbstractController/Railties/RoutesHelpers.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -81,21 +81,21 @@
# File actionpack/lib/abstract_controller/railties/routes_helpers.rb, line 10
- def self.with(routes, include_path_helpers = true)
- Module.new do
- define_method(:inherited) do |klass|
- super(klass)
-
- if namespace = klass.module_parents.detect { |m| m.respond_to?(:railtie_routes_url_helpers) }
- klass.include(namespace.railtie_routes_url_helpers(include_path_helpers))
- else
- klass.include(routes.url_helpers(include_path_helpers))
- end
- end
- end
- end
+def self.with(routes, include_path_helpers = true)
+ Module.new do
+ define_method(:inherited) do |klass|
+ super(klass)
+
+ if namespace = klass.module_parents.detect { |m| m.respond_to?(:railtie_routes_url_helpers) }
+ klass.include(namespace.railtie_routes_url_helpers(include_path_helpers))
+ else
+ klass.include(routes.url_helpers(include_path_helpers))
+ end
+ end
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Rendering.html b/src/classes/AbstractController/Rendering.html
index 872a9d8b43..0fa902a303 100644
--- a/src/classes/AbstractController/Rendering.html
+++ b/src/classes/AbstractController/Rendering.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -123,7 +123,7 @@
Normalizes arguments and options, and then delegates to render_to_body and sticks the result in self.response_body.
-Supported options depend on the underlying render_to_body implementation.
+Supported options depend on the underlying render_to_body implementation.
@@ -139,19 +139,19 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 26
- def render(*args, &block)
- options = _normalize_render(*args, &block)
- rendered_body = render_to_body(options)
- if options[:html]
- _set_html_content_type
- else
- _set_rendered_content_type rendered_format
- end
- _set_vary_header
- self.response_body = rendered_body
- end
+def render(*args, &block)
+ options = _normalize_render(*args, &block)
+ rendered_body = render_to_body(options)
+ if options[:html]
+ _set_html_content_type
+ else
+ _set_rendered_content_type rendered_format
+ end
+ _set_vary_header
+ self.response_body = rendered_body
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -182,10 +182,10 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 50
- def render_to_body(options = {})
- end
+def render_to_body(options = {})
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -218,12 +218,12 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 44
- def render_to_string(*args, &block)
- options = _normalize_render(*args, &block)
- render_to_body(options)
- end
+def render_to_string(*args, &block)
+ options = _normalize_render(*args, &block)
+ render_to_body(options)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -254,11 +254,11 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 54
- def rendered_format
- Mime[:text]
- end
+def rendered_format
+ Mime[:text]
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -289,15 +289,15 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 62
- def view_assigns
- variables = instance_variables - _protected_ivars
+def view_assigns
+ variables = instance_variables - _protected_ivars
- variables.each_with_object({}) do |name, hash|
- hash[name.slice(1, name.length)] = instance_variable_get(name)
- end
- end
+ variables.each_with_object({}) do |name, hash|
+ hash[name.slice(1, name.length)] = instance_variable_get(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -331,21 +331,21 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 73
- def _normalize_args(action = nil, options = {}) # :doc:
- if action.respond_to?(:permitted?)
- if action.permitted?
- action
- else
- raise ArgumentError, "render parameters are not permitted"
- end
- elsif action.is_a?(Hash)
- action
- else
- options
- end
- end
+def _normalize_args(action = nil, options = {}) # :doc:
+ if action.respond_to?(:permitted?)
+ if action.permitted?
+ action
+ else
+ raise ArgumentError, "render parameters are not permitted"
+ end
+ elsif action.is_a?(Hash)
+ action
+ else
+ options
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -376,11 +376,11 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 88
- def _normalize_options(options) # :doc:
- options
- end
+def _normalize_options(options) # :doc:
+ options
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -411,11 +411,11 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 93
- def _process_options(options) # :doc:
- options
- end
+def _process_options(options) # :doc:
+ options
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Translation.html b/src/classes/AbstractController/Translation.html
index e429818684..446e93e2cd 100644
--- a/src/classes/AbstractController/Translation.html
+++ b/src/classes/AbstractController/Translation.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -123,11 +123,11 @@
# File actionpack/lib/abstract_controller/translation.rb, line 37
- def localize(object, **options)
- I18n.localize(object, **options)
- end
+def localize(object, **options)
+ I18n.localize(object, **options)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -189,25 +189,25 @@
# File actionpack/lib/abstract_controller/translation.rb, line 17
- def translate(key, **options)
- if key&.start_with?(".")
- path = controller_path.tr("/", ".")
- defaults = [:"#{path}#{key}"]
- defaults << options[:default] if options[:default]
- options[:default] = defaults.flatten
- key = "#{path}.#{action_name}#{key}"
- end
-
- if options[:default] && ActiveSupport::HtmlSafeTranslation.html_safe_translation_key?(key)
- options[:default] = Array(options[:default]).map do |value|
- value.is_a?(String) ? ERB::Util.html_escape(value) : value
- end
- end
-
- ActiveSupport::HtmlSafeTranslation.translate(key, **options)
- end
+def translate(key, **options)
+ if key&.start_with?(".")
+ path = controller_path.tr("/", ".")
+ defaults = [:"#{path}#{key}"]
+ defaults << options[:default] if options[:default]
+ options[:default] = defaults.flatten
+ key = "#{path}.#{action_name}#{key}"
+ end
+
+ if options[:default] && ActiveSupport::HtmlSafeTranslation.html_safe_translation_key?(key)
+ options[:default] = Array(options[:default]).map do |value|
+ value.is_a?(String) ? ERB::Util.html_escape(value) : value
+ end
+ end
+
+ ActiveSupport::HtmlSafeTranslation.translate(key, **options)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/UrlFor.html b/src/classes/AbstractController/UrlFor.html
index 8d49da9f5c..bd5d0224eb 100644
--- a/src/classes/AbstractController/UrlFor.html
+++ b/src/classes/AbstractController/UrlFor.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -119,12 +119,12 @@
# File actionpack/lib/abstract_controller/url_for.rb, line 18
- def _routes
- raise "In order to use #url_for, you must include routing helpers explicitly. " \
- "For instance, `include Rails.application.routes.url_helpers`."
- end
+def _routes
+ raise "In order to use #url_for, you must include routing helpers explicitly. " \
+ "For instance, `include Rails.application.routes.url_helpers`."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/UrlFor/ClassMethods.html b/src/classes/AbstractController/UrlFor/ClassMethods.html
index cd0e5e9509..e4471b2d66 100644
--- a/src/classes/AbstractController/UrlFor/ClassMethods.html
+++ b/src/classes/AbstractController/UrlFor/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actionpack/lib/abstract_controller/url_for.rb, line 24
- def _routes
- nil
- end
+def _routes
+ nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -121,15 +121,15 @@
# File actionpack/lib/abstract_controller/url_for.rb, line 28
- def action_methods
- @action_methods ||= if _routes
- super - _routes.named_routes.helper_names
- else
- super
- end
- end
+def action_methods
+ @action_methods ||= if _routes
+ super - _routes.named_routes.helper_names
+ else
+ super
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable.html b/src/classes/ActionCable.html
index 4951b5813f..5e5f891dce 100644
--- a/src/classes/ActionCable.html
+++ b/src/classes/ActionCable.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -267,11 +267,11 @@
# File actioncable/lib/action_cable/gem_version.rb, line 7
- def self.gem_version
- Gem::Version.new VERSION::STRING
- end
+def self.gem_version
+ Gem::Version.new VERSION::STRING
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -302,11 +302,11 @@
# File actioncable/lib/action_cable/version.rb, line 9
- def self.version
- gem_version
- end
+def self.version
+ gem_version
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -341,11 +341,11 @@
# File actioncable/lib/action_cable.rb, line 77
- def server
- @server ||= ActionCable::Server::Base.new
- end
+def server
+@server ||= ActionCable::Server::Base.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel.html b/src/classes/ActionCable/Channel.html
index 38c886ddbc..06b36ff362 100644
--- a/src/classes/ActionCable/Channel.html
+++ b/src/classes/ActionCable/Channel.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Channel/Base.html b/src/classes/ActionCable/Channel/Base.html
index bc63a53315..32e2ff9b70 100644
--- a/src/classes/ActionCable/Channel/Base.html
+++ b/src/classes/ActionCable/Channel/Base.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -82,7 +82,7 @@ Action process
end
-
In this example, the subscribed and unsubscribed methods are not callable methods, as they were already declared in ActionCable::Channel::Base, but #appear and #away are. #generate_connection_token is also not callable, since it’s a private method. You’ll see that appear accepts a data parameter, which it then uses as part of its model call. #away does not, since it’s simply a trigger action.
+In this example, the subscribed and unsubscribed methods are not callable methods, as they were already declared in ActionCable::Channel::Base, but appear and away are. generate_connection_token is also not callable, since it’s a private method. You’ll see that appear accepts a data parameter, which it then uses as part of its model call. away does not, since it’s simply a trigger action.
Also note that in this example, current_user is available because it was marked as an identifying attribute on the connection. All such identifiers will automatically create a delegation method of the same name on the channel instance.
@@ -307,19 +307,22 @@ Returns
# File actioncable/lib/action_cable/channel/base.rb, line 128
- def action_methods
- @action_methods ||= begin
- # All public instance methods of this class, including ancestors
- methods = (public_instance_methods(true) -
- # Except for public instance methods of Base and its ancestors
- ActionCable::Channel::Base.public_instance_methods(true) +
- # Be sure to include shadowed public instance methods of this class
- public_instance_methods(false)).uniq.map(&:to_s)
- methods.to_set
- end
- end
-
- 🔎 See on GitHub
+def action_methods
+ @action_methods ||= begin
+ # All public instance methods of this class, including ancestors
+ methods = (public_instance_methods(true) -
+ # Except for public instance methods of Base and its ancestors
+ ActionCable::Channel::Base.public_instance_methods(true) +
+ # Be sure to include shadowed public instance methods of this class
+ public_instance_methods(false)).uniq
+
+ methods.reject! { |m| m.start_with?("_") }
+ methods.map!(&:name)
+ methods.to_set
+ end
+end
+
+ 🔎 See on GitHub
@@ -349,26 +352,26 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 155
- def initialize(connection, identifier, params = {})
- @connection = connection
- @identifier = identifier
- @params = params
+ # File actioncable/lib/action_cable/channel/base.rb, line 158
+def initialize(connection, identifier, params = {})
+ @connection = connection
+ @identifier = identifier
+ @params = params
- # When a channel is streaming via pubsub, we want to delay the confirmation
- # transmission until pubsub subscription is confirmed.
- #
- # The counter starts at 1 because it's awaiting a call to #subscribe_to_channel
- @defer_subscription_confirmation_counter = Concurrent::AtomicFixnum.new(1)
+ # When a channel is streaming via pubsub, we want to delay the confirmation
+ # transmission until pubsub subscription is confirmed.
+ #
+ # The counter starts at 1 because it's awaiting a call to #subscribe_to_channel
+ @defer_subscription_confirmation_counter = Concurrent::AtomicFixnum.new(1)
- @reject_subscription = nil
- @subscription_confirmation_sent = nil
- @unsubscribed = false
+ @reject_subscription = nil
+ @subscription_confirmation_sent = nil
+ @unsubscribed = false
- delegate_connection_identifiers
- end
+ delegate_connection_identifiers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -401,12 +404,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 144
- def clear_action_methods! # :doc:
- @action_methods = nil
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 147
+def clear_action_methods! # :doc:
+ @action_methods = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -436,13 +439,13 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 149
- def method_added(name) # :doc:
- super
- clear_action_methods!
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 152
+def method_added(name) # :doc:
+ super
+ clear_action_methods!
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -476,21 +479,21 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 176
- def perform_action(data)
- action = extract_action(data)
+ # File actioncable/lib/action_cable/channel/base.rb, line 179
+def perform_action(data)
+ action = extract_action(data)
- if processable_action?(action)
- payload = { channel_class: self.class.name, action: action, data: data }
- ActiveSupport::Notifications.instrument("perform_action.action_cable", payload) do
- dispatch_action(action, data)
- end
- else
- logger.error "Unable to process #{action_signature(action, data)}"
- end
- end
+ if processable_action?(action)
+ payload = { channel_class: self.class.name, action: action, data: data }
+ ActiveSupport::Notifications.instrument("perform_action.action_cable", payload) do
+ dispatch_action(action, data)
+ end
+ else
+ logger.error "Unable to process #{action_signature(action, data)}"
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -520,17 +523,17 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 191
- def subscribe_to_channel
- run_callbacks :subscribe do
- subscribed
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 194
+def subscribe_to_channel
+ run_callbacks :subscribe do
+ subscribed
+ end
- reject_subscription if subscription_rejected?
- ensure_confirmation_sent
- end
+ reject_subscription if subscription_rejected?
+ ensure_confirmation_sent
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -563,12 +566,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 250
- def defer_subscription_confirmation! # :doc:
- @defer_subscription_confirmation_counter.increment
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 253
+def defer_subscription_confirmation! # :doc:
+ @defer_subscription_confirmation_counter.increment
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -598,12 +601,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 254
- def defer_subscription_confirmation? # :doc:
- @defer_subscription_confirmation_counter.value > 0
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 257
+def defer_subscription_confirmation? # :doc:
+ @defer_subscription_confirmation_counter.value > 0
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -633,14 +636,14 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 244
- def ensure_confirmation_sent # :doc:
- return if subscription_rejected?
- @defer_subscription_confirmation_counter.decrement
- transmit_subscription_confirmation unless defer_subscription_confirmation?
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 247
+def ensure_confirmation_sent # :doc:
+ return if subscription_rejected?
+ @defer_subscription_confirmation_counter.decrement
+ transmit_subscription_confirmation unless defer_subscription_confirmation?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -670,12 +673,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 262
- def reject # :doc:
- @reject_subscription = true
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 265
+def reject # :doc:
+ @reject_subscription = true
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -705,12 +708,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 218
- def subscribed # :doc:
- # Override in subclasses
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 221
+def subscribed # :doc:
+ # Override in subclasses
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -740,12 +743,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 258
- def subscription_confirmation_sent? # :doc:
- @subscription_confirmation_sent
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 261
+def subscription_confirmation_sent? # :doc:
+ @subscription_confirmation_sent
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -775,12 +778,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 266
- def subscription_rejected? # :doc:
- @reject_subscription
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 269
+def subscription_rejected? # :doc:
+ @reject_subscription
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -810,21 +813,21 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 231
- def transmit(data, via: nil) # :doc:
- logger.debug do
- status = "#{self.class.name} transmitting #{data.inspect.truncate(300)}"
- status += " (via #{via})" if via
- status
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 234
+def transmit(data, via: nil) # :doc:
+ logger.debug do
+ status = "#{self.class.name} transmitting #{data.inspect.truncate(300)}"
+ status += " (via #{via})" if via
+ status
+ end
- payload = { channel_class: self.class.name, data: data, via: via }
- ActiveSupport::Notifications.instrument("transmit.action_cable", payload) do
- connection.transmit identifier: @identifier, message: data
- end
- end
+ payload = { channel_class: self.class.name, data: data, via: via }
+ ActiveSupport::Notifications.instrument("transmit.action_cable", payload) do
+ connection.transmit identifier: @identifier, message: data
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -854,12 +857,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 224
- def unsubscribed # :doc:
- # Override in subclasses
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 227
+def unsubscribed # :doc:
+ # Override in subclasses
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Broadcasting.html b/src/classes/ActionCable/Channel/Broadcasting.html
index bb71b89445..7fecc3f6b8 100644
--- a/src/classes/ActionCable/Channel/Broadcasting.html
+++ b/src/classes/ActionCable/Channel/Broadcasting.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -99,11 +99,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 45
- def broadcast_to(model, message)
- self.class.broadcast_to(model, message)
- end
+def broadcast_to(model, message)
+ self.class.broadcast_to(model, message)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -134,11 +134,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 41
- def broadcasting_for(model)
- self.class.broadcasting_for(model)
- end
+def broadcasting_for(model)
+ self.class.broadcasting_for(model)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html b/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
index 684bccb1ab..432bb5d74f 100644
--- a/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 14
- def broadcast_to(broadcastables, message)
- ActionCable.server.broadcast(broadcasting_for(broadcastables), message)
- end
+def broadcast_to(broadcastables, message)
+ ActionCable.server.broadcast(broadcasting_for(broadcastables), message)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -126,11 +126,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 24
- def broadcasting_for(broadcastables)
- serialize_broadcasting([ channel_name ] + Array(broadcastables))
- end
+def broadcasting_for(broadcastables)
+ serialize_broadcasting([ channel_name ] + Array(broadcastables))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Callbacks.html b/src/classes/ActionCable/Channel/Callbacks.html
index 076bdbc8fa..64985186c3 100644
--- a/src/classes/ActionCable/Channel/Callbacks.html
+++ b/src/classes/ActionCable/Channel/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html b/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
index 6ee4317311..7949b5fdf6 100644
--- a/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -111,11 +111,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 60
- def after_subscribe(*methods, &block)
- set_callback(:subscribe, :after, *methods, &block)
- end
+def after_subscribe(*methods, &block)
+ set_callback(:subscribe, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -150,11 +150,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 69
- def after_unsubscribe(*methods, &block)
- set_callback(:unsubscribe, :after, *methods, &block)
- end
+def after_unsubscribe(*methods, &block)
+ set_callback(:unsubscribe, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -185,11 +185,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 48
- def before_subscribe(*methods, &block)
- set_callback(:subscribe, :before, *methods, &block)
- end
+def before_subscribe(*methods, &block)
+ set_callback(:subscribe, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -220,11 +220,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 65
- def before_unsubscribe(*methods, &block)
- set_callback(:unsubscribe, :before, *methods, &block)
- end
+def before_unsubscribe(*methods, &block)
+ set_callback(:unsubscribe, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/ChannelStub.html b/src/classes/ActionCable/Channel/ChannelStub.html
index 9db98daac2..d004896dc5 100644
--- a/src/classes/ActionCable/Channel/ChannelStub.html
+++ b/src/classes/ActionCable/Channel/ChannelStub.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -25,7 +25,7 @@
Action Cable Channel Stub
-
Stub stream_from to track streams for the channel. Add public aliases for subscription_confirmation_sent? and subscription_rejected?.
+Stub stream_from to track streams for the channel. Add public aliases for subscription_confirmation_sent? and subscription_rejected?.
@@ -114,11 +114,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 25
- def confirmed?
- subscription_confirmation_sent?
- end
+def confirmed?
+ subscription_confirmation_sent?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -149,11 +149,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 29
- def rejected?
- subscription_rejected?
- end
+def rejected?
+ subscription_rejected?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -188,9 +188,9 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 46
- def start_periodic_timers; end
+def start_periodic_timers; end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -221,11 +221,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 37
- def stop_all_streams
- @_streams = []
- end
+def stop_all_streams
+ @_streams = []
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -281,11 +281,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 33
- def stream_from(broadcasting, *)
- streams << broadcasting
- end
+def stream_from(broadcasting, *)
+ streams << broadcasting
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -316,11 +316,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 41
- def streams
- @_streams ||= []
- end
+def streams
+ @_streams ||= []
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/ConnectionStub.html b/src/classes/ActionCable/Channel/ConnectionStub.html
index 62c52b567f..0fdc0d8690 100644
--- a/src/classes/ActionCable/Channel/ConnectionStub.html
+++ b/src/classes/ActionCable/Channel/ConnectionStub.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -141,20 +141,20 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 55
- def initialize(identifiers = {})
- @server = ActionCable.server
- @transmissions = []
-
- identifiers.each do |identifier, val|
- define_singleton_method(identifier) { val }
- end
-
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @identifiers = identifiers.keys
- @logger = ActiveSupport::TaggedLogging.new ActiveSupport::Logger.new(StringIO.new)
- end
+def initialize(identifiers = {})
+ @server = ActionCable.server
+ @transmissions = []
+
+ identifiers.each do |identifier, val|
+ define_singleton_method(identifier) { val }
+ end
+
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @identifiers = identifiers.keys
+ @logger = ActiveSupport::TaggedLogging.new ActiveSupport::Logger.new(StringIO.new)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -189,11 +189,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 72
- def connection_identifier
- @connection_identifier ||= connection_gid(identifiers.filter_map { |id| send(id.to_sym) if id })
- end
+def connection_identifier
+ @connection_identifier ||= connection_gid(identifiers.filter_map { |id| send(id.to_sym) if id })
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -224,11 +224,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 68
- def transmit(cable_message)
- transmissions << cable_message.with_indifferent_access
- end
+def transmit(cable_message)
+ transmissions << cable_message.with_indifferent_access
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Naming.html b/src/classes/ActionCable/Channel/Naming.html
index 84bfc0232c..db2aa18589 100644
--- a/src/classes/ActionCable/Channel/Naming.html
+++ b/src/classes/ActionCable/Channel/Naming.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,11 +95,11 @@
# File actioncable/lib/action_cable/channel/naming.rb, line 23
- def channel_name
- self.class.channel_name
- end
+def channel_name
+ self.class.channel_name
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Naming/ClassMethods.html b/src/classes/ActionCable/Channel/Naming/ClassMethods.html
index b847309f12..e99c0744a7 100644
--- a/src/classes/ActionCable/Channel/Naming/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Naming/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -66,7 +66,7 @@
- Returns the name of the channel, underscored, without the Channel ending. If the channel is in a namespace, then the namespaces are represented by single colon separators in the channel name.
+ Returns the name of the channel, underscored, without the Channel ending. If the channel is in a namespace, then the namespaces are represented by single colon separators in the channel name.
ChatChannel.channel_name # => 'chat'
Chats::AppearancesChannel.channel_name # => 'chats:appearances'
@@ -87,11 +87,11 @@
# File actioncable/lib/action_cable/channel/naming.rb, line 18
- def channel_name
- @channel_name ||= name.delete_suffix("Channel").gsub("::", ":").underscore
- end
+def channel_name
+ @channel_name ||= name.delete_suffix("Channel").gsub("::", ":").underscore
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/NonInferrableChannelError.html b/src/classes/ActionCable/Channel/NonInferrableChannelError.html
index 034c36b135..1eac81cbd2 100644
--- a/src/classes/ActionCable/Channel/NonInferrableChannelError.html
+++ b/src/classes/ActionCable/Channel/NonInferrableChannelError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 13
- def initialize(name)
- super "Unable to determine the channel to test from #{name}. " +
- "You'll need to specify it using `tests YourChannel` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the channel to test from #{name}. " +
+ "You'll need to specify it using `tests YourChannel` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/PeriodicTimers.html b/src/classes/ActionCable/Channel/PeriodicTimers.html
index 88facef675..561da6e0dd 100644
--- a/src/classes/ActionCable/Channel/PeriodicTimers.html
+++ b/src/classes/ActionCable/Channel/PeriodicTimers.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html b/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
index 233865e2e3..a694f6de16 100644
--- a/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -91,30 +91,30 @@
# File actioncable/lib/action_cable/channel/periodic_timers.rb, line 31
- def periodically(callback_or_method_name = nil, every:, &block)
- callback =
- if block_given?
- raise ArgumentError, "Pass a block or provide a callback arg, not both" if callback_or_method_name
- block
- else
- case callback_or_method_name
- when Proc
- callback_or_method_name
- when Symbol
- -> { __send__ callback_or_method_name }
- else
- raise ArgumentError, "Expected a Symbol method name or a Proc, got #{callback_or_method_name.inspect}"
- end
- end
-
- unless every.kind_of?(Numeric) && every > 0
- raise ArgumentError, "Expected every: to be a positive number of seconds, got #{every.inspect}"
- end
-
- self.periodic_timers += [[ callback, every: every ]]
- end
+def periodically(callback_or_method_name = nil, every:, &block)
+ callback =
+ if block_given?
+ raise ArgumentError, "Pass a block or provide a callback arg, not both" if callback_or_method_name
+ block
+ else
+ case callback_or_method_name
+ when Proc
+ callback_or_method_name
+ when Symbol
+ -> { __send__ callback_or_method_name }
+ else
+ raise ArgumentError, "Expected a Symbol method name or a Proc, got #{callback_or_method_name.inspect}"
+ end
+ end
+
+ unless every.kind_of?(Numeric) && every > 0
+ raise ArgumentError, "Expected every: to be a positive number of seconds, got #{every.inspect}"
+ end
+
+ self.periodic_timers += [[ callback, every: every ]]
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Streams.html b/src/classes/ActionCable/Channel/Streams.html
index 0967feb616..a2e686a3e9 100644
--- a/src/classes/ActionCable/Channel/Streams.html
+++ b/src/classes/ActionCable/Channel/Streams.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -167,14 +167,14 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 137
- def stop_all_streams
- streams.each do |broadcasting, callback|
- pubsub.unsubscribe broadcasting, callback
- logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
- end.clear
- end
+def stop_all_streams
+ streams.each do |broadcasting, callback|
+ pubsub.unsubscribe broadcasting, callback
+ logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
+ end.clear
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -205,11 +205,11 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 132
- def stop_stream_for(model)
- stop_stream_from(broadcasting_for(model))
- end
+def stop_stream_for(model)
+ stop_stream_from(broadcasting_for(model))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,15 +240,15 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 123
- def stop_stream_from(broadcasting)
- callback = streams.delete(broadcasting)
- if callback
- pubsub.unsubscribe(broadcasting, callback)
- logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
- end
- end
+def stop_stream_from(broadcasting)
+ callback = streams.delete(broadcasting)
+ if callback
+ pubsub.unsubscribe(broadcasting, callback)
+ logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -281,11 +281,11 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 118
- def stream_for(broadcastables, callback = nil, coder: nil, &block)
- stream_from(broadcasting_for(broadcastables), callback || block, coder: coder)
- end
+def stream_for(broadcastables, callback = nil, coder: nil, &block)
+ stream_from(broadcasting_for(broadcastables), callback || block, coder: coder)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -316,28 +316,28 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 90
- def stream_from(broadcasting, callback = nil, coder: nil, &block)
- return if unsubscribed?
-
- broadcasting = String(broadcasting)
-
- # Don't send the confirmation until pubsub#subscribe is successful
- defer_subscription_confirmation!
-
- # Build a stream handler by wrapping the user-provided callback with a decoder
- # or defaulting to a JSON-decoding retransmitter.
- handler = worker_pool_stream_handler(broadcasting, callback || block, coder: coder)
- streams[broadcasting] = handler
-
- connection.server.event_loop.post do
- pubsub.subscribe(broadcasting, handler, lambda do
- ensure_confirmation_sent
- logger.info "#{self.class.name} is streaming from #{broadcasting}"
- end)
- end
- end
+def stream_from(broadcasting, callback = nil, coder: nil, &block)
+ return if unsubscribed?
+
+ broadcasting = String(broadcasting)
+
+ # Don't send the confirmation until pubsub#subscribe is successful
+ defer_subscription_confirmation!
+
+ # Build a stream handler by wrapping the user-provided callback with a decoder
+ # or defaulting to a JSON-decoding retransmitter.
+ handler = worker_pool_stream_handler(broadcasting, callback || block, coder: coder)
+ streams[broadcasting] = handler
+
+ connection.server.event_loop.post do
+ pubsub.subscribe(broadcasting, handler, lambda do
+ ensure_confirmation_sent
+ logger.info "#{self.class.name} is streaming from #{broadcasting}"
+ end)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -368,15 +368,15 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 146
- def stream_or_reject_for(model)
- if model
- stream_for model
- else
- reject
- end
- end
+def stream_or_reject_for(model)
+ if model
+ stream_for model
+ else
+ reject
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase.html b/src/classes/ActionCable/Channel/TestCase.html
index 08fb28c0cf..6317ff44d0 100644
--- a/src/classes/ActionCable/Channel/TestCase.html
+++ b/src/classes/ActionCable/Channel/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior.html b/src/classes/ActionCable/Channel/TestCase/Behavior.html
index b5f3a5cbb7..5a8ea0fd78 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -196,11 +196,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 282
- def assert_broadcast_on(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcast_on(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -231,11 +231,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 278
- def assert_broadcasts(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcasts(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,11 +272,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 326
- def assert_has_no_stream(stream)
- assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
- end
+def assert_has_no_stream(stream)
+ assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -313,11 +313,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 337
- def assert_has_no_stream_for(object)
- assert_has_no_stream(broadcasting_for(object))
- end
+def assert_has_no_stream_for(object)
+ assert_has_no_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -354,11 +354,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 304
- def assert_has_stream(stream)
- assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
- end
+def assert_has_stream(stream)
+ assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -395,11 +395,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 315
- def assert_has_stream_for(object)
- assert_has_stream(broadcasting_for(object))
- end
+def assert_has_stream_for(object)
+ assert_has_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -436,11 +436,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 293
- def assert_no_streams
- assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
- end
+def assert_no_streams
+ assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -473,12 +473,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 266
- def perform(action, data = {})
- check_subscribed!
- subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
- end
+def perform(action, data = {})
+ check_subscribed!
+ subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -516,11 +516,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 243
- def stub_connection(identifiers = {})
- @connection = ConnectionStub.new(identifiers)
- end
+def stub_connection(identifiers = {})
+ @connection = ConnectionStub.new(identifiers)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -551,15 +551,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 249
- def subscribe(params = {})
- @connection ||= stub_connection
- @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
- @subscription.singleton_class.include(ChannelStub)
- @subscription.subscribe_to_channel
- @subscription
- end
+def subscribe(params = {})
+ @connection ||= stub_connection
+ @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
+ @subscription.singleton_class.include(ChannelStub)
+ @subscription.subscribe_to_channel
+ @subscription
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -590,12 +590,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 272
- def transmissions
- # Return only directly sent message (via #transmit)
- connection.transmissions.filter_map { |data| data["message"] }
- end
+def transmissions
+ # Return only directly sent message (via #transmit)
+ connection.transmissions.filter_map { |data| data["message"] }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -626,12 +626,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 258
- def unsubscribe
- check_subscribed!
- subscription.unsubscribe_from_channel
- end
+def unsubscribe
+ check_subscribed!
+ subscription.unsubscribe_from_channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
index 48ea87f130..57efb4cdac 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 219
- def channel_class
- if channel = self._channel_class
- channel
- else
- tests determine_default_channel(name)
- end
- end
+def channel_class
+ if channel = self._channel_class
+ channel
+ else
+ tests determine_default_channel(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 227
- def determine_default_channel(name)
- channel = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Channel::Base
- end
- raise NonInferrableChannelError.new(name) if channel.nil?
- channel
- end
+def determine_default_channel(name)
+ channel = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Channel::Base
+ end
+ raise NonInferrableChannelError.new(name) if channel.nil?
+ channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 208
- def tests(channel)
- case channel
- when String, Symbol
- self._channel_class = channel.to_s.camelize.constantize
- when Module
- self._channel_class = channel
- else
- raise NonInferrableChannelError.new(channel)
- end
- end
+def tests(channel)
+ case channel
+ when String, Symbol
+ self._channel_class = channel.to_s.camelize.constantize
+ when Module
+ self._channel_class = channel
+ else
+ raise NonInferrableChannelError.new(channel)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection.html b/src/classes/ActionCable/Connection.html
index f832214f0e..7889c75284 100644
--- a/src/classes/ActionCable/Connection.html
+++ b/src/classes/ActionCable/Connection.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Assertions.html b/src/classes/ActionCable/Connection/Assertions.html
index 933ea80e4c..6b10ec5528 100644
--- a/src/classes/ActionCable/Connection/Assertions.html
+++ b/src/classes/ActionCable/Connection/Assertions.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 28
- def assert_reject_connection(&block)
- assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
- end
+def assert_reject_connection(&block)
+ assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization.html b/src/classes/ActionCable/Connection/Authorization.html
index feb855aa9e..baf85a37b3 100644
--- a/src/classes/ActionCable/Connection/Authorization.html
+++ b/src/classes/ActionCable/Connection/Authorization.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -97,12 +97,12 @@
# File actioncable/lib/action_cable/connection/authorization.rb, line 12
- def reject_unauthorized_connection
- logger.error "An unauthorized connection attempt was rejected"
- raise UnauthorizedError
- end
+def reject_unauthorized_connection
+ logger.error "An unauthorized connection attempt was rejected"
+ raise UnauthorizedError
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
index b63b282b0b..ff36299a28 100644
--- a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
+++ b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/Base.html b/src/classes/ActionCable/Connection/Base.html
index 36a2f1e1bb..ea0d62911f 100644
--- a/src/classes/ActionCable/Connection/Base.html
+++ b/src/classes/ActionCable/Connection/Base.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -255,21 +255,21 @@
# File actioncable/lib/action_cable/connection/base.rb, line 67
- def initialize(server, env, coder: ActiveSupport::JSON)
- @server, @env, @coder = server, env, coder
+def initialize(server, env, coder: ActiveSupport::JSON)
+ @server, @env, @coder = server, env, coder
- @worker_pool = server.worker_pool
- @logger = new_tagged_logger
+ @worker_pool = server.worker_pool
+ @logger = new_tagged_logger
- @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
+ @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
- @_internal_subscriptions = nil
- @started_at = Time.now
- end
+ @_internal_subscriptions = nil
+ @started_at = Time.now
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -304,11 +304,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 147
- def beat
- transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
- end
+def beat
+ transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -339,16 +339,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 120
- def close(reason: nil, reconnect: true)
- transmit(
- type: ActionCable::INTERNAL[:message_types][:disconnect],
- reason: reason,
- reconnect: reconnect
- )
- websocket.close
- end
+def close(reason: nil, reconnect: true)
+ transmit(
+ type: ActionCable::INTERNAL[:message_types][:disconnect],
+ reason: reason,
+ reconnect: reconnect
+ )
+ websocket.close
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -379,13 +379,13 @@
# File actioncable/lib/action_cable/connection/base.rb, line 109
- def handle_channel_command(payload)
- run_callbacks :command do
- subscriptions.execute_command payload
- end
- end
+def handle_channel_command(payload)
+ run_callbacks :command do
+ subscriptions.execute_command payload
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -416,11 +416,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 131
- def send_async(method, *arguments)
- worker_pool.async_invoke(self, method, *arguments)
- end
+def send_async(method, *arguments)
+ worker_pool.async_invoke(self, method, *arguments)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -451,16 +451,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 138
- def statistics
- {
- identifier: connection_identifier,
- started_at: @started_at,
- subscriptions: subscriptions.identifiers,
- request_id: @env["action_dispatch.request_id"]
- }
- end
+def statistics
+ {
+ identifier: connection_identifier,
+ started_at: @started_at,
+ subscriptions: subscriptions.identifiers,
+ request_id: @env["action_dispatch.request_id"]
+ }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -494,11 +494,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 187
- def cookies # :doc:
- request.cookie_jar
- end
+def cookies # :doc:
+ request.cookie_jar
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -529,14 +529,14 @@
# File actioncable/lib/action_cable/connection/base.rb, line 178
- def request # :doc:
- @request ||= begin
- environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
- ActionDispatch::Request.new(environment || env)
- end
- end
+def request # :doc:
+ @request ||= begin
+ environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
+ ActionDispatch::Request.new(environment || env)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Callbacks.html b/src/classes/ActionCable/Connection/Callbacks.html
index 818958bf81..d6504ca284 100644
--- a/src/classes/ActionCable/Connection/Callbacks.html
+++ b/src/classes/ActionCable/Connection/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
index 933056a029..6376d7195b 100644
--- a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,11 +90,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 47
- def after_command(*methods, &block)
- set_callback(:command, :after, *methods, &block)
- end
+def after_command(*methods, &block)
+ set_callback(:command, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -125,11 +125,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 51
- def around_command(*methods, &block)
- set_callback(:command, :around, *methods, &block)
- end
+def around_command(*methods, &block)
+ set_callback(:command, :around, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -160,11 +160,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 43
- def before_command(*methods, &block)
- set_callback(:command, :before, *methods, &block)
- end
+def before_command(*methods, &block)
+ set_callback(:command, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification.html b/src/classes/ActionCable/Connection/Identification.html
index f3dcea9bfc..063ca88999 100644
--- a/src/classes/ActionCable/Connection/Identification.html
+++ b/src/classes/ActionCable/Connection/Identification.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,15 +95,15 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 29
- def connection_identifier
- unless defined? @connection_identifier
- @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
- end
+def connection_identifier
+ unless defined? @connection_identifier
+ @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
+ end
- @connection_identifier
- end
+ @connection_identifier
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification/ClassMethods.html b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
index 324ded31f5..a3395ef8a3 100644
--- a/src/classes/ActionCable/Connection/Identification/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -84,12 +84,12 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 21
- def identified_by(*identifiers)
- Array(identifiers).each { |identifier| attr_accessor identifier }
- self.identifiers += identifiers
- end
+def identified_by(*identifiers)
+ Array(identifiers).each { |identifier| attr_accessor identifier }
+ self.identifiers += identifiers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/InternalChannel.html b/src/classes/ActionCable/Connection/InternalChannel.html
index 9b0144f690..cfdccceaf4 100644
--- a/src/classes/ActionCable/Connection/InternalChannel.html
+++ b/src/classes/ActionCable/Connection/InternalChannel.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
index 7167904452..bf0c696d62 100644
--- a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
+++ b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 15
- def initialize(name)
- super "Unable to determine the connection to test from #{name}. " +
- "You'll need to specify it using `tests YourConnection` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the connection to test from #{name}. " +
+ "You'll need to specify it using `tests YourConnection` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/StreamEventLoop.html b/src/classes/ActionCable/Connection/StreamEventLoop.html
index 2b71a213e3..f7c49354ef 100644
--- a/src/classes/ActionCable/Connection/StreamEventLoop.html
+++ b/src/classes/ActionCable/Connection/StreamEventLoop.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -111,16 +111,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 10
- def initialize
- @nio = @executor = @thread = nil
- @map = {}
- @stopping = false
- @todo = Queue.new
-
- @spawn_mutex = Mutex.new
- end
+def initialize
+ @nio = @executor = @thread = nil
+ @map = {}
+ @stopping = false
+ @todo = Queue.new
+
+ @spawn_mutex = Mutex.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -155,15 +155,15 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 30
- def attach(io, stream)
- @todo << lambda do
- @map[io] = @nio.register(io, :r)
- @map[io].value = stream
- end
- wakeup
- end
+def attach(io, stream)
+ @todo << lambda do
+ @map[io] = @nio.register(io, :r)
+ @map[io].value = stream
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -194,16 +194,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 38
- def detach(io, stream)
- @todo << lambda do
- @nio.deregister io
- @map.delete io
- io.close
- end
- wakeup
- end
+def detach(io, stream)
+ @todo << lambda do
+ @nio.deregister io
+ @map.delete io
+ io.close
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -234,14 +234,14 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 23
- def post(task = nil, &block)
- task ||= block
+def post(task = nil, &block)
+ task ||= block
- spawn
- @executor << task
- end
+ spawn
+ @executor << task
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,12 +272,12 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 56
- def stop
- @stopping = true
- wakeup if @nio
- end
+def stop
+ @stopping = true
+ wakeup if @nio
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -308,11 +308,11 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 19
- def timer(interval, &block)
- Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
- end
+def timer(interval, &block)
+ Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -343,16 +343,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 47
- def writes_pending(io)
- @todo << lambda do
- if monitor = @map[io]
- monitor.interests = :rw
- end
- end
- wakeup
- end
+def writes_pending(io)
+ @todo << lambda do
+ if monitor = @map[io]
+ monitor.interests = :rw
+ end
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
index f4d5cacc63..99731855fb 100644
--- a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
+++ b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -121,12 +121,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 16
- def initialize(logger, tags:)
- @logger = logger
- @tags = tags.flatten
- end
+def initialize(logger, tags:)
+ @logger = logger
+ @tags = tags.flatten
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -161,12 +161,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 21
- def add_tags(*tags)
- @tags += tags.flatten
- @tags = @tags.uniq
- end
+def add_tags(*tags)
+ @tags += tags.flatten
+ @tags = @tags.uniq
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -197,16 +197,16 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 26
- def tag(logger, &block)
- if logger.respond_to?(:tagged)
- current_tags = tags - logger.formatter.current_tags
- logger.tagged(*current_tags, &block)
- else
- yield
- end
- end
+def tag(logger, &block)
+ if logger.respond_to?(:tagged)
+ current_tags = tags - logger.formatter.current_tags
+ logger.tagged(*current_tags, &block)
+ else
+ yield
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,11 +240,11 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 42
- def log(type, message, &block) # :doc:
- tag(@logger) { @logger.send type, message, &block }
- end
+def log(type, message, &block) # :doc:
+ tag(@logger) { @logger.send type, message, &block }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase.html b/src/classes/ActionCable/Connection/TestCase.html
index 948378e491..39bc5cb056 100644
--- a/src/classes/ActionCable/Connection/TestCase.html
+++ b/src/classes/ActionCable/Connection/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior.html b/src/classes/ActionCable/Connection/TestCase/Behavior.html
index b87870becd..4ee0debbea 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -163,19 +163,19 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 192
- def connect(path = ActionCable.server.config.mount_path, **request_params)
- path ||= DEFAULT_PATH
+def connect(path = ActionCable.server.config.mount_path, **request_params)
+ path ||= DEFAULT_PATH
- connection = self.class.connection_class.allocate
- connection.singleton_class.include(TestConnection)
- connection.send(:initialize, build_test_request(path, **request_params))
- connection.connect if connection.respond_to?(:connect)
+ connection = self.class.connection_class.allocate
+ connection.singleton_class.include(TestConnection)
+ connection.send(:initialize, build_test_request(path, **request_params))
+ connection.connect if connection.respond_to?(:connect)
- # Only set instance variable if connected successfully
- @connection = connection
- end
+ # Only set instance variable if connected successfully
+ @connection = connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -206,11 +206,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 212
- def cookies
- @cookie_jar ||= TestCookieJar.new
- end
+def cookies
+ @cookie_jar ||= TestCookieJar.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -241,14 +241,14 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 205
- def disconnect
- raise "Must be connected!" if connection.nil?
+def disconnect
+ raise "Must be connected!" if connection.nil?
- connection.disconnect if connection.respond_to?(:disconnect)
- @connection = nil
- end
+ connection.disconnect if connection.respond_to?(:disconnect)
+ @connection = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
index 63444f4b27..99fc0e3f6f 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 167
- def connection_class
- if connection = self._connection_class
- connection
- else
- tests determine_default_connection(name)
- end
- end
+def connection_class
+ if connection = self._connection_class
+ connection
+ else
+ tests determine_default_connection(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 175
- def determine_default_connection(name)
- connection = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Connection::Base
- end
- raise NonInferrableConnectionError.new(name) if connection.nil?
- connection
- end
+def determine_default_connection(name)
+ connection = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Connection::Base
+ end
+ raise NonInferrableConnectionError.new(name) if connection.nil?
+ connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actionpack/lib/abstract_controller/caching.rb, line 63
- def cache(key, options = {}, &block) # :doc:
- if cache_configured?
- cache_store.fetch(ActiveSupport::Cache.expand_cache_key(key, :controller), options, &block)
- else
- yield
- end
- end+ Ruby on Rails 8.1.0.rc1
@@ -82,11 +82,11 @@
# File actionpack/lib/abstract_controller/caching.rb, line 52
- def view_cache_dependency(&dependency)
- self._view_cache_dependencies += [dependency]
- end
+def view_cache_dependency(&dependency)
+ self._view_cache_dependencies += [dependency]
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Caching/ConfigMethods.html b/src/classes/AbstractController/Caching/ConfigMethods.html
index 32afaceaa6..9b5ab3b1d2 100644
--- a/src/classes/AbstractController/Caching/ConfigMethods.html
+++ b/src/classes/AbstractController/Caching/ConfigMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actionpack/lib/abstract_controller/caching.rb, line 15
- def cache_store
- config.cache_store
- end
+def cache_store
+ config.cache_store
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -121,11 +121,11 @@
# File actionpack/lib/abstract_controller/caching.rb, line 19
- def cache_store=(store)
- config.cache_store = ActiveSupport::Cache.lookup_store(*store)
- end
+def cache_store=(store)
+ config.cache_store = ActiveSupport::Cache.lookup_store(*store)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Caching/Fragments.html b/src/classes/AbstractController/Caching/Fragments.html
index a121e2e7a5..c3adf29074 100644
--- a/src/classes/AbstractController/Caching/Fragments.html
+++ b/src/classes/AbstractController/Caching/Fragments.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -108,7 +108,7 @@
- Given a key (as described in expire_fragment), returns a key array suitable for use in reading, writing, or expiring a cached fragment. All keys begin with :views, followed by ENV["RAILS_CACHE_ID"] or ENV["RAILS_APP_VERSION"] if set, followed by any controller-wide key prefix values, ending with the specified key value.
+ Given a key (as described in expire_fragment), returns a key array suitable for use in reading, writing, or expiring a cached fragment. All keys begin with :views, followed by ENV["RAILS_CACHE_ID"] or ENV["RAILS_APP_VERSION"] if set, followed by any controller-wide key prefix values, ending with the specified key value.
@@ -124,17 +124,17 @@
# File actionpack/lib/abstract_controller/caching/fragments.rb, line 68
- def combined_fragment_cache_key(key)
- head = self.class.fragment_cache_keys.map { |k| instance_exec(&k) }
- tail = key.is_a?(Hash) ? url_for(key).split("://").last : key
-
- cache_key = [:views, ENV["RAILS_CACHE_ID"] || ENV["RAILS_APP_VERSION"], head, tail]
- cache_key.flatten!(1)
- cache_key.compact!
- cache_key
- end
+def combined_fragment_cache_key(key)
+ head = self.class.fragment_cache_keys.map { |k| instance_exec(&k) }
+ tail = key.is_a?(Hash) ? url_for(key).split("://").last : key
+
+ cache_key = [:views, ENV["RAILS_CACHE_ID"] || ENV["RAILS_APP_VERSION"], head, tail]
+ cache_key.flatten!(1)
+ cache_key.compact!
+ cache_key
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -176,20 +176,20 @@
# File actionpack/lib/abstract_controller/caching/fragments.rb, line 131
- def expire_fragment(key, options = nil)
- return unless cache_configured?
- key = combined_fragment_cache_key(key) unless key.is_a?(Regexp)
-
- instrument_fragment_cache :expire_fragment, key do
- if key.is_a?(Regexp)
- cache_store.delete_matched(key, options)
- else
- cache_store.delete(key, options)
- end
- end
- end
+def expire_fragment(key, options = nil)
+ return unless cache_configured?
+ key = combined_fragment_cache_key(key) unless key.is_a?(Regexp)
+
+ instrument_fragment_cache :expire_fragment, key do
+ if key.is_a?(Regexp)
+ cache_store.delete_matched(key, options)
+ else
+ cache_store.delete(key, options)
+ end
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -204,7 +204,7 @@
- Check if a cached fragment from the location signified by key exists (see expire_fragment for acceptable formats).
+ Check if a cached fragment from the location signified by key exists (see expire_fragment for acceptable formats).
@@ -220,16 +220,16 @@
# File actionpack/lib/abstract_controller/caching/fragments.rb, line 105
- def fragment_exist?(key, options = nil)
- return unless cache_configured?
- key = combined_fragment_cache_key(key)
-
- instrument_fragment_cache :exist_fragment?, key do
- cache_store.exist?(key, options)
- end
- end
+def fragment_exist?(key, options = nil)
+ return unless cache_configured?
+ key = combined_fragment_cache_key(key)
+
+ instrument_fragment_cache :exist_fragment?, key do
+ cache_store.exist?(key, options)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -244,7 +244,7 @@
- Reads a cached fragment from the location signified by key (see expire_fragment for acceptable formats).
+ Reads a cached fragment from the location signified by key (see expire_fragment for acceptable formats).
@@ -260,17 +260,17 @@
# File actionpack/lib/abstract_controller/caching/fragments.rb, line 93
- def read_fragment(key, options = nil)
- return unless cache_configured?
-
- key = combined_fragment_cache_key(key)
- instrument_fragment_cache :read_fragment, key do
- result = cache_store.read(key, options)
- result.respond_to?(:html_safe) ? result.html_safe : result
- end
- end
+def read_fragment(key, options = nil)
+ return unless cache_configured?
+
+ key = combined_fragment_cache_key(key)
+ instrument_fragment_cache :read_fragment, key do
+ result = cache_store.read(key, options)
+ result.respond_to?(:html_safe) ? result.html_safe : result
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -285,7 +285,7 @@
- Writes content to the location signified by key (see expire_fragment for acceptable formats).
+ Writes content to the location signified by key (see expire_fragment for acceptable formats).
@@ -301,18 +301,18 @@
# File actionpack/lib/abstract_controller/caching/fragments.rb, line 80
- def write_fragment(key, content, options = nil)
- return content unless cache_configured?
-
- key = combined_fragment_cache_key(key)
- instrument_fragment_cache :write_fragment, key do
- content = content.to_str
- cache_store.write(key, content, options)
- end
- content
- end
+def write_fragment(key, content, options = nil)
+ return content unless cache_configured?
+
+ key = combined_fragment_cache_key(key)
+ instrument_fragment_cache :write_fragment, key do
+ content = content.to_str
+ cache_store.write(key, content, options)
+ end
+ content
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Caching/Fragments/ClassMethods.html b/src/classes/AbstractController/Caching/Fragments/ClassMethods.html
index f684e4fb8f..3fd0838698 100644
--- a/src/classes/AbstractController/Caching/Fragments/ClassMethods.html
+++ b/src/classes/AbstractController/Caching/Fragments/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -98,11 +98,11 @@
# File actionpack/lib/abstract_controller/caching/fragments.rb, line 58
- def fragment_cache_key(value = nil, &key)
- self.fragment_cache_keys += [key || -> { value }]
- end
+def fragment_cache_key(value = nil, &key)
+ self.fragment_cache_keys += [key || -> { value }]
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Callbacks.html b/src/classes/AbstractController/Callbacks.html
index 4e3a570e15..36bffc7d1d 100644
--- a/src/classes/AbstractController/Callbacks.html
+++ b/src/classes/AbstractController/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/AbstractController/Callbacks/ClassMethods.html b/src/classes/AbstractController/Callbacks/ClassMethods.html
index 8df003036a..43c33d5431 100644
--- a/src/classes/AbstractController/Callbacks/ClassMethods.html
+++ b/src/classes/AbstractController/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -148,18 +148,18 @@ Block Parameters
# File actionpack/lib/abstract_controller/callbacks.rb, line 120
- def _insert_callbacks(callbacks, block = nil)
- options = callbacks.extract_options!
- callbacks.push(block) if block
- options[:filters] = callbacks
- _normalize_callback_options(options)
- options.delete(:filters)
- callbacks.each do |callback|
- yield callback, options
- end
- end
+def _insert_callbacks(callbacks, block = nil)
+ options = callbacks.extract_options!
+ callbacks.push(block) if block
+ options[:filters] = callbacks
+ _normalize_callback_options(options)
+ options.delete(:filters)
+ callbacks.each do |callback|
+ yield callback, options
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -209,12 +209,12 @@ Options
# File actionpack/lib/abstract_controller/callbacks.rb, line 93
- def _normalize_callback_options(options)
- _normalize_callback_option(options, :only, :if)
- _normalize_callback_option(options, :except, :unless)
- end
+def _normalize_callback_options(options)
+ _normalize_callback_option(options, :only, :if)
+ _normalize_callback_option(options, :except, :unless)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,7 +240,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -264,7 +264,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -288,7 +288,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -314,7 +314,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -338,7 +338,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -364,7 +364,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -388,7 +388,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -412,7 +412,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -438,7 +438,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -462,7 +462,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -486,7 +486,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
# File actionpack/lib/abstract_controller/caching.rb, line 52
- def view_cache_dependency(&dependency)
- self._view_cache_dependencies += [dependency]
- end
+def view_cache_dependency(&dependency)
+ self._view_cache_dependencies += [dependency]
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Caching/ConfigMethods.html b/src/classes/AbstractController/Caching/ConfigMethods.html
index 32afaceaa6..9b5ab3b1d2 100644
--- a/src/classes/AbstractController/Caching/ConfigMethods.html
+++ b/src/classes/AbstractController/Caching/ConfigMethods.html
@@ -5,7 +5,7 @@
+ Ruby on Rails 8.1.0.rc1
@@ -86,11 +86,11 @@
# File actionpack/lib/abstract_controller/caching.rb, line 15
- def cache_store
- config.cache_store
- end
+def cache_store
+ config.cache_store
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -121,11 +121,11 @@
# File actionpack/lib/abstract_controller/caching.rb, line 19
- def cache_store=(store)
- config.cache_store = ActiveSupport::Cache.lookup_store(*store)
- end
+def cache_store=(store)
+ config.cache_store = ActiveSupport::Cache.lookup_store(*store)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Caching/Fragments.html b/src/classes/AbstractController/Caching/Fragments.html
index a121e2e7a5..c3adf29074 100644
--- a/src/classes/AbstractController/Caching/Fragments.html
+++ b/src/classes/AbstractController/Caching/Fragments.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -108,7 +108,7 @@
- Given a key (as described in expire_fragment), returns a key array suitable for use in reading, writing, or expiring a cached fragment. All keys begin with :views, followed by ENV["RAILS_CACHE_ID"] or ENV["RAILS_APP_VERSION"] if set, followed by any controller-wide key prefix values, ending with the specified key value.
+ Given a key (as described in expire_fragment), returns a key array suitable for use in reading, writing, or expiring a cached fragment. All keys begin with :views, followed by ENV["RAILS_CACHE_ID"] or ENV["RAILS_APP_VERSION"] if set, followed by any controller-wide key prefix values, ending with the specified key value.
@@ -124,17 +124,17 @@
# File actionpack/lib/abstract_controller/caching/fragments.rb, line 68
- def combined_fragment_cache_key(key)
- head = self.class.fragment_cache_keys.map { |k| instance_exec(&k) }
- tail = key.is_a?(Hash) ? url_for(key).split("://").last : key
-
- cache_key = [:views, ENV["RAILS_CACHE_ID"] || ENV["RAILS_APP_VERSION"], head, tail]
- cache_key.flatten!(1)
- cache_key.compact!
- cache_key
- end
+def combined_fragment_cache_key(key)
+ head = self.class.fragment_cache_keys.map { |k| instance_exec(&k) }
+ tail = key.is_a?(Hash) ? url_for(key).split("://").last : key
+
+ cache_key = [:views, ENV["RAILS_CACHE_ID"] || ENV["RAILS_APP_VERSION"], head, tail]
+ cache_key.flatten!(1)
+ cache_key.compact!
+ cache_key
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -176,20 +176,20 @@
# File actionpack/lib/abstract_controller/caching/fragments.rb, line 131
- def expire_fragment(key, options = nil)
- return unless cache_configured?
- key = combined_fragment_cache_key(key) unless key.is_a?(Regexp)
-
- instrument_fragment_cache :expire_fragment, key do
- if key.is_a?(Regexp)
- cache_store.delete_matched(key, options)
- else
- cache_store.delete(key, options)
- end
- end
- end
+def expire_fragment(key, options = nil)
+ return unless cache_configured?
+ key = combined_fragment_cache_key(key) unless key.is_a?(Regexp)
+
+ instrument_fragment_cache :expire_fragment, key do
+ if key.is_a?(Regexp)
+ cache_store.delete_matched(key, options)
+ else
+ cache_store.delete(key, options)
+ end
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -204,7 +204,7 @@
- Check if a cached fragment from the location signified by key exists (see expire_fragment for acceptable formats).
+ Check if a cached fragment from the location signified by key exists (see expire_fragment for acceptable formats).
@@ -220,16 +220,16 @@
# File actionpack/lib/abstract_controller/caching/fragments.rb, line 105
- def fragment_exist?(key, options = nil)
- return unless cache_configured?
- key = combined_fragment_cache_key(key)
-
- instrument_fragment_cache :exist_fragment?, key do
- cache_store.exist?(key, options)
- end
- end
+def fragment_exist?(key, options = nil)
+ return unless cache_configured?
+ key = combined_fragment_cache_key(key)
+
+ instrument_fragment_cache :exist_fragment?, key do
+ cache_store.exist?(key, options)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -244,7 +244,7 @@
- Reads a cached fragment from the location signified by key (see expire_fragment for acceptable formats).
+ Reads a cached fragment from the location signified by key (see expire_fragment for acceptable formats).
@@ -260,17 +260,17 @@
# File actionpack/lib/abstract_controller/caching/fragments.rb, line 93
- def read_fragment(key, options = nil)
- return unless cache_configured?
-
- key = combined_fragment_cache_key(key)
- instrument_fragment_cache :read_fragment, key do
- result = cache_store.read(key, options)
- result.respond_to?(:html_safe) ? result.html_safe : result
- end
- end
+def read_fragment(key, options = nil)
+ return unless cache_configured?
+
+ key = combined_fragment_cache_key(key)
+ instrument_fragment_cache :read_fragment, key do
+ result = cache_store.read(key, options)
+ result.respond_to?(:html_safe) ? result.html_safe : result
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -285,7 +285,7 @@
- Writes content to the location signified by key (see expire_fragment for acceptable formats).
+ Writes content to the location signified by key (see expire_fragment for acceptable formats).
@@ -301,18 +301,18 @@
# File actionpack/lib/abstract_controller/caching/fragments.rb, line 80
- def write_fragment(key, content, options = nil)
- return content unless cache_configured?
-
- key = combined_fragment_cache_key(key)
- instrument_fragment_cache :write_fragment, key do
- content = content.to_str
- cache_store.write(key, content, options)
- end
- content
- end
+def write_fragment(key, content, options = nil)
+ return content unless cache_configured?
+
+ key = combined_fragment_cache_key(key)
+ instrument_fragment_cache :write_fragment, key do
+ content = content.to_str
+ cache_store.write(key, content, options)
+ end
+ content
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Caching/Fragments/ClassMethods.html b/src/classes/AbstractController/Caching/Fragments/ClassMethods.html
index f684e4fb8f..3fd0838698 100644
--- a/src/classes/AbstractController/Caching/Fragments/ClassMethods.html
+++ b/src/classes/AbstractController/Caching/Fragments/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -98,11 +98,11 @@
# File actionpack/lib/abstract_controller/caching/fragments.rb, line 58
- def fragment_cache_key(value = nil, &key)
- self.fragment_cache_keys += [key || -> { value }]
- end
+def fragment_cache_key(value = nil, &key)
+ self.fragment_cache_keys += [key || -> { value }]
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Callbacks.html b/src/classes/AbstractController/Callbacks.html
index 4e3a570e15..36bffc7d1d 100644
--- a/src/classes/AbstractController/Callbacks.html
+++ b/src/classes/AbstractController/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/AbstractController/Callbacks/ClassMethods.html b/src/classes/AbstractController/Callbacks/ClassMethods.html
index 8df003036a..43c33d5431 100644
--- a/src/classes/AbstractController/Callbacks/ClassMethods.html
+++ b/src/classes/AbstractController/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -148,18 +148,18 @@ Block Parameters
# File actionpack/lib/abstract_controller/callbacks.rb, line 120
- def _insert_callbacks(callbacks, block = nil)
- options = callbacks.extract_options!
- callbacks.push(block) if block
- options[:filters] = callbacks
- _normalize_callback_options(options)
- options.delete(:filters)
- callbacks.each do |callback|
- yield callback, options
- end
- end
+def _insert_callbacks(callbacks, block = nil)
+ options = callbacks.extract_options!
+ callbacks.push(block) if block
+ options[:filters] = callbacks
+ _normalize_callback_options(options)
+ options.delete(:filters)
+ callbacks.each do |callback|
+ yield callback, options
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -209,12 +209,12 @@ Options
# File actionpack/lib/abstract_controller/callbacks.rb, line 93
- def _normalize_callback_options(options)
- _normalize_callback_option(options, :only, :if)
- _normalize_callback_option(options, :except, :unless)
- end
+def _normalize_callback_options(options)
+ _normalize_callback_option(options, :only, :if)
+ _normalize_callback_option(options, :except, :unless)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,7 +240,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -264,7 +264,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -288,7 +288,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -314,7 +314,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -338,7 +338,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -364,7 +364,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -388,7 +388,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -412,7 +412,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -438,7 +438,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
# File actionpack/lib/abstract_controller/caching.rb, line 15
- def cache_store
- config.cache_store
- end
+def cache_store
+ config.cache_store
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -121,11 +121,11 @@
# File actionpack/lib/abstract_controller/caching.rb, line 19
- def cache_store=(store)
- config.cache_store = ActiveSupport::Cache.lookup_store(*store)
- end
+def cache_store=(store)
+ config.cache_store = ActiveSupport::Cache.lookup_store(*store)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Caching/Fragments.html b/src/classes/AbstractController/Caching/Fragments.html
index a121e2e7a5..c3adf29074 100644
--- a/src/classes/AbstractController/Caching/Fragments.html
+++ b/src/classes/AbstractController/Caching/Fragments.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -108,7 +108,7 @@
- Given a key (as described in expire_fragment), returns a key array suitable for use in reading, writing, or expiring a cached fragment. All keys begin with :views, followed by ENV["RAILS_CACHE_ID"] or ENV["RAILS_APP_VERSION"] if set, followed by any controller-wide key prefix values, ending with the specified key value.
+ Given a key (as described in expire_fragment), returns a key array suitable for use in reading, writing, or expiring a cached fragment. All keys begin with :views, followed by ENV["RAILS_CACHE_ID"] or ENV["RAILS_APP_VERSION"] if set, followed by any controller-wide key prefix values, ending with the specified key value.
@@ -124,17 +124,17 @@
# File actionpack/lib/abstract_controller/caching/fragments.rb, line 68
- def combined_fragment_cache_key(key)
- head = self.class.fragment_cache_keys.map { |k| instance_exec(&k) }
- tail = key.is_a?(Hash) ? url_for(key).split("://").last : key
-
- cache_key = [:views, ENV["RAILS_CACHE_ID"] || ENV["RAILS_APP_VERSION"], head, tail]
- cache_key.flatten!(1)
- cache_key.compact!
- cache_key
- end
+def combined_fragment_cache_key(key)
+ head = self.class.fragment_cache_keys.map { |k| instance_exec(&k) }
+ tail = key.is_a?(Hash) ? url_for(key).split("://").last : key
+
+ cache_key = [:views, ENV["RAILS_CACHE_ID"] || ENV["RAILS_APP_VERSION"], head, tail]
+ cache_key.flatten!(1)
+ cache_key.compact!
+ cache_key
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -176,20 +176,20 @@
# File actionpack/lib/abstract_controller/caching/fragments.rb, line 131
- def expire_fragment(key, options = nil)
- return unless cache_configured?
- key = combined_fragment_cache_key(key) unless key.is_a?(Regexp)
-
- instrument_fragment_cache :expire_fragment, key do
- if key.is_a?(Regexp)
- cache_store.delete_matched(key, options)
- else
- cache_store.delete(key, options)
- end
- end
- end
+def expire_fragment(key, options = nil)
+ return unless cache_configured?
+ key = combined_fragment_cache_key(key) unless key.is_a?(Regexp)
+
+ instrument_fragment_cache :expire_fragment, key do
+ if key.is_a?(Regexp)
+ cache_store.delete_matched(key, options)
+ else
+ cache_store.delete(key, options)
+ end
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -204,7 +204,7 @@
- Check if a cached fragment from the location signified by key exists (see expire_fragment for acceptable formats).
+ Check if a cached fragment from the location signified by key exists (see expire_fragment for acceptable formats).
@@ -220,16 +220,16 @@
# File actionpack/lib/abstract_controller/caching/fragments.rb, line 105
- def fragment_exist?(key, options = nil)
- return unless cache_configured?
- key = combined_fragment_cache_key(key)
-
- instrument_fragment_cache :exist_fragment?, key do
- cache_store.exist?(key, options)
- end
- end
+def fragment_exist?(key, options = nil)
+ return unless cache_configured?
+ key = combined_fragment_cache_key(key)
+
+ instrument_fragment_cache :exist_fragment?, key do
+ cache_store.exist?(key, options)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -244,7 +244,7 @@
- Reads a cached fragment from the location signified by key (see expire_fragment for acceptable formats).
+ Reads a cached fragment from the location signified by key (see expire_fragment for acceptable formats).
@@ -260,17 +260,17 @@
# File actionpack/lib/abstract_controller/caching/fragments.rb, line 93
- def read_fragment(key, options = nil)
- return unless cache_configured?
-
- key = combined_fragment_cache_key(key)
- instrument_fragment_cache :read_fragment, key do
- result = cache_store.read(key, options)
- result.respond_to?(:html_safe) ? result.html_safe : result
- end
- end
+def read_fragment(key, options = nil)
+ return unless cache_configured?
+
+ key = combined_fragment_cache_key(key)
+ instrument_fragment_cache :read_fragment, key do
+ result = cache_store.read(key, options)
+ result.respond_to?(:html_safe) ? result.html_safe : result
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -285,7 +285,7 @@
- Writes content to the location signified by key (see expire_fragment for acceptable formats).
+ Writes content to the location signified by key (see expire_fragment for acceptable formats).
@@ -301,18 +301,18 @@
# File actionpack/lib/abstract_controller/caching/fragments.rb, line 80
- def write_fragment(key, content, options = nil)
- return content unless cache_configured?
-
- key = combined_fragment_cache_key(key)
- instrument_fragment_cache :write_fragment, key do
- content = content.to_str
- cache_store.write(key, content, options)
- end
- content
- end
+def write_fragment(key, content, options = nil)
+ return content unless cache_configured?
+
+ key = combined_fragment_cache_key(key)
+ instrument_fragment_cache :write_fragment, key do
+ content = content.to_str
+ cache_store.write(key, content, options)
+ end
+ content
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Caching/Fragments/ClassMethods.html b/src/classes/AbstractController/Caching/Fragments/ClassMethods.html
index f684e4fb8f..3fd0838698 100644
--- a/src/classes/AbstractController/Caching/Fragments/ClassMethods.html
+++ b/src/classes/AbstractController/Caching/Fragments/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -98,11 +98,11 @@
# File actionpack/lib/abstract_controller/caching/fragments.rb, line 58
- def fragment_cache_key(value = nil, &key)
- self.fragment_cache_keys += [key || -> { value }]
- end
+def fragment_cache_key(value = nil, &key)
+ self.fragment_cache_keys += [key || -> { value }]
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Callbacks.html b/src/classes/AbstractController/Callbacks.html
index 4e3a570e15..36bffc7d1d 100644
--- a/src/classes/AbstractController/Callbacks.html
+++ b/src/classes/AbstractController/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/AbstractController/Callbacks/ClassMethods.html b/src/classes/AbstractController/Callbacks/ClassMethods.html
index 8df003036a..43c33d5431 100644
--- a/src/classes/AbstractController/Callbacks/ClassMethods.html
+++ b/src/classes/AbstractController/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -148,18 +148,18 @@ Block Parameters
# File actionpack/lib/abstract_controller/callbacks.rb, line 120
- def _insert_callbacks(callbacks, block = nil)
- options = callbacks.extract_options!
- callbacks.push(block) if block
- options[:filters] = callbacks
- _normalize_callback_options(options)
- options.delete(:filters)
- callbacks.each do |callback|
- yield callback, options
- end
- end
+def _insert_callbacks(callbacks, block = nil)
+ options = callbacks.extract_options!
+ callbacks.push(block) if block
+ options[:filters] = callbacks
+ _normalize_callback_options(options)
+ options.delete(:filters)
+ callbacks.each do |callback|
+ yield callback, options
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -209,12 +209,12 @@ Options
# File actionpack/lib/abstract_controller/callbacks.rb, line 93
- def _normalize_callback_options(options)
- _normalize_callback_option(options, :only, :if)
- _normalize_callback_option(options, :except, :unless)
- end
+def _normalize_callback_options(options)
+ _normalize_callback_option(options, :only, :if)
+ _normalize_callback_option(options, :except, :unless)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,7 +240,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -264,7 +264,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -288,7 +288,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -314,7 +314,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -338,7 +338,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -364,7 +364,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -388,7 +388,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -412,7 +412,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -438,7 +438,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
# File actionpack/lib/abstract_controller/caching.rb, line 19
- def cache_store=(store)
- config.cache_store = ActiveSupport::Cache.lookup_store(*store)
- end+ Ruby on Rails 8.1.0.rc1
@@ -108,7 +108,7 @@
- Given a key (as described in expire_fragment), returns a key array suitable for use in reading, writing, or expiring a cached fragment. All keys begin with :views, followed by ENV["RAILS_CACHE_ID"] or ENV["RAILS_APP_VERSION"] if set, followed by any controller-wide key prefix values, ending with the specified key value.
+ Given a key (as described in expire_fragment), returns a key array suitable for use in reading, writing, or expiring a cached fragment. All keys begin with :views, followed by ENV["RAILS_CACHE_ID"] or ENV["RAILS_APP_VERSION"] if set, followed by any controller-wide key prefix values, ending with the specified key value.
@@ -124,17 +124,17 @@
# File actionpack/lib/abstract_controller/caching/fragments.rb, line 68
- def combined_fragment_cache_key(key)
- head = self.class.fragment_cache_keys.map { |k| instance_exec(&k) }
- tail = key.is_a?(Hash) ? url_for(key).split("://").last : key
-
- cache_key = [:views, ENV["RAILS_CACHE_ID"] || ENV["RAILS_APP_VERSION"], head, tail]
- cache_key.flatten!(1)
- cache_key.compact!
- cache_key
- end
+def combined_fragment_cache_key(key)
+ head = self.class.fragment_cache_keys.map { |k| instance_exec(&k) }
+ tail = key.is_a?(Hash) ? url_for(key).split("://").last : key
+
+ cache_key = [:views, ENV["RAILS_CACHE_ID"] || ENV["RAILS_APP_VERSION"], head, tail]
+ cache_key.flatten!(1)
+ cache_key.compact!
+ cache_key
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -176,20 +176,20 @@
# File actionpack/lib/abstract_controller/caching/fragments.rb, line 131
- def expire_fragment(key, options = nil)
- return unless cache_configured?
- key = combined_fragment_cache_key(key) unless key.is_a?(Regexp)
-
- instrument_fragment_cache :expire_fragment, key do
- if key.is_a?(Regexp)
- cache_store.delete_matched(key, options)
- else
- cache_store.delete(key, options)
- end
- end
- end
+def expire_fragment(key, options = nil)
+ return unless cache_configured?
+ key = combined_fragment_cache_key(key) unless key.is_a?(Regexp)
+
+ instrument_fragment_cache :expire_fragment, key do
+ if key.is_a?(Regexp)
+ cache_store.delete_matched(key, options)
+ else
+ cache_store.delete(key, options)
+ end
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -204,7 +204,7 @@
- Check if a cached fragment from the location signified by key exists (see expire_fragment for acceptable formats).
+ Check if a cached fragment from the location signified by key exists (see expire_fragment for acceptable formats).
@@ -220,16 +220,16 @@
# File actionpack/lib/abstract_controller/caching/fragments.rb, line 105
- def fragment_exist?(key, options = nil)
- return unless cache_configured?
- key = combined_fragment_cache_key(key)
-
- instrument_fragment_cache :exist_fragment?, key do
- cache_store.exist?(key, options)
- end
- end
+def fragment_exist?(key, options = nil)
+ return unless cache_configured?
+ key = combined_fragment_cache_key(key)
+
+ instrument_fragment_cache :exist_fragment?, key do
+ cache_store.exist?(key, options)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -244,7 +244,7 @@
- Reads a cached fragment from the location signified by key (see expire_fragment for acceptable formats).
+ Reads a cached fragment from the location signified by key (see expire_fragment for acceptable formats).
@@ -260,17 +260,17 @@
# File actionpack/lib/abstract_controller/caching/fragments.rb, line 93
- def read_fragment(key, options = nil)
- return unless cache_configured?
-
- key = combined_fragment_cache_key(key)
- instrument_fragment_cache :read_fragment, key do
- result = cache_store.read(key, options)
- result.respond_to?(:html_safe) ? result.html_safe : result
- end
- end
+def read_fragment(key, options = nil)
+ return unless cache_configured?
+
+ key = combined_fragment_cache_key(key)
+ instrument_fragment_cache :read_fragment, key do
+ result = cache_store.read(key, options)
+ result.respond_to?(:html_safe) ? result.html_safe : result
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -285,7 +285,7 @@
- Writes content to the location signified by key (see expire_fragment for acceptable formats).
+ Writes content to the location signified by key (see expire_fragment for acceptable formats).
@@ -301,18 +301,18 @@
# File actionpack/lib/abstract_controller/caching/fragments.rb, line 80
- def write_fragment(key, content, options = nil)
- return content unless cache_configured?
-
- key = combined_fragment_cache_key(key)
- instrument_fragment_cache :write_fragment, key do
- content = content.to_str
- cache_store.write(key, content, options)
- end
- content
- end
+def write_fragment(key, content, options = nil)
+ return content unless cache_configured?
+
+ key = combined_fragment_cache_key(key)
+ instrument_fragment_cache :write_fragment, key do
+ content = content.to_str
+ cache_store.write(key, content, options)
+ end
+ content
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Caching/Fragments/ClassMethods.html b/src/classes/AbstractController/Caching/Fragments/ClassMethods.html
index f684e4fb8f..3fd0838698 100644
--- a/src/classes/AbstractController/Caching/Fragments/ClassMethods.html
+++ b/src/classes/AbstractController/Caching/Fragments/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -98,11 +98,11 @@
# File actionpack/lib/abstract_controller/caching/fragments.rb, line 58
- def fragment_cache_key(value = nil, &key)
- self.fragment_cache_keys += [key || -> { value }]
- end
+def fragment_cache_key(value = nil, &key)
+ self.fragment_cache_keys += [key || -> { value }]
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Callbacks.html b/src/classes/AbstractController/Callbacks.html
index 4e3a570e15..36bffc7d1d 100644
--- a/src/classes/AbstractController/Callbacks.html
+++ b/src/classes/AbstractController/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/AbstractController/Callbacks/ClassMethods.html b/src/classes/AbstractController/Callbacks/ClassMethods.html
index 8df003036a..43c33d5431 100644
--- a/src/classes/AbstractController/Callbacks/ClassMethods.html
+++ b/src/classes/AbstractController/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -148,18 +148,18 @@ Block Parameters
# File actionpack/lib/abstract_controller/callbacks.rb, line 120
- def _insert_callbacks(callbacks, block = nil)
- options = callbacks.extract_options!
- callbacks.push(block) if block
- options[:filters] = callbacks
- _normalize_callback_options(options)
- options.delete(:filters)
- callbacks.each do |callback|
- yield callback, options
- end
- end
+def _insert_callbacks(callbacks, block = nil)
+ options = callbacks.extract_options!
+ callbacks.push(block) if block
+ options[:filters] = callbacks
+ _normalize_callback_options(options)
+ options.delete(:filters)
+ callbacks.each do |callback|
+ yield callback, options
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -209,12 +209,12 @@ Options
# File actionpack/lib/abstract_controller/callbacks.rb, line 93
- def _normalize_callback_options(options)
- _normalize_callback_option(options, :only, :if)
- _normalize_callback_option(options, :except, :unless)
- end
+def _normalize_callback_options(options)
+ _normalize_callback_option(options, :only, :if)
+ _normalize_callback_option(options, :except, :unless)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,7 +240,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -264,7 +264,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -288,7 +288,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -314,7 +314,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -338,7 +338,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -364,7 +364,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -388,7 +388,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
Given a key (as described in expire_fragment), returns a key array suitable for use in reading, writing, or expiring a cached fragment. All keys begin with :views, followed by ENV["RAILS_CACHE_ID"] or ENV["RAILS_APP_VERSION"] if set, followed by any controller-wide key prefix values, ending with the specified key value.
Given a key (as described in expire_fragment), returns a key array suitable for use in reading, writing, or expiring a cached fragment. All keys begin with :views, followed by ENV["RAILS_CACHE_ID"] or ENV["RAILS_APP_VERSION"] if set, followed by any controller-wide key prefix values, ending with the specified key value.
# File actionpack/lib/abstract_controller/caching/fragments.rb, line 68
- def combined_fragment_cache_key(key)
- head = self.class.fragment_cache_keys.map { |k| instance_exec(&k) }
- tail = key.is_a?(Hash) ? url_for(key).split("://").last : key
-
- cache_key = [:views, ENV["RAILS_CACHE_ID"] || ENV["RAILS_APP_VERSION"], head, tail]
- cache_key.flatten!(1)
- cache_key.compact!
- cache_key
- end
+def combined_fragment_cache_key(key)
+ head = self.class.fragment_cache_keys.map { |k| instance_exec(&k) }
+ tail = key.is_a?(Hash) ? url_for(key).split("://").last : key
+
+ cache_key = [:views, ENV["RAILS_CACHE_ID"] || ENV["RAILS_APP_VERSION"], head, tail]
+ cache_key.flatten!(1)
+ cache_key.compact!
+ cache_key
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -176,20 +176,20 @@
# File actionpack/lib/abstract_controller/caching/fragments.rb, line 131
- def expire_fragment(key, options = nil)
- return unless cache_configured?
- key = combined_fragment_cache_key(key) unless key.is_a?(Regexp)
-
- instrument_fragment_cache :expire_fragment, key do
- if key.is_a?(Regexp)
- cache_store.delete_matched(key, options)
- else
- cache_store.delete(key, options)
- end
- end
- end
+def expire_fragment(key, options = nil)
+ return unless cache_configured?
+ key = combined_fragment_cache_key(key) unless key.is_a?(Regexp)
+
+ instrument_fragment_cache :expire_fragment, key do
+ if key.is_a?(Regexp)
+ cache_store.delete_matched(key, options)
+ else
+ cache_store.delete(key, options)
+ end
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -204,7 +204,7 @@
- Check if a cached fragment from the location signified by key exists (see expire_fragment for acceptable formats).
+ Check if a cached fragment from the location signified by key exists (see expire_fragment for acceptable formats).
@@ -220,16 +220,16 @@
# File actionpack/lib/abstract_controller/caching/fragments.rb, line 105
- def fragment_exist?(key, options = nil)
- return unless cache_configured?
- key = combined_fragment_cache_key(key)
-
- instrument_fragment_cache :exist_fragment?, key do
- cache_store.exist?(key, options)
- end
- end
+def fragment_exist?(key, options = nil)
+ return unless cache_configured?
+ key = combined_fragment_cache_key(key)
+
+ instrument_fragment_cache :exist_fragment?, key do
+ cache_store.exist?(key, options)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -244,7 +244,7 @@
- Reads a cached fragment from the location signified by key (see expire_fragment for acceptable formats).
+ Reads a cached fragment from the location signified by key (see expire_fragment for acceptable formats).
@@ -260,17 +260,17 @@
# File actionpack/lib/abstract_controller/caching/fragments.rb, line 93
- def read_fragment(key, options = nil)
- return unless cache_configured?
-
- key = combined_fragment_cache_key(key)
- instrument_fragment_cache :read_fragment, key do
- result = cache_store.read(key, options)
- result.respond_to?(:html_safe) ? result.html_safe : result
- end
- end
+def read_fragment(key, options = nil)
+ return unless cache_configured?
+
+ key = combined_fragment_cache_key(key)
+ instrument_fragment_cache :read_fragment, key do
+ result = cache_store.read(key, options)
+ result.respond_to?(:html_safe) ? result.html_safe : result
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -285,7 +285,7 @@
- Writes content to the location signified by key (see expire_fragment for acceptable formats).
+ Writes content to the location signified by key (see expire_fragment for acceptable formats).
@@ -301,18 +301,18 @@
# File actionpack/lib/abstract_controller/caching/fragments.rb, line 80
- def write_fragment(key, content, options = nil)
- return content unless cache_configured?
-
- key = combined_fragment_cache_key(key)
- instrument_fragment_cache :write_fragment, key do
- content = content.to_str
- cache_store.write(key, content, options)
- end
- content
- end
+def write_fragment(key, content, options = nil)
+ return content unless cache_configured?
+
+ key = combined_fragment_cache_key(key)
+ instrument_fragment_cache :write_fragment, key do
+ content = content.to_str
+ cache_store.write(key, content, options)
+ end
+ content
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Caching/Fragments/ClassMethods.html b/src/classes/AbstractController/Caching/Fragments/ClassMethods.html
index f684e4fb8f..3fd0838698 100644
--- a/src/classes/AbstractController/Caching/Fragments/ClassMethods.html
+++ b/src/classes/AbstractController/Caching/Fragments/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -98,11 +98,11 @@
# File actionpack/lib/abstract_controller/caching/fragments.rb, line 58
- def fragment_cache_key(value = nil, &key)
- self.fragment_cache_keys += [key || -> { value }]
- end
+def fragment_cache_key(value = nil, &key)
+ self.fragment_cache_keys += [key || -> { value }]
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Callbacks.html b/src/classes/AbstractController/Callbacks.html
index 4e3a570e15..36bffc7d1d 100644
--- a/src/classes/AbstractController/Callbacks.html
+++ b/src/classes/AbstractController/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/AbstractController/Callbacks/ClassMethods.html b/src/classes/AbstractController/Callbacks/ClassMethods.html
index 8df003036a..43c33d5431 100644
--- a/src/classes/AbstractController/Callbacks/ClassMethods.html
+++ b/src/classes/AbstractController/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -148,18 +148,18 @@ Block Parameters
# File actionpack/lib/abstract_controller/callbacks.rb, line 120
- def _insert_callbacks(callbacks, block = nil)
- options = callbacks.extract_options!
- callbacks.push(block) if block
- options[:filters] = callbacks
- _normalize_callback_options(options)
- options.delete(:filters)
- callbacks.each do |callback|
- yield callback, options
- end
- end
+def _insert_callbacks(callbacks, block = nil)
+ options = callbacks.extract_options!
+ callbacks.push(block) if block
+ options[:filters] = callbacks
+ _normalize_callback_options(options)
+ options.delete(:filters)
+ callbacks.each do |callback|
+ yield callback, options
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -209,12 +209,12 @@ Options
# File actionpack/lib/abstract_controller/callbacks.rb, line 93
- def _normalize_callback_options(options)
- _normalize_callback_option(options, :only, :if)
- _normalize_callback_option(options, :except, :unless)
- end
+def _normalize_callback_options(options)
+ _normalize_callback_option(options, :only, :if)
+ _normalize_callback_option(options, :except, :unless)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,7 +240,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -264,7 +264,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -288,7 +288,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -314,7 +314,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -338,7 +338,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -364,7 +364,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -388,7 +388,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
# File actionpack/lib/abstract_controller/caching/fragments.rb, line 68
- def combined_fragment_cache_key(key)
- head = self.class.fragment_cache_keys.map { |k| instance_exec(&k) }
- tail = key.is_a?(Hash) ? url_for(key).split("://").last : key
-
- cache_key = [:views, ENV["RAILS_CACHE_ID"] || ENV["RAILS_APP_VERSION"], head, tail]
- cache_key.flatten!(1)
- cache_key.compact!
- cache_key
- end# File actionpack/lib/abstract_controller/caching/fragments.rb, line 131
- def expire_fragment(key, options = nil)
- return unless cache_configured?
- key = combined_fragment_cache_key(key) unless key.is_a?(Regexp)
-
- instrument_fragment_cache :expire_fragment, key do
- if key.is_a?(Regexp)
- cache_store.delete_matched(key, options)
- else
- cache_store.delete(key, options)
- end
- end
- end
+def expire_fragment(key, options = nil)
+ return unless cache_configured?
+ key = combined_fragment_cache_key(key) unless key.is_a?(Regexp)
+
+ instrument_fragment_cache :expire_fragment, key do
+ if key.is_a?(Regexp)
+ cache_store.delete_matched(key, options)
+ else
+ cache_store.delete(key, options)
+ end
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -204,7 +204,7 @@
- Check if a cached fragment from the location signified by key exists (see expire_fragment for acceptable formats).
+ Check if a cached fragment from the location signified by key exists (see expire_fragment for acceptable formats).
@@ -220,16 +220,16 @@
# File actionpack/lib/abstract_controller/caching/fragments.rb, line 105
- def fragment_exist?(key, options = nil)
- return unless cache_configured?
- key = combined_fragment_cache_key(key)
-
- instrument_fragment_cache :exist_fragment?, key do
- cache_store.exist?(key, options)
- end
- end
+def fragment_exist?(key, options = nil)
+ return unless cache_configured?
+ key = combined_fragment_cache_key(key)
+
+ instrument_fragment_cache :exist_fragment?, key do
+ cache_store.exist?(key, options)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -244,7 +244,7 @@
- Reads a cached fragment from the location signified by key (see expire_fragment for acceptable formats).
+ Reads a cached fragment from the location signified by key (see expire_fragment for acceptable formats).
@@ -260,17 +260,17 @@
# File actionpack/lib/abstract_controller/caching/fragments.rb, line 93
- def read_fragment(key, options = nil)
- return unless cache_configured?
-
- key = combined_fragment_cache_key(key)
- instrument_fragment_cache :read_fragment, key do
- result = cache_store.read(key, options)
- result.respond_to?(:html_safe) ? result.html_safe : result
- end
- end
+def read_fragment(key, options = nil)
+ return unless cache_configured?
+
+ key = combined_fragment_cache_key(key)
+ instrument_fragment_cache :read_fragment, key do
+ result = cache_store.read(key, options)
+ result.respond_to?(:html_safe) ? result.html_safe : result
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -285,7 +285,7 @@
- Writes content to the location signified by key (see expire_fragment for acceptable formats).
+ Writes content to the location signified by key (see expire_fragment for acceptable formats).
@@ -301,18 +301,18 @@
# File actionpack/lib/abstract_controller/caching/fragments.rb, line 80
- def write_fragment(key, content, options = nil)
- return content unless cache_configured?
-
- key = combined_fragment_cache_key(key)
- instrument_fragment_cache :write_fragment, key do
- content = content.to_str
- cache_store.write(key, content, options)
- end
- content
- end
+def write_fragment(key, content, options = nil)
+ return content unless cache_configured?
+
+ key = combined_fragment_cache_key(key)
+ instrument_fragment_cache :write_fragment, key do
+ content = content.to_str
+ cache_store.write(key, content, options)
+ end
+ content
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Caching/Fragments/ClassMethods.html b/src/classes/AbstractController/Caching/Fragments/ClassMethods.html
index f684e4fb8f..3fd0838698 100644
--- a/src/classes/AbstractController/Caching/Fragments/ClassMethods.html
+++ b/src/classes/AbstractController/Caching/Fragments/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -98,11 +98,11 @@
# File actionpack/lib/abstract_controller/caching/fragments.rb, line 58
- def fragment_cache_key(value = nil, &key)
- self.fragment_cache_keys += [key || -> { value }]
- end
+def fragment_cache_key(value = nil, &key)
+ self.fragment_cache_keys += [key || -> { value }]
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Callbacks.html b/src/classes/AbstractController/Callbacks.html
index 4e3a570e15..36bffc7d1d 100644
--- a/src/classes/AbstractController/Callbacks.html
+++ b/src/classes/AbstractController/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/AbstractController/Callbacks/ClassMethods.html b/src/classes/AbstractController/Callbacks/ClassMethods.html
index 8df003036a..43c33d5431 100644
--- a/src/classes/AbstractController/Callbacks/ClassMethods.html
+++ b/src/classes/AbstractController/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -148,18 +148,18 @@ Block Parameters
# File actionpack/lib/abstract_controller/callbacks.rb, line 120
- def _insert_callbacks(callbacks, block = nil)
- options = callbacks.extract_options!
- callbacks.push(block) if block
- options[:filters] = callbacks
- _normalize_callback_options(options)
- options.delete(:filters)
- callbacks.each do |callback|
- yield callback, options
- end
- end
+def _insert_callbacks(callbacks, block = nil)
+ options = callbacks.extract_options!
+ callbacks.push(block) if block
+ options[:filters] = callbacks
+ _normalize_callback_options(options)
+ options.delete(:filters)
+ callbacks.each do |callback|
+ yield callback, options
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -209,12 +209,12 @@ Options
# File actionpack/lib/abstract_controller/callbacks.rb, line 93
- def _normalize_callback_options(options)
- _normalize_callback_option(options, :only, :if)
- _normalize_callback_option(options, :except, :unless)
- end
+def _normalize_callback_options(options)
+ _normalize_callback_option(options, :only, :if)
+ _normalize_callback_option(options, :except, :unless)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,7 +240,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -264,7 +264,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -288,7 +288,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -314,7 +314,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -338,7 +338,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -364,7 +364,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -388,7 +388,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
Check if a cached fragment from the location signified by key exists (see expire_fragment for acceptable formats).
Check if a cached fragment from the location signified by key exists (see expire_fragment for acceptable formats).
# File actionpack/lib/abstract_controller/caching/fragments.rb, line 105
- def fragment_exist?(key, options = nil)
- return unless cache_configured?
- key = combined_fragment_cache_key(key)
-
- instrument_fragment_cache :exist_fragment?, key do
- cache_store.exist?(key, options)
- end
- end
+def fragment_exist?(key, options = nil)
+ return unless cache_configured?
+ key = combined_fragment_cache_key(key)
+
+ instrument_fragment_cache :exist_fragment?, key do
+ cache_store.exist?(key, options)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -244,7 +244,7 @@
- Reads a cached fragment from the location signified by key (see expire_fragment for acceptable formats).
+ Reads a cached fragment from the location signified by key (see expire_fragment for acceptable formats).
@@ -260,17 +260,17 @@
# File actionpack/lib/abstract_controller/caching/fragments.rb, line 93
- def read_fragment(key, options = nil)
- return unless cache_configured?
-
- key = combined_fragment_cache_key(key)
- instrument_fragment_cache :read_fragment, key do
- result = cache_store.read(key, options)
- result.respond_to?(:html_safe) ? result.html_safe : result
- end
- end
+def read_fragment(key, options = nil)
+ return unless cache_configured?
+
+ key = combined_fragment_cache_key(key)
+ instrument_fragment_cache :read_fragment, key do
+ result = cache_store.read(key, options)
+ result.respond_to?(:html_safe) ? result.html_safe : result
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -285,7 +285,7 @@
- Writes content to the location signified by key (see expire_fragment for acceptable formats).
+ Writes content to the location signified by key (see expire_fragment for acceptable formats).
@@ -301,18 +301,18 @@
# File actionpack/lib/abstract_controller/caching/fragments.rb, line 80
- def write_fragment(key, content, options = nil)
- return content unless cache_configured?
-
- key = combined_fragment_cache_key(key)
- instrument_fragment_cache :write_fragment, key do
- content = content.to_str
- cache_store.write(key, content, options)
- end
- content
- end
+def write_fragment(key, content, options = nil)
+ return content unless cache_configured?
+
+ key = combined_fragment_cache_key(key)
+ instrument_fragment_cache :write_fragment, key do
+ content = content.to_str
+ cache_store.write(key, content, options)
+ end
+ content
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Caching/Fragments/ClassMethods.html b/src/classes/AbstractController/Caching/Fragments/ClassMethods.html
index f684e4fb8f..3fd0838698 100644
--- a/src/classes/AbstractController/Caching/Fragments/ClassMethods.html
+++ b/src/classes/AbstractController/Caching/Fragments/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -98,11 +98,11 @@
# File actionpack/lib/abstract_controller/caching/fragments.rb, line 58
- def fragment_cache_key(value = nil, &key)
- self.fragment_cache_keys += [key || -> { value }]
- end
+def fragment_cache_key(value = nil, &key)
+ self.fragment_cache_keys += [key || -> { value }]
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Callbacks.html b/src/classes/AbstractController/Callbacks.html
index 4e3a570e15..36bffc7d1d 100644
--- a/src/classes/AbstractController/Callbacks.html
+++ b/src/classes/AbstractController/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/AbstractController/Callbacks/ClassMethods.html b/src/classes/AbstractController/Callbacks/ClassMethods.html
index 8df003036a..43c33d5431 100644
--- a/src/classes/AbstractController/Callbacks/ClassMethods.html
+++ b/src/classes/AbstractController/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -148,18 +148,18 @@ Block Parameters
# File actionpack/lib/abstract_controller/callbacks.rb, line 120
- def _insert_callbacks(callbacks, block = nil)
- options = callbacks.extract_options!
- callbacks.push(block) if block
- options[:filters] = callbacks
- _normalize_callback_options(options)
- options.delete(:filters)
- callbacks.each do |callback|
- yield callback, options
- end
- end
+def _insert_callbacks(callbacks, block = nil)
+ options = callbacks.extract_options!
+ callbacks.push(block) if block
+ options[:filters] = callbacks
+ _normalize_callback_options(options)
+ options.delete(:filters)
+ callbacks.each do |callback|
+ yield callback, options
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -209,12 +209,12 @@ Options
# File actionpack/lib/abstract_controller/callbacks.rb, line 93
- def _normalize_callback_options(options)
- _normalize_callback_option(options, :only, :if)
- _normalize_callback_option(options, :except, :unless)
- end
+def _normalize_callback_options(options)
+ _normalize_callback_option(options, :only, :if)
+ _normalize_callback_option(options, :except, :unless)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,7 +240,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -264,7 +264,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -288,7 +288,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -314,7 +314,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -338,7 +338,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -364,7 +364,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -388,7 +388,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
Reads a cached fragment from the location signified by key (see expire_fragment for acceptable formats).
Reads a cached fragment from the location signified by key (see expire_fragment for acceptable formats).
# File actionpack/lib/abstract_controller/caching/fragments.rb, line 93
- def read_fragment(key, options = nil)
- return unless cache_configured?
-
- key = combined_fragment_cache_key(key)
- instrument_fragment_cache :read_fragment, key do
- result = cache_store.read(key, options)
- result.respond_to?(:html_safe) ? result.html_safe : result
- end
- end
+def read_fragment(key, options = nil)
+ return unless cache_configured?
+
+ key = combined_fragment_cache_key(key)
+ instrument_fragment_cache :read_fragment, key do
+ result = cache_store.read(key, options)
+ result.respond_to?(:html_safe) ? result.html_safe : result
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -285,7 +285,7 @@
- Writes content to the location signified by key (see expire_fragment for acceptable formats).
+ Writes content to the location signified by key (see expire_fragment for acceptable formats).
@@ -301,18 +301,18 @@
# File actionpack/lib/abstract_controller/caching/fragments.rb, line 80
- def write_fragment(key, content, options = nil)
- return content unless cache_configured?
-
- key = combined_fragment_cache_key(key)
- instrument_fragment_cache :write_fragment, key do
- content = content.to_str
- cache_store.write(key, content, options)
- end
- content
- end
+def write_fragment(key, content, options = nil)
+ return content unless cache_configured?
+
+ key = combined_fragment_cache_key(key)
+ instrument_fragment_cache :write_fragment, key do
+ content = content.to_str
+ cache_store.write(key, content, options)
+ end
+ content
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Caching/Fragments/ClassMethods.html b/src/classes/AbstractController/Caching/Fragments/ClassMethods.html
index f684e4fb8f..3fd0838698 100644
--- a/src/classes/AbstractController/Caching/Fragments/ClassMethods.html
+++ b/src/classes/AbstractController/Caching/Fragments/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -98,11 +98,11 @@
# File actionpack/lib/abstract_controller/caching/fragments.rb, line 58
- def fragment_cache_key(value = nil, &key)
- self.fragment_cache_keys += [key || -> { value }]
- end
+def fragment_cache_key(value = nil, &key)
+ self.fragment_cache_keys += [key || -> { value }]
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Callbacks.html b/src/classes/AbstractController/Callbacks.html
index 4e3a570e15..36bffc7d1d 100644
--- a/src/classes/AbstractController/Callbacks.html
+++ b/src/classes/AbstractController/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/AbstractController/Callbacks/ClassMethods.html b/src/classes/AbstractController/Callbacks/ClassMethods.html
index 8df003036a..43c33d5431 100644
--- a/src/classes/AbstractController/Callbacks/ClassMethods.html
+++ b/src/classes/AbstractController/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -148,18 +148,18 @@ Block Parameters
# File actionpack/lib/abstract_controller/callbacks.rb, line 120
- def _insert_callbacks(callbacks, block = nil)
- options = callbacks.extract_options!
- callbacks.push(block) if block
- options[:filters] = callbacks
- _normalize_callback_options(options)
- options.delete(:filters)
- callbacks.each do |callback|
- yield callback, options
- end
- end
+def _insert_callbacks(callbacks, block = nil)
+ options = callbacks.extract_options!
+ callbacks.push(block) if block
+ options[:filters] = callbacks
+ _normalize_callback_options(options)
+ options.delete(:filters)
+ callbacks.each do |callback|
+ yield callback, options
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -209,12 +209,12 @@ Options
# File actionpack/lib/abstract_controller/callbacks.rb, line 93
- def _normalize_callback_options(options)
- _normalize_callback_option(options, :only, :if)
- _normalize_callback_option(options, :except, :unless)
- end
+def _normalize_callback_options(options)
+ _normalize_callback_option(options, :only, :if)
+ _normalize_callback_option(options, :except, :unless)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,7 +240,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -264,7 +264,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -288,7 +288,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -314,7 +314,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -338,7 +338,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -364,7 +364,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -388,7 +388,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
Writes content to the location signified by key (see expire_fragment for acceptable formats).
Writes content to the location signified by key (see expire_fragment for acceptable formats).
# File actionpack/lib/abstract_controller/caching/fragments.rb, line 80
- def write_fragment(key, content, options = nil)
- return content unless cache_configured?
-
- key = combined_fragment_cache_key(key)
- instrument_fragment_cache :write_fragment, key do
- content = content.to_str
- cache_store.write(key, content, options)
- end
- content
- end
+def write_fragment(key, content, options = nil)
+ return content unless cache_configured?
+
+ key = combined_fragment_cache_key(key)
+ instrument_fragment_cache :write_fragment, key do
+ content = content.to_str
+ cache_store.write(key, content, options)
+ end
+ content
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Caching/Fragments/ClassMethods.html b/src/classes/AbstractController/Caching/Fragments/ClassMethods.html
index f684e4fb8f..3fd0838698 100644
--- a/src/classes/AbstractController/Caching/Fragments/ClassMethods.html
+++ b/src/classes/AbstractController/Caching/Fragments/ClassMethods.html
@@ -5,7 +5,7 @@
+ Ruby on Rails 8.1.0.rc1
@@ -98,11 +98,11 @@
# File actionpack/lib/abstract_controller/caching/fragments.rb, line 58
- def fragment_cache_key(value = nil, &key)
- self.fragment_cache_keys += [key || -> { value }]
- end
+def fragment_cache_key(value = nil, &key)
+ self.fragment_cache_keys += [key || -> { value }]
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Callbacks.html b/src/classes/AbstractController/Callbacks.html
index 4e3a570e15..36bffc7d1d 100644
--- a/src/classes/AbstractController/Callbacks.html
+++ b/src/classes/AbstractController/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/AbstractController/Callbacks/ClassMethods.html b/src/classes/AbstractController/Callbacks/ClassMethods.html
index 8df003036a..43c33d5431 100644
--- a/src/classes/AbstractController/Callbacks/ClassMethods.html
+++ b/src/classes/AbstractController/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -148,18 +148,18 @@ Block Parameters
# File actionpack/lib/abstract_controller/callbacks.rb, line 120
- def _insert_callbacks(callbacks, block = nil)
- options = callbacks.extract_options!
- callbacks.push(block) if block
- options[:filters] = callbacks
- _normalize_callback_options(options)
- options.delete(:filters)
- callbacks.each do |callback|
- yield callback, options
- end
- end
+def _insert_callbacks(callbacks, block = nil)
+ options = callbacks.extract_options!
+ callbacks.push(block) if block
+ options[:filters] = callbacks
+ _normalize_callback_options(options)
+ options.delete(:filters)
+ callbacks.each do |callback|
+ yield callback, options
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -209,12 +209,12 @@ Options
# File actionpack/lib/abstract_controller/callbacks.rb, line 93
- def _normalize_callback_options(options)
- _normalize_callback_option(options, :only, :if)
- _normalize_callback_option(options, :except, :unless)
- end
+def _normalize_callback_options(options)
+ _normalize_callback_option(options, :only, :if)
+ _normalize_callback_option(options, :except, :unless)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,7 +240,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -264,7 +264,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -288,7 +288,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -314,7 +314,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -338,7 +338,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
# File actionpack/lib/abstract_controller/caching/fragments.rb, line 58
- def fragment_cache_key(value = nil, &key)
- self.fragment_cache_keys += [key || -> { value }]
- end
+def fragment_cache_key(value = nil, &key)
+ self.fragment_cache_keys += [key || -> { value }]
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Callbacks.html b/src/classes/AbstractController/Callbacks.html
index 4e3a570e15..36bffc7d1d 100644
--- a/src/classes/AbstractController/Callbacks.html
+++ b/src/classes/AbstractController/Callbacks.html
@@ -5,7 +5,7 @@
+ Ruby on Rails 8.1.0.rc1
diff --git a/src/classes/AbstractController/Callbacks/ClassMethods.html b/src/classes/AbstractController/Callbacks/ClassMethods.html
index 8df003036a..43c33d5431 100644
--- a/src/classes/AbstractController/Callbacks/ClassMethods.html
+++ b/src/classes/AbstractController/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -148,18 +148,18 @@ Block Parameters
# File actionpack/lib/abstract_controller/callbacks.rb, line 120
- def _insert_callbacks(callbacks, block = nil)
- options = callbacks.extract_options!
- callbacks.push(block) if block
- options[:filters] = callbacks
- _normalize_callback_options(options)
- options.delete(:filters)
- callbacks.each do |callback|
- yield callback, options
- end
- end
+def _insert_callbacks(callbacks, block = nil)
+ options = callbacks.extract_options!
+ callbacks.push(block) if block
+ options[:filters] = callbacks
+ _normalize_callback_options(options)
+ options.delete(:filters)
+ callbacks.each do |callback|
+ yield callback, options
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -209,12 +209,12 @@ Options
# File actionpack/lib/abstract_controller/callbacks.rb, line 93
- def _normalize_callback_options(options)
- _normalize_callback_option(options, :only, :if)
- _normalize_callback_option(options, :except, :unless)
- end
+def _normalize_callback_options(options)
+ _normalize_callback_option(options, :only, :if)
+ _normalize_callback_option(options, :except, :unless)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,7 +240,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -264,7 +264,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -288,7 +288,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
+ Ruby on Rails 8.1.0.rc1
@@ -148,18 +148,18 @@ Block Parameters
# File actionpack/lib/abstract_controller/callbacks.rb, line 120
- def _insert_callbacks(callbacks, block = nil)
- options = callbacks.extract_options!
- callbacks.push(block) if block
- options[:filters] = callbacks
- _normalize_callback_options(options)
- options.delete(:filters)
- callbacks.each do |callback|
- yield callback, options
- end
- end
+def _insert_callbacks(callbacks, block = nil)
+ options = callbacks.extract_options!
+ callbacks.push(block) if block
+ options[:filters] = callbacks
+ _normalize_callback_options(options)
+ options.delete(:filters)
+ callbacks.each do |callback|
+ yield callback, options
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -209,12 +209,12 @@ Options
# File actionpack/lib/abstract_controller/callbacks.rb, line 93
- def _normalize_callback_options(options)
- _normalize_callback_option(options, :only, :if)
- _normalize_callback_option(options, :except, :unless)
- end
+def _normalize_callback_options(options)
+ _normalize_callback_option(options, :only, :if)
+ _normalize_callback_option(options, :except, :unless)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,7 +240,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
# File actionpack/lib/abstract_controller/callbacks.rb, line 120
- def _insert_callbacks(callbacks, block = nil)
- options = callbacks.extract_options!
- callbacks.push(block) if block
- options[:filters] = callbacks
- _normalize_callback_options(options)
- options.delete(:filters)
- callbacks.each do |callback|
- yield callback, options
- end
- end# File actionpack/lib/abstract_controller/callbacks.rb, line 93
- def _normalize_callback_options(options)
- _normalize_callback_option(options, :only, :if)
- _normalize_callback_option(options, :except, :unless)
- end- 🔎 See on GitHub + 🔎 See on GitHub
- 🔎 See on GitHub + 🔎 See on GitHub
- 🔎 See on GitHub + 🔎 See on GitHub
- 🔎 See on GitHub + 🔎 See on GitHub
- 🔎 See on GitHub + 🔎 See on GitHub
- 🔎 See on GitHub + 🔎 See on GitHub
- 🔎 See on GitHub + 🔎 See on GitHub
- 🔎 See on GitHub + 🔎 See on GitHub
- 🔎 See on GitHub + 🔎 See on GitHub
+ Ruby on Rails 8.1.0.rc1
@@ -81,16 +81,16 @@
# File actionpack/lib/abstract_controller/collector.rb, line 9
- def self.generate_method_for_mime(mime)
- sym = mime.is_a?(Symbol) ? mime : mime.to_sym
- class_eval <<-RUBY, __FILE__, __LINE__ + 1
- def #{sym}(...)
- custom(Mime[:#{sym}], ...)
- end
- RUBY
- end
+def self.generate_method_for_mime(mime)
+ sym = mime.is_a?(Symbol) ? mime : mime.to_sym
+ class_eval <<-RUBY, __FILE__, __LINE__ + 1
+ def #{sym}(...)
+ custom(Mime[:#{sym}], ...)
+ end
+ RUBY
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/DoubleRenderError.html b/src/classes/AbstractController/DoubleRenderError.html
index b0a21b293d..8f48bc9ef3 100644
--- a/src/classes/AbstractController/DoubleRenderError.html
+++ b/src/classes/AbstractController/DoubleRenderError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -100,11 +100,11 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 13
- def initialize(message = nil)
- super(message || DEFAULT_MESSAGE)
- end
+def initialize(message = nil)
+ super(message || DEFAULT_MESSAGE)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Helpers.html b/src/classes/AbstractController/Helpers.html
index 9fc0534a60..b4d98aa351 100644
--- a/src/classes/AbstractController/Helpers.html
+++ b/src/classes/AbstractController/Helpers.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,11 +95,11 @@
# File actionpack/lib/abstract_controller/helpers.rb, line 28
- def _helpers
- self.class._helpers
- end
+def _helpers
+ self.class._helpers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Helpers/ClassMethods.html b/src/classes/AbstractController/Helpers/ClassMethods.html
index 8900a598d0..33df6d47c3 100644
--- a/src/classes/AbstractController/Helpers/ClassMethods.html
+++ b/src/classes/AbstractController/Helpers/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -119,7 +119,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -148,14 +148,14 @@
# File actionpack/lib/abstract_controller/helpers.rb, line 218
- def _helpers_for_modification
- unless @_helpers
- self._helpers = define_helpers_module(self, superclass._helpers)
- end
- _helpers
- end
+def _helpers_for_modification
+ unless @_helpers
+ self._helpers = define_helpers_module(self, superclass._helpers)
+ end
+ _helpers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -186,16 +186,16 @@
# File actionpack/lib/abstract_controller/helpers.rb, line 209
- def clear_helpers
- inherited_helper_methods = _helper_methods
- self._helpers = Module.new
- self._helper_methods = Array.new
-
- inherited_helper_methods.each { |meth| helper_method meth }
- default_helper_module! unless anonymous?
- end
+def clear_helpers
+ inherited_helper_methods = _helper_methods
+ self._helpers = Module.new
+ self._helper_methods = Array.new
+
+ inherited_helper_methods.each { |meth| helper_method meth }
+ default_helper_module! unless anonymous?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -274,16 +274,16 @@
# File actionpack/lib/abstract_controller/helpers.rb, line 198
- def helper(*args, &block)
- modules_for_helpers(args).each do |mod|
- next if _helpers.include?(mod)
- _helpers_for_modification.include(mod)
- end
-
- _helpers_for_modification.module_eval(&block) if block_given?
- end
+def helper(*args, &block)
+ modules_for_helpers(args).each do |mod|
+ next if _helpers.include?(mod)
+ _helpers_for_modification.include(mod)
+ end
+
+ _helpers_for_modification.module_eval(&block) if block_given?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -338,26 +338,26 @@ Parameters
# File actionpack/lib/abstract_controller/helpers.rb, line 128
- def helper_method(*methods)
- methods.flatten!
- self._helper_methods += methods
-
- location = caller_locations(1, 1).first
- file, line = location.path, location.lineno
-
- methods.each do |method|
- # def current_user(...)
- # controller.send(:'current_user', ...)
- # end
- _helpers_for_modification.class_eval <<~ruby_eval.lines.map(&:strip).join(";"), file, line
- def #{method}(...)
- controller.send(:'#{method}', ...)
- end
- ruby_eval
- end
- end
+def helper_method(*methods)
+ methods.flatten!
+ self._helper_methods += methods
+
+ location = caller_locations(1, 1).first
+ file, line = location.path, location.lineno
+
+ methods.each do |method|
+ # def current_user(...)
+ # controller.send(:'current_user', ...)
+ # end
+ _helpers_for_modification.class_eval <<~ruby_eval.lines.map(&:strip).join(";"), file, line
+ def #{method}(...)
+ controller.send(:'#{method}', ...)
+ end
+ ruby_eval
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -388,15 +388,15 @@
# File actionpack/lib/abstract_controller/helpers.rb, line 68
- def inherited(klass)
- # Inherited from parent by default
- klass._helpers = nil
+def inherited(klass)
+ # Inherited from parent by default
+ klass._helpers = nil
- klass.class_eval { default_helper_module! } unless klass.anonymous?
- super
- end
+ klass.class_eval { default_helper_module! } unless klass.anonymous?
+ super
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -426,7 +426,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Railties.html b/src/classes/AbstractController/Railties.html
index ddb634ab93..e9e5642902 100644
--- a/src/classes/AbstractController/Railties.html
+++ b/src/classes/AbstractController/Railties.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/AbstractController/Railties/RoutesHelpers.html b/src/classes/AbstractController/Railties/RoutesHelpers.html
index 2b3b00e29d..b053082e31 100644
--- a/src/classes/AbstractController/Railties/RoutesHelpers.html
+++ b/src/classes/AbstractController/Railties/RoutesHelpers.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -81,21 +81,21 @@
# File actionpack/lib/abstract_controller/railties/routes_helpers.rb, line 10
- def self.with(routes, include_path_helpers = true)
- Module.new do
- define_method(:inherited) do |klass|
- super(klass)
-
- if namespace = klass.module_parents.detect { |m| m.respond_to?(:railtie_routes_url_helpers) }
- klass.include(namespace.railtie_routes_url_helpers(include_path_helpers))
- else
- klass.include(routes.url_helpers(include_path_helpers))
- end
- end
- end
- end
+def self.with(routes, include_path_helpers = true)
+ Module.new do
+ define_method(:inherited) do |klass|
+ super(klass)
+
+ if namespace = klass.module_parents.detect { |m| m.respond_to?(:railtie_routes_url_helpers) }
+ klass.include(namespace.railtie_routes_url_helpers(include_path_helpers))
+ else
+ klass.include(routes.url_helpers(include_path_helpers))
+ end
+ end
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Rendering.html b/src/classes/AbstractController/Rendering.html
index 872a9d8b43..0fa902a303 100644
--- a/src/classes/AbstractController/Rendering.html
+++ b/src/classes/AbstractController/Rendering.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -123,7 +123,7 @@
Normalizes arguments and options, and then delegates to render_to_body and sticks the result in self.response_body.
-Supported options depend on the underlying render_to_body implementation.
+Supported options depend on the underlying render_to_body implementation.
@@ -139,19 +139,19 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 26
- def render(*args, &block)
- options = _normalize_render(*args, &block)
- rendered_body = render_to_body(options)
- if options[:html]
- _set_html_content_type
- else
- _set_rendered_content_type rendered_format
- end
- _set_vary_header
- self.response_body = rendered_body
- end
+def render(*args, &block)
+ options = _normalize_render(*args, &block)
+ rendered_body = render_to_body(options)
+ if options[:html]
+ _set_html_content_type
+ else
+ _set_rendered_content_type rendered_format
+ end
+ _set_vary_header
+ self.response_body = rendered_body
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -182,10 +182,10 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 50
- def render_to_body(options = {})
- end
+def render_to_body(options = {})
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -218,12 +218,12 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 44
- def render_to_string(*args, &block)
- options = _normalize_render(*args, &block)
- render_to_body(options)
- end
+def render_to_string(*args, &block)
+ options = _normalize_render(*args, &block)
+ render_to_body(options)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -254,11 +254,11 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 54
- def rendered_format
- Mime[:text]
- end
+def rendered_format
+ Mime[:text]
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -289,15 +289,15 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 62
- def view_assigns
- variables = instance_variables - _protected_ivars
+def view_assigns
+ variables = instance_variables - _protected_ivars
- variables.each_with_object({}) do |name, hash|
- hash[name.slice(1, name.length)] = instance_variable_get(name)
- end
- end
+ variables.each_with_object({}) do |name, hash|
+ hash[name.slice(1, name.length)] = instance_variable_get(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -331,21 +331,21 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 73
- def _normalize_args(action = nil, options = {}) # :doc:
- if action.respond_to?(:permitted?)
- if action.permitted?
- action
- else
- raise ArgumentError, "render parameters are not permitted"
- end
- elsif action.is_a?(Hash)
- action
- else
- options
- end
- end
+def _normalize_args(action = nil, options = {}) # :doc:
+ if action.respond_to?(:permitted?)
+ if action.permitted?
+ action
+ else
+ raise ArgumentError, "render parameters are not permitted"
+ end
+ elsif action.is_a?(Hash)
+ action
+ else
+ options
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -376,11 +376,11 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 88
- def _normalize_options(options) # :doc:
- options
- end
+def _normalize_options(options) # :doc:
+ options
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -411,11 +411,11 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 93
- def _process_options(options) # :doc:
- options
- end
+def _process_options(options) # :doc:
+ options
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Translation.html b/src/classes/AbstractController/Translation.html
index e429818684..446e93e2cd 100644
--- a/src/classes/AbstractController/Translation.html
+++ b/src/classes/AbstractController/Translation.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -123,11 +123,11 @@
# File actionpack/lib/abstract_controller/translation.rb, line 37
- def localize(object, **options)
- I18n.localize(object, **options)
- end
+def localize(object, **options)
+ I18n.localize(object, **options)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -189,25 +189,25 @@
# File actionpack/lib/abstract_controller/translation.rb, line 17
- def translate(key, **options)
- if key&.start_with?(".")
- path = controller_path.tr("/", ".")
- defaults = [:"#{path}#{key}"]
- defaults << options[:default] if options[:default]
- options[:default] = defaults.flatten
- key = "#{path}.#{action_name}#{key}"
- end
-
- if options[:default] && ActiveSupport::HtmlSafeTranslation.html_safe_translation_key?(key)
- options[:default] = Array(options[:default]).map do |value|
- value.is_a?(String) ? ERB::Util.html_escape(value) : value
- end
- end
-
- ActiveSupport::HtmlSafeTranslation.translate(key, **options)
- end
+def translate(key, **options)
+ if key&.start_with?(".")
+ path = controller_path.tr("/", ".")
+ defaults = [:"#{path}#{key}"]
+ defaults << options[:default] if options[:default]
+ options[:default] = defaults.flatten
+ key = "#{path}.#{action_name}#{key}"
+ end
+
+ if options[:default] && ActiveSupport::HtmlSafeTranslation.html_safe_translation_key?(key)
+ options[:default] = Array(options[:default]).map do |value|
+ value.is_a?(String) ? ERB::Util.html_escape(value) : value
+ end
+ end
+
+ ActiveSupport::HtmlSafeTranslation.translate(key, **options)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/UrlFor.html b/src/classes/AbstractController/UrlFor.html
index 8d49da9f5c..bd5d0224eb 100644
--- a/src/classes/AbstractController/UrlFor.html
+++ b/src/classes/AbstractController/UrlFor.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -119,12 +119,12 @@
# File actionpack/lib/abstract_controller/url_for.rb, line 18
- def _routes
- raise "In order to use #url_for, you must include routing helpers explicitly. " \
- "For instance, `include Rails.application.routes.url_helpers`."
- end
+def _routes
+ raise "In order to use #url_for, you must include routing helpers explicitly. " \
+ "For instance, `include Rails.application.routes.url_helpers`."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/UrlFor/ClassMethods.html b/src/classes/AbstractController/UrlFor/ClassMethods.html
index cd0e5e9509..e4471b2d66 100644
--- a/src/classes/AbstractController/UrlFor/ClassMethods.html
+++ b/src/classes/AbstractController/UrlFor/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actionpack/lib/abstract_controller/url_for.rb, line 24
- def _routes
- nil
- end
+def _routes
+ nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -121,15 +121,15 @@
# File actionpack/lib/abstract_controller/url_for.rb, line 28
- def action_methods
- @action_methods ||= if _routes
- super - _routes.named_routes.helper_names
- else
- super
- end
- end
+def action_methods
+ @action_methods ||= if _routes
+ super - _routes.named_routes.helper_names
+ else
+ super
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable.html b/src/classes/ActionCable.html
index 4951b5813f..5e5f891dce 100644
--- a/src/classes/ActionCable.html
+++ b/src/classes/ActionCable.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -267,11 +267,11 @@
# File actioncable/lib/action_cable/gem_version.rb, line 7
- def self.gem_version
- Gem::Version.new VERSION::STRING
- end
+def self.gem_version
+ Gem::Version.new VERSION::STRING
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -302,11 +302,11 @@
# File actioncable/lib/action_cable/version.rb, line 9
- def self.version
- gem_version
- end
+def self.version
+ gem_version
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -341,11 +341,11 @@
# File actioncable/lib/action_cable.rb, line 77
- def server
- @server ||= ActionCable::Server::Base.new
- end
+def server
+@server ||= ActionCable::Server::Base.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel.html b/src/classes/ActionCable/Channel.html
index 38c886ddbc..06b36ff362 100644
--- a/src/classes/ActionCable/Channel.html
+++ b/src/classes/ActionCable/Channel.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Channel/Base.html b/src/classes/ActionCable/Channel/Base.html
index bc63a53315..32e2ff9b70 100644
--- a/src/classes/ActionCable/Channel/Base.html
+++ b/src/classes/ActionCable/Channel/Base.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -82,7 +82,7 @@ Action process
end
-
In this example, the subscribed and unsubscribed methods are not callable methods, as they were already declared in ActionCable::Channel::Base, but #appear and #away are. #generate_connection_token is also not callable, since it’s a private method. You’ll see that appear accepts a data parameter, which it then uses as part of its model call. #away does not, since it’s simply a trigger action.
+In this example, the subscribed and unsubscribed methods are not callable methods, as they were already declared in ActionCable::Channel::Base, but appear and away are. generate_connection_token is also not callable, since it’s a private method. You’ll see that appear accepts a data parameter, which it then uses as part of its model call. away does not, since it’s simply a trigger action.
Also note that in this example, current_user is available because it was marked as an identifying attribute on the connection. All such identifiers will automatically create a delegation method of the same name on the channel instance.
@@ -307,19 +307,22 @@ Returns
# File actioncable/lib/action_cable/channel/base.rb, line 128
- def action_methods
- @action_methods ||= begin
- # All public instance methods of this class, including ancestors
- methods = (public_instance_methods(true) -
- # Except for public instance methods of Base and its ancestors
- ActionCable::Channel::Base.public_instance_methods(true) +
- # Be sure to include shadowed public instance methods of this class
- public_instance_methods(false)).uniq.map(&:to_s)
- methods.to_set
- end
- end
-
- 🔎 See on GitHub
+def action_methods
+ @action_methods ||= begin
+ # All public instance methods of this class, including ancestors
+ methods = (public_instance_methods(true) -
+ # Except for public instance methods of Base and its ancestors
+ ActionCable::Channel::Base.public_instance_methods(true) +
+ # Be sure to include shadowed public instance methods of this class
+ public_instance_methods(false)).uniq
+
+ methods.reject! { |m| m.start_with?("_") }
+ methods.map!(&:name)
+ methods.to_set
+ end
+end
+
+ 🔎 See on GitHub
@@ -349,26 +352,26 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 155
- def initialize(connection, identifier, params = {})
- @connection = connection
- @identifier = identifier
- @params = params
+ # File actioncable/lib/action_cable/channel/base.rb, line 158
+def initialize(connection, identifier, params = {})
+ @connection = connection
+ @identifier = identifier
+ @params = params
- # When a channel is streaming via pubsub, we want to delay the confirmation
- # transmission until pubsub subscription is confirmed.
- #
- # The counter starts at 1 because it's awaiting a call to #subscribe_to_channel
- @defer_subscription_confirmation_counter = Concurrent::AtomicFixnum.new(1)
+ # When a channel is streaming via pubsub, we want to delay the confirmation
+ # transmission until pubsub subscription is confirmed.
+ #
+ # The counter starts at 1 because it's awaiting a call to #subscribe_to_channel
+ @defer_subscription_confirmation_counter = Concurrent::AtomicFixnum.new(1)
- @reject_subscription = nil
- @subscription_confirmation_sent = nil
- @unsubscribed = false
+ @reject_subscription = nil
+ @subscription_confirmation_sent = nil
+ @unsubscribed = false
- delegate_connection_identifiers
- end
+ delegate_connection_identifiers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -401,12 +404,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 144
- def clear_action_methods! # :doc:
- @action_methods = nil
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 147
+def clear_action_methods! # :doc:
+ @action_methods = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -436,13 +439,13 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 149
- def method_added(name) # :doc:
- super
- clear_action_methods!
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 152
+def method_added(name) # :doc:
+ super
+ clear_action_methods!
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -476,21 +479,21 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 176
- def perform_action(data)
- action = extract_action(data)
+ # File actioncable/lib/action_cable/channel/base.rb, line 179
+def perform_action(data)
+ action = extract_action(data)
- if processable_action?(action)
- payload = { channel_class: self.class.name, action: action, data: data }
- ActiveSupport::Notifications.instrument("perform_action.action_cable", payload) do
- dispatch_action(action, data)
- end
- else
- logger.error "Unable to process #{action_signature(action, data)}"
- end
- end
+ if processable_action?(action)
+ payload = { channel_class: self.class.name, action: action, data: data }
+ ActiveSupport::Notifications.instrument("perform_action.action_cable", payload) do
+ dispatch_action(action, data)
+ end
+ else
+ logger.error "Unable to process #{action_signature(action, data)}"
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -520,17 +523,17 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 191
- def subscribe_to_channel
- run_callbacks :subscribe do
- subscribed
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 194
+def subscribe_to_channel
+ run_callbacks :subscribe do
+ subscribed
+ end
- reject_subscription if subscription_rejected?
- ensure_confirmation_sent
- end
+ reject_subscription if subscription_rejected?
+ ensure_confirmation_sent
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -563,12 +566,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 250
- def defer_subscription_confirmation! # :doc:
- @defer_subscription_confirmation_counter.increment
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 253
+def defer_subscription_confirmation! # :doc:
+ @defer_subscription_confirmation_counter.increment
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -598,12 +601,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 254
- def defer_subscription_confirmation? # :doc:
- @defer_subscription_confirmation_counter.value > 0
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 257
+def defer_subscription_confirmation? # :doc:
+ @defer_subscription_confirmation_counter.value > 0
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -633,14 +636,14 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 244
- def ensure_confirmation_sent # :doc:
- return if subscription_rejected?
- @defer_subscription_confirmation_counter.decrement
- transmit_subscription_confirmation unless defer_subscription_confirmation?
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 247
+def ensure_confirmation_sent # :doc:
+ return if subscription_rejected?
+ @defer_subscription_confirmation_counter.decrement
+ transmit_subscription_confirmation unless defer_subscription_confirmation?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -670,12 +673,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 262
- def reject # :doc:
- @reject_subscription = true
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 265
+def reject # :doc:
+ @reject_subscription = true
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -705,12 +708,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 218
- def subscribed # :doc:
- # Override in subclasses
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 221
+def subscribed # :doc:
+ # Override in subclasses
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -740,12 +743,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 258
- def subscription_confirmation_sent? # :doc:
- @subscription_confirmation_sent
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 261
+def subscription_confirmation_sent? # :doc:
+ @subscription_confirmation_sent
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -775,12 +778,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 266
- def subscription_rejected? # :doc:
- @reject_subscription
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 269
+def subscription_rejected? # :doc:
+ @reject_subscription
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -810,21 +813,21 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 231
- def transmit(data, via: nil) # :doc:
- logger.debug do
- status = "#{self.class.name} transmitting #{data.inspect.truncate(300)}"
- status += " (via #{via})" if via
- status
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 234
+def transmit(data, via: nil) # :doc:
+ logger.debug do
+ status = "#{self.class.name} transmitting #{data.inspect.truncate(300)}"
+ status += " (via #{via})" if via
+ status
+ end
- payload = { channel_class: self.class.name, data: data, via: via }
- ActiveSupport::Notifications.instrument("transmit.action_cable", payload) do
- connection.transmit identifier: @identifier, message: data
- end
- end
+ payload = { channel_class: self.class.name, data: data, via: via }
+ ActiveSupport::Notifications.instrument("transmit.action_cable", payload) do
+ connection.transmit identifier: @identifier, message: data
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -854,12 +857,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 224
- def unsubscribed # :doc:
- # Override in subclasses
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 227
+def unsubscribed # :doc:
+ # Override in subclasses
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Broadcasting.html b/src/classes/ActionCable/Channel/Broadcasting.html
index bb71b89445..7fecc3f6b8 100644
--- a/src/classes/ActionCable/Channel/Broadcasting.html
+++ b/src/classes/ActionCable/Channel/Broadcasting.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -99,11 +99,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 45
- def broadcast_to(model, message)
- self.class.broadcast_to(model, message)
- end
+def broadcast_to(model, message)
+ self.class.broadcast_to(model, message)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -134,11 +134,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 41
- def broadcasting_for(model)
- self.class.broadcasting_for(model)
- end
+def broadcasting_for(model)
+ self.class.broadcasting_for(model)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html b/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
index 684bccb1ab..432bb5d74f 100644
--- a/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 14
- def broadcast_to(broadcastables, message)
- ActionCable.server.broadcast(broadcasting_for(broadcastables), message)
- end
+def broadcast_to(broadcastables, message)
+ ActionCable.server.broadcast(broadcasting_for(broadcastables), message)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -126,11 +126,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 24
- def broadcasting_for(broadcastables)
- serialize_broadcasting([ channel_name ] + Array(broadcastables))
- end
+def broadcasting_for(broadcastables)
+ serialize_broadcasting([ channel_name ] + Array(broadcastables))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Callbacks.html b/src/classes/ActionCable/Channel/Callbacks.html
index 076bdbc8fa..64985186c3 100644
--- a/src/classes/ActionCable/Channel/Callbacks.html
+++ b/src/classes/ActionCable/Channel/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html b/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
index 6ee4317311..7949b5fdf6 100644
--- a/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -111,11 +111,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 60
- def after_subscribe(*methods, &block)
- set_callback(:subscribe, :after, *methods, &block)
- end
+def after_subscribe(*methods, &block)
+ set_callback(:subscribe, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -150,11 +150,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 69
- def after_unsubscribe(*methods, &block)
- set_callback(:unsubscribe, :after, *methods, &block)
- end
+def after_unsubscribe(*methods, &block)
+ set_callback(:unsubscribe, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -185,11 +185,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 48
- def before_subscribe(*methods, &block)
- set_callback(:subscribe, :before, *methods, &block)
- end
+def before_subscribe(*methods, &block)
+ set_callback(:subscribe, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -220,11 +220,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 65
- def before_unsubscribe(*methods, &block)
- set_callback(:unsubscribe, :before, *methods, &block)
- end
+def before_unsubscribe(*methods, &block)
+ set_callback(:unsubscribe, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/ChannelStub.html b/src/classes/ActionCable/Channel/ChannelStub.html
index 9db98daac2..d004896dc5 100644
--- a/src/classes/ActionCable/Channel/ChannelStub.html
+++ b/src/classes/ActionCable/Channel/ChannelStub.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -25,7 +25,7 @@
Action Cable Channel Stub
-
Stub stream_from to track streams for the channel. Add public aliases for subscription_confirmation_sent? and subscription_rejected?.
+Stub stream_from to track streams for the channel. Add public aliases for subscription_confirmation_sent? and subscription_rejected?.
@@ -114,11 +114,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 25
- def confirmed?
- subscription_confirmation_sent?
- end
+def confirmed?
+ subscription_confirmation_sent?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -149,11 +149,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 29
- def rejected?
- subscription_rejected?
- end
+def rejected?
+ subscription_rejected?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -188,9 +188,9 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 46
- def start_periodic_timers; end
+def start_periodic_timers; end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -221,11 +221,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 37
- def stop_all_streams
- @_streams = []
- end
+def stop_all_streams
+ @_streams = []
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -281,11 +281,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 33
- def stream_from(broadcasting, *)
- streams << broadcasting
- end
+def stream_from(broadcasting, *)
+ streams << broadcasting
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -316,11 +316,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 41
- def streams
- @_streams ||= []
- end
+def streams
+ @_streams ||= []
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/ConnectionStub.html b/src/classes/ActionCable/Channel/ConnectionStub.html
index 62c52b567f..0fdc0d8690 100644
--- a/src/classes/ActionCable/Channel/ConnectionStub.html
+++ b/src/classes/ActionCable/Channel/ConnectionStub.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -141,20 +141,20 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 55
- def initialize(identifiers = {})
- @server = ActionCable.server
- @transmissions = []
-
- identifiers.each do |identifier, val|
- define_singleton_method(identifier) { val }
- end
-
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @identifiers = identifiers.keys
- @logger = ActiveSupport::TaggedLogging.new ActiveSupport::Logger.new(StringIO.new)
- end
+def initialize(identifiers = {})
+ @server = ActionCable.server
+ @transmissions = []
+
+ identifiers.each do |identifier, val|
+ define_singleton_method(identifier) { val }
+ end
+
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @identifiers = identifiers.keys
+ @logger = ActiveSupport::TaggedLogging.new ActiveSupport::Logger.new(StringIO.new)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -189,11 +189,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 72
- def connection_identifier
- @connection_identifier ||= connection_gid(identifiers.filter_map { |id| send(id.to_sym) if id })
- end
+def connection_identifier
+ @connection_identifier ||= connection_gid(identifiers.filter_map { |id| send(id.to_sym) if id })
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -224,11 +224,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 68
- def transmit(cable_message)
- transmissions << cable_message.with_indifferent_access
- end
+def transmit(cable_message)
+ transmissions << cable_message.with_indifferent_access
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Naming.html b/src/classes/ActionCable/Channel/Naming.html
index 84bfc0232c..db2aa18589 100644
--- a/src/classes/ActionCable/Channel/Naming.html
+++ b/src/classes/ActionCable/Channel/Naming.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,11 +95,11 @@
# File actioncable/lib/action_cable/channel/naming.rb, line 23
- def channel_name
- self.class.channel_name
- end
+def channel_name
+ self.class.channel_name
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Naming/ClassMethods.html b/src/classes/ActionCable/Channel/Naming/ClassMethods.html
index b847309f12..e99c0744a7 100644
--- a/src/classes/ActionCable/Channel/Naming/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Naming/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -66,7 +66,7 @@
- Returns the name of the channel, underscored, without the Channel ending. If the channel is in a namespace, then the namespaces are represented by single colon separators in the channel name.
+ Returns the name of the channel, underscored, without the Channel ending. If the channel is in a namespace, then the namespaces are represented by single colon separators in the channel name.
ChatChannel.channel_name # => 'chat'
Chats::AppearancesChannel.channel_name # => 'chats:appearances'
@@ -87,11 +87,11 @@
# File actioncable/lib/action_cable/channel/naming.rb, line 18
- def channel_name
- @channel_name ||= name.delete_suffix("Channel").gsub("::", ":").underscore
- end
+def channel_name
+ @channel_name ||= name.delete_suffix("Channel").gsub("::", ":").underscore
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/NonInferrableChannelError.html b/src/classes/ActionCable/Channel/NonInferrableChannelError.html
index 034c36b135..1eac81cbd2 100644
--- a/src/classes/ActionCable/Channel/NonInferrableChannelError.html
+++ b/src/classes/ActionCable/Channel/NonInferrableChannelError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 13
- def initialize(name)
- super "Unable to determine the channel to test from #{name}. " +
- "You'll need to specify it using `tests YourChannel` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the channel to test from #{name}. " +
+ "You'll need to specify it using `tests YourChannel` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/PeriodicTimers.html b/src/classes/ActionCable/Channel/PeriodicTimers.html
index 88facef675..561da6e0dd 100644
--- a/src/classes/ActionCable/Channel/PeriodicTimers.html
+++ b/src/classes/ActionCable/Channel/PeriodicTimers.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html b/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
index 233865e2e3..a694f6de16 100644
--- a/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -91,30 +91,30 @@
# File actioncable/lib/action_cable/channel/periodic_timers.rb, line 31
- def periodically(callback_or_method_name = nil, every:, &block)
- callback =
- if block_given?
- raise ArgumentError, "Pass a block or provide a callback arg, not both" if callback_or_method_name
- block
- else
- case callback_or_method_name
- when Proc
- callback_or_method_name
- when Symbol
- -> { __send__ callback_or_method_name }
- else
- raise ArgumentError, "Expected a Symbol method name or a Proc, got #{callback_or_method_name.inspect}"
- end
- end
-
- unless every.kind_of?(Numeric) && every > 0
- raise ArgumentError, "Expected every: to be a positive number of seconds, got #{every.inspect}"
- end
-
- self.periodic_timers += [[ callback, every: every ]]
- end
+def periodically(callback_or_method_name = nil, every:, &block)
+ callback =
+ if block_given?
+ raise ArgumentError, "Pass a block or provide a callback arg, not both" if callback_or_method_name
+ block
+ else
+ case callback_or_method_name
+ when Proc
+ callback_or_method_name
+ when Symbol
+ -> { __send__ callback_or_method_name }
+ else
+ raise ArgumentError, "Expected a Symbol method name or a Proc, got #{callback_or_method_name.inspect}"
+ end
+ end
+
+ unless every.kind_of?(Numeric) && every > 0
+ raise ArgumentError, "Expected every: to be a positive number of seconds, got #{every.inspect}"
+ end
+
+ self.periodic_timers += [[ callback, every: every ]]
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Streams.html b/src/classes/ActionCable/Channel/Streams.html
index 0967feb616..a2e686a3e9 100644
--- a/src/classes/ActionCable/Channel/Streams.html
+++ b/src/classes/ActionCable/Channel/Streams.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -167,14 +167,14 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 137
- def stop_all_streams
- streams.each do |broadcasting, callback|
- pubsub.unsubscribe broadcasting, callback
- logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
- end.clear
- end
+def stop_all_streams
+ streams.each do |broadcasting, callback|
+ pubsub.unsubscribe broadcasting, callback
+ logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
+ end.clear
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -205,11 +205,11 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 132
- def stop_stream_for(model)
- stop_stream_from(broadcasting_for(model))
- end
+def stop_stream_for(model)
+ stop_stream_from(broadcasting_for(model))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,15 +240,15 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 123
- def stop_stream_from(broadcasting)
- callback = streams.delete(broadcasting)
- if callback
- pubsub.unsubscribe(broadcasting, callback)
- logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
- end
- end
+def stop_stream_from(broadcasting)
+ callback = streams.delete(broadcasting)
+ if callback
+ pubsub.unsubscribe(broadcasting, callback)
+ logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -281,11 +281,11 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 118
- def stream_for(broadcastables, callback = nil, coder: nil, &block)
- stream_from(broadcasting_for(broadcastables), callback || block, coder: coder)
- end
+def stream_for(broadcastables, callback = nil, coder: nil, &block)
+ stream_from(broadcasting_for(broadcastables), callback || block, coder: coder)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -316,28 +316,28 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 90
- def stream_from(broadcasting, callback = nil, coder: nil, &block)
- return if unsubscribed?
-
- broadcasting = String(broadcasting)
-
- # Don't send the confirmation until pubsub#subscribe is successful
- defer_subscription_confirmation!
-
- # Build a stream handler by wrapping the user-provided callback with a decoder
- # or defaulting to a JSON-decoding retransmitter.
- handler = worker_pool_stream_handler(broadcasting, callback || block, coder: coder)
- streams[broadcasting] = handler
-
- connection.server.event_loop.post do
- pubsub.subscribe(broadcasting, handler, lambda do
- ensure_confirmation_sent
- logger.info "#{self.class.name} is streaming from #{broadcasting}"
- end)
- end
- end
+def stream_from(broadcasting, callback = nil, coder: nil, &block)
+ return if unsubscribed?
+
+ broadcasting = String(broadcasting)
+
+ # Don't send the confirmation until pubsub#subscribe is successful
+ defer_subscription_confirmation!
+
+ # Build a stream handler by wrapping the user-provided callback with a decoder
+ # or defaulting to a JSON-decoding retransmitter.
+ handler = worker_pool_stream_handler(broadcasting, callback || block, coder: coder)
+ streams[broadcasting] = handler
+
+ connection.server.event_loop.post do
+ pubsub.subscribe(broadcasting, handler, lambda do
+ ensure_confirmation_sent
+ logger.info "#{self.class.name} is streaming from #{broadcasting}"
+ end)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -368,15 +368,15 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 146
- def stream_or_reject_for(model)
- if model
- stream_for model
- else
- reject
- end
- end
+def stream_or_reject_for(model)
+ if model
+ stream_for model
+ else
+ reject
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase.html b/src/classes/ActionCable/Channel/TestCase.html
index 08fb28c0cf..6317ff44d0 100644
--- a/src/classes/ActionCable/Channel/TestCase.html
+++ b/src/classes/ActionCable/Channel/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior.html b/src/classes/ActionCable/Channel/TestCase/Behavior.html
index b5f3a5cbb7..5a8ea0fd78 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -196,11 +196,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 282
- def assert_broadcast_on(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcast_on(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -231,11 +231,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 278
- def assert_broadcasts(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcasts(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,11 +272,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 326
- def assert_has_no_stream(stream)
- assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
- end
+def assert_has_no_stream(stream)
+ assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -313,11 +313,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 337
- def assert_has_no_stream_for(object)
- assert_has_no_stream(broadcasting_for(object))
- end
+def assert_has_no_stream_for(object)
+ assert_has_no_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -354,11 +354,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 304
- def assert_has_stream(stream)
- assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
- end
+def assert_has_stream(stream)
+ assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -395,11 +395,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 315
- def assert_has_stream_for(object)
- assert_has_stream(broadcasting_for(object))
- end
+def assert_has_stream_for(object)
+ assert_has_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -436,11 +436,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 293
- def assert_no_streams
- assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
- end
+def assert_no_streams
+ assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -473,12 +473,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 266
- def perform(action, data = {})
- check_subscribed!
- subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
- end
+def perform(action, data = {})
+ check_subscribed!
+ subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -516,11 +516,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 243
- def stub_connection(identifiers = {})
- @connection = ConnectionStub.new(identifiers)
- end
+def stub_connection(identifiers = {})
+ @connection = ConnectionStub.new(identifiers)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -551,15 +551,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 249
- def subscribe(params = {})
- @connection ||= stub_connection
- @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
- @subscription.singleton_class.include(ChannelStub)
- @subscription.subscribe_to_channel
- @subscription
- end
+def subscribe(params = {})
+ @connection ||= stub_connection
+ @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
+ @subscription.singleton_class.include(ChannelStub)
+ @subscription.subscribe_to_channel
+ @subscription
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -590,12 +590,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 272
- def transmissions
- # Return only directly sent message (via #transmit)
- connection.transmissions.filter_map { |data| data["message"] }
- end
+def transmissions
+ # Return only directly sent message (via #transmit)
+ connection.transmissions.filter_map { |data| data["message"] }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -626,12 +626,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 258
- def unsubscribe
- check_subscribed!
- subscription.unsubscribe_from_channel
- end
+def unsubscribe
+ check_subscribed!
+ subscription.unsubscribe_from_channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
index 48ea87f130..57efb4cdac 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 219
- def channel_class
- if channel = self._channel_class
- channel
- else
- tests determine_default_channel(name)
- end
- end
+def channel_class
+ if channel = self._channel_class
+ channel
+ else
+ tests determine_default_channel(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 227
- def determine_default_channel(name)
- channel = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Channel::Base
- end
- raise NonInferrableChannelError.new(name) if channel.nil?
- channel
- end
+def determine_default_channel(name)
+ channel = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Channel::Base
+ end
+ raise NonInferrableChannelError.new(name) if channel.nil?
+ channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 208
- def tests(channel)
- case channel
- when String, Symbol
- self._channel_class = channel.to_s.camelize.constantize
- when Module
- self._channel_class = channel
- else
- raise NonInferrableChannelError.new(channel)
- end
- end
+def tests(channel)
+ case channel
+ when String, Symbol
+ self._channel_class = channel.to_s.camelize.constantize
+ when Module
+ self._channel_class = channel
+ else
+ raise NonInferrableChannelError.new(channel)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection.html b/src/classes/ActionCable/Connection.html
index f832214f0e..7889c75284 100644
--- a/src/classes/ActionCable/Connection.html
+++ b/src/classes/ActionCable/Connection.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Assertions.html b/src/classes/ActionCable/Connection/Assertions.html
index 933ea80e4c..6b10ec5528 100644
--- a/src/classes/ActionCable/Connection/Assertions.html
+++ b/src/classes/ActionCable/Connection/Assertions.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 28
- def assert_reject_connection(&block)
- assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
- end
+def assert_reject_connection(&block)
+ assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization.html b/src/classes/ActionCable/Connection/Authorization.html
index feb855aa9e..baf85a37b3 100644
--- a/src/classes/ActionCable/Connection/Authorization.html
+++ b/src/classes/ActionCable/Connection/Authorization.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -97,12 +97,12 @@
# File actioncable/lib/action_cable/connection/authorization.rb, line 12
- def reject_unauthorized_connection
- logger.error "An unauthorized connection attempt was rejected"
- raise UnauthorizedError
- end
+def reject_unauthorized_connection
+ logger.error "An unauthorized connection attempt was rejected"
+ raise UnauthorizedError
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
index b63b282b0b..ff36299a28 100644
--- a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
+++ b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/Base.html b/src/classes/ActionCable/Connection/Base.html
index 36a2f1e1bb..ea0d62911f 100644
--- a/src/classes/ActionCable/Connection/Base.html
+++ b/src/classes/ActionCable/Connection/Base.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -255,21 +255,21 @@
# File actioncable/lib/action_cable/connection/base.rb, line 67
- def initialize(server, env, coder: ActiveSupport::JSON)
- @server, @env, @coder = server, env, coder
+def initialize(server, env, coder: ActiveSupport::JSON)
+ @server, @env, @coder = server, env, coder
- @worker_pool = server.worker_pool
- @logger = new_tagged_logger
+ @worker_pool = server.worker_pool
+ @logger = new_tagged_logger
- @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
+ @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
- @_internal_subscriptions = nil
- @started_at = Time.now
- end
+ @_internal_subscriptions = nil
+ @started_at = Time.now
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -304,11 +304,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 147
- def beat
- transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
- end
+def beat
+ transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -339,16 +339,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 120
- def close(reason: nil, reconnect: true)
- transmit(
- type: ActionCable::INTERNAL[:message_types][:disconnect],
- reason: reason,
- reconnect: reconnect
- )
- websocket.close
- end
+def close(reason: nil, reconnect: true)
+ transmit(
+ type: ActionCable::INTERNAL[:message_types][:disconnect],
+ reason: reason,
+ reconnect: reconnect
+ )
+ websocket.close
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -379,13 +379,13 @@
# File actioncable/lib/action_cable/connection/base.rb, line 109
- def handle_channel_command(payload)
- run_callbacks :command do
- subscriptions.execute_command payload
- end
- end
+def handle_channel_command(payload)
+ run_callbacks :command do
+ subscriptions.execute_command payload
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -416,11 +416,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 131
- def send_async(method, *arguments)
- worker_pool.async_invoke(self, method, *arguments)
- end
+def send_async(method, *arguments)
+ worker_pool.async_invoke(self, method, *arguments)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -451,16 +451,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 138
- def statistics
- {
- identifier: connection_identifier,
- started_at: @started_at,
- subscriptions: subscriptions.identifiers,
- request_id: @env["action_dispatch.request_id"]
- }
- end
+def statistics
+ {
+ identifier: connection_identifier,
+ started_at: @started_at,
+ subscriptions: subscriptions.identifiers,
+ request_id: @env["action_dispatch.request_id"]
+ }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -494,11 +494,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 187
- def cookies # :doc:
- request.cookie_jar
- end
+def cookies # :doc:
+ request.cookie_jar
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -529,14 +529,14 @@
# File actioncable/lib/action_cable/connection/base.rb, line 178
- def request # :doc:
- @request ||= begin
- environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
- ActionDispatch::Request.new(environment || env)
- end
- end
+def request # :doc:
+ @request ||= begin
+ environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
+ ActionDispatch::Request.new(environment || env)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Callbacks.html b/src/classes/ActionCable/Connection/Callbacks.html
index 818958bf81..d6504ca284 100644
--- a/src/classes/ActionCable/Connection/Callbacks.html
+++ b/src/classes/ActionCable/Connection/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
index 933056a029..6376d7195b 100644
--- a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,11 +90,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 47
- def after_command(*methods, &block)
- set_callback(:command, :after, *methods, &block)
- end
+def after_command(*methods, &block)
+ set_callback(:command, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -125,11 +125,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 51
- def around_command(*methods, &block)
- set_callback(:command, :around, *methods, &block)
- end
+def around_command(*methods, &block)
+ set_callback(:command, :around, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -160,11 +160,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 43
- def before_command(*methods, &block)
- set_callback(:command, :before, *methods, &block)
- end
+def before_command(*methods, &block)
+ set_callback(:command, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification.html b/src/classes/ActionCable/Connection/Identification.html
index f3dcea9bfc..063ca88999 100644
--- a/src/classes/ActionCable/Connection/Identification.html
+++ b/src/classes/ActionCable/Connection/Identification.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,15 +95,15 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 29
- def connection_identifier
- unless defined? @connection_identifier
- @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
- end
+def connection_identifier
+ unless defined? @connection_identifier
+ @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
+ end
- @connection_identifier
- end
+ @connection_identifier
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification/ClassMethods.html b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
index 324ded31f5..a3395ef8a3 100644
--- a/src/classes/ActionCable/Connection/Identification/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -84,12 +84,12 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 21
- def identified_by(*identifiers)
- Array(identifiers).each { |identifier| attr_accessor identifier }
- self.identifiers += identifiers
- end
+def identified_by(*identifiers)
+ Array(identifiers).each { |identifier| attr_accessor identifier }
+ self.identifiers += identifiers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/InternalChannel.html b/src/classes/ActionCable/Connection/InternalChannel.html
index 9b0144f690..cfdccceaf4 100644
--- a/src/classes/ActionCable/Connection/InternalChannel.html
+++ b/src/classes/ActionCable/Connection/InternalChannel.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
index 7167904452..bf0c696d62 100644
--- a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
+++ b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 15
- def initialize(name)
- super "Unable to determine the connection to test from #{name}. " +
- "You'll need to specify it using `tests YourConnection` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the connection to test from #{name}. " +
+ "You'll need to specify it using `tests YourConnection` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/StreamEventLoop.html b/src/classes/ActionCable/Connection/StreamEventLoop.html
index 2b71a213e3..f7c49354ef 100644
--- a/src/classes/ActionCable/Connection/StreamEventLoop.html
+++ b/src/classes/ActionCable/Connection/StreamEventLoop.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -111,16 +111,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 10
- def initialize
- @nio = @executor = @thread = nil
- @map = {}
- @stopping = false
- @todo = Queue.new
-
- @spawn_mutex = Mutex.new
- end
+def initialize
+ @nio = @executor = @thread = nil
+ @map = {}
+ @stopping = false
+ @todo = Queue.new
+
+ @spawn_mutex = Mutex.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -155,15 +155,15 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 30
- def attach(io, stream)
- @todo << lambda do
- @map[io] = @nio.register(io, :r)
- @map[io].value = stream
- end
- wakeup
- end
+def attach(io, stream)
+ @todo << lambda do
+ @map[io] = @nio.register(io, :r)
+ @map[io].value = stream
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -194,16 +194,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 38
- def detach(io, stream)
- @todo << lambda do
- @nio.deregister io
- @map.delete io
- io.close
- end
- wakeup
- end
+def detach(io, stream)
+ @todo << lambda do
+ @nio.deregister io
+ @map.delete io
+ io.close
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -234,14 +234,14 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 23
- def post(task = nil, &block)
- task ||= block
+def post(task = nil, &block)
+ task ||= block
- spawn
- @executor << task
- end
+ spawn
+ @executor << task
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,12 +272,12 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 56
- def stop
- @stopping = true
- wakeup if @nio
- end
+def stop
+ @stopping = true
+ wakeup if @nio
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -308,11 +308,11 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 19
- def timer(interval, &block)
- Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
- end
+def timer(interval, &block)
+ Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -343,16 +343,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 47
- def writes_pending(io)
- @todo << lambda do
- if monitor = @map[io]
- monitor.interests = :rw
- end
- end
- wakeup
- end
+def writes_pending(io)
+ @todo << lambda do
+ if monitor = @map[io]
+ monitor.interests = :rw
+ end
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
index f4d5cacc63..99731855fb 100644
--- a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
+++ b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -121,12 +121,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 16
- def initialize(logger, tags:)
- @logger = logger
- @tags = tags.flatten
- end
+def initialize(logger, tags:)
+ @logger = logger
+ @tags = tags.flatten
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -161,12 +161,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 21
- def add_tags(*tags)
- @tags += tags.flatten
- @tags = @tags.uniq
- end
+def add_tags(*tags)
+ @tags += tags.flatten
+ @tags = @tags.uniq
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -197,16 +197,16 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 26
- def tag(logger, &block)
- if logger.respond_to?(:tagged)
- current_tags = tags - logger.formatter.current_tags
- logger.tagged(*current_tags, &block)
- else
- yield
- end
- end
+def tag(logger, &block)
+ if logger.respond_to?(:tagged)
+ current_tags = tags - logger.formatter.current_tags
+ logger.tagged(*current_tags, &block)
+ else
+ yield
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,11 +240,11 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 42
- def log(type, message, &block) # :doc:
- tag(@logger) { @logger.send type, message, &block }
- end
+def log(type, message, &block) # :doc:
+ tag(@logger) { @logger.send type, message, &block }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase.html b/src/classes/ActionCable/Connection/TestCase.html
index 948378e491..39bc5cb056 100644
--- a/src/classes/ActionCable/Connection/TestCase.html
+++ b/src/classes/ActionCable/Connection/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior.html b/src/classes/ActionCable/Connection/TestCase/Behavior.html
index b87870becd..4ee0debbea 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -163,19 +163,19 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 192
- def connect(path = ActionCable.server.config.mount_path, **request_params)
- path ||= DEFAULT_PATH
+def connect(path = ActionCable.server.config.mount_path, **request_params)
+ path ||= DEFAULT_PATH
- connection = self.class.connection_class.allocate
- connection.singleton_class.include(TestConnection)
- connection.send(:initialize, build_test_request(path, **request_params))
- connection.connect if connection.respond_to?(:connect)
+ connection = self.class.connection_class.allocate
+ connection.singleton_class.include(TestConnection)
+ connection.send(:initialize, build_test_request(path, **request_params))
+ connection.connect if connection.respond_to?(:connect)
- # Only set instance variable if connected successfully
- @connection = connection
- end
+ # Only set instance variable if connected successfully
+ @connection = connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -206,11 +206,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 212
- def cookies
- @cookie_jar ||= TestCookieJar.new
- end
+def cookies
+ @cookie_jar ||= TestCookieJar.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -241,14 +241,14 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 205
- def disconnect
- raise "Must be connected!" if connection.nil?
+def disconnect
+ raise "Must be connected!" if connection.nil?
- connection.disconnect if connection.respond_to?(:disconnect)
- @connection = nil
- end
+ connection.disconnect if connection.respond_to?(:disconnect)
+ @connection = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
index 63444f4b27..99fc0e3f6f 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 167
- def connection_class
- if connection = self._connection_class
- connection
- else
- tests determine_default_connection(name)
- end
- end
+def connection_class
+ if connection = self._connection_class
+ connection
+ else
+ tests determine_default_connection(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 175
- def determine_default_connection(name)
- connection = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Connection::Base
- end
- raise NonInferrableConnectionError.new(name) if connection.nil?
- connection
- end
+def determine_default_connection(name)
+ connection = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Connection::Base
+ end
+ raise NonInferrableConnectionError.new(name) if connection.nil?
+ connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actionpack/lib/abstract_controller/collector.rb, line 9
- def self.generate_method_for_mime(mime)
- sym = mime.is_a?(Symbol) ? mime : mime.to_sym
- class_eval <<-RUBY, __FILE__, __LINE__ + 1
- def #{sym}(...)
- custom(Mime[:#{sym}], ...)
- end
- RUBY
- end
+def self.generate_method_for_mime(mime)
+ sym = mime.is_a?(Symbol) ? mime : mime.to_sym
+ class_eval <<-RUBY, __FILE__, __LINE__ + 1
+ def #{sym}(...)
+ custom(Mime[:#{sym}], ...)
+ end
+ RUBY
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/DoubleRenderError.html b/src/classes/AbstractController/DoubleRenderError.html
index b0a21b293d..8f48bc9ef3 100644
--- a/src/classes/AbstractController/DoubleRenderError.html
+++ b/src/classes/AbstractController/DoubleRenderError.html
@@ -5,7 +5,7 @@
+ Ruby on Rails 8.1.0.rc1
@@ -100,11 +100,11 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 13
- def initialize(message = nil)
- super(message || DEFAULT_MESSAGE)
- end
+def initialize(message = nil)
+ super(message || DEFAULT_MESSAGE)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Helpers.html b/src/classes/AbstractController/Helpers.html
index 9fc0534a60..b4d98aa351 100644
--- a/src/classes/AbstractController/Helpers.html
+++ b/src/classes/AbstractController/Helpers.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,11 +95,11 @@
# File actionpack/lib/abstract_controller/helpers.rb, line 28
- def _helpers
- self.class._helpers
- end
+def _helpers
+ self.class._helpers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Helpers/ClassMethods.html b/src/classes/AbstractController/Helpers/ClassMethods.html
index 8900a598d0..33df6d47c3 100644
--- a/src/classes/AbstractController/Helpers/ClassMethods.html
+++ b/src/classes/AbstractController/Helpers/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -119,7 +119,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -148,14 +148,14 @@
# File actionpack/lib/abstract_controller/helpers.rb, line 218
- def _helpers_for_modification
- unless @_helpers
- self._helpers = define_helpers_module(self, superclass._helpers)
- end
- _helpers
- end
+def _helpers_for_modification
+ unless @_helpers
+ self._helpers = define_helpers_module(self, superclass._helpers)
+ end
+ _helpers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -186,16 +186,16 @@
# File actionpack/lib/abstract_controller/helpers.rb, line 209
- def clear_helpers
- inherited_helper_methods = _helper_methods
- self._helpers = Module.new
- self._helper_methods = Array.new
-
- inherited_helper_methods.each { |meth| helper_method meth }
- default_helper_module! unless anonymous?
- end
+def clear_helpers
+ inherited_helper_methods = _helper_methods
+ self._helpers = Module.new
+ self._helper_methods = Array.new
+
+ inherited_helper_methods.each { |meth| helper_method meth }
+ default_helper_module! unless anonymous?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -274,16 +274,16 @@
# File actionpack/lib/abstract_controller/helpers.rb, line 198
- def helper(*args, &block)
- modules_for_helpers(args).each do |mod|
- next if _helpers.include?(mod)
- _helpers_for_modification.include(mod)
- end
-
- _helpers_for_modification.module_eval(&block) if block_given?
- end
+def helper(*args, &block)
+ modules_for_helpers(args).each do |mod|
+ next if _helpers.include?(mod)
+ _helpers_for_modification.include(mod)
+ end
+
+ _helpers_for_modification.module_eval(&block) if block_given?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -338,26 +338,26 @@ Parameters
# File actionpack/lib/abstract_controller/helpers.rb, line 128
- def helper_method(*methods)
- methods.flatten!
- self._helper_methods += methods
-
- location = caller_locations(1, 1).first
- file, line = location.path, location.lineno
-
- methods.each do |method|
- # def current_user(...)
- # controller.send(:'current_user', ...)
- # end
- _helpers_for_modification.class_eval <<~ruby_eval.lines.map(&:strip).join(";"), file, line
- def #{method}(...)
- controller.send(:'#{method}', ...)
- end
- ruby_eval
- end
- end
+def helper_method(*methods)
+ methods.flatten!
+ self._helper_methods += methods
+
+ location = caller_locations(1, 1).first
+ file, line = location.path, location.lineno
+
+ methods.each do |method|
+ # def current_user(...)
+ # controller.send(:'current_user', ...)
+ # end
+ _helpers_for_modification.class_eval <<~ruby_eval.lines.map(&:strip).join(";"), file, line
+ def #{method}(...)
+ controller.send(:'#{method}', ...)
+ end
+ ruby_eval
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -388,15 +388,15 @@
# File actionpack/lib/abstract_controller/helpers.rb, line 68
- def inherited(klass)
- # Inherited from parent by default
- klass._helpers = nil
+def inherited(klass)
+ # Inherited from parent by default
+ klass._helpers = nil
- klass.class_eval { default_helper_module! } unless klass.anonymous?
- super
- end
+ klass.class_eval { default_helper_module! } unless klass.anonymous?
+ super
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -426,7 +426,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Railties.html b/src/classes/AbstractController/Railties.html
index ddb634ab93..e9e5642902 100644
--- a/src/classes/AbstractController/Railties.html
+++ b/src/classes/AbstractController/Railties.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/AbstractController/Railties/RoutesHelpers.html b/src/classes/AbstractController/Railties/RoutesHelpers.html
index 2b3b00e29d..b053082e31 100644
--- a/src/classes/AbstractController/Railties/RoutesHelpers.html
+++ b/src/classes/AbstractController/Railties/RoutesHelpers.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -81,21 +81,21 @@
# File actionpack/lib/abstract_controller/railties/routes_helpers.rb, line 10
- def self.with(routes, include_path_helpers = true)
- Module.new do
- define_method(:inherited) do |klass|
- super(klass)
-
- if namespace = klass.module_parents.detect { |m| m.respond_to?(:railtie_routes_url_helpers) }
- klass.include(namespace.railtie_routes_url_helpers(include_path_helpers))
- else
- klass.include(routes.url_helpers(include_path_helpers))
- end
- end
- end
- end
+def self.with(routes, include_path_helpers = true)
+ Module.new do
+ define_method(:inherited) do |klass|
+ super(klass)
+
+ if namespace = klass.module_parents.detect { |m| m.respond_to?(:railtie_routes_url_helpers) }
+ klass.include(namespace.railtie_routes_url_helpers(include_path_helpers))
+ else
+ klass.include(routes.url_helpers(include_path_helpers))
+ end
+ end
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Rendering.html b/src/classes/AbstractController/Rendering.html
index 872a9d8b43..0fa902a303 100644
--- a/src/classes/AbstractController/Rendering.html
+++ b/src/classes/AbstractController/Rendering.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -123,7 +123,7 @@
Normalizes arguments and options, and then delegates to render_to_body and sticks the result in self.response_body.
-Supported options depend on the underlying render_to_body implementation.
+Supported options depend on the underlying render_to_body implementation.
@@ -139,19 +139,19 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 26
- def render(*args, &block)
- options = _normalize_render(*args, &block)
- rendered_body = render_to_body(options)
- if options[:html]
- _set_html_content_type
- else
- _set_rendered_content_type rendered_format
- end
- _set_vary_header
- self.response_body = rendered_body
- end
+def render(*args, &block)
+ options = _normalize_render(*args, &block)
+ rendered_body = render_to_body(options)
+ if options[:html]
+ _set_html_content_type
+ else
+ _set_rendered_content_type rendered_format
+ end
+ _set_vary_header
+ self.response_body = rendered_body
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -182,10 +182,10 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 50
- def render_to_body(options = {})
- end
+def render_to_body(options = {})
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -218,12 +218,12 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 44
- def render_to_string(*args, &block)
- options = _normalize_render(*args, &block)
- render_to_body(options)
- end
+def render_to_string(*args, &block)
+ options = _normalize_render(*args, &block)
+ render_to_body(options)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -254,11 +254,11 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 54
- def rendered_format
- Mime[:text]
- end
+def rendered_format
+ Mime[:text]
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -289,15 +289,15 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 62
- def view_assigns
- variables = instance_variables - _protected_ivars
+def view_assigns
+ variables = instance_variables - _protected_ivars
- variables.each_with_object({}) do |name, hash|
- hash[name.slice(1, name.length)] = instance_variable_get(name)
- end
- end
+ variables.each_with_object({}) do |name, hash|
+ hash[name.slice(1, name.length)] = instance_variable_get(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -331,21 +331,21 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 73
- def _normalize_args(action = nil, options = {}) # :doc:
- if action.respond_to?(:permitted?)
- if action.permitted?
- action
- else
- raise ArgumentError, "render parameters are not permitted"
- end
- elsif action.is_a?(Hash)
- action
- else
- options
- end
- end
+def _normalize_args(action = nil, options = {}) # :doc:
+ if action.respond_to?(:permitted?)
+ if action.permitted?
+ action
+ else
+ raise ArgumentError, "render parameters are not permitted"
+ end
+ elsif action.is_a?(Hash)
+ action
+ else
+ options
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -376,11 +376,11 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 88
- def _normalize_options(options) # :doc:
- options
- end
+def _normalize_options(options) # :doc:
+ options
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -411,11 +411,11 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 93
- def _process_options(options) # :doc:
- options
- end
+def _process_options(options) # :doc:
+ options
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Translation.html b/src/classes/AbstractController/Translation.html
index e429818684..446e93e2cd 100644
--- a/src/classes/AbstractController/Translation.html
+++ b/src/classes/AbstractController/Translation.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -123,11 +123,11 @@
# File actionpack/lib/abstract_controller/translation.rb, line 37
- def localize(object, **options)
- I18n.localize(object, **options)
- end
+def localize(object, **options)
+ I18n.localize(object, **options)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -189,25 +189,25 @@
# File actionpack/lib/abstract_controller/translation.rb, line 17
- def translate(key, **options)
- if key&.start_with?(".")
- path = controller_path.tr("/", ".")
- defaults = [:"#{path}#{key}"]
- defaults << options[:default] if options[:default]
- options[:default] = defaults.flatten
- key = "#{path}.#{action_name}#{key}"
- end
-
- if options[:default] && ActiveSupport::HtmlSafeTranslation.html_safe_translation_key?(key)
- options[:default] = Array(options[:default]).map do |value|
- value.is_a?(String) ? ERB::Util.html_escape(value) : value
- end
- end
-
- ActiveSupport::HtmlSafeTranslation.translate(key, **options)
- end
+def translate(key, **options)
+ if key&.start_with?(".")
+ path = controller_path.tr("/", ".")
+ defaults = [:"#{path}#{key}"]
+ defaults << options[:default] if options[:default]
+ options[:default] = defaults.flatten
+ key = "#{path}.#{action_name}#{key}"
+ end
+
+ if options[:default] && ActiveSupport::HtmlSafeTranslation.html_safe_translation_key?(key)
+ options[:default] = Array(options[:default]).map do |value|
+ value.is_a?(String) ? ERB::Util.html_escape(value) : value
+ end
+ end
+
+ ActiveSupport::HtmlSafeTranslation.translate(key, **options)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/UrlFor.html b/src/classes/AbstractController/UrlFor.html
index 8d49da9f5c..bd5d0224eb 100644
--- a/src/classes/AbstractController/UrlFor.html
+++ b/src/classes/AbstractController/UrlFor.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -119,12 +119,12 @@
# File actionpack/lib/abstract_controller/url_for.rb, line 18
- def _routes
- raise "In order to use #url_for, you must include routing helpers explicitly. " \
- "For instance, `include Rails.application.routes.url_helpers`."
- end
+def _routes
+ raise "In order to use #url_for, you must include routing helpers explicitly. " \
+ "For instance, `include Rails.application.routes.url_helpers`."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/UrlFor/ClassMethods.html b/src/classes/AbstractController/UrlFor/ClassMethods.html
index cd0e5e9509..e4471b2d66 100644
--- a/src/classes/AbstractController/UrlFor/ClassMethods.html
+++ b/src/classes/AbstractController/UrlFor/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actionpack/lib/abstract_controller/url_for.rb, line 24
- def _routes
- nil
- end
+def _routes
+ nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -121,15 +121,15 @@
# File actionpack/lib/abstract_controller/url_for.rb, line 28
- def action_methods
- @action_methods ||= if _routes
- super - _routes.named_routes.helper_names
- else
- super
- end
- end
+def action_methods
+ @action_methods ||= if _routes
+ super - _routes.named_routes.helper_names
+ else
+ super
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable.html b/src/classes/ActionCable.html
index 4951b5813f..5e5f891dce 100644
--- a/src/classes/ActionCable.html
+++ b/src/classes/ActionCable.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -267,11 +267,11 @@
# File actioncable/lib/action_cable/gem_version.rb, line 7
- def self.gem_version
- Gem::Version.new VERSION::STRING
- end
+def self.gem_version
+ Gem::Version.new VERSION::STRING
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -302,11 +302,11 @@
# File actioncable/lib/action_cable/version.rb, line 9
- def self.version
- gem_version
- end
+def self.version
+ gem_version
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -341,11 +341,11 @@
# File actioncable/lib/action_cable.rb, line 77
- def server
- @server ||= ActionCable::Server::Base.new
- end
+def server
+@server ||= ActionCable::Server::Base.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel.html b/src/classes/ActionCable/Channel.html
index 38c886ddbc..06b36ff362 100644
--- a/src/classes/ActionCable/Channel.html
+++ b/src/classes/ActionCable/Channel.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Channel/Base.html b/src/classes/ActionCable/Channel/Base.html
index bc63a53315..32e2ff9b70 100644
--- a/src/classes/ActionCable/Channel/Base.html
+++ b/src/classes/ActionCable/Channel/Base.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -82,7 +82,7 @@ Action process
end
-
In this example, the subscribed and unsubscribed methods are not callable methods, as they were already declared in ActionCable::Channel::Base, but #appear and #away are. #generate_connection_token is also not callable, since it’s a private method. You’ll see that appear accepts a data parameter, which it then uses as part of its model call. #away does not, since it’s simply a trigger action.
+In this example, the subscribed and unsubscribed methods are not callable methods, as they were already declared in ActionCable::Channel::Base, but appear and away are. generate_connection_token is also not callable, since it’s a private method. You’ll see that appear accepts a data parameter, which it then uses as part of its model call. away does not, since it’s simply a trigger action.
Also note that in this example, current_user is available because it was marked as an identifying attribute on the connection. All such identifiers will automatically create a delegation method of the same name on the channel instance.
@@ -307,19 +307,22 @@ Returns
# File actioncable/lib/action_cable/channel/base.rb, line 128
- def action_methods
- @action_methods ||= begin
- # All public instance methods of this class, including ancestors
- methods = (public_instance_methods(true) -
- # Except for public instance methods of Base and its ancestors
- ActionCable::Channel::Base.public_instance_methods(true) +
- # Be sure to include shadowed public instance methods of this class
- public_instance_methods(false)).uniq.map(&:to_s)
- methods.to_set
- end
- end
-
- 🔎 See on GitHub
+def action_methods
+ @action_methods ||= begin
+ # All public instance methods of this class, including ancestors
+ methods = (public_instance_methods(true) -
+ # Except for public instance methods of Base and its ancestors
+ ActionCable::Channel::Base.public_instance_methods(true) +
+ # Be sure to include shadowed public instance methods of this class
+ public_instance_methods(false)).uniq
+
+ methods.reject! { |m| m.start_with?("_") }
+ methods.map!(&:name)
+ methods.to_set
+ end
+end
+
+ 🔎 See on GitHub
@@ -349,26 +352,26 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 155
- def initialize(connection, identifier, params = {})
- @connection = connection
- @identifier = identifier
- @params = params
+ # File actioncable/lib/action_cable/channel/base.rb, line 158
+def initialize(connection, identifier, params = {})
+ @connection = connection
+ @identifier = identifier
+ @params = params
- # When a channel is streaming via pubsub, we want to delay the confirmation
- # transmission until pubsub subscription is confirmed.
- #
- # The counter starts at 1 because it's awaiting a call to #subscribe_to_channel
- @defer_subscription_confirmation_counter = Concurrent::AtomicFixnum.new(1)
+ # When a channel is streaming via pubsub, we want to delay the confirmation
+ # transmission until pubsub subscription is confirmed.
+ #
+ # The counter starts at 1 because it's awaiting a call to #subscribe_to_channel
+ @defer_subscription_confirmation_counter = Concurrent::AtomicFixnum.new(1)
- @reject_subscription = nil
- @subscription_confirmation_sent = nil
- @unsubscribed = false
+ @reject_subscription = nil
+ @subscription_confirmation_sent = nil
+ @unsubscribed = false
- delegate_connection_identifiers
- end
+ delegate_connection_identifiers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -401,12 +404,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 144
- def clear_action_methods! # :doc:
- @action_methods = nil
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 147
+def clear_action_methods! # :doc:
+ @action_methods = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -436,13 +439,13 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 149
- def method_added(name) # :doc:
- super
- clear_action_methods!
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 152
+def method_added(name) # :doc:
+ super
+ clear_action_methods!
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -476,21 +479,21 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 176
- def perform_action(data)
- action = extract_action(data)
+ # File actioncable/lib/action_cable/channel/base.rb, line 179
+def perform_action(data)
+ action = extract_action(data)
- if processable_action?(action)
- payload = { channel_class: self.class.name, action: action, data: data }
- ActiveSupport::Notifications.instrument("perform_action.action_cable", payload) do
- dispatch_action(action, data)
- end
- else
- logger.error "Unable to process #{action_signature(action, data)}"
- end
- end
+ if processable_action?(action)
+ payload = { channel_class: self.class.name, action: action, data: data }
+ ActiveSupport::Notifications.instrument("perform_action.action_cable", payload) do
+ dispatch_action(action, data)
+ end
+ else
+ logger.error "Unable to process #{action_signature(action, data)}"
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -520,17 +523,17 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 191
- def subscribe_to_channel
- run_callbacks :subscribe do
- subscribed
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 194
+def subscribe_to_channel
+ run_callbacks :subscribe do
+ subscribed
+ end
- reject_subscription if subscription_rejected?
- ensure_confirmation_sent
- end
+ reject_subscription if subscription_rejected?
+ ensure_confirmation_sent
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -563,12 +566,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 250
- def defer_subscription_confirmation! # :doc:
- @defer_subscription_confirmation_counter.increment
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 253
+def defer_subscription_confirmation! # :doc:
+ @defer_subscription_confirmation_counter.increment
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -598,12 +601,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 254
- def defer_subscription_confirmation? # :doc:
- @defer_subscription_confirmation_counter.value > 0
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 257
+def defer_subscription_confirmation? # :doc:
+ @defer_subscription_confirmation_counter.value > 0
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -633,14 +636,14 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 244
- def ensure_confirmation_sent # :doc:
- return if subscription_rejected?
- @defer_subscription_confirmation_counter.decrement
- transmit_subscription_confirmation unless defer_subscription_confirmation?
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 247
+def ensure_confirmation_sent # :doc:
+ return if subscription_rejected?
+ @defer_subscription_confirmation_counter.decrement
+ transmit_subscription_confirmation unless defer_subscription_confirmation?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -670,12 +673,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 262
- def reject # :doc:
- @reject_subscription = true
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 265
+def reject # :doc:
+ @reject_subscription = true
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -705,12 +708,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 218
- def subscribed # :doc:
- # Override in subclasses
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 221
+def subscribed # :doc:
+ # Override in subclasses
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -740,12 +743,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 258
- def subscription_confirmation_sent? # :doc:
- @subscription_confirmation_sent
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 261
+def subscription_confirmation_sent? # :doc:
+ @subscription_confirmation_sent
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -775,12 +778,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 266
- def subscription_rejected? # :doc:
- @reject_subscription
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 269
+def subscription_rejected? # :doc:
+ @reject_subscription
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -810,21 +813,21 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 231
- def transmit(data, via: nil) # :doc:
- logger.debug do
- status = "#{self.class.name} transmitting #{data.inspect.truncate(300)}"
- status += " (via #{via})" if via
- status
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 234
+def transmit(data, via: nil) # :doc:
+ logger.debug do
+ status = "#{self.class.name} transmitting #{data.inspect.truncate(300)}"
+ status += " (via #{via})" if via
+ status
+ end
- payload = { channel_class: self.class.name, data: data, via: via }
- ActiveSupport::Notifications.instrument("transmit.action_cable", payload) do
- connection.transmit identifier: @identifier, message: data
- end
- end
+ payload = { channel_class: self.class.name, data: data, via: via }
+ ActiveSupport::Notifications.instrument("transmit.action_cable", payload) do
+ connection.transmit identifier: @identifier, message: data
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -854,12 +857,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 224
- def unsubscribed # :doc:
- # Override in subclasses
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 227
+def unsubscribed # :doc:
+ # Override in subclasses
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Broadcasting.html b/src/classes/ActionCable/Channel/Broadcasting.html
index bb71b89445..7fecc3f6b8 100644
--- a/src/classes/ActionCable/Channel/Broadcasting.html
+++ b/src/classes/ActionCable/Channel/Broadcasting.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -99,11 +99,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 45
- def broadcast_to(model, message)
- self.class.broadcast_to(model, message)
- end
+def broadcast_to(model, message)
+ self.class.broadcast_to(model, message)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -134,11 +134,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 41
- def broadcasting_for(model)
- self.class.broadcasting_for(model)
- end
+def broadcasting_for(model)
+ self.class.broadcasting_for(model)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html b/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
index 684bccb1ab..432bb5d74f 100644
--- a/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 14
- def broadcast_to(broadcastables, message)
- ActionCable.server.broadcast(broadcasting_for(broadcastables), message)
- end
+def broadcast_to(broadcastables, message)
+ ActionCable.server.broadcast(broadcasting_for(broadcastables), message)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -126,11 +126,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 24
- def broadcasting_for(broadcastables)
- serialize_broadcasting([ channel_name ] + Array(broadcastables))
- end
+def broadcasting_for(broadcastables)
+ serialize_broadcasting([ channel_name ] + Array(broadcastables))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Callbacks.html b/src/classes/ActionCable/Channel/Callbacks.html
index 076bdbc8fa..64985186c3 100644
--- a/src/classes/ActionCable/Channel/Callbacks.html
+++ b/src/classes/ActionCable/Channel/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html b/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
index 6ee4317311..7949b5fdf6 100644
--- a/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -111,11 +111,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 60
- def after_subscribe(*methods, &block)
- set_callback(:subscribe, :after, *methods, &block)
- end
+def after_subscribe(*methods, &block)
+ set_callback(:subscribe, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -150,11 +150,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 69
- def after_unsubscribe(*methods, &block)
- set_callback(:unsubscribe, :after, *methods, &block)
- end
+def after_unsubscribe(*methods, &block)
+ set_callback(:unsubscribe, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -185,11 +185,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 48
- def before_subscribe(*methods, &block)
- set_callback(:subscribe, :before, *methods, &block)
- end
+def before_subscribe(*methods, &block)
+ set_callback(:subscribe, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -220,11 +220,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 65
- def before_unsubscribe(*methods, &block)
- set_callback(:unsubscribe, :before, *methods, &block)
- end
+def before_unsubscribe(*methods, &block)
+ set_callback(:unsubscribe, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/ChannelStub.html b/src/classes/ActionCable/Channel/ChannelStub.html
index 9db98daac2..d004896dc5 100644
--- a/src/classes/ActionCable/Channel/ChannelStub.html
+++ b/src/classes/ActionCable/Channel/ChannelStub.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -25,7 +25,7 @@
Action Cable Channel Stub
-
Stub stream_from to track streams for the channel. Add public aliases for subscription_confirmation_sent? and subscription_rejected?.
+Stub stream_from to track streams for the channel. Add public aliases for subscription_confirmation_sent? and subscription_rejected?.
@@ -114,11 +114,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 25
- def confirmed?
- subscription_confirmation_sent?
- end
+def confirmed?
+ subscription_confirmation_sent?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -149,11 +149,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 29
- def rejected?
- subscription_rejected?
- end
+def rejected?
+ subscription_rejected?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -188,9 +188,9 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 46
- def start_periodic_timers; end
+def start_periodic_timers; end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -221,11 +221,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 37
- def stop_all_streams
- @_streams = []
- end
+def stop_all_streams
+ @_streams = []
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -281,11 +281,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 33
- def stream_from(broadcasting, *)
- streams << broadcasting
- end
+def stream_from(broadcasting, *)
+ streams << broadcasting
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -316,11 +316,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 41
- def streams
- @_streams ||= []
- end
+def streams
+ @_streams ||= []
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/ConnectionStub.html b/src/classes/ActionCable/Channel/ConnectionStub.html
index 62c52b567f..0fdc0d8690 100644
--- a/src/classes/ActionCable/Channel/ConnectionStub.html
+++ b/src/classes/ActionCable/Channel/ConnectionStub.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -141,20 +141,20 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 55
- def initialize(identifiers = {})
- @server = ActionCable.server
- @transmissions = []
-
- identifiers.each do |identifier, val|
- define_singleton_method(identifier) { val }
- end
-
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @identifiers = identifiers.keys
- @logger = ActiveSupport::TaggedLogging.new ActiveSupport::Logger.new(StringIO.new)
- end
+def initialize(identifiers = {})
+ @server = ActionCable.server
+ @transmissions = []
+
+ identifiers.each do |identifier, val|
+ define_singleton_method(identifier) { val }
+ end
+
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @identifiers = identifiers.keys
+ @logger = ActiveSupport::TaggedLogging.new ActiveSupport::Logger.new(StringIO.new)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -189,11 +189,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 72
- def connection_identifier
- @connection_identifier ||= connection_gid(identifiers.filter_map { |id| send(id.to_sym) if id })
- end
+def connection_identifier
+ @connection_identifier ||= connection_gid(identifiers.filter_map { |id| send(id.to_sym) if id })
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -224,11 +224,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 68
- def transmit(cable_message)
- transmissions << cable_message.with_indifferent_access
- end
+def transmit(cable_message)
+ transmissions << cable_message.with_indifferent_access
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Naming.html b/src/classes/ActionCable/Channel/Naming.html
index 84bfc0232c..db2aa18589 100644
--- a/src/classes/ActionCable/Channel/Naming.html
+++ b/src/classes/ActionCable/Channel/Naming.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,11 +95,11 @@
# File actioncable/lib/action_cable/channel/naming.rb, line 23
- def channel_name
- self.class.channel_name
- end
+def channel_name
+ self.class.channel_name
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Naming/ClassMethods.html b/src/classes/ActionCable/Channel/Naming/ClassMethods.html
index b847309f12..e99c0744a7 100644
--- a/src/classes/ActionCable/Channel/Naming/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Naming/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -66,7 +66,7 @@
- Returns the name of the channel, underscored, without the Channel ending. If the channel is in a namespace, then the namespaces are represented by single colon separators in the channel name.
+ Returns the name of the channel, underscored, without the Channel ending. If the channel is in a namespace, then the namespaces are represented by single colon separators in the channel name.
ChatChannel.channel_name # => 'chat'
Chats::AppearancesChannel.channel_name # => 'chats:appearances'
@@ -87,11 +87,11 @@
# File actioncable/lib/action_cable/channel/naming.rb, line 18
- def channel_name
- @channel_name ||= name.delete_suffix("Channel").gsub("::", ":").underscore
- end
+def channel_name
+ @channel_name ||= name.delete_suffix("Channel").gsub("::", ":").underscore
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/NonInferrableChannelError.html b/src/classes/ActionCable/Channel/NonInferrableChannelError.html
index 034c36b135..1eac81cbd2 100644
--- a/src/classes/ActionCable/Channel/NonInferrableChannelError.html
+++ b/src/classes/ActionCable/Channel/NonInferrableChannelError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 13
- def initialize(name)
- super "Unable to determine the channel to test from #{name}. " +
- "You'll need to specify it using `tests YourChannel` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the channel to test from #{name}. " +
+ "You'll need to specify it using `tests YourChannel` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/PeriodicTimers.html b/src/classes/ActionCable/Channel/PeriodicTimers.html
index 88facef675..561da6e0dd 100644
--- a/src/classes/ActionCable/Channel/PeriodicTimers.html
+++ b/src/classes/ActionCable/Channel/PeriodicTimers.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html b/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
index 233865e2e3..a694f6de16 100644
--- a/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -91,30 +91,30 @@
# File actioncable/lib/action_cable/channel/periodic_timers.rb, line 31
- def periodically(callback_or_method_name = nil, every:, &block)
- callback =
- if block_given?
- raise ArgumentError, "Pass a block or provide a callback arg, not both" if callback_or_method_name
- block
- else
- case callback_or_method_name
- when Proc
- callback_or_method_name
- when Symbol
- -> { __send__ callback_or_method_name }
- else
- raise ArgumentError, "Expected a Symbol method name or a Proc, got #{callback_or_method_name.inspect}"
- end
- end
-
- unless every.kind_of?(Numeric) && every > 0
- raise ArgumentError, "Expected every: to be a positive number of seconds, got #{every.inspect}"
- end
-
- self.periodic_timers += [[ callback, every: every ]]
- end
+def periodically(callback_or_method_name = nil, every:, &block)
+ callback =
+ if block_given?
+ raise ArgumentError, "Pass a block or provide a callback arg, not both" if callback_or_method_name
+ block
+ else
+ case callback_or_method_name
+ when Proc
+ callback_or_method_name
+ when Symbol
+ -> { __send__ callback_or_method_name }
+ else
+ raise ArgumentError, "Expected a Symbol method name or a Proc, got #{callback_or_method_name.inspect}"
+ end
+ end
+
+ unless every.kind_of?(Numeric) && every > 0
+ raise ArgumentError, "Expected every: to be a positive number of seconds, got #{every.inspect}"
+ end
+
+ self.periodic_timers += [[ callback, every: every ]]
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Streams.html b/src/classes/ActionCable/Channel/Streams.html
index 0967feb616..a2e686a3e9 100644
--- a/src/classes/ActionCable/Channel/Streams.html
+++ b/src/classes/ActionCable/Channel/Streams.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -167,14 +167,14 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 137
- def stop_all_streams
- streams.each do |broadcasting, callback|
- pubsub.unsubscribe broadcasting, callback
- logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
- end.clear
- end
+def stop_all_streams
+ streams.each do |broadcasting, callback|
+ pubsub.unsubscribe broadcasting, callback
+ logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
+ end.clear
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -205,11 +205,11 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 132
- def stop_stream_for(model)
- stop_stream_from(broadcasting_for(model))
- end
+def stop_stream_for(model)
+ stop_stream_from(broadcasting_for(model))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,15 +240,15 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 123
- def stop_stream_from(broadcasting)
- callback = streams.delete(broadcasting)
- if callback
- pubsub.unsubscribe(broadcasting, callback)
- logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
- end
- end
+def stop_stream_from(broadcasting)
+ callback = streams.delete(broadcasting)
+ if callback
+ pubsub.unsubscribe(broadcasting, callback)
+ logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -281,11 +281,11 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 118
- def stream_for(broadcastables, callback = nil, coder: nil, &block)
- stream_from(broadcasting_for(broadcastables), callback || block, coder: coder)
- end
+def stream_for(broadcastables, callback = nil, coder: nil, &block)
+ stream_from(broadcasting_for(broadcastables), callback || block, coder: coder)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -316,28 +316,28 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 90
- def stream_from(broadcasting, callback = nil, coder: nil, &block)
- return if unsubscribed?
-
- broadcasting = String(broadcasting)
-
- # Don't send the confirmation until pubsub#subscribe is successful
- defer_subscription_confirmation!
-
- # Build a stream handler by wrapping the user-provided callback with a decoder
- # or defaulting to a JSON-decoding retransmitter.
- handler = worker_pool_stream_handler(broadcasting, callback || block, coder: coder)
- streams[broadcasting] = handler
-
- connection.server.event_loop.post do
- pubsub.subscribe(broadcasting, handler, lambda do
- ensure_confirmation_sent
- logger.info "#{self.class.name} is streaming from #{broadcasting}"
- end)
- end
- end
+def stream_from(broadcasting, callback = nil, coder: nil, &block)
+ return if unsubscribed?
+
+ broadcasting = String(broadcasting)
+
+ # Don't send the confirmation until pubsub#subscribe is successful
+ defer_subscription_confirmation!
+
+ # Build a stream handler by wrapping the user-provided callback with a decoder
+ # or defaulting to a JSON-decoding retransmitter.
+ handler = worker_pool_stream_handler(broadcasting, callback || block, coder: coder)
+ streams[broadcasting] = handler
+
+ connection.server.event_loop.post do
+ pubsub.subscribe(broadcasting, handler, lambda do
+ ensure_confirmation_sent
+ logger.info "#{self.class.name} is streaming from #{broadcasting}"
+ end)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -368,15 +368,15 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 146
- def stream_or_reject_for(model)
- if model
- stream_for model
- else
- reject
- end
- end
+def stream_or_reject_for(model)
+ if model
+ stream_for model
+ else
+ reject
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase.html b/src/classes/ActionCable/Channel/TestCase.html
index 08fb28c0cf..6317ff44d0 100644
--- a/src/classes/ActionCable/Channel/TestCase.html
+++ b/src/classes/ActionCable/Channel/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior.html b/src/classes/ActionCable/Channel/TestCase/Behavior.html
index b5f3a5cbb7..5a8ea0fd78 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -196,11 +196,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 282
- def assert_broadcast_on(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcast_on(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -231,11 +231,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 278
- def assert_broadcasts(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcasts(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,11 +272,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 326
- def assert_has_no_stream(stream)
- assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
- end
+def assert_has_no_stream(stream)
+ assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -313,11 +313,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 337
- def assert_has_no_stream_for(object)
- assert_has_no_stream(broadcasting_for(object))
- end
+def assert_has_no_stream_for(object)
+ assert_has_no_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -354,11 +354,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 304
- def assert_has_stream(stream)
- assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
- end
+def assert_has_stream(stream)
+ assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -395,11 +395,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 315
- def assert_has_stream_for(object)
- assert_has_stream(broadcasting_for(object))
- end
+def assert_has_stream_for(object)
+ assert_has_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -436,11 +436,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 293
- def assert_no_streams
- assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
- end
+def assert_no_streams
+ assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -473,12 +473,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 266
- def perform(action, data = {})
- check_subscribed!
- subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
- end
+def perform(action, data = {})
+ check_subscribed!
+ subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -516,11 +516,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 243
- def stub_connection(identifiers = {})
- @connection = ConnectionStub.new(identifiers)
- end
+def stub_connection(identifiers = {})
+ @connection = ConnectionStub.new(identifiers)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -551,15 +551,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 249
- def subscribe(params = {})
- @connection ||= stub_connection
- @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
- @subscription.singleton_class.include(ChannelStub)
- @subscription.subscribe_to_channel
- @subscription
- end
+def subscribe(params = {})
+ @connection ||= stub_connection
+ @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
+ @subscription.singleton_class.include(ChannelStub)
+ @subscription.subscribe_to_channel
+ @subscription
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -590,12 +590,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 272
- def transmissions
- # Return only directly sent message (via #transmit)
- connection.transmissions.filter_map { |data| data["message"] }
- end
+def transmissions
+ # Return only directly sent message (via #transmit)
+ connection.transmissions.filter_map { |data| data["message"] }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -626,12 +626,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 258
- def unsubscribe
- check_subscribed!
- subscription.unsubscribe_from_channel
- end
+def unsubscribe
+ check_subscribed!
+ subscription.unsubscribe_from_channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
index 48ea87f130..57efb4cdac 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 219
- def channel_class
- if channel = self._channel_class
- channel
- else
- tests determine_default_channel(name)
- end
- end
+def channel_class
+ if channel = self._channel_class
+ channel
+ else
+ tests determine_default_channel(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 227
- def determine_default_channel(name)
- channel = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Channel::Base
- end
- raise NonInferrableChannelError.new(name) if channel.nil?
- channel
- end
+def determine_default_channel(name)
+ channel = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Channel::Base
+ end
+ raise NonInferrableChannelError.new(name) if channel.nil?
+ channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 208
- def tests(channel)
- case channel
- when String, Symbol
- self._channel_class = channel.to_s.camelize.constantize
- when Module
- self._channel_class = channel
- else
- raise NonInferrableChannelError.new(channel)
- end
- end
+def tests(channel)
+ case channel
+ when String, Symbol
+ self._channel_class = channel.to_s.camelize.constantize
+ when Module
+ self._channel_class = channel
+ else
+ raise NonInferrableChannelError.new(channel)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection.html b/src/classes/ActionCable/Connection.html
index f832214f0e..7889c75284 100644
--- a/src/classes/ActionCable/Connection.html
+++ b/src/classes/ActionCable/Connection.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Assertions.html b/src/classes/ActionCable/Connection/Assertions.html
index 933ea80e4c..6b10ec5528 100644
--- a/src/classes/ActionCable/Connection/Assertions.html
+++ b/src/classes/ActionCable/Connection/Assertions.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 28
- def assert_reject_connection(&block)
- assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
- end
+def assert_reject_connection(&block)
+ assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization.html b/src/classes/ActionCable/Connection/Authorization.html
index feb855aa9e..baf85a37b3 100644
--- a/src/classes/ActionCable/Connection/Authorization.html
+++ b/src/classes/ActionCable/Connection/Authorization.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -97,12 +97,12 @@
# File actioncable/lib/action_cable/connection/authorization.rb, line 12
- def reject_unauthorized_connection
- logger.error "An unauthorized connection attempt was rejected"
- raise UnauthorizedError
- end
+def reject_unauthorized_connection
+ logger.error "An unauthorized connection attempt was rejected"
+ raise UnauthorizedError
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
index b63b282b0b..ff36299a28 100644
--- a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
+++ b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/Base.html b/src/classes/ActionCable/Connection/Base.html
index 36a2f1e1bb..ea0d62911f 100644
--- a/src/classes/ActionCable/Connection/Base.html
+++ b/src/classes/ActionCable/Connection/Base.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -255,21 +255,21 @@
# File actioncable/lib/action_cable/connection/base.rb, line 67
- def initialize(server, env, coder: ActiveSupport::JSON)
- @server, @env, @coder = server, env, coder
+def initialize(server, env, coder: ActiveSupport::JSON)
+ @server, @env, @coder = server, env, coder
- @worker_pool = server.worker_pool
- @logger = new_tagged_logger
+ @worker_pool = server.worker_pool
+ @logger = new_tagged_logger
- @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
+ @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
- @_internal_subscriptions = nil
- @started_at = Time.now
- end
+ @_internal_subscriptions = nil
+ @started_at = Time.now
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -304,11 +304,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 147
- def beat
- transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
- end
+def beat
+ transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -339,16 +339,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 120
- def close(reason: nil, reconnect: true)
- transmit(
- type: ActionCable::INTERNAL[:message_types][:disconnect],
- reason: reason,
- reconnect: reconnect
- )
- websocket.close
- end
+def close(reason: nil, reconnect: true)
+ transmit(
+ type: ActionCable::INTERNAL[:message_types][:disconnect],
+ reason: reason,
+ reconnect: reconnect
+ )
+ websocket.close
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -379,13 +379,13 @@
# File actioncable/lib/action_cable/connection/base.rb, line 109
- def handle_channel_command(payload)
- run_callbacks :command do
- subscriptions.execute_command payload
- end
- end
+def handle_channel_command(payload)
+ run_callbacks :command do
+ subscriptions.execute_command payload
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -416,11 +416,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 131
- def send_async(method, *arguments)
- worker_pool.async_invoke(self, method, *arguments)
- end
+def send_async(method, *arguments)
+ worker_pool.async_invoke(self, method, *arguments)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -451,16 +451,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 138
- def statistics
- {
- identifier: connection_identifier,
- started_at: @started_at,
- subscriptions: subscriptions.identifiers,
- request_id: @env["action_dispatch.request_id"]
- }
- end
+def statistics
+ {
+ identifier: connection_identifier,
+ started_at: @started_at,
+ subscriptions: subscriptions.identifiers,
+ request_id: @env["action_dispatch.request_id"]
+ }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -494,11 +494,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 187
- def cookies # :doc:
- request.cookie_jar
- end
+def cookies # :doc:
+ request.cookie_jar
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -529,14 +529,14 @@
# File actioncable/lib/action_cable/connection/base.rb, line 178
- def request # :doc:
- @request ||= begin
- environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
- ActionDispatch::Request.new(environment || env)
- end
- end
+def request # :doc:
+ @request ||= begin
+ environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
+ ActionDispatch::Request.new(environment || env)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Callbacks.html b/src/classes/ActionCable/Connection/Callbacks.html
index 818958bf81..d6504ca284 100644
--- a/src/classes/ActionCable/Connection/Callbacks.html
+++ b/src/classes/ActionCable/Connection/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
index 933056a029..6376d7195b 100644
--- a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,11 +90,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 47
- def after_command(*methods, &block)
- set_callback(:command, :after, *methods, &block)
- end
+def after_command(*methods, &block)
+ set_callback(:command, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -125,11 +125,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 51
- def around_command(*methods, &block)
- set_callback(:command, :around, *methods, &block)
- end
+def around_command(*methods, &block)
+ set_callback(:command, :around, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -160,11 +160,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 43
- def before_command(*methods, &block)
- set_callback(:command, :before, *methods, &block)
- end
+def before_command(*methods, &block)
+ set_callback(:command, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification.html b/src/classes/ActionCable/Connection/Identification.html
index f3dcea9bfc..063ca88999 100644
--- a/src/classes/ActionCable/Connection/Identification.html
+++ b/src/classes/ActionCable/Connection/Identification.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,15 +95,15 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 29
- def connection_identifier
- unless defined? @connection_identifier
- @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
- end
+def connection_identifier
+ unless defined? @connection_identifier
+ @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
+ end
- @connection_identifier
- end
+ @connection_identifier
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification/ClassMethods.html b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
index 324ded31f5..a3395ef8a3 100644
--- a/src/classes/ActionCable/Connection/Identification/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -84,12 +84,12 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 21
- def identified_by(*identifiers)
- Array(identifiers).each { |identifier| attr_accessor identifier }
- self.identifiers += identifiers
- end
+def identified_by(*identifiers)
+ Array(identifiers).each { |identifier| attr_accessor identifier }
+ self.identifiers += identifiers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/InternalChannel.html b/src/classes/ActionCable/Connection/InternalChannel.html
index 9b0144f690..cfdccceaf4 100644
--- a/src/classes/ActionCable/Connection/InternalChannel.html
+++ b/src/classes/ActionCable/Connection/InternalChannel.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
index 7167904452..bf0c696d62 100644
--- a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
+++ b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 15
- def initialize(name)
- super "Unable to determine the connection to test from #{name}. " +
- "You'll need to specify it using `tests YourConnection` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the connection to test from #{name}. " +
+ "You'll need to specify it using `tests YourConnection` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/StreamEventLoop.html b/src/classes/ActionCable/Connection/StreamEventLoop.html
index 2b71a213e3..f7c49354ef 100644
--- a/src/classes/ActionCable/Connection/StreamEventLoop.html
+++ b/src/classes/ActionCable/Connection/StreamEventLoop.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -111,16 +111,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 10
- def initialize
- @nio = @executor = @thread = nil
- @map = {}
- @stopping = false
- @todo = Queue.new
-
- @spawn_mutex = Mutex.new
- end
+def initialize
+ @nio = @executor = @thread = nil
+ @map = {}
+ @stopping = false
+ @todo = Queue.new
+
+ @spawn_mutex = Mutex.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -155,15 +155,15 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 30
- def attach(io, stream)
- @todo << lambda do
- @map[io] = @nio.register(io, :r)
- @map[io].value = stream
- end
- wakeup
- end
+def attach(io, stream)
+ @todo << lambda do
+ @map[io] = @nio.register(io, :r)
+ @map[io].value = stream
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -194,16 +194,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 38
- def detach(io, stream)
- @todo << lambda do
- @nio.deregister io
- @map.delete io
- io.close
- end
- wakeup
- end
+def detach(io, stream)
+ @todo << lambda do
+ @nio.deregister io
+ @map.delete io
+ io.close
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -234,14 +234,14 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 23
- def post(task = nil, &block)
- task ||= block
+def post(task = nil, &block)
+ task ||= block
- spawn
- @executor << task
- end
+ spawn
+ @executor << task
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,12 +272,12 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 56
- def stop
- @stopping = true
- wakeup if @nio
- end
+def stop
+ @stopping = true
+ wakeup if @nio
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -308,11 +308,11 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 19
- def timer(interval, &block)
- Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
- end
+def timer(interval, &block)
+ Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -343,16 +343,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 47
- def writes_pending(io)
- @todo << lambda do
- if monitor = @map[io]
- monitor.interests = :rw
- end
- end
- wakeup
- end
+def writes_pending(io)
+ @todo << lambda do
+ if monitor = @map[io]
+ monitor.interests = :rw
+ end
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
index f4d5cacc63..99731855fb 100644
--- a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
+++ b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -121,12 +121,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 16
- def initialize(logger, tags:)
- @logger = logger
- @tags = tags.flatten
- end
+def initialize(logger, tags:)
+ @logger = logger
+ @tags = tags.flatten
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -161,12 +161,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 21
- def add_tags(*tags)
- @tags += tags.flatten
- @tags = @tags.uniq
- end
+def add_tags(*tags)
+ @tags += tags.flatten
+ @tags = @tags.uniq
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -197,16 +197,16 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 26
- def tag(logger, &block)
- if logger.respond_to?(:tagged)
- current_tags = tags - logger.formatter.current_tags
- logger.tagged(*current_tags, &block)
- else
- yield
- end
- end
+def tag(logger, &block)
+ if logger.respond_to?(:tagged)
+ current_tags = tags - logger.formatter.current_tags
+ logger.tagged(*current_tags, &block)
+ else
+ yield
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,11 +240,11 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 42
- def log(type, message, &block) # :doc:
- tag(@logger) { @logger.send type, message, &block }
- end
+def log(type, message, &block) # :doc:
+ tag(@logger) { @logger.send type, message, &block }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase.html b/src/classes/ActionCable/Connection/TestCase.html
index 948378e491..39bc5cb056 100644
--- a/src/classes/ActionCable/Connection/TestCase.html
+++ b/src/classes/ActionCable/Connection/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior.html b/src/classes/ActionCable/Connection/TestCase/Behavior.html
index b87870becd..4ee0debbea 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -163,19 +163,19 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 192
- def connect(path = ActionCable.server.config.mount_path, **request_params)
- path ||= DEFAULT_PATH
+def connect(path = ActionCable.server.config.mount_path, **request_params)
+ path ||= DEFAULT_PATH
- connection = self.class.connection_class.allocate
- connection.singleton_class.include(TestConnection)
- connection.send(:initialize, build_test_request(path, **request_params))
- connection.connect if connection.respond_to?(:connect)
+ connection = self.class.connection_class.allocate
+ connection.singleton_class.include(TestConnection)
+ connection.send(:initialize, build_test_request(path, **request_params))
+ connection.connect if connection.respond_to?(:connect)
- # Only set instance variable if connected successfully
- @connection = connection
- end
+ # Only set instance variable if connected successfully
+ @connection = connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -206,11 +206,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 212
- def cookies
- @cookie_jar ||= TestCookieJar.new
- end
+def cookies
+ @cookie_jar ||= TestCookieJar.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -241,14 +241,14 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 205
- def disconnect
- raise "Must be connected!" if connection.nil?
+def disconnect
+ raise "Must be connected!" if connection.nil?
- connection.disconnect if connection.respond_to?(:disconnect)
- @connection = nil
- end
+ connection.disconnect if connection.respond_to?(:disconnect)
+ @connection = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
index 63444f4b27..99fc0e3f6f 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 167
- def connection_class
- if connection = self._connection_class
- connection
- else
- tests determine_default_connection(name)
- end
- end
+def connection_class
+ if connection = self._connection_class
+ connection
+ else
+ tests determine_default_connection(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 175
- def determine_default_connection(name)
- connection = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Connection::Base
- end
- raise NonInferrableConnectionError.new(name) if connection.nil?
- connection
- end
+def determine_default_connection(name)
+ connection = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Connection::Base
+ end
+ raise NonInferrableConnectionError.new(name) if connection.nil?
+ connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 13
- def initialize(message = nil)
- super(message || DEFAULT_MESSAGE)
- end
+def initialize(message = nil)
+ super(message || DEFAULT_MESSAGE)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Helpers.html b/src/classes/AbstractController/Helpers.html
index 9fc0534a60..b4d98aa351 100644
--- a/src/classes/AbstractController/Helpers.html
+++ b/src/classes/AbstractController/Helpers.html
@@ -5,7 +5,7 @@
+ Ruby on Rails 8.1.0.rc1
@@ -95,11 +95,11 @@
# File actionpack/lib/abstract_controller/helpers.rb, line 28
- def _helpers
- self.class._helpers
- end
+def _helpers
+ self.class._helpers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Helpers/ClassMethods.html b/src/classes/AbstractController/Helpers/ClassMethods.html
index 8900a598d0..33df6d47c3 100644
--- a/src/classes/AbstractController/Helpers/ClassMethods.html
+++ b/src/classes/AbstractController/Helpers/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -119,7 +119,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -148,14 +148,14 @@
# File actionpack/lib/abstract_controller/helpers.rb, line 218
- def _helpers_for_modification
- unless @_helpers
- self._helpers = define_helpers_module(self, superclass._helpers)
- end
- _helpers
- end
+def _helpers_for_modification
+ unless @_helpers
+ self._helpers = define_helpers_module(self, superclass._helpers)
+ end
+ _helpers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -186,16 +186,16 @@
# File actionpack/lib/abstract_controller/helpers.rb, line 209
- def clear_helpers
- inherited_helper_methods = _helper_methods
- self._helpers = Module.new
- self._helper_methods = Array.new
-
- inherited_helper_methods.each { |meth| helper_method meth }
- default_helper_module! unless anonymous?
- end
+def clear_helpers
+ inherited_helper_methods = _helper_methods
+ self._helpers = Module.new
+ self._helper_methods = Array.new
+
+ inherited_helper_methods.each { |meth| helper_method meth }
+ default_helper_module! unless anonymous?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -274,16 +274,16 @@
# File actionpack/lib/abstract_controller/helpers.rb, line 198
- def helper(*args, &block)
- modules_for_helpers(args).each do |mod|
- next if _helpers.include?(mod)
- _helpers_for_modification.include(mod)
- end
-
- _helpers_for_modification.module_eval(&block) if block_given?
- end
+def helper(*args, &block)
+ modules_for_helpers(args).each do |mod|
+ next if _helpers.include?(mod)
+ _helpers_for_modification.include(mod)
+ end
+
+ _helpers_for_modification.module_eval(&block) if block_given?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -338,26 +338,26 @@ Parameters
# File actionpack/lib/abstract_controller/helpers.rb, line 128
- def helper_method(*methods)
- methods.flatten!
- self._helper_methods += methods
-
- location = caller_locations(1, 1).first
- file, line = location.path, location.lineno
-
- methods.each do |method|
- # def current_user(...)
- # controller.send(:'current_user', ...)
- # end
- _helpers_for_modification.class_eval <<~ruby_eval.lines.map(&:strip).join(";"), file, line
- def #{method}(...)
- controller.send(:'#{method}', ...)
- end
- ruby_eval
- end
- end
+def helper_method(*methods)
+ methods.flatten!
+ self._helper_methods += methods
+
+ location = caller_locations(1, 1).first
+ file, line = location.path, location.lineno
+
+ methods.each do |method|
+ # def current_user(...)
+ # controller.send(:'current_user', ...)
+ # end
+ _helpers_for_modification.class_eval <<~ruby_eval.lines.map(&:strip).join(";"), file, line
+ def #{method}(...)
+ controller.send(:'#{method}', ...)
+ end
+ ruby_eval
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -388,15 +388,15 @@
# File actionpack/lib/abstract_controller/helpers.rb, line 68
- def inherited(klass)
- # Inherited from parent by default
- klass._helpers = nil
+def inherited(klass)
+ # Inherited from parent by default
+ klass._helpers = nil
- klass.class_eval { default_helper_module! } unless klass.anonymous?
- super
- end
+ klass.class_eval { default_helper_module! } unless klass.anonymous?
+ super
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -426,7 +426,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Railties.html b/src/classes/AbstractController/Railties.html
index ddb634ab93..e9e5642902 100644
--- a/src/classes/AbstractController/Railties.html
+++ b/src/classes/AbstractController/Railties.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/AbstractController/Railties/RoutesHelpers.html b/src/classes/AbstractController/Railties/RoutesHelpers.html
index 2b3b00e29d..b053082e31 100644
--- a/src/classes/AbstractController/Railties/RoutesHelpers.html
+++ b/src/classes/AbstractController/Railties/RoutesHelpers.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -81,21 +81,21 @@
# File actionpack/lib/abstract_controller/railties/routes_helpers.rb, line 10
- def self.with(routes, include_path_helpers = true)
- Module.new do
- define_method(:inherited) do |klass|
- super(klass)
-
- if namespace = klass.module_parents.detect { |m| m.respond_to?(:railtie_routes_url_helpers) }
- klass.include(namespace.railtie_routes_url_helpers(include_path_helpers))
- else
- klass.include(routes.url_helpers(include_path_helpers))
- end
- end
- end
- end
+def self.with(routes, include_path_helpers = true)
+ Module.new do
+ define_method(:inherited) do |klass|
+ super(klass)
+
+ if namespace = klass.module_parents.detect { |m| m.respond_to?(:railtie_routes_url_helpers) }
+ klass.include(namespace.railtie_routes_url_helpers(include_path_helpers))
+ else
+ klass.include(routes.url_helpers(include_path_helpers))
+ end
+ end
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Rendering.html b/src/classes/AbstractController/Rendering.html
index 872a9d8b43..0fa902a303 100644
--- a/src/classes/AbstractController/Rendering.html
+++ b/src/classes/AbstractController/Rendering.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -123,7 +123,7 @@
Normalizes arguments and options, and then delegates to render_to_body and sticks the result in self.response_body.
-Supported options depend on the underlying render_to_body implementation.
+Supported options depend on the underlying render_to_body implementation.
@@ -139,19 +139,19 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 26
- def render(*args, &block)
- options = _normalize_render(*args, &block)
- rendered_body = render_to_body(options)
- if options[:html]
- _set_html_content_type
- else
- _set_rendered_content_type rendered_format
- end
- _set_vary_header
- self.response_body = rendered_body
- end
+def render(*args, &block)
+ options = _normalize_render(*args, &block)
+ rendered_body = render_to_body(options)
+ if options[:html]
+ _set_html_content_type
+ else
+ _set_rendered_content_type rendered_format
+ end
+ _set_vary_header
+ self.response_body = rendered_body
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -182,10 +182,10 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 50
- def render_to_body(options = {})
- end
+def render_to_body(options = {})
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -218,12 +218,12 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 44
- def render_to_string(*args, &block)
- options = _normalize_render(*args, &block)
- render_to_body(options)
- end
+def render_to_string(*args, &block)
+ options = _normalize_render(*args, &block)
+ render_to_body(options)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -254,11 +254,11 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 54
- def rendered_format
- Mime[:text]
- end
+def rendered_format
+ Mime[:text]
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -289,15 +289,15 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 62
- def view_assigns
- variables = instance_variables - _protected_ivars
+def view_assigns
+ variables = instance_variables - _protected_ivars
- variables.each_with_object({}) do |name, hash|
- hash[name.slice(1, name.length)] = instance_variable_get(name)
- end
- end
+ variables.each_with_object({}) do |name, hash|
+ hash[name.slice(1, name.length)] = instance_variable_get(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -331,21 +331,21 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 73
- def _normalize_args(action = nil, options = {}) # :doc:
- if action.respond_to?(:permitted?)
- if action.permitted?
- action
- else
- raise ArgumentError, "render parameters are not permitted"
- end
- elsif action.is_a?(Hash)
- action
- else
- options
- end
- end
+def _normalize_args(action = nil, options = {}) # :doc:
+ if action.respond_to?(:permitted?)
+ if action.permitted?
+ action
+ else
+ raise ArgumentError, "render parameters are not permitted"
+ end
+ elsif action.is_a?(Hash)
+ action
+ else
+ options
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -376,11 +376,11 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 88
- def _normalize_options(options) # :doc:
- options
- end
+def _normalize_options(options) # :doc:
+ options
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -411,11 +411,11 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 93
- def _process_options(options) # :doc:
- options
- end
+def _process_options(options) # :doc:
+ options
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Translation.html b/src/classes/AbstractController/Translation.html
index e429818684..446e93e2cd 100644
--- a/src/classes/AbstractController/Translation.html
+++ b/src/classes/AbstractController/Translation.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -123,11 +123,11 @@
# File actionpack/lib/abstract_controller/translation.rb, line 37
- def localize(object, **options)
- I18n.localize(object, **options)
- end
+def localize(object, **options)
+ I18n.localize(object, **options)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -189,25 +189,25 @@
# File actionpack/lib/abstract_controller/translation.rb, line 17
- def translate(key, **options)
- if key&.start_with?(".")
- path = controller_path.tr("/", ".")
- defaults = [:"#{path}#{key}"]
- defaults << options[:default] if options[:default]
- options[:default] = defaults.flatten
- key = "#{path}.#{action_name}#{key}"
- end
-
- if options[:default] && ActiveSupport::HtmlSafeTranslation.html_safe_translation_key?(key)
- options[:default] = Array(options[:default]).map do |value|
- value.is_a?(String) ? ERB::Util.html_escape(value) : value
- end
- end
-
- ActiveSupport::HtmlSafeTranslation.translate(key, **options)
- end
+def translate(key, **options)
+ if key&.start_with?(".")
+ path = controller_path.tr("/", ".")
+ defaults = [:"#{path}#{key}"]
+ defaults << options[:default] if options[:default]
+ options[:default] = defaults.flatten
+ key = "#{path}.#{action_name}#{key}"
+ end
+
+ if options[:default] && ActiveSupport::HtmlSafeTranslation.html_safe_translation_key?(key)
+ options[:default] = Array(options[:default]).map do |value|
+ value.is_a?(String) ? ERB::Util.html_escape(value) : value
+ end
+ end
+
+ ActiveSupport::HtmlSafeTranslation.translate(key, **options)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/UrlFor.html b/src/classes/AbstractController/UrlFor.html
index 8d49da9f5c..bd5d0224eb 100644
--- a/src/classes/AbstractController/UrlFor.html
+++ b/src/classes/AbstractController/UrlFor.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -119,12 +119,12 @@
# File actionpack/lib/abstract_controller/url_for.rb, line 18
- def _routes
- raise "In order to use #url_for, you must include routing helpers explicitly. " \
- "For instance, `include Rails.application.routes.url_helpers`."
- end
+def _routes
+ raise "In order to use #url_for, you must include routing helpers explicitly. " \
+ "For instance, `include Rails.application.routes.url_helpers`."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/UrlFor/ClassMethods.html b/src/classes/AbstractController/UrlFor/ClassMethods.html
index cd0e5e9509..e4471b2d66 100644
--- a/src/classes/AbstractController/UrlFor/ClassMethods.html
+++ b/src/classes/AbstractController/UrlFor/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actionpack/lib/abstract_controller/url_for.rb, line 24
- def _routes
- nil
- end
+def _routes
+ nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -121,15 +121,15 @@
# File actionpack/lib/abstract_controller/url_for.rb, line 28
- def action_methods
- @action_methods ||= if _routes
- super - _routes.named_routes.helper_names
- else
- super
- end
- end
+def action_methods
+ @action_methods ||= if _routes
+ super - _routes.named_routes.helper_names
+ else
+ super
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable.html b/src/classes/ActionCable.html
index 4951b5813f..5e5f891dce 100644
--- a/src/classes/ActionCable.html
+++ b/src/classes/ActionCable.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -267,11 +267,11 @@
# File actioncable/lib/action_cable/gem_version.rb, line 7
- def self.gem_version
- Gem::Version.new VERSION::STRING
- end
+def self.gem_version
+ Gem::Version.new VERSION::STRING
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -302,11 +302,11 @@
# File actioncable/lib/action_cable/version.rb, line 9
- def self.version
- gem_version
- end
+def self.version
+ gem_version
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -341,11 +341,11 @@
# File actioncable/lib/action_cable.rb, line 77
- def server
- @server ||= ActionCable::Server::Base.new
- end
+def server
+@server ||= ActionCable::Server::Base.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel.html b/src/classes/ActionCable/Channel.html
index 38c886ddbc..06b36ff362 100644
--- a/src/classes/ActionCable/Channel.html
+++ b/src/classes/ActionCable/Channel.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Channel/Base.html b/src/classes/ActionCable/Channel/Base.html
index bc63a53315..32e2ff9b70 100644
--- a/src/classes/ActionCable/Channel/Base.html
+++ b/src/classes/ActionCable/Channel/Base.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -82,7 +82,7 @@ Action process
end
-
In this example, the subscribed and unsubscribed methods are not callable methods, as they were already declared in ActionCable::Channel::Base, but #appear and #away are. #generate_connection_token is also not callable, since it’s a private method. You’ll see that appear accepts a data parameter, which it then uses as part of its model call. #away does not, since it’s simply a trigger action.
+In this example, the subscribed and unsubscribed methods are not callable methods, as they were already declared in ActionCable::Channel::Base, but appear and away are. generate_connection_token is also not callable, since it’s a private method. You’ll see that appear accepts a data parameter, which it then uses as part of its model call. away does not, since it’s simply a trigger action.
Also note that in this example, current_user is available because it was marked as an identifying attribute on the connection. All such identifiers will automatically create a delegation method of the same name on the channel instance.
@@ -307,19 +307,22 @@ Returns
# File actioncable/lib/action_cable/channel/base.rb, line 128
- def action_methods
- @action_methods ||= begin
- # All public instance methods of this class, including ancestors
- methods = (public_instance_methods(true) -
- # Except for public instance methods of Base and its ancestors
- ActionCable::Channel::Base.public_instance_methods(true) +
- # Be sure to include shadowed public instance methods of this class
- public_instance_methods(false)).uniq.map(&:to_s)
- methods.to_set
- end
- end
-
- 🔎 See on GitHub
+def action_methods
+ @action_methods ||= begin
+ # All public instance methods of this class, including ancestors
+ methods = (public_instance_methods(true) -
+ # Except for public instance methods of Base and its ancestors
+ ActionCable::Channel::Base.public_instance_methods(true) +
+ # Be sure to include shadowed public instance methods of this class
+ public_instance_methods(false)).uniq
+
+ methods.reject! { |m| m.start_with?("_") }
+ methods.map!(&:name)
+ methods.to_set
+ end
+end
+
+ 🔎 See on GitHub
@@ -349,26 +352,26 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 155
- def initialize(connection, identifier, params = {})
- @connection = connection
- @identifier = identifier
- @params = params
+ # File actioncable/lib/action_cable/channel/base.rb, line 158
+def initialize(connection, identifier, params = {})
+ @connection = connection
+ @identifier = identifier
+ @params = params
- # When a channel is streaming via pubsub, we want to delay the confirmation
- # transmission until pubsub subscription is confirmed.
- #
- # The counter starts at 1 because it's awaiting a call to #subscribe_to_channel
- @defer_subscription_confirmation_counter = Concurrent::AtomicFixnum.new(1)
+ # When a channel is streaming via pubsub, we want to delay the confirmation
+ # transmission until pubsub subscription is confirmed.
+ #
+ # The counter starts at 1 because it's awaiting a call to #subscribe_to_channel
+ @defer_subscription_confirmation_counter = Concurrent::AtomicFixnum.new(1)
- @reject_subscription = nil
- @subscription_confirmation_sent = nil
- @unsubscribed = false
+ @reject_subscription = nil
+ @subscription_confirmation_sent = nil
+ @unsubscribed = false
- delegate_connection_identifiers
- end
+ delegate_connection_identifiers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -401,12 +404,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 144
- def clear_action_methods! # :doc:
- @action_methods = nil
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 147
+def clear_action_methods! # :doc:
+ @action_methods = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -436,13 +439,13 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 149
- def method_added(name) # :doc:
- super
- clear_action_methods!
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 152
+def method_added(name) # :doc:
+ super
+ clear_action_methods!
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -476,21 +479,21 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 176
- def perform_action(data)
- action = extract_action(data)
+ # File actioncable/lib/action_cable/channel/base.rb, line 179
+def perform_action(data)
+ action = extract_action(data)
- if processable_action?(action)
- payload = { channel_class: self.class.name, action: action, data: data }
- ActiveSupport::Notifications.instrument("perform_action.action_cable", payload) do
- dispatch_action(action, data)
- end
- else
- logger.error "Unable to process #{action_signature(action, data)}"
- end
- end
+ if processable_action?(action)
+ payload = { channel_class: self.class.name, action: action, data: data }
+ ActiveSupport::Notifications.instrument("perform_action.action_cable", payload) do
+ dispatch_action(action, data)
+ end
+ else
+ logger.error "Unable to process #{action_signature(action, data)}"
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -520,17 +523,17 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 191
- def subscribe_to_channel
- run_callbacks :subscribe do
- subscribed
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 194
+def subscribe_to_channel
+ run_callbacks :subscribe do
+ subscribed
+ end
- reject_subscription if subscription_rejected?
- ensure_confirmation_sent
- end
+ reject_subscription if subscription_rejected?
+ ensure_confirmation_sent
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -563,12 +566,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 250
- def defer_subscription_confirmation! # :doc:
- @defer_subscription_confirmation_counter.increment
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 253
+def defer_subscription_confirmation! # :doc:
+ @defer_subscription_confirmation_counter.increment
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -598,12 +601,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 254
- def defer_subscription_confirmation? # :doc:
- @defer_subscription_confirmation_counter.value > 0
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 257
+def defer_subscription_confirmation? # :doc:
+ @defer_subscription_confirmation_counter.value > 0
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -633,14 +636,14 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 244
- def ensure_confirmation_sent # :doc:
- return if subscription_rejected?
- @defer_subscription_confirmation_counter.decrement
- transmit_subscription_confirmation unless defer_subscription_confirmation?
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 247
+def ensure_confirmation_sent # :doc:
+ return if subscription_rejected?
+ @defer_subscription_confirmation_counter.decrement
+ transmit_subscription_confirmation unless defer_subscription_confirmation?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -670,12 +673,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 262
- def reject # :doc:
- @reject_subscription = true
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 265
+def reject # :doc:
+ @reject_subscription = true
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -705,12 +708,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 218
- def subscribed # :doc:
- # Override in subclasses
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 221
+def subscribed # :doc:
+ # Override in subclasses
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -740,12 +743,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 258
- def subscription_confirmation_sent? # :doc:
- @subscription_confirmation_sent
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 261
+def subscription_confirmation_sent? # :doc:
+ @subscription_confirmation_sent
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -775,12 +778,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 266
- def subscription_rejected? # :doc:
- @reject_subscription
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 269
+def subscription_rejected? # :doc:
+ @reject_subscription
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -810,21 +813,21 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 231
- def transmit(data, via: nil) # :doc:
- logger.debug do
- status = "#{self.class.name} transmitting #{data.inspect.truncate(300)}"
- status += " (via #{via})" if via
- status
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 234
+def transmit(data, via: nil) # :doc:
+ logger.debug do
+ status = "#{self.class.name} transmitting #{data.inspect.truncate(300)}"
+ status += " (via #{via})" if via
+ status
+ end
- payload = { channel_class: self.class.name, data: data, via: via }
- ActiveSupport::Notifications.instrument("transmit.action_cable", payload) do
- connection.transmit identifier: @identifier, message: data
- end
- end
+ payload = { channel_class: self.class.name, data: data, via: via }
+ ActiveSupport::Notifications.instrument("transmit.action_cable", payload) do
+ connection.transmit identifier: @identifier, message: data
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -854,12 +857,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 224
- def unsubscribed # :doc:
- # Override in subclasses
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 227
+def unsubscribed # :doc:
+ # Override in subclasses
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Broadcasting.html b/src/classes/ActionCable/Channel/Broadcasting.html
index bb71b89445..7fecc3f6b8 100644
--- a/src/classes/ActionCable/Channel/Broadcasting.html
+++ b/src/classes/ActionCable/Channel/Broadcasting.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -99,11 +99,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 45
- def broadcast_to(model, message)
- self.class.broadcast_to(model, message)
- end
+def broadcast_to(model, message)
+ self.class.broadcast_to(model, message)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -134,11 +134,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 41
- def broadcasting_for(model)
- self.class.broadcasting_for(model)
- end
+def broadcasting_for(model)
+ self.class.broadcasting_for(model)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html b/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
index 684bccb1ab..432bb5d74f 100644
--- a/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 14
- def broadcast_to(broadcastables, message)
- ActionCable.server.broadcast(broadcasting_for(broadcastables), message)
- end
+def broadcast_to(broadcastables, message)
+ ActionCable.server.broadcast(broadcasting_for(broadcastables), message)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -126,11 +126,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 24
- def broadcasting_for(broadcastables)
- serialize_broadcasting([ channel_name ] + Array(broadcastables))
- end
+def broadcasting_for(broadcastables)
+ serialize_broadcasting([ channel_name ] + Array(broadcastables))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Callbacks.html b/src/classes/ActionCable/Channel/Callbacks.html
index 076bdbc8fa..64985186c3 100644
--- a/src/classes/ActionCable/Channel/Callbacks.html
+++ b/src/classes/ActionCable/Channel/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html b/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
index 6ee4317311..7949b5fdf6 100644
--- a/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -111,11 +111,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 60
- def after_subscribe(*methods, &block)
- set_callback(:subscribe, :after, *methods, &block)
- end
+def after_subscribe(*methods, &block)
+ set_callback(:subscribe, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -150,11 +150,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 69
- def after_unsubscribe(*methods, &block)
- set_callback(:unsubscribe, :after, *methods, &block)
- end
+def after_unsubscribe(*methods, &block)
+ set_callback(:unsubscribe, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -185,11 +185,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 48
- def before_subscribe(*methods, &block)
- set_callback(:subscribe, :before, *methods, &block)
- end
+def before_subscribe(*methods, &block)
+ set_callback(:subscribe, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -220,11 +220,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 65
- def before_unsubscribe(*methods, &block)
- set_callback(:unsubscribe, :before, *methods, &block)
- end
+def before_unsubscribe(*methods, &block)
+ set_callback(:unsubscribe, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/ChannelStub.html b/src/classes/ActionCable/Channel/ChannelStub.html
index 9db98daac2..d004896dc5 100644
--- a/src/classes/ActionCable/Channel/ChannelStub.html
+++ b/src/classes/ActionCable/Channel/ChannelStub.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -25,7 +25,7 @@
Action Cable Channel Stub
-
Stub stream_from to track streams for the channel. Add public aliases for subscription_confirmation_sent? and subscription_rejected?.
+Stub stream_from to track streams for the channel. Add public aliases for subscription_confirmation_sent? and subscription_rejected?.
@@ -114,11 +114,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 25
- def confirmed?
- subscription_confirmation_sent?
- end
+def confirmed?
+ subscription_confirmation_sent?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -149,11 +149,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 29
- def rejected?
- subscription_rejected?
- end
+def rejected?
+ subscription_rejected?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -188,9 +188,9 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 46
- def start_periodic_timers; end
+def start_periodic_timers; end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -221,11 +221,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 37
- def stop_all_streams
- @_streams = []
- end
+def stop_all_streams
+ @_streams = []
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -281,11 +281,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 33
- def stream_from(broadcasting, *)
- streams << broadcasting
- end
+def stream_from(broadcasting, *)
+ streams << broadcasting
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -316,11 +316,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 41
- def streams
- @_streams ||= []
- end
+def streams
+ @_streams ||= []
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/ConnectionStub.html b/src/classes/ActionCable/Channel/ConnectionStub.html
index 62c52b567f..0fdc0d8690 100644
--- a/src/classes/ActionCable/Channel/ConnectionStub.html
+++ b/src/classes/ActionCable/Channel/ConnectionStub.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -141,20 +141,20 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 55
- def initialize(identifiers = {})
- @server = ActionCable.server
- @transmissions = []
-
- identifiers.each do |identifier, val|
- define_singleton_method(identifier) { val }
- end
-
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @identifiers = identifiers.keys
- @logger = ActiveSupport::TaggedLogging.new ActiveSupport::Logger.new(StringIO.new)
- end
+def initialize(identifiers = {})
+ @server = ActionCable.server
+ @transmissions = []
+
+ identifiers.each do |identifier, val|
+ define_singleton_method(identifier) { val }
+ end
+
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @identifiers = identifiers.keys
+ @logger = ActiveSupport::TaggedLogging.new ActiveSupport::Logger.new(StringIO.new)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -189,11 +189,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 72
- def connection_identifier
- @connection_identifier ||= connection_gid(identifiers.filter_map { |id| send(id.to_sym) if id })
- end
+def connection_identifier
+ @connection_identifier ||= connection_gid(identifiers.filter_map { |id| send(id.to_sym) if id })
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -224,11 +224,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 68
- def transmit(cable_message)
- transmissions << cable_message.with_indifferent_access
- end
+def transmit(cable_message)
+ transmissions << cable_message.with_indifferent_access
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Naming.html b/src/classes/ActionCable/Channel/Naming.html
index 84bfc0232c..db2aa18589 100644
--- a/src/classes/ActionCable/Channel/Naming.html
+++ b/src/classes/ActionCable/Channel/Naming.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,11 +95,11 @@
# File actioncable/lib/action_cable/channel/naming.rb, line 23
- def channel_name
- self.class.channel_name
- end
+def channel_name
+ self.class.channel_name
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Naming/ClassMethods.html b/src/classes/ActionCable/Channel/Naming/ClassMethods.html
index b847309f12..e99c0744a7 100644
--- a/src/classes/ActionCable/Channel/Naming/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Naming/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -66,7 +66,7 @@
- Returns the name of the channel, underscored, without the Channel ending. If the channel is in a namespace, then the namespaces are represented by single colon separators in the channel name.
+ Returns the name of the channel, underscored, without the Channel ending. If the channel is in a namespace, then the namespaces are represented by single colon separators in the channel name.
ChatChannel.channel_name # => 'chat'
Chats::AppearancesChannel.channel_name # => 'chats:appearances'
@@ -87,11 +87,11 @@
# File actioncable/lib/action_cable/channel/naming.rb, line 18
- def channel_name
- @channel_name ||= name.delete_suffix("Channel").gsub("::", ":").underscore
- end
+def channel_name
+ @channel_name ||= name.delete_suffix("Channel").gsub("::", ":").underscore
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/NonInferrableChannelError.html b/src/classes/ActionCable/Channel/NonInferrableChannelError.html
index 034c36b135..1eac81cbd2 100644
--- a/src/classes/ActionCable/Channel/NonInferrableChannelError.html
+++ b/src/classes/ActionCable/Channel/NonInferrableChannelError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 13
- def initialize(name)
- super "Unable to determine the channel to test from #{name}. " +
- "You'll need to specify it using `tests YourChannel` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the channel to test from #{name}. " +
+ "You'll need to specify it using `tests YourChannel` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/PeriodicTimers.html b/src/classes/ActionCable/Channel/PeriodicTimers.html
index 88facef675..561da6e0dd 100644
--- a/src/classes/ActionCable/Channel/PeriodicTimers.html
+++ b/src/classes/ActionCable/Channel/PeriodicTimers.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html b/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
index 233865e2e3..a694f6de16 100644
--- a/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -91,30 +91,30 @@
# File actioncable/lib/action_cable/channel/periodic_timers.rb, line 31
- def periodically(callback_or_method_name = nil, every:, &block)
- callback =
- if block_given?
- raise ArgumentError, "Pass a block or provide a callback arg, not both" if callback_or_method_name
- block
- else
- case callback_or_method_name
- when Proc
- callback_or_method_name
- when Symbol
- -> { __send__ callback_or_method_name }
- else
- raise ArgumentError, "Expected a Symbol method name or a Proc, got #{callback_or_method_name.inspect}"
- end
- end
-
- unless every.kind_of?(Numeric) && every > 0
- raise ArgumentError, "Expected every: to be a positive number of seconds, got #{every.inspect}"
- end
-
- self.periodic_timers += [[ callback, every: every ]]
- end
+def periodically(callback_or_method_name = nil, every:, &block)
+ callback =
+ if block_given?
+ raise ArgumentError, "Pass a block or provide a callback arg, not both" if callback_or_method_name
+ block
+ else
+ case callback_or_method_name
+ when Proc
+ callback_or_method_name
+ when Symbol
+ -> { __send__ callback_or_method_name }
+ else
+ raise ArgumentError, "Expected a Symbol method name or a Proc, got #{callback_or_method_name.inspect}"
+ end
+ end
+
+ unless every.kind_of?(Numeric) && every > 0
+ raise ArgumentError, "Expected every: to be a positive number of seconds, got #{every.inspect}"
+ end
+
+ self.periodic_timers += [[ callback, every: every ]]
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Streams.html b/src/classes/ActionCable/Channel/Streams.html
index 0967feb616..a2e686a3e9 100644
--- a/src/classes/ActionCable/Channel/Streams.html
+++ b/src/classes/ActionCable/Channel/Streams.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -167,14 +167,14 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 137
- def stop_all_streams
- streams.each do |broadcasting, callback|
- pubsub.unsubscribe broadcasting, callback
- logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
- end.clear
- end
+def stop_all_streams
+ streams.each do |broadcasting, callback|
+ pubsub.unsubscribe broadcasting, callback
+ logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
+ end.clear
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -205,11 +205,11 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 132
- def stop_stream_for(model)
- stop_stream_from(broadcasting_for(model))
- end
+def stop_stream_for(model)
+ stop_stream_from(broadcasting_for(model))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,15 +240,15 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 123
- def stop_stream_from(broadcasting)
- callback = streams.delete(broadcasting)
- if callback
- pubsub.unsubscribe(broadcasting, callback)
- logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
- end
- end
+def stop_stream_from(broadcasting)
+ callback = streams.delete(broadcasting)
+ if callback
+ pubsub.unsubscribe(broadcasting, callback)
+ logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -281,11 +281,11 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 118
- def stream_for(broadcastables, callback = nil, coder: nil, &block)
- stream_from(broadcasting_for(broadcastables), callback || block, coder: coder)
- end
+def stream_for(broadcastables, callback = nil, coder: nil, &block)
+ stream_from(broadcasting_for(broadcastables), callback || block, coder: coder)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -316,28 +316,28 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 90
- def stream_from(broadcasting, callback = nil, coder: nil, &block)
- return if unsubscribed?
-
- broadcasting = String(broadcasting)
-
- # Don't send the confirmation until pubsub#subscribe is successful
- defer_subscription_confirmation!
-
- # Build a stream handler by wrapping the user-provided callback with a decoder
- # or defaulting to a JSON-decoding retransmitter.
- handler = worker_pool_stream_handler(broadcasting, callback || block, coder: coder)
- streams[broadcasting] = handler
-
- connection.server.event_loop.post do
- pubsub.subscribe(broadcasting, handler, lambda do
- ensure_confirmation_sent
- logger.info "#{self.class.name} is streaming from #{broadcasting}"
- end)
- end
- end
+def stream_from(broadcasting, callback = nil, coder: nil, &block)
+ return if unsubscribed?
+
+ broadcasting = String(broadcasting)
+
+ # Don't send the confirmation until pubsub#subscribe is successful
+ defer_subscription_confirmation!
+
+ # Build a stream handler by wrapping the user-provided callback with a decoder
+ # or defaulting to a JSON-decoding retransmitter.
+ handler = worker_pool_stream_handler(broadcasting, callback || block, coder: coder)
+ streams[broadcasting] = handler
+
+ connection.server.event_loop.post do
+ pubsub.subscribe(broadcasting, handler, lambda do
+ ensure_confirmation_sent
+ logger.info "#{self.class.name} is streaming from #{broadcasting}"
+ end)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -368,15 +368,15 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 146
- def stream_or_reject_for(model)
- if model
- stream_for model
- else
- reject
- end
- end
+def stream_or_reject_for(model)
+ if model
+ stream_for model
+ else
+ reject
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase.html b/src/classes/ActionCable/Channel/TestCase.html
index 08fb28c0cf..6317ff44d0 100644
--- a/src/classes/ActionCable/Channel/TestCase.html
+++ b/src/classes/ActionCable/Channel/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior.html b/src/classes/ActionCable/Channel/TestCase/Behavior.html
index b5f3a5cbb7..5a8ea0fd78 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -196,11 +196,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 282
- def assert_broadcast_on(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcast_on(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -231,11 +231,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 278
- def assert_broadcasts(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcasts(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,11 +272,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 326
- def assert_has_no_stream(stream)
- assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
- end
+def assert_has_no_stream(stream)
+ assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -313,11 +313,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 337
- def assert_has_no_stream_for(object)
- assert_has_no_stream(broadcasting_for(object))
- end
+def assert_has_no_stream_for(object)
+ assert_has_no_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -354,11 +354,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 304
- def assert_has_stream(stream)
- assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
- end
+def assert_has_stream(stream)
+ assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -395,11 +395,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 315
- def assert_has_stream_for(object)
- assert_has_stream(broadcasting_for(object))
- end
+def assert_has_stream_for(object)
+ assert_has_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -436,11 +436,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 293
- def assert_no_streams
- assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
- end
+def assert_no_streams
+ assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -473,12 +473,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 266
- def perform(action, data = {})
- check_subscribed!
- subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
- end
+def perform(action, data = {})
+ check_subscribed!
+ subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -516,11 +516,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 243
- def stub_connection(identifiers = {})
- @connection = ConnectionStub.new(identifiers)
- end
+def stub_connection(identifiers = {})
+ @connection = ConnectionStub.new(identifiers)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -551,15 +551,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 249
- def subscribe(params = {})
- @connection ||= stub_connection
- @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
- @subscription.singleton_class.include(ChannelStub)
- @subscription.subscribe_to_channel
- @subscription
- end
+def subscribe(params = {})
+ @connection ||= stub_connection
+ @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
+ @subscription.singleton_class.include(ChannelStub)
+ @subscription.subscribe_to_channel
+ @subscription
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -590,12 +590,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 272
- def transmissions
- # Return only directly sent message (via #transmit)
- connection.transmissions.filter_map { |data| data["message"] }
- end
+def transmissions
+ # Return only directly sent message (via #transmit)
+ connection.transmissions.filter_map { |data| data["message"] }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -626,12 +626,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 258
- def unsubscribe
- check_subscribed!
- subscription.unsubscribe_from_channel
- end
+def unsubscribe
+ check_subscribed!
+ subscription.unsubscribe_from_channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
index 48ea87f130..57efb4cdac 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 219
- def channel_class
- if channel = self._channel_class
- channel
- else
- tests determine_default_channel(name)
- end
- end
+def channel_class
+ if channel = self._channel_class
+ channel
+ else
+ tests determine_default_channel(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 227
- def determine_default_channel(name)
- channel = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Channel::Base
- end
- raise NonInferrableChannelError.new(name) if channel.nil?
- channel
- end
+def determine_default_channel(name)
+ channel = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Channel::Base
+ end
+ raise NonInferrableChannelError.new(name) if channel.nil?
+ channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 208
- def tests(channel)
- case channel
- when String, Symbol
- self._channel_class = channel.to_s.camelize.constantize
- when Module
- self._channel_class = channel
- else
- raise NonInferrableChannelError.new(channel)
- end
- end
+def tests(channel)
+ case channel
+ when String, Symbol
+ self._channel_class = channel.to_s.camelize.constantize
+ when Module
+ self._channel_class = channel
+ else
+ raise NonInferrableChannelError.new(channel)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection.html b/src/classes/ActionCable/Connection.html
index f832214f0e..7889c75284 100644
--- a/src/classes/ActionCable/Connection.html
+++ b/src/classes/ActionCable/Connection.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Assertions.html b/src/classes/ActionCable/Connection/Assertions.html
index 933ea80e4c..6b10ec5528 100644
--- a/src/classes/ActionCable/Connection/Assertions.html
+++ b/src/classes/ActionCable/Connection/Assertions.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 28
- def assert_reject_connection(&block)
- assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
- end
+def assert_reject_connection(&block)
+ assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization.html b/src/classes/ActionCable/Connection/Authorization.html
index feb855aa9e..baf85a37b3 100644
--- a/src/classes/ActionCable/Connection/Authorization.html
+++ b/src/classes/ActionCable/Connection/Authorization.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -97,12 +97,12 @@
# File actioncable/lib/action_cable/connection/authorization.rb, line 12
- def reject_unauthorized_connection
- logger.error "An unauthorized connection attempt was rejected"
- raise UnauthorizedError
- end
+def reject_unauthorized_connection
+ logger.error "An unauthorized connection attempt was rejected"
+ raise UnauthorizedError
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
index b63b282b0b..ff36299a28 100644
--- a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
+++ b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/Base.html b/src/classes/ActionCable/Connection/Base.html
index 36a2f1e1bb..ea0d62911f 100644
--- a/src/classes/ActionCable/Connection/Base.html
+++ b/src/classes/ActionCable/Connection/Base.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -255,21 +255,21 @@
# File actioncable/lib/action_cable/connection/base.rb, line 67
- def initialize(server, env, coder: ActiveSupport::JSON)
- @server, @env, @coder = server, env, coder
+def initialize(server, env, coder: ActiveSupport::JSON)
+ @server, @env, @coder = server, env, coder
- @worker_pool = server.worker_pool
- @logger = new_tagged_logger
+ @worker_pool = server.worker_pool
+ @logger = new_tagged_logger
- @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
+ @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
- @_internal_subscriptions = nil
- @started_at = Time.now
- end
+ @_internal_subscriptions = nil
+ @started_at = Time.now
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -304,11 +304,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 147
- def beat
- transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
- end
+def beat
+ transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -339,16 +339,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 120
- def close(reason: nil, reconnect: true)
- transmit(
- type: ActionCable::INTERNAL[:message_types][:disconnect],
- reason: reason,
- reconnect: reconnect
- )
- websocket.close
- end
+def close(reason: nil, reconnect: true)
+ transmit(
+ type: ActionCable::INTERNAL[:message_types][:disconnect],
+ reason: reason,
+ reconnect: reconnect
+ )
+ websocket.close
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -379,13 +379,13 @@
# File actioncable/lib/action_cable/connection/base.rb, line 109
- def handle_channel_command(payload)
- run_callbacks :command do
- subscriptions.execute_command payload
- end
- end
+def handle_channel_command(payload)
+ run_callbacks :command do
+ subscriptions.execute_command payload
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -416,11 +416,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 131
- def send_async(method, *arguments)
- worker_pool.async_invoke(self, method, *arguments)
- end
+def send_async(method, *arguments)
+ worker_pool.async_invoke(self, method, *arguments)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -451,16 +451,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 138
- def statistics
- {
- identifier: connection_identifier,
- started_at: @started_at,
- subscriptions: subscriptions.identifiers,
- request_id: @env["action_dispatch.request_id"]
- }
- end
+def statistics
+ {
+ identifier: connection_identifier,
+ started_at: @started_at,
+ subscriptions: subscriptions.identifiers,
+ request_id: @env["action_dispatch.request_id"]
+ }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -494,11 +494,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 187
- def cookies # :doc:
- request.cookie_jar
- end
+def cookies # :doc:
+ request.cookie_jar
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -529,14 +529,14 @@
# File actioncable/lib/action_cable/connection/base.rb, line 178
- def request # :doc:
- @request ||= begin
- environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
- ActionDispatch::Request.new(environment || env)
- end
- end
+def request # :doc:
+ @request ||= begin
+ environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
+ ActionDispatch::Request.new(environment || env)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Callbacks.html b/src/classes/ActionCable/Connection/Callbacks.html
index 818958bf81..d6504ca284 100644
--- a/src/classes/ActionCable/Connection/Callbacks.html
+++ b/src/classes/ActionCable/Connection/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
index 933056a029..6376d7195b 100644
--- a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,11 +90,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 47
- def after_command(*methods, &block)
- set_callback(:command, :after, *methods, &block)
- end
+def after_command(*methods, &block)
+ set_callback(:command, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -125,11 +125,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 51
- def around_command(*methods, &block)
- set_callback(:command, :around, *methods, &block)
- end
+def around_command(*methods, &block)
+ set_callback(:command, :around, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -160,11 +160,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 43
- def before_command(*methods, &block)
- set_callback(:command, :before, *methods, &block)
- end
+def before_command(*methods, &block)
+ set_callback(:command, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification.html b/src/classes/ActionCable/Connection/Identification.html
index f3dcea9bfc..063ca88999 100644
--- a/src/classes/ActionCable/Connection/Identification.html
+++ b/src/classes/ActionCable/Connection/Identification.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,15 +95,15 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 29
- def connection_identifier
- unless defined? @connection_identifier
- @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
- end
+def connection_identifier
+ unless defined? @connection_identifier
+ @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
+ end
- @connection_identifier
- end
+ @connection_identifier
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification/ClassMethods.html b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
index 324ded31f5..a3395ef8a3 100644
--- a/src/classes/ActionCable/Connection/Identification/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -84,12 +84,12 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 21
- def identified_by(*identifiers)
- Array(identifiers).each { |identifier| attr_accessor identifier }
- self.identifiers += identifiers
- end
+def identified_by(*identifiers)
+ Array(identifiers).each { |identifier| attr_accessor identifier }
+ self.identifiers += identifiers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/InternalChannel.html b/src/classes/ActionCable/Connection/InternalChannel.html
index 9b0144f690..cfdccceaf4 100644
--- a/src/classes/ActionCable/Connection/InternalChannel.html
+++ b/src/classes/ActionCable/Connection/InternalChannel.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
index 7167904452..bf0c696d62 100644
--- a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
+++ b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 15
- def initialize(name)
- super "Unable to determine the connection to test from #{name}. " +
- "You'll need to specify it using `tests YourConnection` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the connection to test from #{name}. " +
+ "You'll need to specify it using `tests YourConnection` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/StreamEventLoop.html b/src/classes/ActionCable/Connection/StreamEventLoop.html
index 2b71a213e3..f7c49354ef 100644
--- a/src/classes/ActionCable/Connection/StreamEventLoop.html
+++ b/src/classes/ActionCable/Connection/StreamEventLoop.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -111,16 +111,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 10
- def initialize
- @nio = @executor = @thread = nil
- @map = {}
- @stopping = false
- @todo = Queue.new
-
- @spawn_mutex = Mutex.new
- end
+def initialize
+ @nio = @executor = @thread = nil
+ @map = {}
+ @stopping = false
+ @todo = Queue.new
+
+ @spawn_mutex = Mutex.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -155,15 +155,15 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 30
- def attach(io, stream)
- @todo << lambda do
- @map[io] = @nio.register(io, :r)
- @map[io].value = stream
- end
- wakeup
- end
+def attach(io, stream)
+ @todo << lambda do
+ @map[io] = @nio.register(io, :r)
+ @map[io].value = stream
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -194,16 +194,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 38
- def detach(io, stream)
- @todo << lambda do
- @nio.deregister io
- @map.delete io
- io.close
- end
- wakeup
- end
+def detach(io, stream)
+ @todo << lambda do
+ @nio.deregister io
+ @map.delete io
+ io.close
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -234,14 +234,14 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 23
- def post(task = nil, &block)
- task ||= block
+def post(task = nil, &block)
+ task ||= block
- spawn
- @executor << task
- end
+ spawn
+ @executor << task
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,12 +272,12 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 56
- def stop
- @stopping = true
- wakeup if @nio
- end
+def stop
+ @stopping = true
+ wakeup if @nio
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -308,11 +308,11 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 19
- def timer(interval, &block)
- Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
- end
+def timer(interval, &block)
+ Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -343,16 +343,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 47
- def writes_pending(io)
- @todo << lambda do
- if monitor = @map[io]
- monitor.interests = :rw
- end
- end
- wakeup
- end
+def writes_pending(io)
+ @todo << lambda do
+ if monitor = @map[io]
+ monitor.interests = :rw
+ end
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
index f4d5cacc63..99731855fb 100644
--- a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
+++ b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -121,12 +121,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 16
- def initialize(logger, tags:)
- @logger = logger
- @tags = tags.flatten
- end
+def initialize(logger, tags:)
+ @logger = logger
+ @tags = tags.flatten
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -161,12 +161,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 21
- def add_tags(*tags)
- @tags += tags.flatten
- @tags = @tags.uniq
- end
+def add_tags(*tags)
+ @tags += tags.flatten
+ @tags = @tags.uniq
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -197,16 +197,16 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 26
- def tag(logger, &block)
- if logger.respond_to?(:tagged)
- current_tags = tags - logger.formatter.current_tags
- logger.tagged(*current_tags, &block)
- else
- yield
- end
- end
+def tag(logger, &block)
+ if logger.respond_to?(:tagged)
+ current_tags = tags - logger.formatter.current_tags
+ logger.tagged(*current_tags, &block)
+ else
+ yield
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,11 +240,11 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 42
- def log(type, message, &block) # :doc:
- tag(@logger) { @logger.send type, message, &block }
- end
+def log(type, message, &block) # :doc:
+ tag(@logger) { @logger.send type, message, &block }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase.html b/src/classes/ActionCable/Connection/TestCase.html
index 948378e491..39bc5cb056 100644
--- a/src/classes/ActionCable/Connection/TestCase.html
+++ b/src/classes/ActionCable/Connection/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior.html b/src/classes/ActionCable/Connection/TestCase/Behavior.html
index b87870becd..4ee0debbea 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -163,19 +163,19 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 192
- def connect(path = ActionCable.server.config.mount_path, **request_params)
- path ||= DEFAULT_PATH
+def connect(path = ActionCable.server.config.mount_path, **request_params)
+ path ||= DEFAULT_PATH
- connection = self.class.connection_class.allocate
- connection.singleton_class.include(TestConnection)
- connection.send(:initialize, build_test_request(path, **request_params))
- connection.connect if connection.respond_to?(:connect)
+ connection = self.class.connection_class.allocate
+ connection.singleton_class.include(TestConnection)
+ connection.send(:initialize, build_test_request(path, **request_params))
+ connection.connect if connection.respond_to?(:connect)
- # Only set instance variable if connected successfully
- @connection = connection
- end
+ # Only set instance variable if connected successfully
+ @connection = connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -206,11 +206,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 212
- def cookies
- @cookie_jar ||= TestCookieJar.new
- end
+def cookies
+ @cookie_jar ||= TestCookieJar.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -241,14 +241,14 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 205
- def disconnect
- raise "Must be connected!" if connection.nil?
+def disconnect
+ raise "Must be connected!" if connection.nil?
- connection.disconnect if connection.respond_to?(:disconnect)
- @connection = nil
- end
+ connection.disconnect if connection.respond_to?(:disconnect)
+ @connection = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
index 63444f4b27..99fc0e3f6f 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 167
- def connection_class
- if connection = self._connection_class
- connection
- else
- tests determine_default_connection(name)
- end
- end
+def connection_class
+ if connection = self._connection_class
+ connection
+ else
+ tests determine_default_connection(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 175
- def determine_default_connection(name)
- connection = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Connection::Base
- end
- raise NonInferrableConnectionError.new(name) if connection.nil?
- connection
- end
+def determine_default_connection(name)
+ connection = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Connection::Base
+ end
+ raise NonInferrableConnectionError.new(name) if connection.nil?
+ connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actionpack/lib/abstract_controller/helpers.rb, line 28
- def _helpers
- self.class._helpers
- end
+def _helpers
+ self.class._helpers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Helpers/ClassMethods.html b/src/classes/AbstractController/Helpers/ClassMethods.html
index 8900a598d0..33df6d47c3 100644
--- a/src/classes/AbstractController/Helpers/ClassMethods.html
+++ b/src/classes/AbstractController/Helpers/ClassMethods.html
@@ -5,7 +5,7 @@
+ Ruby on Rails 8.1.0.rc1
@@ -119,7 +119,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
# File actionpack/lib/abstract_controller/helpers.rb, line 218
- def _helpers_for_modification
- unless @_helpers
- self._helpers = define_helpers_module(self, superclass._helpers)
- end
- _helpers
- end
+def _helpers_for_modification
+ unless @_helpers
+ self._helpers = define_helpers_module(self, superclass._helpers)
+ end
+ _helpers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -186,16 +186,16 @@
# File actionpack/lib/abstract_controller/helpers.rb, line 209
- def clear_helpers
- inherited_helper_methods = _helper_methods
- self._helpers = Module.new
- self._helper_methods = Array.new
-
- inherited_helper_methods.each { |meth| helper_method meth }
- default_helper_module! unless anonymous?
- end
+def clear_helpers
+ inherited_helper_methods = _helper_methods
+ self._helpers = Module.new
+ self._helper_methods = Array.new
+
+ inherited_helper_methods.each { |meth| helper_method meth }
+ default_helper_module! unless anonymous?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -274,16 +274,16 @@
# File actionpack/lib/abstract_controller/helpers.rb, line 198
- def helper(*args, &block)
- modules_for_helpers(args).each do |mod|
- next if _helpers.include?(mod)
- _helpers_for_modification.include(mod)
- end
-
- _helpers_for_modification.module_eval(&block) if block_given?
- end
+def helper(*args, &block)
+ modules_for_helpers(args).each do |mod|
+ next if _helpers.include?(mod)
+ _helpers_for_modification.include(mod)
+ end
+
+ _helpers_for_modification.module_eval(&block) if block_given?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -338,26 +338,26 @@ Parameters
# File actionpack/lib/abstract_controller/helpers.rb, line 128
- def helper_method(*methods)
- methods.flatten!
- self._helper_methods += methods
-
- location = caller_locations(1, 1).first
- file, line = location.path, location.lineno
-
- methods.each do |method|
- # def current_user(...)
- # controller.send(:'current_user', ...)
- # end
- _helpers_for_modification.class_eval <<~ruby_eval.lines.map(&:strip).join(";"), file, line
- def #{method}(...)
- controller.send(:'#{method}', ...)
- end
- ruby_eval
- end
- end
+def helper_method(*methods)
+ methods.flatten!
+ self._helper_methods += methods
+
+ location = caller_locations(1, 1).first
+ file, line = location.path, location.lineno
+
+ methods.each do |method|
+ # def current_user(...)
+ # controller.send(:'current_user', ...)
+ # end
+ _helpers_for_modification.class_eval <<~ruby_eval.lines.map(&:strip).join(";"), file, line
+ def #{method}(...)
+ controller.send(:'#{method}', ...)
+ end
+ ruby_eval
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -388,15 +388,15 @@
# File actionpack/lib/abstract_controller/helpers.rb, line 68
- def inherited(klass)
- # Inherited from parent by default
- klass._helpers = nil
+def inherited(klass)
+ # Inherited from parent by default
+ klass._helpers = nil
- klass.class_eval { default_helper_module! } unless klass.anonymous?
- super
- end
+ klass.class_eval { default_helper_module! } unless klass.anonymous?
+ super
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -426,7 +426,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
# File actionpack/lib/abstract_controller/helpers.rb, line 218
- def _helpers_for_modification
- unless @_helpers
- self._helpers = define_helpers_module(self, superclass._helpers)
- end
- _helpers
- end# File actionpack/lib/abstract_controller/helpers.rb, line 209
- def clear_helpers
- inherited_helper_methods = _helper_methods
- self._helpers = Module.new
- self._helper_methods = Array.new
-
- inherited_helper_methods.each { |meth| helper_method meth }
- default_helper_module! unless anonymous?
- end
+def clear_helpers
+ inherited_helper_methods = _helper_methods
+ self._helpers = Module.new
+ self._helper_methods = Array.new
+
+ inherited_helper_methods.each { |meth| helper_method meth }
+ default_helper_module! unless anonymous?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -274,16 +274,16 @@
# File actionpack/lib/abstract_controller/helpers.rb, line 198
- def helper(*args, &block)
- modules_for_helpers(args).each do |mod|
- next if _helpers.include?(mod)
- _helpers_for_modification.include(mod)
- end
-
- _helpers_for_modification.module_eval(&block) if block_given?
- end
+def helper(*args, &block)
+ modules_for_helpers(args).each do |mod|
+ next if _helpers.include?(mod)
+ _helpers_for_modification.include(mod)
+ end
+
+ _helpers_for_modification.module_eval(&block) if block_given?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -338,26 +338,26 @@ Parameters
# File actionpack/lib/abstract_controller/helpers.rb, line 128
- def helper_method(*methods)
- methods.flatten!
- self._helper_methods += methods
-
- location = caller_locations(1, 1).first
- file, line = location.path, location.lineno
-
- methods.each do |method|
- # def current_user(...)
- # controller.send(:'current_user', ...)
- # end
- _helpers_for_modification.class_eval <<~ruby_eval.lines.map(&:strip).join(";"), file, line
- def #{method}(...)
- controller.send(:'#{method}', ...)
- end
- ruby_eval
- end
- end
+def helper_method(*methods)
+ methods.flatten!
+ self._helper_methods += methods
+
+ location = caller_locations(1, 1).first
+ file, line = location.path, location.lineno
+
+ methods.each do |method|
+ # def current_user(...)
+ # controller.send(:'current_user', ...)
+ # end
+ _helpers_for_modification.class_eval <<~ruby_eval.lines.map(&:strip).join(";"), file, line
+ def #{method}(...)
+ controller.send(:'#{method}', ...)
+ end
+ ruby_eval
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -388,15 +388,15 @@
# File actionpack/lib/abstract_controller/helpers.rb, line 68
- def inherited(klass)
- # Inherited from parent by default
- klass._helpers = nil
+def inherited(klass)
+ # Inherited from parent by default
+ klass._helpers = nil
- klass.class_eval { default_helper_module! } unless klass.anonymous?
- super
- end
+ klass.class_eval { default_helper_module! } unless klass.anonymous?
+ super
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -426,7 +426,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
# File actionpack/lib/abstract_controller/helpers.rb, line 198
- def helper(*args, &block)
- modules_for_helpers(args).each do |mod|
- next if _helpers.include?(mod)
- _helpers_for_modification.include(mod)
- end
-
- _helpers_for_modification.module_eval(&block) if block_given?
- end# File actionpack/lib/abstract_controller/helpers.rb, line 128
- def helper_method(*methods)
- methods.flatten!
- self._helper_methods += methods
-
- location = caller_locations(1, 1).first
- file, line = location.path, location.lineno
-
- methods.each do |method|
- # def current_user(...)
- # controller.send(:'current_user', ...)
- # end
- _helpers_for_modification.class_eval <<~ruby_eval.lines.map(&:strip).join(";"), file, line
- def #{method}(...)
- controller.send(:'#{method}', ...)
- end
- ruby_eval
- end
- end# File actionpack/lib/abstract_controller/helpers.rb, line 68
- def inherited(klass)
- # Inherited from parent by default
- klass._helpers = nil
+def inherited(klass)
+ # Inherited from parent by default
+ klass._helpers = nil
- klass.class_eval { default_helper_module! } unless klass.anonymous?
- super
- end
+ klass.class_eval { default_helper_module! } unless klass.anonymous?
+ super
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -426,7 +426,7 @@ - 🔎 See on GitHub + 🔎 See on GitHub
+ Ruby on Rails 8.1.0.rc1
diff --git a/src/classes/AbstractController/Railties/RoutesHelpers.html b/src/classes/AbstractController/Railties/RoutesHelpers.html
index 2b3b00e29d..b053082e31 100644
--- a/src/classes/AbstractController/Railties/RoutesHelpers.html
+++ b/src/classes/AbstractController/Railties/RoutesHelpers.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -81,21 +81,21 @@
# File actionpack/lib/abstract_controller/railties/routes_helpers.rb, line 10
- def self.with(routes, include_path_helpers = true)
- Module.new do
- define_method(:inherited) do |klass|
- super(klass)
-
- if namespace = klass.module_parents.detect { |m| m.respond_to?(:railtie_routes_url_helpers) }
- klass.include(namespace.railtie_routes_url_helpers(include_path_helpers))
- else
- klass.include(routes.url_helpers(include_path_helpers))
- end
- end
- end
- end
+def self.with(routes, include_path_helpers = true)
+ Module.new do
+ define_method(:inherited) do |klass|
+ super(klass)
+
+ if namespace = klass.module_parents.detect { |m| m.respond_to?(:railtie_routes_url_helpers) }
+ klass.include(namespace.railtie_routes_url_helpers(include_path_helpers))
+ else
+ klass.include(routes.url_helpers(include_path_helpers))
+ end
+ end
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Rendering.html b/src/classes/AbstractController/Rendering.html
index 872a9d8b43..0fa902a303 100644
--- a/src/classes/AbstractController/Rendering.html
+++ b/src/classes/AbstractController/Rendering.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -123,7 +123,7 @@
Normalizes arguments and options, and then delegates to render_to_body and sticks the result in self.response_body.
-Supported options depend on the underlying render_to_body implementation.
+Supported options depend on the underlying render_to_body implementation.
@@ -139,19 +139,19 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 26
- def render(*args, &block)
- options = _normalize_render(*args, &block)
- rendered_body = render_to_body(options)
- if options[:html]
- _set_html_content_type
- else
- _set_rendered_content_type rendered_format
- end
- _set_vary_header
- self.response_body = rendered_body
- end
+def render(*args, &block)
+ options = _normalize_render(*args, &block)
+ rendered_body = render_to_body(options)
+ if options[:html]
+ _set_html_content_type
+ else
+ _set_rendered_content_type rendered_format
+ end
+ _set_vary_header
+ self.response_body = rendered_body
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -182,10 +182,10 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 50
- def render_to_body(options = {})
- end
+def render_to_body(options = {})
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -218,12 +218,12 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 44
- def render_to_string(*args, &block)
- options = _normalize_render(*args, &block)
- render_to_body(options)
- end
+def render_to_string(*args, &block)
+ options = _normalize_render(*args, &block)
+ render_to_body(options)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -254,11 +254,11 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 54
- def rendered_format
- Mime[:text]
- end
+def rendered_format
+ Mime[:text]
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -289,15 +289,15 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 62
- def view_assigns
- variables = instance_variables - _protected_ivars
+def view_assigns
+ variables = instance_variables - _protected_ivars
- variables.each_with_object({}) do |name, hash|
- hash[name.slice(1, name.length)] = instance_variable_get(name)
- end
- end
+ variables.each_with_object({}) do |name, hash|
+ hash[name.slice(1, name.length)] = instance_variable_get(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -331,21 +331,21 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 73
- def _normalize_args(action = nil, options = {}) # :doc:
- if action.respond_to?(:permitted?)
- if action.permitted?
- action
- else
- raise ArgumentError, "render parameters are not permitted"
- end
- elsif action.is_a?(Hash)
- action
- else
- options
- end
- end
+def _normalize_args(action = nil, options = {}) # :doc:
+ if action.respond_to?(:permitted?)
+ if action.permitted?
+ action
+ else
+ raise ArgumentError, "render parameters are not permitted"
+ end
+ elsif action.is_a?(Hash)
+ action
+ else
+ options
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -376,11 +376,11 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 88
- def _normalize_options(options) # :doc:
- options
- end
+def _normalize_options(options) # :doc:
+ options
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -411,11 +411,11 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 93
- def _process_options(options) # :doc:
- options
- end
+def _process_options(options) # :doc:
+ options
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Translation.html b/src/classes/AbstractController/Translation.html
index e429818684..446e93e2cd 100644
--- a/src/classes/AbstractController/Translation.html
+++ b/src/classes/AbstractController/Translation.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -123,11 +123,11 @@
# File actionpack/lib/abstract_controller/translation.rb, line 37
- def localize(object, **options)
- I18n.localize(object, **options)
- end
+def localize(object, **options)
+ I18n.localize(object, **options)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -189,25 +189,25 @@
# File actionpack/lib/abstract_controller/translation.rb, line 17
- def translate(key, **options)
- if key&.start_with?(".")
- path = controller_path.tr("/", ".")
- defaults = [:"#{path}#{key}"]
- defaults << options[:default] if options[:default]
- options[:default] = defaults.flatten
- key = "#{path}.#{action_name}#{key}"
- end
-
- if options[:default] && ActiveSupport::HtmlSafeTranslation.html_safe_translation_key?(key)
- options[:default] = Array(options[:default]).map do |value|
- value.is_a?(String) ? ERB::Util.html_escape(value) : value
- end
- end
-
- ActiveSupport::HtmlSafeTranslation.translate(key, **options)
- end
+def translate(key, **options)
+ if key&.start_with?(".")
+ path = controller_path.tr("/", ".")
+ defaults = [:"#{path}#{key}"]
+ defaults << options[:default] if options[:default]
+ options[:default] = defaults.flatten
+ key = "#{path}.#{action_name}#{key}"
+ end
+
+ if options[:default] && ActiveSupport::HtmlSafeTranslation.html_safe_translation_key?(key)
+ options[:default] = Array(options[:default]).map do |value|
+ value.is_a?(String) ? ERB::Util.html_escape(value) : value
+ end
+ end
+
+ ActiveSupport::HtmlSafeTranslation.translate(key, **options)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/UrlFor.html b/src/classes/AbstractController/UrlFor.html
index 8d49da9f5c..bd5d0224eb 100644
--- a/src/classes/AbstractController/UrlFor.html
+++ b/src/classes/AbstractController/UrlFor.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -119,12 +119,12 @@
# File actionpack/lib/abstract_controller/url_for.rb, line 18
- def _routes
- raise "In order to use #url_for, you must include routing helpers explicitly. " \
- "For instance, `include Rails.application.routes.url_helpers`."
- end
+def _routes
+ raise "In order to use #url_for, you must include routing helpers explicitly. " \
+ "For instance, `include Rails.application.routes.url_helpers`."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/UrlFor/ClassMethods.html b/src/classes/AbstractController/UrlFor/ClassMethods.html
index cd0e5e9509..e4471b2d66 100644
--- a/src/classes/AbstractController/UrlFor/ClassMethods.html
+++ b/src/classes/AbstractController/UrlFor/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actionpack/lib/abstract_controller/url_for.rb, line 24
- def _routes
- nil
- end
+def _routes
+ nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -121,15 +121,15 @@
# File actionpack/lib/abstract_controller/url_for.rb, line 28
- def action_methods
- @action_methods ||= if _routes
- super - _routes.named_routes.helper_names
- else
- super
- end
- end
+def action_methods
+ @action_methods ||= if _routes
+ super - _routes.named_routes.helper_names
+ else
+ super
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable.html b/src/classes/ActionCable.html
index 4951b5813f..5e5f891dce 100644
--- a/src/classes/ActionCable.html
+++ b/src/classes/ActionCable.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -267,11 +267,11 @@
# File actioncable/lib/action_cable/gem_version.rb, line 7
- def self.gem_version
- Gem::Version.new VERSION::STRING
- end
+def self.gem_version
+ Gem::Version.new VERSION::STRING
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -302,11 +302,11 @@
# File actioncable/lib/action_cable/version.rb, line 9
- def self.version
- gem_version
- end
+def self.version
+ gem_version
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -341,11 +341,11 @@
# File actioncable/lib/action_cable.rb, line 77
- def server
- @server ||= ActionCable::Server::Base.new
- end
+def server
+@server ||= ActionCable::Server::Base.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel.html b/src/classes/ActionCable/Channel.html
index 38c886ddbc..06b36ff362 100644
--- a/src/classes/ActionCable/Channel.html
+++ b/src/classes/ActionCable/Channel.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Channel/Base.html b/src/classes/ActionCable/Channel/Base.html
index bc63a53315..32e2ff9b70 100644
--- a/src/classes/ActionCable/Channel/Base.html
+++ b/src/classes/ActionCable/Channel/Base.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -82,7 +82,7 @@ Action process
end
-
In this example, the subscribed and unsubscribed methods are not callable methods, as they were already declared in ActionCable::Channel::Base, but #appear and #away are. #generate_connection_token is also not callable, since it’s a private method. You’ll see that appear accepts a data parameter, which it then uses as part of its model call. #away does not, since it’s simply a trigger action.
+In this example, the subscribed and unsubscribed methods are not callable methods, as they were already declared in ActionCable::Channel::Base, but appear and away are. generate_connection_token is also not callable, since it’s a private method. You’ll see that appear accepts a data parameter, which it then uses as part of its model call. away does not, since it’s simply a trigger action.
Also note that in this example, current_user is available because it was marked as an identifying attribute on the connection. All such identifiers will automatically create a delegation method of the same name on the channel instance.
@@ -307,19 +307,22 @@ Returns
# File actioncable/lib/action_cable/channel/base.rb, line 128
- def action_methods
- @action_methods ||= begin
- # All public instance methods of this class, including ancestors
- methods = (public_instance_methods(true) -
- # Except for public instance methods of Base and its ancestors
- ActionCable::Channel::Base.public_instance_methods(true) +
- # Be sure to include shadowed public instance methods of this class
- public_instance_methods(false)).uniq.map(&:to_s)
- methods.to_set
- end
- end
-
- 🔎 See on GitHub
+def action_methods
+ @action_methods ||= begin
+ # All public instance methods of this class, including ancestors
+ methods = (public_instance_methods(true) -
+ # Except for public instance methods of Base and its ancestors
+ ActionCable::Channel::Base.public_instance_methods(true) +
+ # Be sure to include shadowed public instance methods of this class
+ public_instance_methods(false)).uniq
+
+ methods.reject! { |m| m.start_with?("_") }
+ methods.map!(&:name)
+ methods.to_set
+ end
+end
+
+ 🔎 See on GitHub
@@ -349,26 +352,26 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 155
- def initialize(connection, identifier, params = {})
- @connection = connection
- @identifier = identifier
- @params = params
+ # File actioncable/lib/action_cable/channel/base.rb, line 158
+def initialize(connection, identifier, params = {})
+ @connection = connection
+ @identifier = identifier
+ @params = params
- # When a channel is streaming via pubsub, we want to delay the confirmation
- # transmission until pubsub subscription is confirmed.
- #
- # The counter starts at 1 because it's awaiting a call to #subscribe_to_channel
- @defer_subscription_confirmation_counter = Concurrent::AtomicFixnum.new(1)
+ # When a channel is streaming via pubsub, we want to delay the confirmation
+ # transmission until pubsub subscription is confirmed.
+ #
+ # The counter starts at 1 because it's awaiting a call to #subscribe_to_channel
+ @defer_subscription_confirmation_counter = Concurrent::AtomicFixnum.new(1)
- @reject_subscription = nil
- @subscription_confirmation_sent = nil
- @unsubscribed = false
+ @reject_subscription = nil
+ @subscription_confirmation_sent = nil
+ @unsubscribed = false
- delegate_connection_identifiers
- end
+ delegate_connection_identifiers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -401,12 +404,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 144
- def clear_action_methods! # :doc:
- @action_methods = nil
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 147
+def clear_action_methods! # :doc:
+ @action_methods = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -436,13 +439,13 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 149
- def method_added(name) # :doc:
- super
- clear_action_methods!
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 152
+def method_added(name) # :doc:
+ super
+ clear_action_methods!
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -476,21 +479,21 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 176
- def perform_action(data)
- action = extract_action(data)
+ # File actioncable/lib/action_cable/channel/base.rb, line 179
+def perform_action(data)
+ action = extract_action(data)
- if processable_action?(action)
- payload = { channel_class: self.class.name, action: action, data: data }
- ActiveSupport::Notifications.instrument("perform_action.action_cable", payload) do
- dispatch_action(action, data)
- end
- else
- logger.error "Unable to process #{action_signature(action, data)}"
- end
- end
+ if processable_action?(action)
+ payload = { channel_class: self.class.name, action: action, data: data }
+ ActiveSupport::Notifications.instrument("perform_action.action_cable", payload) do
+ dispatch_action(action, data)
+ end
+ else
+ logger.error "Unable to process #{action_signature(action, data)}"
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -520,17 +523,17 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 191
- def subscribe_to_channel
- run_callbacks :subscribe do
- subscribed
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 194
+def subscribe_to_channel
+ run_callbacks :subscribe do
+ subscribed
+ end
- reject_subscription if subscription_rejected?
- ensure_confirmation_sent
- end
+ reject_subscription if subscription_rejected?
+ ensure_confirmation_sent
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -563,12 +566,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 250
- def defer_subscription_confirmation! # :doc:
- @defer_subscription_confirmation_counter.increment
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 253
+def defer_subscription_confirmation! # :doc:
+ @defer_subscription_confirmation_counter.increment
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -598,12 +601,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 254
- def defer_subscription_confirmation? # :doc:
- @defer_subscription_confirmation_counter.value > 0
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 257
+def defer_subscription_confirmation? # :doc:
+ @defer_subscription_confirmation_counter.value > 0
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -633,14 +636,14 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 244
- def ensure_confirmation_sent # :doc:
- return if subscription_rejected?
- @defer_subscription_confirmation_counter.decrement
- transmit_subscription_confirmation unless defer_subscription_confirmation?
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 247
+def ensure_confirmation_sent # :doc:
+ return if subscription_rejected?
+ @defer_subscription_confirmation_counter.decrement
+ transmit_subscription_confirmation unless defer_subscription_confirmation?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -670,12 +673,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 262
- def reject # :doc:
- @reject_subscription = true
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 265
+def reject # :doc:
+ @reject_subscription = true
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -705,12 +708,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 218
- def subscribed # :doc:
- # Override in subclasses
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 221
+def subscribed # :doc:
+ # Override in subclasses
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -740,12 +743,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 258
- def subscription_confirmation_sent? # :doc:
- @subscription_confirmation_sent
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 261
+def subscription_confirmation_sent? # :doc:
+ @subscription_confirmation_sent
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -775,12 +778,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 266
- def subscription_rejected? # :doc:
- @reject_subscription
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 269
+def subscription_rejected? # :doc:
+ @reject_subscription
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -810,21 +813,21 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 231
- def transmit(data, via: nil) # :doc:
- logger.debug do
- status = "#{self.class.name} transmitting #{data.inspect.truncate(300)}"
- status += " (via #{via})" if via
- status
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 234
+def transmit(data, via: nil) # :doc:
+ logger.debug do
+ status = "#{self.class.name} transmitting #{data.inspect.truncate(300)}"
+ status += " (via #{via})" if via
+ status
+ end
- payload = { channel_class: self.class.name, data: data, via: via }
- ActiveSupport::Notifications.instrument("transmit.action_cable", payload) do
- connection.transmit identifier: @identifier, message: data
- end
- end
+ payload = { channel_class: self.class.name, data: data, via: via }
+ ActiveSupport::Notifications.instrument("transmit.action_cable", payload) do
+ connection.transmit identifier: @identifier, message: data
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -854,12 +857,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 224
- def unsubscribed # :doc:
- # Override in subclasses
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 227
+def unsubscribed # :doc:
+ # Override in subclasses
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Broadcasting.html b/src/classes/ActionCable/Channel/Broadcasting.html
index bb71b89445..7fecc3f6b8 100644
--- a/src/classes/ActionCable/Channel/Broadcasting.html
+++ b/src/classes/ActionCable/Channel/Broadcasting.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -99,11 +99,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 45
- def broadcast_to(model, message)
- self.class.broadcast_to(model, message)
- end
+def broadcast_to(model, message)
+ self.class.broadcast_to(model, message)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -134,11 +134,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 41
- def broadcasting_for(model)
- self.class.broadcasting_for(model)
- end
+def broadcasting_for(model)
+ self.class.broadcasting_for(model)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html b/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
index 684bccb1ab..432bb5d74f 100644
--- a/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 14
- def broadcast_to(broadcastables, message)
- ActionCable.server.broadcast(broadcasting_for(broadcastables), message)
- end
+def broadcast_to(broadcastables, message)
+ ActionCable.server.broadcast(broadcasting_for(broadcastables), message)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -126,11 +126,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 24
- def broadcasting_for(broadcastables)
- serialize_broadcasting([ channel_name ] + Array(broadcastables))
- end
+def broadcasting_for(broadcastables)
+ serialize_broadcasting([ channel_name ] + Array(broadcastables))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Callbacks.html b/src/classes/ActionCable/Channel/Callbacks.html
index 076bdbc8fa..64985186c3 100644
--- a/src/classes/ActionCable/Channel/Callbacks.html
+++ b/src/classes/ActionCable/Channel/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html b/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
index 6ee4317311..7949b5fdf6 100644
--- a/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -111,11 +111,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 60
- def after_subscribe(*methods, &block)
- set_callback(:subscribe, :after, *methods, &block)
- end
+def after_subscribe(*methods, &block)
+ set_callback(:subscribe, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -150,11 +150,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 69
- def after_unsubscribe(*methods, &block)
- set_callback(:unsubscribe, :after, *methods, &block)
- end
+def after_unsubscribe(*methods, &block)
+ set_callback(:unsubscribe, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -185,11 +185,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 48
- def before_subscribe(*methods, &block)
- set_callback(:subscribe, :before, *methods, &block)
- end
+def before_subscribe(*methods, &block)
+ set_callback(:subscribe, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -220,11 +220,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 65
- def before_unsubscribe(*methods, &block)
- set_callback(:unsubscribe, :before, *methods, &block)
- end
+def before_unsubscribe(*methods, &block)
+ set_callback(:unsubscribe, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/ChannelStub.html b/src/classes/ActionCable/Channel/ChannelStub.html
index 9db98daac2..d004896dc5 100644
--- a/src/classes/ActionCable/Channel/ChannelStub.html
+++ b/src/classes/ActionCable/Channel/ChannelStub.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -25,7 +25,7 @@
Action Cable Channel Stub
-
Stub stream_from to track streams for the channel. Add public aliases for subscription_confirmation_sent? and subscription_rejected?.
+Stub stream_from to track streams for the channel. Add public aliases for subscription_confirmation_sent? and subscription_rejected?.
@@ -114,11 +114,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 25
- def confirmed?
- subscription_confirmation_sent?
- end
+def confirmed?
+ subscription_confirmation_sent?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -149,11 +149,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 29
- def rejected?
- subscription_rejected?
- end
+def rejected?
+ subscription_rejected?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -188,9 +188,9 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 46
- def start_periodic_timers; end
+def start_periodic_timers; end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -221,11 +221,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 37
- def stop_all_streams
- @_streams = []
- end
+def stop_all_streams
+ @_streams = []
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -281,11 +281,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 33
- def stream_from(broadcasting, *)
- streams << broadcasting
- end
+def stream_from(broadcasting, *)
+ streams << broadcasting
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -316,11 +316,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 41
- def streams
- @_streams ||= []
- end
+def streams
+ @_streams ||= []
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/ConnectionStub.html b/src/classes/ActionCable/Channel/ConnectionStub.html
index 62c52b567f..0fdc0d8690 100644
--- a/src/classes/ActionCable/Channel/ConnectionStub.html
+++ b/src/classes/ActionCable/Channel/ConnectionStub.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -141,20 +141,20 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 55
- def initialize(identifiers = {})
- @server = ActionCable.server
- @transmissions = []
-
- identifiers.each do |identifier, val|
- define_singleton_method(identifier) { val }
- end
-
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @identifiers = identifiers.keys
- @logger = ActiveSupport::TaggedLogging.new ActiveSupport::Logger.new(StringIO.new)
- end
+def initialize(identifiers = {})
+ @server = ActionCable.server
+ @transmissions = []
+
+ identifiers.each do |identifier, val|
+ define_singleton_method(identifier) { val }
+ end
+
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @identifiers = identifiers.keys
+ @logger = ActiveSupport::TaggedLogging.new ActiveSupport::Logger.new(StringIO.new)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -189,11 +189,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 72
- def connection_identifier
- @connection_identifier ||= connection_gid(identifiers.filter_map { |id| send(id.to_sym) if id })
- end
+def connection_identifier
+ @connection_identifier ||= connection_gid(identifiers.filter_map { |id| send(id.to_sym) if id })
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -224,11 +224,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 68
- def transmit(cable_message)
- transmissions << cable_message.with_indifferent_access
- end
+def transmit(cable_message)
+ transmissions << cable_message.with_indifferent_access
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Naming.html b/src/classes/ActionCable/Channel/Naming.html
index 84bfc0232c..db2aa18589 100644
--- a/src/classes/ActionCable/Channel/Naming.html
+++ b/src/classes/ActionCable/Channel/Naming.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,11 +95,11 @@
# File actioncable/lib/action_cable/channel/naming.rb, line 23
- def channel_name
- self.class.channel_name
- end
+def channel_name
+ self.class.channel_name
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Naming/ClassMethods.html b/src/classes/ActionCable/Channel/Naming/ClassMethods.html
index b847309f12..e99c0744a7 100644
--- a/src/classes/ActionCable/Channel/Naming/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Naming/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -66,7 +66,7 @@
- Returns the name of the channel, underscored, without the Channel ending. If the channel is in a namespace, then the namespaces are represented by single colon separators in the channel name.
+ Returns the name of the channel, underscored, without the Channel ending. If the channel is in a namespace, then the namespaces are represented by single colon separators in the channel name.
ChatChannel.channel_name # => 'chat'
Chats::AppearancesChannel.channel_name # => 'chats:appearances'
@@ -87,11 +87,11 @@
# File actioncable/lib/action_cable/channel/naming.rb, line 18
- def channel_name
- @channel_name ||= name.delete_suffix("Channel").gsub("::", ":").underscore
- end
+def channel_name
+ @channel_name ||= name.delete_suffix("Channel").gsub("::", ":").underscore
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/NonInferrableChannelError.html b/src/classes/ActionCable/Channel/NonInferrableChannelError.html
index 034c36b135..1eac81cbd2 100644
--- a/src/classes/ActionCable/Channel/NonInferrableChannelError.html
+++ b/src/classes/ActionCable/Channel/NonInferrableChannelError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 13
- def initialize(name)
- super "Unable to determine the channel to test from #{name}. " +
- "You'll need to specify it using `tests YourChannel` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the channel to test from #{name}. " +
+ "You'll need to specify it using `tests YourChannel` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/PeriodicTimers.html b/src/classes/ActionCable/Channel/PeriodicTimers.html
index 88facef675..561da6e0dd 100644
--- a/src/classes/ActionCable/Channel/PeriodicTimers.html
+++ b/src/classes/ActionCable/Channel/PeriodicTimers.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html b/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
index 233865e2e3..a694f6de16 100644
--- a/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -91,30 +91,30 @@
# File actioncable/lib/action_cable/channel/periodic_timers.rb, line 31
- def periodically(callback_or_method_name = nil, every:, &block)
- callback =
- if block_given?
- raise ArgumentError, "Pass a block or provide a callback arg, not both" if callback_or_method_name
- block
- else
- case callback_or_method_name
- when Proc
- callback_or_method_name
- when Symbol
- -> { __send__ callback_or_method_name }
- else
- raise ArgumentError, "Expected a Symbol method name or a Proc, got #{callback_or_method_name.inspect}"
- end
- end
-
- unless every.kind_of?(Numeric) && every > 0
- raise ArgumentError, "Expected every: to be a positive number of seconds, got #{every.inspect}"
- end
-
- self.periodic_timers += [[ callback, every: every ]]
- end
+def periodically(callback_or_method_name = nil, every:, &block)
+ callback =
+ if block_given?
+ raise ArgumentError, "Pass a block or provide a callback arg, not both" if callback_or_method_name
+ block
+ else
+ case callback_or_method_name
+ when Proc
+ callback_or_method_name
+ when Symbol
+ -> { __send__ callback_or_method_name }
+ else
+ raise ArgumentError, "Expected a Symbol method name or a Proc, got #{callback_or_method_name.inspect}"
+ end
+ end
+
+ unless every.kind_of?(Numeric) && every > 0
+ raise ArgumentError, "Expected every: to be a positive number of seconds, got #{every.inspect}"
+ end
+
+ self.periodic_timers += [[ callback, every: every ]]
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Streams.html b/src/classes/ActionCable/Channel/Streams.html
index 0967feb616..a2e686a3e9 100644
--- a/src/classes/ActionCable/Channel/Streams.html
+++ b/src/classes/ActionCable/Channel/Streams.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -167,14 +167,14 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 137
- def stop_all_streams
- streams.each do |broadcasting, callback|
- pubsub.unsubscribe broadcasting, callback
- logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
- end.clear
- end
+def stop_all_streams
+ streams.each do |broadcasting, callback|
+ pubsub.unsubscribe broadcasting, callback
+ logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
+ end.clear
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -205,11 +205,11 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 132
- def stop_stream_for(model)
- stop_stream_from(broadcasting_for(model))
- end
+def stop_stream_for(model)
+ stop_stream_from(broadcasting_for(model))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,15 +240,15 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 123
- def stop_stream_from(broadcasting)
- callback = streams.delete(broadcasting)
- if callback
- pubsub.unsubscribe(broadcasting, callback)
- logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
- end
- end
+def stop_stream_from(broadcasting)
+ callback = streams.delete(broadcasting)
+ if callback
+ pubsub.unsubscribe(broadcasting, callback)
+ logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -281,11 +281,11 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 118
- def stream_for(broadcastables, callback = nil, coder: nil, &block)
- stream_from(broadcasting_for(broadcastables), callback || block, coder: coder)
- end
+def stream_for(broadcastables, callback = nil, coder: nil, &block)
+ stream_from(broadcasting_for(broadcastables), callback || block, coder: coder)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -316,28 +316,28 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 90
- def stream_from(broadcasting, callback = nil, coder: nil, &block)
- return if unsubscribed?
-
- broadcasting = String(broadcasting)
-
- # Don't send the confirmation until pubsub#subscribe is successful
- defer_subscription_confirmation!
-
- # Build a stream handler by wrapping the user-provided callback with a decoder
- # or defaulting to a JSON-decoding retransmitter.
- handler = worker_pool_stream_handler(broadcasting, callback || block, coder: coder)
- streams[broadcasting] = handler
-
- connection.server.event_loop.post do
- pubsub.subscribe(broadcasting, handler, lambda do
- ensure_confirmation_sent
- logger.info "#{self.class.name} is streaming from #{broadcasting}"
- end)
- end
- end
+def stream_from(broadcasting, callback = nil, coder: nil, &block)
+ return if unsubscribed?
+
+ broadcasting = String(broadcasting)
+
+ # Don't send the confirmation until pubsub#subscribe is successful
+ defer_subscription_confirmation!
+
+ # Build a stream handler by wrapping the user-provided callback with a decoder
+ # or defaulting to a JSON-decoding retransmitter.
+ handler = worker_pool_stream_handler(broadcasting, callback || block, coder: coder)
+ streams[broadcasting] = handler
+
+ connection.server.event_loop.post do
+ pubsub.subscribe(broadcasting, handler, lambda do
+ ensure_confirmation_sent
+ logger.info "#{self.class.name} is streaming from #{broadcasting}"
+ end)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -368,15 +368,15 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 146
- def stream_or_reject_for(model)
- if model
- stream_for model
- else
- reject
- end
- end
+def stream_or_reject_for(model)
+ if model
+ stream_for model
+ else
+ reject
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase.html b/src/classes/ActionCable/Channel/TestCase.html
index 08fb28c0cf..6317ff44d0 100644
--- a/src/classes/ActionCable/Channel/TestCase.html
+++ b/src/classes/ActionCable/Channel/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior.html b/src/classes/ActionCable/Channel/TestCase/Behavior.html
index b5f3a5cbb7..5a8ea0fd78 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -196,11 +196,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 282
- def assert_broadcast_on(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcast_on(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -231,11 +231,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 278
- def assert_broadcasts(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcasts(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,11 +272,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 326
- def assert_has_no_stream(stream)
- assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
- end
+def assert_has_no_stream(stream)
+ assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -313,11 +313,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 337
- def assert_has_no_stream_for(object)
- assert_has_no_stream(broadcasting_for(object))
- end
+def assert_has_no_stream_for(object)
+ assert_has_no_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -354,11 +354,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 304
- def assert_has_stream(stream)
- assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
- end
+def assert_has_stream(stream)
+ assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -395,11 +395,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 315
- def assert_has_stream_for(object)
- assert_has_stream(broadcasting_for(object))
- end
+def assert_has_stream_for(object)
+ assert_has_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -436,11 +436,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 293
- def assert_no_streams
- assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
- end
+def assert_no_streams
+ assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -473,12 +473,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 266
- def perform(action, data = {})
- check_subscribed!
- subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
- end
+def perform(action, data = {})
+ check_subscribed!
+ subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -516,11 +516,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 243
- def stub_connection(identifiers = {})
- @connection = ConnectionStub.new(identifiers)
- end
+def stub_connection(identifiers = {})
+ @connection = ConnectionStub.new(identifiers)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -551,15 +551,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 249
- def subscribe(params = {})
- @connection ||= stub_connection
- @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
- @subscription.singleton_class.include(ChannelStub)
- @subscription.subscribe_to_channel
- @subscription
- end
+def subscribe(params = {})
+ @connection ||= stub_connection
+ @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
+ @subscription.singleton_class.include(ChannelStub)
+ @subscription.subscribe_to_channel
+ @subscription
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -590,12 +590,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 272
- def transmissions
- # Return only directly sent message (via #transmit)
- connection.transmissions.filter_map { |data| data["message"] }
- end
+def transmissions
+ # Return only directly sent message (via #transmit)
+ connection.transmissions.filter_map { |data| data["message"] }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -626,12 +626,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 258
- def unsubscribe
- check_subscribed!
- subscription.unsubscribe_from_channel
- end
+def unsubscribe
+ check_subscribed!
+ subscription.unsubscribe_from_channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
index 48ea87f130..57efb4cdac 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 219
- def channel_class
- if channel = self._channel_class
- channel
- else
- tests determine_default_channel(name)
- end
- end
+def channel_class
+ if channel = self._channel_class
+ channel
+ else
+ tests determine_default_channel(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 227
- def determine_default_channel(name)
- channel = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Channel::Base
- end
- raise NonInferrableChannelError.new(name) if channel.nil?
- channel
- end
+def determine_default_channel(name)
+ channel = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Channel::Base
+ end
+ raise NonInferrableChannelError.new(name) if channel.nil?
+ channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 208
- def tests(channel)
- case channel
- when String, Symbol
- self._channel_class = channel.to_s.camelize.constantize
- when Module
- self._channel_class = channel
- else
- raise NonInferrableChannelError.new(channel)
- end
- end
+def tests(channel)
+ case channel
+ when String, Symbol
+ self._channel_class = channel.to_s.camelize.constantize
+ when Module
+ self._channel_class = channel
+ else
+ raise NonInferrableChannelError.new(channel)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection.html b/src/classes/ActionCable/Connection.html
index f832214f0e..7889c75284 100644
--- a/src/classes/ActionCable/Connection.html
+++ b/src/classes/ActionCable/Connection.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Assertions.html b/src/classes/ActionCable/Connection/Assertions.html
index 933ea80e4c..6b10ec5528 100644
--- a/src/classes/ActionCable/Connection/Assertions.html
+++ b/src/classes/ActionCable/Connection/Assertions.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 28
- def assert_reject_connection(&block)
- assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
- end
+def assert_reject_connection(&block)
+ assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization.html b/src/classes/ActionCable/Connection/Authorization.html
index feb855aa9e..baf85a37b3 100644
--- a/src/classes/ActionCable/Connection/Authorization.html
+++ b/src/classes/ActionCable/Connection/Authorization.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -97,12 +97,12 @@
# File actioncable/lib/action_cable/connection/authorization.rb, line 12
- def reject_unauthorized_connection
- logger.error "An unauthorized connection attempt was rejected"
- raise UnauthorizedError
- end
+def reject_unauthorized_connection
+ logger.error "An unauthorized connection attempt was rejected"
+ raise UnauthorizedError
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
index b63b282b0b..ff36299a28 100644
--- a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
+++ b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/Base.html b/src/classes/ActionCable/Connection/Base.html
index 36a2f1e1bb..ea0d62911f 100644
--- a/src/classes/ActionCable/Connection/Base.html
+++ b/src/classes/ActionCable/Connection/Base.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -255,21 +255,21 @@
# File actioncable/lib/action_cable/connection/base.rb, line 67
- def initialize(server, env, coder: ActiveSupport::JSON)
- @server, @env, @coder = server, env, coder
+def initialize(server, env, coder: ActiveSupport::JSON)
+ @server, @env, @coder = server, env, coder
- @worker_pool = server.worker_pool
- @logger = new_tagged_logger
+ @worker_pool = server.worker_pool
+ @logger = new_tagged_logger
- @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
+ @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
- @_internal_subscriptions = nil
- @started_at = Time.now
- end
+ @_internal_subscriptions = nil
+ @started_at = Time.now
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -304,11 +304,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 147
- def beat
- transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
- end
+def beat
+ transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -339,16 +339,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 120
- def close(reason: nil, reconnect: true)
- transmit(
- type: ActionCable::INTERNAL[:message_types][:disconnect],
- reason: reason,
- reconnect: reconnect
- )
- websocket.close
- end
+def close(reason: nil, reconnect: true)
+ transmit(
+ type: ActionCable::INTERNAL[:message_types][:disconnect],
+ reason: reason,
+ reconnect: reconnect
+ )
+ websocket.close
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -379,13 +379,13 @@
# File actioncable/lib/action_cable/connection/base.rb, line 109
- def handle_channel_command(payload)
- run_callbacks :command do
- subscriptions.execute_command payload
- end
- end
+def handle_channel_command(payload)
+ run_callbacks :command do
+ subscriptions.execute_command payload
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -416,11 +416,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 131
- def send_async(method, *arguments)
- worker_pool.async_invoke(self, method, *arguments)
- end
+def send_async(method, *arguments)
+ worker_pool.async_invoke(self, method, *arguments)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -451,16 +451,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 138
- def statistics
- {
- identifier: connection_identifier,
- started_at: @started_at,
- subscriptions: subscriptions.identifiers,
- request_id: @env["action_dispatch.request_id"]
- }
- end
+def statistics
+ {
+ identifier: connection_identifier,
+ started_at: @started_at,
+ subscriptions: subscriptions.identifiers,
+ request_id: @env["action_dispatch.request_id"]
+ }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -494,11 +494,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 187
- def cookies # :doc:
- request.cookie_jar
- end
+def cookies # :doc:
+ request.cookie_jar
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -529,14 +529,14 @@
# File actioncable/lib/action_cable/connection/base.rb, line 178
- def request # :doc:
- @request ||= begin
- environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
- ActionDispatch::Request.new(environment || env)
- end
- end
+def request # :doc:
+ @request ||= begin
+ environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
+ ActionDispatch::Request.new(environment || env)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Callbacks.html b/src/classes/ActionCable/Connection/Callbacks.html
index 818958bf81..d6504ca284 100644
--- a/src/classes/ActionCable/Connection/Callbacks.html
+++ b/src/classes/ActionCable/Connection/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
index 933056a029..6376d7195b 100644
--- a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,11 +90,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 47
- def after_command(*methods, &block)
- set_callback(:command, :after, *methods, &block)
- end
+def after_command(*methods, &block)
+ set_callback(:command, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -125,11 +125,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 51
- def around_command(*methods, &block)
- set_callback(:command, :around, *methods, &block)
- end
+def around_command(*methods, &block)
+ set_callback(:command, :around, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -160,11 +160,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 43
- def before_command(*methods, &block)
- set_callback(:command, :before, *methods, &block)
- end
+def before_command(*methods, &block)
+ set_callback(:command, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification.html b/src/classes/ActionCable/Connection/Identification.html
index f3dcea9bfc..063ca88999 100644
--- a/src/classes/ActionCable/Connection/Identification.html
+++ b/src/classes/ActionCable/Connection/Identification.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,15 +95,15 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 29
- def connection_identifier
- unless defined? @connection_identifier
- @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
- end
+def connection_identifier
+ unless defined? @connection_identifier
+ @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
+ end
- @connection_identifier
- end
+ @connection_identifier
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification/ClassMethods.html b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
index 324ded31f5..a3395ef8a3 100644
--- a/src/classes/ActionCable/Connection/Identification/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -84,12 +84,12 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 21
- def identified_by(*identifiers)
- Array(identifiers).each { |identifier| attr_accessor identifier }
- self.identifiers += identifiers
- end
+def identified_by(*identifiers)
+ Array(identifiers).each { |identifier| attr_accessor identifier }
+ self.identifiers += identifiers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/InternalChannel.html b/src/classes/ActionCable/Connection/InternalChannel.html
index 9b0144f690..cfdccceaf4 100644
--- a/src/classes/ActionCable/Connection/InternalChannel.html
+++ b/src/classes/ActionCable/Connection/InternalChannel.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
index 7167904452..bf0c696d62 100644
--- a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
+++ b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 15
- def initialize(name)
- super "Unable to determine the connection to test from #{name}. " +
- "You'll need to specify it using `tests YourConnection` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the connection to test from #{name}. " +
+ "You'll need to specify it using `tests YourConnection` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/StreamEventLoop.html b/src/classes/ActionCable/Connection/StreamEventLoop.html
index 2b71a213e3..f7c49354ef 100644
--- a/src/classes/ActionCable/Connection/StreamEventLoop.html
+++ b/src/classes/ActionCable/Connection/StreamEventLoop.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -111,16 +111,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 10
- def initialize
- @nio = @executor = @thread = nil
- @map = {}
- @stopping = false
- @todo = Queue.new
-
- @spawn_mutex = Mutex.new
- end
+def initialize
+ @nio = @executor = @thread = nil
+ @map = {}
+ @stopping = false
+ @todo = Queue.new
+
+ @spawn_mutex = Mutex.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -155,15 +155,15 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 30
- def attach(io, stream)
- @todo << lambda do
- @map[io] = @nio.register(io, :r)
- @map[io].value = stream
- end
- wakeup
- end
+def attach(io, stream)
+ @todo << lambda do
+ @map[io] = @nio.register(io, :r)
+ @map[io].value = stream
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -194,16 +194,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 38
- def detach(io, stream)
- @todo << lambda do
- @nio.deregister io
- @map.delete io
- io.close
- end
- wakeup
- end
+def detach(io, stream)
+ @todo << lambda do
+ @nio.deregister io
+ @map.delete io
+ io.close
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -234,14 +234,14 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 23
- def post(task = nil, &block)
- task ||= block
+def post(task = nil, &block)
+ task ||= block
- spawn
- @executor << task
- end
+ spawn
+ @executor << task
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,12 +272,12 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 56
- def stop
- @stopping = true
- wakeup if @nio
- end
+def stop
+ @stopping = true
+ wakeup if @nio
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -308,11 +308,11 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 19
- def timer(interval, &block)
- Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
- end
+def timer(interval, &block)
+ Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -343,16 +343,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 47
- def writes_pending(io)
- @todo << lambda do
- if monitor = @map[io]
- monitor.interests = :rw
- end
- end
- wakeup
- end
+def writes_pending(io)
+ @todo << lambda do
+ if monitor = @map[io]
+ monitor.interests = :rw
+ end
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
index f4d5cacc63..99731855fb 100644
--- a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
+++ b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -121,12 +121,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 16
- def initialize(logger, tags:)
- @logger = logger
- @tags = tags.flatten
- end
+def initialize(logger, tags:)
+ @logger = logger
+ @tags = tags.flatten
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -161,12 +161,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 21
- def add_tags(*tags)
- @tags += tags.flatten
- @tags = @tags.uniq
- end
+def add_tags(*tags)
+ @tags += tags.flatten
+ @tags = @tags.uniq
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -197,16 +197,16 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 26
- def tag(logger, &block)
- if logger.respond_to?(:tagged)
- current_tags = tags - logger.formatter.current_tags
- logger.tagged(*current_tags, &block)
- else
- yield
- end
- end
+def tag(logger, &block)
+ if logger.respond_to?(:tagged)
+ current_tags = tags - logger.formatter.current_tags
+ logger.tagged(*current_tags, &block)
+ else
+ yield
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,11 +240,11 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 42
- def log(type, message, &block) # :doc:
- tag(@logger) { @logger.send type, message, &block }
- end
+def log(type, message, &block) # :doc:
+ tag(@logger) { @logger.send type, message, &block }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase.html b/src/classes/ActionCable/Connection/TestCase.html
index 948378e491..39bc5cb056 100644
--- a/src/classes/ActionCable/Connection/TestCase.html
+++ b/src/classes/ActionCable/Connection/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior.html b/src/classes/ActionCable/Connection/TestCase/Behavior.html
index b87870becd..4ee0debbea 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -163,19 +163,19 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 192
- def connect(path = ActionCable.server.config.mount_path, **request_params)
- path ||= DEFAULT_PATH
+def connect(path = ActionCable.server.config.mount_path, **request_params)
+ path ||= DEFAULT_PATH
- connection = self.class.connection_class.allocate
- connection.singleton_class.include(TestConnection)
- connection.send(:initialize, build_test_request(path, **request_params))
- connection.connect if connection.respond_to?(:connect)
+ connection = self.class.connection_class.allocate
+ connection.singleton_class.include(TestConnection)
+ connection.send(:initialize, build_test_request(path, **request_params))
+ connection.connect if connection.respond_to?(:connect)
- # Only set instance variable if connected successfully
- @connection = connection
- end
+ # Only set instance variable if connected successfully
+ @connection = connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -206,11 +206,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 212
- def cookies
- @cookie_jar ||= TestCookieJar.new
- end
+def cookies
+ @cookie_jar ||= TestCookieJar.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -241,14 +241,14 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 205
- def disconnect
- raise "Must be connected!" if connection.nil?
+def disconnect
+ raise "Must be connected!" if connection.nil?
- connection.disconnect if connection.respond_to?(:disconnect)
- @connection = nil
- end
+ connection.disconnect if connection.respond_to?(:disconnect)
+ @connection = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
index 63444f4b27..99fc0e3f6f 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 167
- def connection_class
- if connection = self._connection_class
- connection
- else
- tests determine_default_connection(name)
- end
- end
+def connection_class
+ if connection = self._connection_class
+ connection
+ else
+ tests determine_default_connection(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 175
- def determine_default_connection(name)
- connection = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Connection::Base
- end
- raise NonInferrableConnectionError.new(name) if connection.nil?
- connection
- end
+def determine_default_connection(name)
+ connection = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Connection::Base
+ end
+ raise NonInferrableConnectionError.new(name) if connection.nil?
+ connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
+ Ruby on Rails 8.1.0.rc1
@@ -81,21 +81,21 @@
# File actionpack/lib/abstract_controller/railties/routes_helpers.rb, line 10
- def self.with(routes, include_path_helpers = true)
- Module.new do
- define_method(:inherited) do |klass|
- super(klass)
-
- if namespace = klass.module_parents.detect { |m| m.respond_to?(:railtie_routes_url_helpers) }
- klass.include(namespace.railtie_routes_url_helpers(include_path_helpers))
- else
- klass.include(routes.url_helpers(include_path_helpers))
- end
- end
- end
- end
+def self.with(routes, include_path_helpers = true)
+ Module.new do
+ define_method(:inherited) do |klass|
+ super(klass)
+
+ if namespace = klass.module_parents.detect { |m| m.respond_to?(:railtie_routes_url_helpers) }
+ klass.include(namespace.railtie_routes_url_helpers(include_path_helpers))
+ else
+ klass.include(routes.url_helpers(include_path_helpers))
+ end
+ end
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Rendering.html b/src/classes/AbstractController/Rendering.html
index 872a9d8b43..0fa902a303 100644
--- a/src/classes/AbstractController/Rendering.html
+++ b/src/classes/AbstractController/Rendering.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -123,7 +123,7 @@
Normalizes arguments and options, and then delegates to render_to_body and sticks the result in self.response_body.
-Supported options depend on the underlying render_to_body implementation.
+Supported options depend on the underlying render_to_body implementation.
@@ -139,19 +139,19 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 26
- def render(*args, &block)
- options = _normalize_render(*args, &block)
- rendered_body = render_to_body(options)
- if options[:html]
- _set_html_content_type
- else
- _set_rendered_content_type rendered_format
- end
- _set_vary_header
- self.response_body = rendered_body
- end
+def render(*args, &block)
+ options = _normalize_render(*args, &block)
+ rendered_body = render_to_body(options)
+ if options[:html]
+ _set_html_content_type
+ else
+ _set_rendered_content_type rendered_format
+ end
+ _set_vary_header
+ self.response_body = rendered_body
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -182,10 +182,10 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 50
- def render_to_body(options = {})
- end
+def render_to_body(options = {})
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -218,12 +218,12 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 44
- def render_to_string(*args, &block)
- options = _normalize_render(*args, &block)
- render_to_body(options)
- end
+def render_to_string(*args, &block)
+ options = _normalize_render(*args, &block)
+ render_to_body(options)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -254,11 +254,11 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 54
- def rendered_format
- Mime[:text]
- end
+def rendered_format
+ Mime[:text]
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -289,15 +289,15 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 62
- def view_assigns
- variables = instance_variables - _protected_ivars
+def view_assigns
+ variables = instance_variables - _protected_ivars
- variables.each_with_object({}) do |name, hash|
- hash[name.slice(1, name.length)] = instance_variable_get(name)
- end
- end
+ variables.each_with_object({}) do |name, hash|
+ hash[name.slice(1, name.length)] = instance_variable_get(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -331,21 +331,21 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 73
- def _normalize_args(action = nil, options = {}) # :doc:
- if action.respond_to?(:permitted?)
- if action.permitted?
- action
- else
- raise ArgumentError, "render parameters are not permitted"
- end
- elsif action.is_a?(Hash)
- action
- else
- options
- end
- end
+def _normalize_args(action = nil, options = {}) # :doc:
+ if action.respond_to?(:permitted?)
+ if action.permitted?
+ action
+ else
+ raise ArgumentError, "render parameters are not permitted"
+ end
+ elsif action.is_a?(Hash)
+ action
+ else
+ options
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -376,11 +376,11 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 88
- def _normalize_options(options) # :doc:
- options
- end
+def _normalize_options(options) # :doc:
+ options
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -411,11 +411,11 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 93
- def _process_options(options) # :doc:
- options
- end
+def _process_options(options) # :doc:
+ options
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Translation.html b/src/classes/AbstractController/Translation.html
index e429818684..446e93e2cd 100644
--- a/src/classes/AbstractController/Translation.html
+++ b/src/classes/AbstractController/Translation.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -123,11 +123,11 @@
# File actionpack/lib/abstract_controller/translation.rb, line 37
- def localize(object, **options)
- I18n.localize(object, **options)
- end
+def localize(object, **options)
+ I18n.localize(object, **options)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -189,25 +189,25 @@
# File actionpack/lib/abstract_controller/translation.rb, line 17
- def translate(key, **options)
- if key&.start_with?(".")
- path = controller_path.tr("/", ".")
- defaults = [:"#{path}#{key}"]
- defaults << options[:default] if options[:default]
- options[:default] = defaults.flatten
- key = "#{path}.#{action_name}#{key}"
- end
-
- if options[:default] && ActiveSupport::HtmlSafeTranslation.html_safe_translation_key?(key)
- options[:default] = Array(options[:default]).map do |value|
- value.is_a?(String) ? ERB::Util.html_escape(value) : value
- end
- end
-
- ActiveSupport::HtmlSafeTranslation.translate(key, **options)
- end
+def translate(key, **options)
+ if key&.start_with?(".")
+ path = controller_path.tr("/", ".")
+ defaults = [:"#{path}#{key}"]
+ defaults << options[:default] if options[:default]
+ options[:default] = defaults.flatten
+ key = "#{path}.#{action_name}#{key}"
+ end
+
+ if options[:default] && ActiveSupport::HtmlSafeTranslation.html_safe_translation_key?(key)
+ options[:default] = Array(options[:default]).map do |value|
+ value.is_a?(String) ? ERB::Util.html_escape(value) : value
+ end
+ end
+
+ ActiveSupport::HtmlSafeTranslation.translate(key, **options)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/UrlFor.html b/src/classes/AbstractController/UrlFor.html
index 8d49da9f5c..bd5d0224eb 100644
--- a/src/classes/AbstractController/UrlFor.html
+++ b/src/classes/AbstractController/UrlFor.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -119,12 +119,12 @@
# File actionpack/lib/abstract_controller/url_for.rb, line 18
- def _routes
- raise "In order to use #url_for, you must include routing helpers explicitly. " \
- "For instance, `include Rails.application.routes.url_helpers`."
- end
+def _routes
+ raise "In order to use #url_for, you must include routing helpers explicitly. " \
+ "For instance, `include Rails.application.routes.url_helpers`."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/UrlFor/ClassMethods.html b/src/classes/AbstractController/UrlFor/ClassMethods.html
index cd0e5e9509..e4471b2d66 100644
--- a/src/classes/AbstractController/UrlFor/ClassMethods.html
+++ b/src/classes/AbstractController/UrlFor/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actionpack/lib/abstract_controller/url_for.rb, line 24
- def _routes
- nil
- end
+def _routes
+ nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -121,15 +121,15 @@
# File actionpack/lib/abstract_controller/url_for.rb, line 28
- def action_methods
- @action_methods ||= if _routes
- super - _routes.named_routes.helper_names
- else
- super
- end
- end
+def action_methods
+ @action_methods ||= if _routes
+ super - _routes.named_routes.helper_names
+ else
+ super
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable.html b/src/classes/ActionCable.html
index 4951b5813f..5e5f891dce 100644
--- a/src/classes/ActionCable.html
+++ b/src/classes/ActionCable.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -267,11 +267,11 @@
# File actioncable/lib/action_cable/gem_version.rb, line 7
- def self.gem_version
- Gem::Version.new VERSION::STRING
- end
+def self.gem_version
+ Gem::Version.new VERSION::STRING
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -302,11 +302,11 @@
# File actioncable/lib/action_cable/version.rb, line 9
- def self.version
- gem_version
- end
+def self.version
+ gem_version
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -341,11 +341,11 @@
# File actioncable/lib/action_cable.rb, line 77
- def server
- @server ||= ActionCable::Server::Base.new
- end
+def server
+@server ||= ActionCable::Server::Base.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel.html b/src/classes/ActionCable/Channel.html
index 38c886ddbc..06b36ff362 100644
--- a/src/classes/ActionCable/Channel.html
+++ b/src/classes/ActionCable/Channel.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Channel/Base.html b/src/classes/ActionCable/Channel/Base.html
index bc63a53315..32e2ff9b70 100644
--- a/src/classes/ActionCable/Channel/Base.html
+++ b/src/classes/ActionCable/Channel/Base.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -82,7 +82,7 @@ Action process
end
-
In this example, the subscribed and unsubscribed methods are not callable methods, as they were already declared in ActionCable::Channel::Base, but #appear and #away are. #generate_connection_token is also not callable, since it’s a private method. You’ll see that appear accepts a data parameter, which it then uses as part of its model call. #away does not, since it’s simply a trigger action.
+In this example, the subscribed and unsubscribed methods are not callable methods, as they were already declared in ActionCable::Channel::Base, but appear and away are. generate_connection_token is also not callable, since it’s a private method. You’ll see that appear accepts a data parameter, which it then uses as part of its model call. away does not, since it’s simply a trigger action.
Also note that in this example, current_user is available because it was marked as an identifying attribute on the connection. All such identifiers will automatically create a delegation method of the same name on the channel instance.
@@ -307,19 +307,22 @@ Returns
# File actioncable/lib/action_cable/channel/base.rb, line 128
- def action_methods
- @action_methods ||= begin
- # All public instance methods of this class, including ancestors
- methods = (public_instance_methods(true) -
- # Except for public instance methods of Base and its ancestors
- ActionCable::Channel::Base.public_instance_methods(true) +
- # Be sure to include shadowed public instance methods of this class
- public_instance_methods(false)).uniq.map(&:to_s)
- methods.to_set
- end
- end
-
- 🔎 See on GitHub
+def action_methods
+ @action_methods ||= begin
+ # All public instance methods of this class, including ancestors
+ methods = (public_instance_methods(true) -
+ # Except for public instance methods of Base and its ancestors
+ ActionCable::Channel::Base.public_instance_methods(true) +
+ # Be sure to include shadowed public instance methods of this class
+ public_instance_methods(false)).uniq
+
+ methods.reject! { |m| m.start_with?("_") }
+ methods.map!(&:name)
+ methods.to_set
+ end
+end
+
+ 🔎 See on GitHub
@@ -349,26 +352,26 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 155
- def initialize(connection, identifier, params = {})
- @connection = connection
- @identifier = identifier
- @params = params
+ # File actioncable/lib/action_cable/channel/base.rb, line 158
+def initialize(connection, identifier, params = {})
+ @connection = connection
+ @identifier = identifier
+ @params = params
- # When a channel is streaming via pubsub, we want to delay the confirmation
- # transmission until pubsub subscription is confirmed.
- #
- # The counter starts at 1 because it's awaiting a call to #subscribe_to_channel
- @defer_subscription_confirmation_counter = Concurrent::AtomicFixnum.new(1)
+ # When a channel is streaming via pubsub, we want to delay the confirmation
+ # transmission until pubsub subscription is confirmed.
+ #
+ # The counter starts at 1 because it's awaiting a call to #subscribe_to_channel
+ @defer_subscription_confirmation_counter = Concurrent::AtomicFixnum.new(1)
- @reject_subscription = nil
- @subscription_confirmation_sent = nil
- @unsubscribed = false
+ @reject_subscription = nil
+ @subscription_confirmation_sent = nil
+ @unsubscribed = false
- delegate_connection_identifiers
- end
+ delegate_connection_identifiers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -401,12 +404,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 144
- def clear_action_methods! # :doc:
- @action_methods = nil
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 147
+def clear_action_methods! # :doc:
+ @action_methods = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -436,13 +439,13 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 149
- def method_added(name) # :doc:
- super
- clear_action_methods!
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 152
+def method_added(name) # :doc:
+ super
+ clear_action_methods!
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -476,21 +479,21 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 176
- def perform_action(data)
- action = extract_action(data)
+ # File actioncable/lib/action_cable/channel/base.rb, line 179
+def perform_action(data)
+ action = extract_action(data)
- if processable_action?(action)
- payload = { channel_class: self.class.name, action: action, data: data }
- ActiveSupport::Notifications.instrument("perform_action.action_cable", payload) do
- dispatch_action(action, data)
- end
- else
- logger.error "Unable to process #{action_signature(action, data)}"
- end
- end
+ if processable_action?(action)
+ payload = { channel_class: self.class.name, action: action, data: data }
+ ActiveSupport::Notifications.instrument("perform_action.action_cable", payload) do
+ dispatch_action(action, data)
+ end
+ else
+ logger.error "Unable to process #{action_signature(action, data)}"
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -520,17 +523,17 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 191
- def subscribe_to_channel
- run_callbacks :subscribe do
- subscribed
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 194
+def subscribe_to_channel
+ run_callbacks :subscribe do
+ subscribed
+ end
- reject_subscription if subscription_rejected?
- ensure_confirmation_sent
- end
+ reject_subscription if subscription_rejected?
+ ensure_confirmation_sent
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -563,12 +566,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 250
- def defer_subscription_confirmation! # :doc:
- @defer_subscription_confirmation_counter.increment
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 253
+def defer_subscription_confirmation! # :doc:
+ @defer_subscription_confirmation_counter.increment
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -598,12 +601,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 254
- def defer_subscription_confirmation? # :doc:
- @defer_subscription_confirmation_counter.value > 0
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 257
+def defer_subscription_confirmation? # :doc:
+ @defer_subscription_confirmation_counter.value > 0
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -633,14 +636,14 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 244
- def ensure_confirmation_sent # :doc:
- return if subscription_rejected?
- @defer_subscription_confirmation_counter.decrement
- transmit_subscription_confirmation unless defer_subscription_confirmation?
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 247
+def ensure_confirmation_sent # :doc:
+ return if subscription_rejected?
+ @defer_subscription_confirmation_counter.decrement
+ transmit_subscription_confirmation unless defer_subscription_confirmation?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -670,12 +673,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 262
- def reject # :doc:
- @reject_subscription = true
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 265
+def reject # :doc:
+ @reject_subscription = true
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -705,12 +708,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 218
- def subscribed # :doc:
- # Override in subclasses
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 221
+def subscribed # :doc:
+ # Override in subclasses
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -740,12 +743,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 258
- def subscription_confirmation_sent? # :doc:
- @subscription_confirmation_sent
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 261
+def subscription_confirmation_sent? # :doc:
+ @subscription_confirmation_sent
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -775,12 +778,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 266
- def subscription_rejected? # :doc:
- @reject_subscription
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 269
+def subscription_rejected? # :doc:
+ @reject_subscription
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -810,21 +813,21 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 231
- def transmit(data, via: nil) # :doc:
- logger.debug do
- status = "#{self.class.name} transmitting #{data.inspect.truncate(300)}"
- status += " (via #{via})" if via
- status
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 234
+def transmit(data, via: nil) # :doc:
+ logger.debug do
+ status = "#{self.class.name} transmitting #{data.inspect.truncate(300)}"
+ status += " (via #{via})" if via
+ status
+ end
- payload = { channel_class: self.class.name, data: data, via: via }
- ActiveSupport::Notifications.instrument("transmit.action_cable", payload) do
- connection.transmit identifier: @identifier, message: data
- end
- end
+ payload = { channel_class: self.class.name, data: data, via: via }
+ ActiveSupport::Notifications.instrument("transmit.action_cable", payload) do
+ connection.transmit identifier: @identifier, message: data
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -854,12 +857,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 224
- def unsubscribed # :doc:
- # Override in subclasses
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 227
+def unsubscribed # :doc:
+ # Override in subclasses
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Broadcasting.html b/src/classes/ActionCable/Channel/Broadcasting.html
index bb71b89445..7fecc3f6b8 100644
--- a/src/classes/ActionCable/Channel/Broadcasting.html
+++ b/src/classes/ActionCable/Channel/Broadcasting.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -99,11 +99,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 45
- def broadcast_to(model, message)
- self.class.broadcast_to(model, message)
- end
+def broadcast_to(model, message)
+ self.class.broadcast_to(model, message)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -134,11 +134,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 41
- def broadcasting_for(model)
- self.class.broadcasting_for(model)
- end
+def broadcasting_for(model)
+ self.class.broadcasting_for(model)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html b/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
index 684bccb1ab..432bb5d74f 100644
--- a/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 14
- def broadcast_to(broadcastables, message)
- ActionCable.server.broadcast(broadcasting_for(broadcastables), message)
- end
+def broadcast_to(broadcastables, message)
+ ActionCable.server.broadcast(broadcasting_for(broadcastables), message)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -126,11 +126,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 24
- def broadcasting_for(broadcastables)
- serialize_broadcasting([ channel_name ] + Array(broadcastables))
- end
+def broadcasting_for(broadcastables)
+ serialize_broadcasting([ channel_name ] + Array(broadcastables))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Callbacks.html b/src/classes/ActionCable/Channel/Callbacks.html
index 076bdbc8fa..64985186c3 100644
--- a/src/classes/ActionCable/Channel/Callbacks.html
+++ b/src/classes/ActionCable/Channel/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html b/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
index 6ee4317311..7949b5fdf6 100644
--- a/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -111,11 +111,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 60
- def after_subscribe(*methods, &block)
- set_callback(:subscribe, :after, *methods, &block)
- end
+def after_subscribe(*methods, &block)
+ set_callback(:subscribe, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -150,11 +150,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 69
- def after_unsubscribe(*methods, &block)
- set_callback(:unsubscribe, :after, *methods, &block)
- end
+def after_unsubscribe(*methods, &block)
+ set_callback(:unsubscribe, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -185,11 +185,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 48
- def before_subscribe(*methods, &block)
- set_callback(:subscribe, :before, *methods, &block)
- end
+def before_subscribe(*methods, &block)
+ set_callback(:subscribe, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -220,11 +220,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 65
- def before_unsubscribe(*methods, &block)
- set_callback(:unsubscribe, :before, *methods, &block)
- end
+def before_unsubscribe(*methods, &block)
+ set_callback(:unsubscribe, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/ChannelStub.html b/src/classes/ActionCable/Channel/ChannelStub.html
index 9db98daac2..d004896dc5 100644
--- a/src/classes/ActionCable/Channel/ChannelStub.html
+++ b/src/classes/ActionCable/Channel/ChannelStub.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -25,7 +25,7 @@
Action Cable Channel Stub
-
Stub stream_from to track streams for the channel. Add public aliases for subscription_confirmation_sent? and subscription_rejected?.
+Stub stream_from to track streams for the channel. Add public aliases for subscription_confirmation_sent? and subscription_rejected?.
@@ -114,11 +114,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 25
- def confirmed?
- subscription_confirmation_sent?
- end
+def confirmed?
+ subscription_confirmation_sent?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -149,11 +149,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 29
- def rejected?
- subscription_rejected?
- end
+def rejected?
+ subscription_rejected?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -188,9 +188,9 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 46
- def start_periodic_timers; end
+def start_periodic_timers; end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -221,11 +221,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 37
- def stop_all_streams
- @_streams = []
- end
+def stop_all_streams
+ @_streams = []
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -281,11 +281,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 33
- def stream_from(broadcasting, *)
- streams << broadcasting
- end
+def stream_from(broadcasting, *)
+ streams << broadcasting
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -316,11 +316,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 41
- def streams
- @_streams ||= []
- end
+def streams
+ @_streams ||= []
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/ConnectionStub.html b/src/classes/ActionCable/Channel/ConnectionStub.html
index 62c52b567f..0fdc0d8690 100644
--- a/src/classes/ActionCable/Channel/ConnectionStub.html
+++ b/src/classes/ActionCable/Channel/ConnectionStub.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -141,20 +141,20 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 55
- def initialize(identifiers = {})
- @server = ActionCable.server
- @transmissions = []
-
- identifiers.each do |identifier, val|
- define_singleton_method(identifier) { val }
- end
-
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @identifiers = identifiers.keys
- @logger = ActiveSupport::TaggedLogging.new ActiveSupport::Logger.new(StringIO.new)
- end
+def initialize(identifiers = {})
+ @server = ActionCable.server
+ @transmissions = []
+
+ identifiers.each do |identifier, val|
+ define_singleton_method(identifier) { val }
+ end
+
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @identifiers = identifiers.keys
+ @logger = ActiveSupport::TaggedLogging.new ActiveSupport::Logger.new(StringIO.new)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -189,11 +189,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 72
- def connection_identifier
- @connection_identifier ||= connection_gid(identifiers.filter_map { |id| send(id.to_sym) if id })
- end
+def connection_identifier
+ @connection_identifier ||= connection_gid(identifiers.filter_map { |id| send(id.to_sym) if id })
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -224,11 +224,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 68
- def transmit(cable_message)
- transmissions << cable_message.with_indifferent_access
- end
+def transmit(cable_message)
+ transmissions << cable_message.with_indifferent_access
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Naming.html b/src/classes/ActionCable/Channel/Naming.html
index 84bfc0232c..db2aa18589 100644
--- a/src/classes/ActionCable/Channel/Naming.html
+++ b/src/classes/ActionCable/Channel/Naming.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,11 +95,11 @@
# File actioncable/lib/action_cable/channel/naming.rb, line 23
- def channel_name
- self.class.channel_name
- end
+def channel_name
+ self.class.channel_name
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Naming/ClassMethods.html b/src/classes/ActionCable/Channel/Naming/ClassMethods.html
index b847309f12..e99c0744a7 100644
--- a/src/classes/ActionCable/Channel/Naming/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Naming/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -66,7 +66,7 @@
- Returns the name of the channel, underscored, without the Channel ending. If the channel is in a namespace, then the namespaces are represented by single colon separators in the channel name.
+ Returns the name of the channel, underscored, without the Channel ending. If the channel is in a namespace, then the namespaces are represented by single colon separators in the channel name.
ChatChannel.channel_name # => 'chat'
Chats::AppearancesChannel.channel_name # => 'chats:appearances'
@@ -87,11 +87,11 @@
# File actioncable/lib/action_cable/channel/naming.rb, line 18
- def channel_name
- @channel_name ||= name.delete_suffix("Channel").gsub("::", ":").underscore
- end
+def channel_name
+ @channel_name ||= name.delete_suffix("Channel").gsub("::", ":").underscore
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/NonInferrableChannelError.html b/src/classes/ActionCable/Channel/NonInferrableChannelError.html
index 034c36b135..1eac81cbd2 100644
--- a/src/classes/ActionCable/Channel/NonInferrableChannelError.html
+++ b/src/classes/ActionCable/Channel/NonInferrableChannelError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 13
- def initialize(name)
- super "Unable to determine the channel to test from #{name}. " +
- "You'll need to specify it using `tests YourChannel` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the channel to test from #{name}. " +
+ "You'll need to specify it using `tests YourChannel` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/PeriodicTimers.html b/src/classes/ActionCable/Channel/PeriodicTimers.html
index 88facef675..561da6e0dd 100644
--- a/src/classes/ActionCable/Channel/PeriodicTimers.html
+++ b/src/classes/ActionCable/Channel/PeriodicTimers.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html b/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
index 233865e2e3..a694f6de16 100644
--- a/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -91,30 +91,30 @@
# File actioncable/lib/action_cable/channel/periodic_timers.rb, line 31
- def periodically(callback_or_method_name = nil, every:, &block)
- callback =
- if block_given?
- raise ArgumentError, "Pass a block or provide a callback arg, not both" if callback_or_method_name
- block
- else
- case callback_or_method_name
- when Proc
- callback_or_method_name
- when Symbol
- -> { __send__ callback_or_method_name }
- else
- raise ArgumentError, "Expected a Symbol method name or a Proc, got #{callback_or_method_name.inspect}"
- end
- end
-
- unless every.kind_of?(Numeric) && every > 0
- raise ArgumentError, "Expected every: to be a positive number of seconds, got #{every.inspect}"
- end
-
- self.periodic_timers += [[ callback, every: every ]]
- end
+def periodically(callback_or_method_name = nil, every:, &block)
+ callback =
+ if block_given?
+ raise ArgumentError, "Pass a block or provide a callback arg, not both" if callback_or_method_name
+ block
+ else
+ case callback_or_method_name
+ when Proc
+ callback_or_method_name
+ when Symbol
+ -> { __send__ callback_or_method_name }
+ else
+ raise ArgumentError, "Expected a Symbol method name or a Proc, got #{callback_or_method_name.inspect}"
+ end
+ end
+
+ unless every.kind_of?(Numeric) && every > 0
+ raise ArgumentError, "Expected every: to be a positive number of seconds, got #{every.inspect}"
+ end
+
+ self.periodic_timers += [[ callback, every: every ]]
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Streams.html b/src/classes/ActionCable/Channel/Streams.html
index 0967feb616..a2e686a3e9 100644
--- a/src/classes/ActionCable/Channel/Streams.html
+++ b/src/classes/ActionCable/Channel/Streams.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -167,14 +167,14 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 137
- def stop_all_streams
- streams.each do |broadcasting, callback|
- pubsub.unsubscribe broadcasting, callback
- logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
- end.clear
- end
+def stop_all_streams
+ streams.each do |broadcasting, callback|
+ pubsub.unsubscribe broadcasting, callback
+ logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
+ end.clear
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -205,11 +205,11 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 132
- def stop_stream_for(model)
- stop_stream_from(broadcasting_for(model))
- end
+def stop_stream_for(model)
+ stop_stream_from(broadcasting_for(model))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,15 +240,15 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 123
- def stop_stream_from(broadcasting)
- callback = streams.delete(broadcasting)
- if callback
- pubsub.unsubscribe(broadcasting, callback)
- logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
- end
- end
+def stop_stream_from(broadcasting)
+ callback = streams.delete(broadcasting)
+ if callback
+ pubsub.unsubscribe(broadcasting, callback)
+ logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -281,11 +281,11 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 118
- def stream_for(broadcastables, callback = nil, coder: nil, &block)
- stream_from(broadcasting_for(broadcastables), callback || block, coder: coder)
- end
+def stream_for(broadcastables, callback = nil, coder: nil, &block)
+ stream_from(broadcasting_for(broadcastables), callback || block, coder: coder)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -316,28 +316,28 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 90
- def stream_from(broadcasting, callback = nil, coder: nil, &block)
- return if unsubscribed?
-
- broadcasting = String(broadcasting)
-
- # Don't send the confirmation until pubsub#subscribe is successful
- defer_subscription_confirmation!
-
- # Build a stream handler by wrapping the user-provided callback with a decoder
- # or defaulting to a JSON-decoding retransmitter.
- handler = worker_pool_stream_handler(broadcasting, callback || block, coder: coder)
- streams[broadcasting] = handler
-
- connection.server.event_loop.post do
- pubsub.subscribe(broadcasting, handler, lambda do
- ensure_confirmation_sent
- logger.info "#{self.class.name} is streaming from #{broadcasting}"
- end)
- end
- end
+def stream_from(broadcasting, callback = nil, coder: nil, &block)
+ return if unsubscribed?
+
+ broadcasting = String(broadcasting)
+
+ # Don't send the confirmation until pubsub#subscribe is successful
+ defer_subscription_confirmation!
+
+ # Build a stream handler by wrapping the user-provided callback with a decoder
+ # or defaulting to a JSON-decoding retransmitter.
+ handler = worker_pool_stream_handler(broadcasting, callback || block, coder: coder)
+ streams[broadcasting] = handler
+
+ connection.server.event_loop.post do
+ pubsub.subscribe(broadcasting, handler, lambda do
+ ensure_confirmation_sent
+ logger.info "#{self.class.name} is streaming from #{broadcasting}"
+ end)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -368,15 +368,15 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 146
- def stream_or_reject_for(model)
- if model
- stream_for model
- else
- reject
- end
- end
+def stream_or_reject_for(model)
+ if model
+ stream_for model
+ else
+ reject
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase.html b/src/classes/ActionCable/Channel/TestCase.html
index 08fb28c0cf..6317ff44d0 100644
--- a/src/classes/ActionCable/Channel/TestCase.html
+++ b/src/classes/ActionCable/Channel/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior.html b/src/classes/ActionCable/Channel/TestCase/Behavior.html
index b5f3a5cbb7..5a8ea0fd78 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -196,11 +196,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 282
- def assert_broadcast_on(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcast_on(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -231,11 +231,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 278
- def assert_broadcasts(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcasts(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,11 +272,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 326
- def assert_has_no_stream(stream)
- assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
- end
+def assert_has_no_stream(stream)
+ assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -313,11 +313,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 337
- def assert_has_no_stream_for(object)
- assert_has_no_stream(broadcasting_for(object))
- end
+def assert_has_no_stream_for(object)
+ assert_has_no_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -354,11 +354,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 304
- def assert_has_stream(stream)
- assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
- end
+def assert_has_stream(stream)
+ assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -395,11 +395,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 315
- def assert_has_stream_for(object)
- assert_has_stream(broadcasting_for(object))
- end
+def assert_has_stream_for(object)
+ assert_has_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -436,11 +436,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 293
- def assert_no_streams
- assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
- end
+def assert_no_streams
+ assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -473,12 +473,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 266
- def perform(action, data = {})
- check_subscribed!
- subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
- end
+def perform(action, data = {})
+ check_subscribed!
+ subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -516,11 +516,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 243
- def stub_connection(identifiers = {})
- @connection = ConnectionStub.new(identifiers)
- end
+def stub_connection(identifiers = {})
+ @connection = ConnectionStub.new(identifiers)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -551,15 +551,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 249
- def subscribe(params = {})
- @connection ||= stub_connection
- @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
- @subscription.singleton_class.include(ChannelStub)
- @subscription.subscribe_to_channel
- @subscription
- end
+def subscribe(params = {})
+ @connection ||= stub_connection
+ @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
+ @subscription.singleton_class.include(ChannelStub)
+ @subscription.subscribe_to_channel
+ @subscription
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -590,12 +590,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 272
- def transmissions
- # Return only directly sent message (via #transmit)
- connection.transmissions.filter_map { |data| data["message"] }
- end
+def transmissions
+ # Return only directly sent message (via #transmit)
+ connection.transmissions.filter_map { |data| data["message"] }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -626,12 +626,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 258
- def unsubscribe
- check_subscribed!
- subscription.unsubscribe_from_channel
- end
+def unsubscribe
+ check_subscribed!
+ subscription.unsubscribe_from_channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
index 48ea87f130..57efb4cdac 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 219
- def channel_class
- if channel = self._channel_class
- channel
- else
- tests determine_default_channel(name)
- end
- end
+def channel_class
+ if channel = self._channel_class
+ channel
+ else
+ tests determine_default_channel(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 227
- def determine_default_channel(name)
- channel = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Channel::Base
- end
- raise NonInferrableChannelError.new(name) if channel.nil?
- channel
- end
+def determine_default_channel(name)
+ channel = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Channel::Base
+ end
+ raise NonInferrableChannelError.new(name) if channel.nil?
+ channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 208
- def tests(channel)
- case channel
- when String, Symbol
- self._channel_class = channel.to_s.camelize.constantize
- when Module
- self._channel_class = channel
- else
- raise NonInferrableChannelError.new(channel)
- end
- end
+def tests(channel)
+ case channel
+ when String, Symbol
+ self._channel_class = channel.to_s.camelize.constantize
+ when Module
+ self._channel_class = channel
+ else
+ raise NonInferrableChannelError.new(channel)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection.html b/src/classes/ActionCable/Connection.html
index f832214f0e..7889c75284 100644
--- a/src/classes/ActionCable/Connection.html
+++ b/src/classes/ActionCable/Connection.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Assertions.html b/src/classes/ActionCable/Connection/Assertions.html
index 933ea80e4c..6b10ec5528 100644
--- a/src/classes/ActionCable/Connection/Assertions.html
+++ b/src/classes/ActionCable/Connection/Assertions.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 28
- def assert_reject_connection(&block)
- assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
- end
+def assert_reject_connection(&block)
+ assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization.html b/src/classes/ActionCable/Connection/Authorization.html
index feb855aa9e..baf85a37b3 100644
--- a/src/classes/ActionCable/Connection/Authorization.html
+++ b/src/classes/ActionCable/Connection/Authorization.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -97,12 +97,12 @@
# File actioncable/lib/action_cable/connection/authorization.rb, line 12
- def reject_unauthorized_connection
- logger.error "An unauthorized connection attempt was rejected"
- raise UnauthorizedError
- end
+def reject_unauthorized_connection
+ logger.error "An unauthorized connection attempt was rejected"
+ raise UnauthorizedError
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
index b63b282b0b..ff36299a28 100644
--- a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
+++ b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/Base.html b/src/classes/ActionCable/Connection/Base.html
index 36a2f1e1bb..ea0d62911f 100644
--- a/src/classes/ActionCable/Connection/Base.html
+++ b/src/classes/ActionCable/Connection/Base.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -255,21 +255,21 @@
# File actioncable/lib/action_cable/connection/base.rb, line 67
- def initialize(server, env, coder: ActiveSupport::JSON)
- @server, @env, @coder = server, env, coder
+def initialize(server, env, coder: ActiveSupport::JSON)
+ @server, @env, @coder = server, env, coder
- @worker_pool = server.worker_pool
- @logger = new_tagged_logger
+ @worker_pool = server.worker_pool
+ @logger = new_tagged_logger
- @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
+ @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
- @_internal_subscriptions = nil
- @started_at = Time.now
- end
+ @_internal_subscriptions = nil
+ @started_at = Time.now
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -304,11 +304,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 147
- def beat
- transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
- end
+def beat
+ transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -339,16 +339,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 120
- def close(reason: nil, reconnect: true)
- transmit(
- type: ActionCable::INTERNAL[:message_types][:disconnect],
- reason: reason,
- reconnect: reconnect
- )
- websocket.close
- end
+def close(reason: nil, reconnect: true)
+ transmit(
+ type: ActionCable::INTERNAL[:message_types][:disconnect],
+ reason: reason,
+ reconnect: reconnect
+ )
+ websocket.close
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -379,13 +379,13 @@
# File actioncable/lib/action_cable/connection/base.rb, line 109
- def handle_channel_command(payload)
- run_callbacks :command do
- subscriptions.execute_command payload
- end
- end
+def handle_channel_command(payload)
+ run_callbacks :command do
+ subscriptions.execute_command payload
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -416,11 +416,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 131
- def send_async(method, *arguments)
- worker_pool.async_invoke(self, method, *arguments)
- end
+def send_async(method, *arguments)
+ worker_pool.async_invoke(self, method, *arguments)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -451,16 +451,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 138
- def statistics
- {
- identifier: connection_identifier,
- started_at: @started_at,
- subscriptions: subscriptions.identifiers,
- request_id: @env["action_dispatch.request_id"]
- }
- end
+def statistics
+ {
+ identifier: connection_identifier,
+ started_at: @started_at,
+ subscriptions: subscriptions.identifiers,
+ request_id: @env["action_dispatch.request_id"]
+ }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -494,11 +494,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 187
- def cookies # :doc:
- request.cookie_jar
- end
+def cookies # :doc:
+ request.cookie_jar
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -529,14 +529,14 @@
# File actioncable/lib/action_cable/connection/base.rb, line 178
- def request # :doc:
- @request ||= begin
- environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
- ActionDispatch::Request.new(environment || env)
- end
- end
+def request # :doc:
+ @request ||= begin
+ environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
+ ActionDispatch::Request.new(environment || env)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Callbacks.html b/src/classes/ActionCable/Connection/Callbacks.html
index 818958bf81..d6504ca284 100644
--- a/src/classes/ActionCable/Connection/Callbacks.html
+++ b/src/classes/ActionCable/Connection/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
index 933056a029..6376d7195b 100644
--- a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,11 +90,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 47
- def after_command(*methods, &block)
- set_callback(:command, :after, *methods, &block)
- end
+def after_command(*methods, &block)
+ set_callback(:command, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -125,11 +125,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 51
- def around_command(*methods, &block)
- set_callback(:command, :around, *methods, &block)
- end
+def around_command(*methods, &block)
+ set_callback(:command, :around, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -160,11 +160,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 43
- def before_command(*methods, &block)
- set_callback(:command, :before, *methods, &block)
- end
+def before_command(*methods, &block)
+ set_callback(:command, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification.html b/src/classes/ActionCable/Connection/Identification.html
index f3dcea9bfc..063ca88999 100644
--- a/src/classes/ActionCable/Connection/Identification.html
+++ b/src/classes/ActionCable/Connection/Identification.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,15 +95,15 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 29
- def connection_identifier
- unless defined? @connection_identifier
- @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
- end
+def connection_identifier
+ unless defined? @connection_identifier
+ @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
+ end
- @connection_identifier
- end
+ @connection_identifier
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification/ClassMethods.html b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
index 324ded31f5..a3395ef8a3 100644
--- a/src/classes/ActionCable/Connection/Identification/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -84,12 +84,12 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 21
- def identified_by(*identifiers)
- Array(identifiers).each { |identifier| attr_accessor identifier }
- self.identifiers += identifiers
- end
+def identified_by(*identifiers)
+ Array(identifiers).each { |identifier| attr_accessor identifier }
+ self.identifiers += identifiers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/InternalChannel.html b/src/classes/ActionCable/Connection/InternalChannel.html
index 9b0144f690..cfdccceaf4 100644
--- a/src/classes/ActionCable/Connection/InternalChannel.html
+++ b/src/classes/ActionCable/Connection/InternalChannel.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
index 7167904452..bf0c696d62 100644
--- a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
+++ b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 15
- def initialize(name)
- super "Unable to determine the connection to test from #{name}. " +
- "You'll need to specify it using `tests YourConnection` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the connection to test from #{name}. " +
+ "You'll need to specify it using `tests YourConnection` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/StreamEventLoop.html b/src/classes/ActionCable/Connection/StreamEventLoop.html
index 2b71a213e3..f7c49354ef 100644
--- a/src/classes/ActionCable/Connection/StreamEventLoop.html
+++ b/src/classes/ActionCable/Connection/StreamEventLoop.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -111,16 +111,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 10
- def initialize
- @nio = @executor = @thread = nil
- @map = {}
- @stopping = false
- @todo = Queue.new
-
- @spawn_mutex = Mutex.new
- end
+def initialize
+ @nio = @executor = @thread = nil
+ @map = {}
+ @stopping = false
+ @todo = Queue.new
+
+ @spawn_mutex = Mutex.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -155,15 +155,15 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 30
- def attach(io, stream)
- @todo << lambda do
- @map[io] = @nio.register(io, :r)
- @map[io].value = stream
- end
- wakeup
- end
+def attach(io, stream)
+ @todo << lambda do
+ @map[io] = @nio.register(io, :r)
+ @map[io].value = stream
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -194,16 +194,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 38
- def detach(io, stream)
- @todo << lambda do
- @nio.deregister io
- @map.delete io
- io.close
- end
- wakeup
- end
+def detach(io, stream)
+ @todo << lambda do
+ @nio.deregister io
+ @map.delete io
+ io.close
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -234,14 +234,14 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 23
- def post(task = nil, &block)
- task ||= block
+def post(task = nil, &block)
+ task ||= block
- spawn
- @executor << task
- end
+ spawn
+ @executor << task
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,12 +272,12 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 56
- def stop
- @stopping = true
- wakeup if @nio
- end
+def stop
+ @stopping = true
+ wakeup if @nio
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -308,11 +308,11 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 19
- def timer(interval, &block)
- Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
- end
+def timer(interval, &block)
+ Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -343,16 +343,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 47
- def writes_pending(io)
- @todo << lambda do
- if monitor = @map[io]
- monitor.interests = :rw
- end
- end
- wakeup
- end
+def writes_pending(io)
+ @todo << lambda do
+ if monitor = @map[io]
+ monitor.interests = :rw
+ end
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
index f4d5cacc63..99731855fb 100644
--- a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
+++ b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -121,12 +121,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 16
- def initialize(logger, tags:)
- @logger = logger
- @tags = tags.flatten
- end
+def initialize(logger, tags:)
+ @logger = logger
+ @tags = tags.flatten
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -161,12 +161,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 21
- def add_tags(*tags)
- @tags += tags.flatten
- @tags = @tags.uniq
- end
+def add_tags(*tags)
+ @tags += tags.flatten
+ @tags = @tags.uniq
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -197,16 +197,16 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 26
- def tag(logger, &block)
- if logger.respond_to?(:tagged)
- current_tags = tags - logger.formatter.current_tags
- logger.tagged(*current_tags, &block)
- else
- yield
- end
- end
+def tag(logger, &block)
+ if logger.respond_to?(:tagged)
+ current_tags = tags - logger.formatter.current_tags
+ logger.tagged(*current_tags, &block)
+ else
+ yield
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,11 +240,11 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 42
- def log(type, message, &block) # :doc:
- tag(@logger) { @logger.send type, message, &block }
- end
+def log(type, message, &block) # :doc:
+ tag(@logger) { @logger.send type, message, &block }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase.html b/src/classes/ActionCable/Connection/TestCase.html
index 948378e491..39bc5cb056 100644
--- a/src/classes/ActionCable/Connection/TestCase.html
+++ b/src/classes/ActionCable/Connection/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior.html b/src/classes/ActionCable/Connection/TestCase/Behavior.html
index b87870becd..4ee0debbea 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -163,19 +163,19 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 192
- def connect(path = ActionCable.server.config.mount_path, **request_params)
- path ||= DEFAULT_PATH
+def connect(path = ActionCable.server.config.mount_path, **request_params)
+ path ||= DEFAULT_PATH
- connection = self.class.connection_class.allocate
- connection.singleton_class.include(TestConnection)
- connection.send(:initialize, build_test_request(path, **request_params))
- connection.connect if connection.respond_to?(:connect)
+ connection = self.class.connection_class.allocate
+ connection.singleton_class.include(TestConnection)
+ connection.send(:initialize, build_test_request(path, **request_params))
+ connection.connect if connection.respond_to?(:connect)
- # Only set instance variable if connected successfully
- @connection = connection
- end
+ # Only set instance variable if connected successfully
+ @connection = connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -206,11 +206,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 212
- def cookies
- @cookie_jar ||= TestCookieJar.new
- end
+def cookies
+ @cookie_jar ||= TestCookieJar.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -241,14 +241,14 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 205
- def disconnect
- raise "Must be connected!" if connection.nil?
+def disconnect
+ raise "Must be connected!" if connection.nil?
- connection.disconnect if connection.respond_to?(:disconnect)
- @connection = nil
- end
+ connection.disconnect if connection.respond_to?(:disconnect)
+ @connection = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
index 63444f4b27..99fc0e3f6f 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 167
- def connection_class
- if connection = self._connection_class
- connection
- else
- tests determine_default_connection(name)
- end
- end
+def connection_class
+ if connection = self._connection_class
+ connection
+ else
+ tests determine_default_connection(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 175
- def determine_default_connection(name)
- connection = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Connection::Base
- end
- raise NonInferrableConnectionError.new(name) if connection.nil?
- connection
- end
+def determine_default_connection(name)
+ connection = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Connection::Base
+ end
+ raise NonInferrableConnectionError.new(name) if connection.nil?
+ connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actionpack/lib/abstract_controller/railties/routes_helpers.rb, line 10
- def self.with(routes, include_path_helpers = true)
- Module.new do
- define_method(:inherited) do |klass|
- super(klass)
-
- if namespace = klass.module_parents.detect { |m| m.respond_to?(:railtie_routes_url_helpers) }
- klass.include(namespace.railtie_routes_url_helpers(include_path_helpers))
- else
- klass.include(routes.url_helpers(include_path_helpers))
- end
- end
- end
- end
+def self.with(routes, include_path_helpers = true)
+ Module.new do
+ define_method(:inherited) do |klass|
+ super(klass)
+
+ if namespace = klass.module_parents.detect { |m| m.respond_to?(:railtie_routes_url_helpers) }
+ klass.include(namespace.railtie_routes_url_helpers(include_path_helpers))
+ else
+ klass.include(routes.url_helpers(include_path_helpers))
+ end
+ end
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Rendering.html b/src/classes/AbstractController/Rendering.html
index 872a9d8b43..0fa902a303 100644
--- a/src/classes/AbstractController/Rendering.html
+++ b/src/classes/AbstractController/Rendering.html
@@ -5,7 +5,7 @@
+ Ruby on Rails 8.1.0.rc1
@@ -123,7 +123,7 @@
Normalizes arguments and options, and then delegates to render_to_body and sticks the result in self.response_body.
-Supported options depend on the underlying render_to_body implementation.
+Supported options depend on the underlying render_to_body implementation.
@@ -139,19 +139,19 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 26
- def render(*args, &block)
- options = _normalize_render(*args, &block)
- rendered_body = render_to_body(options)
- if options[:html]
- _set_html_content_type
- else
- _set_rendered_content_type rendered_format
- end
- _set_vary_header
- self.response_body = rendered_body
- end
+def render(*args, &block)
+ options = _normalize_render(*args, &block)
+ rendered_body = render_to_body(options)
+ if options[:html]
+ _set_html_content_type
+ else
+ _set_rendered_content_type rendered_format
+ end
+ _set_vary_header
+ self.response_body = rendered_body
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -182,10 +182,10 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 50
- def render_to_body(options = {})
- end
+def render_to_body(options = {})
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -218,12 +218,12 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 44
- def render_to_string(*args, &block)
- options = _normalize_render(*args, &block)
- render_to_body(options)
- end
+def render_to_string(*args, &block)
+ options = _normalize_render(*args, &block)
+ render_to_body(options)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -254,11 +254,11 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 54
- def rendered_format
- Mime[:text]
- end
+def rendered_format
+ Mime[:text]
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -289,15 +289,15 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 62
- def view_assigns
- variables = instance_variables - _protected_ivars
+def view_assigns
+ variables = instance_variables - _protected_ivars
- variables.each_with_object({}) do |name, hash|
- hash[name.slice(1, name.length)] = instance_variable_get(name)
- end
- end
+ variables.each_with_object({}) do |name, hash|
+ hash[name.slice(1, name.length)] = instance_variable_get(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -331,21 +331,21 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 73
- def _normalize_args(action = nil, options = {}) # :doc:
- if action.respond_to?(:permitted?)
- if action.permitted?
- action
- else
- raise ArgumentError, "render parameters are not permitted"
- end
- elsif action.is_a?(Hash)
- action
- else
- options
- end
- end
+def _normalize_args(action = nil, options = {}) # :doc:
+ if action.respond_to?(:permitted?)
+ if action.permitted?
+ action
+ else
+ raise ArgumentError, "render parameters are not permitted"
+ end
+ elsif action.is_a?(Hash)
+ action
+ else
+ options
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -376,11 +376,11 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 88
- def _normalize_options(options) # :doc:
- options
- end
+def _normalize_options(options) # :doc:
+ options
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -411,11 +411,11 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 93
- def _process_options(options) # :doc:
- options
- end
+def _process_options(options) # :doc:
+ options
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Translation.html b/src/classes/AbstractController/Translation.html
index e429818684..446e93e2cd 100644
--- a/src/classes/AbstractController/Translation.html
+++ b/src/classes/AbstractController/Translation.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -123,11 +123,11 @@
# File actionpack/lib/abstract_controller/translation.rb, line 37
- def localize(object, **options)
- I18n.localize(object, **options)
- end
+def localize(object, **options)
+ I18n.localize(object, **options)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -189,25 +189,25 @@
# File actionpack/lib/abstract_controller/translation.rb, line 17
- def translate(key, **options)
- if key&.start_with?(".")
- path = controller_path.tr("/", ".")
- defaults = [:"#{path}#{key}"]
- defaults << options[:default] if options[:default]
- options[:default] = defaults.flatten
- key = "#{path}.#{action_name}#{key}"
- end
-
- if options[:default] && ActiveSupport::HtmlSafeTranslation.html_safe_translation_key?(key)
- options[:default] = Array(options[:default]).map do |value|
- value.is_a?(String) ? ERB::Util.html_escape(value) : value
- end
- end
-
- ActiveSupport::HtmlSafeTranslation.translate(key, **options)
- end
+def translate(key, **options)
+ if key&.start_with?(".")
+ path = controller_path.tr("/", ".")
+ defaults = [:"#{path}#{key}"]
+ defaults << options[:default] if options[:default]
+ options[:default] = defaults.flatten
+ key = "#{path}.#{action_name}#{key}"
+ end
+
+ if options[:default] && ActiveSupport::HtmlSafeTranslation.html_safe_translation_key?(key)
+ options[:default] = Array(options[:default]).map do |value|
+ value.is_a?(String) ? ERB::Util.html_escape(value) : value
+ end
+ end
+
+ ActiveSupport::HtmlSafeTranslation.translate(key, **options)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/UrlFor.html b/src/classes/AbstractController/UrlFor.html
index 8d49da9f5c..bd5d0224eb 100644
--- a/src/classes/AbstractController/UrlFor.html
+++ b/src/classes/AbstractController/UrlFor.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -119,12 +119,12 @@
# File actionpack/lib/abstract_controller/url_for.rb, line 18
- def _routes
- raise "In order to use #url_for, you must include routing helpers explicitly. " \
- "For instance, `include Rails.application.routes.url_helpers`."
- end
+def _routes
+ raise "In order to use #url_for, you must include routing helpers explicitly. " \
+ "For instance, `include Rails.application.routes.url_helpers`."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/UrlFor/ClassMethods.html b/src/classes/AbstractController/UrlFor/ClassMethods.html
index cd0e5e9509..e4471b2d66 100644
--- a/src/classes/AbstractController/UrlFor/ClassMethods.html
+++ b/src/classes/AbstractController/UrlFor/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actionpack/lib/abstract_controller/url_for.rb, line 24
- def _routes
- nil
- end
+def _routes
+ nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -121,15 +121,15 @@
# File actionpack/lib/abstract_controller/url_for.rb, line 28
- def action_methods
- @action_methods ||= if _routes
- super - _routes.named_routes.helper_names
- else
- super
- end
- end
+def action_methods
+ @action_methods ||= if _routes
+ super - _routes.named_routes.helper_names
+ else
+ super
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable.html b/src/classes/ActionCable.html
index 4951b5813f..5e5f891dce 100644
--- a/src/classes/ActionCable.html
+++ b/src/classes/ActionCable.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -267,11 +267,11 @@
# File actioncable/lib/action_cable/gem_version.rb, line 7
- def self.gem_version
- Gem::Version.new VERSION::STRING
- end
+def self.gem_version
+ Gem::Version.new VERSION::STRING
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -302,11 +302,11 @@
# File actioncable/lib/action_cable/version.rb, line 9
- def self.version
- gem_version
- end
+def self.version
+ gem_version
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -341,11 +341,11 @@
# File actioncable/lib/action_cable.rb, line 77
- def server
- @server ||= ActionCable::Server::Base.new
- end
+def server
+@server ||= ActionCable::Server::Base.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel.html b/src/classes/ActionCable/Channel.html
index 38c886ddbc..06b36ff362 100644
--- a/src/classes/ActionCable/Channel.html
+++ b/src/classes/ActionCable/Channel.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Channel/Base.html b/src/classes/ActionCable/Channel/Base.html
index bc63a53315..32e2ff9b70 100644
--- a/src/classes/ActionCable/Channel/Base.html
+++ b/src/classes/ActionCable/Channel/Base.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -82,7 +82,7 @@ Action process
end
-
In this example, the subscribed and unsubscribed methods are not callable methods, as they were already declared in ActionCable::Channel::Base, but #appear and #away are. #generate_connection_token is also not callable, since it’s a private method. You’ll see that appear accepts a data parameter, which it then uses as part of its model call. #away does not, since it’s simply a trigger action.
+In this example, the subscribed and unsubscribed methods are not callable methods, as they were already declared in ActionCable::Channel::Base, but appear and away are. generate_connection_token is also not callable, since it’s a private method. You’ll see that appear accepts a data parameter, which it then uses as part of its model call. away does not, since it’s simply a trigger action.
Also note that in this example, current_user is available because it was marked as an identifying attribute on the connection. All such identifiers will automatically create a delegation method of the same name on the channel instance.
@@ -307,19 +307,22 @@ Returns
# File actioncable/lib/action_cable/channel/base.rb, line 128
- def action_methods
- @action_methods ||= begin
- # All public instance methods of this class, including ancestors
- methods = (public_instance_methods(true) -
- # Except for public instance methods of Base and its ancestors
- ActionCable::Channel::Base.public_instance_methods(true) +
- # Be sure to include shadowed public instance methods of this class
- public_instance_methods(false)).uniq.map(&:to_s)
- methods.to_set
- end
- end
-
- 🔎 See on GitHub
+def action_methods
+ @action_methods ||= begin
+ # All public instance methods of this class, including ancestors
+ methods = (public_instance_methods(true) -
+ # Except for public instance methods of Base and its ancestors
+ ActionCable::Channel::Base.public_instance_methods(true) +
+ # Be sure to include shadowed public instance methods of this class
+ public_instance_methods(false)).uniq
+
+ methods.reject! { |m| m.start_with?("_") }
+ methods.map!(&:name)
+ methods.to_set
+ end
+end
+
+ 🔎 See on GitHub
@@ -349,26 +352,26 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 155
- def initialize(connection, identifier, params = {})
- @connection = connection
- @identifier = identifier
- @params = params
+ # File actioncable/lib/action_cable/channel/base.rb, line 158
+def initialize(connection, identifier, params = {})
+ @connection = connection
+ @identifier = identifier
+ @params = params
- # When a channel is streaming via pubsub, we want to delay the confirmation
- # transmission until pubsub subscription is confirmed.
- #
- # The counter starts at 1 because it's awaiting a call to #subscribe_to_channel
- @defer_subscription_confirmation_counter = Concurrent::AtomicFixnum.new(1)
+ # When a channel is streaming via pubsub, we want to delay the confirmation
+ # transmission until pubsub subscription is confirmed.
+ #
+ # The counter starts at 1 because it's awaiting a call to #subscribe_to_channel
+ @defer_subscription_confirmation_counter = Concurrent::AtomicFixnum.new(1)
- @reject_subscription = nil
- @subscription_confirmation_sent = nil
- @unsubscribed = false
+ @reject_subscription = nil
+ @subscription_confirmation_sent = nil
+ @unsubscribed = false
- delegate_connection_identifiers
- end
+ delegate_connection_identifiers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -401,12 +404,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 144
- def clear_action_methods! # :doc:
- @action_methods = nil
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 147
+def clear_action_methods! # :doc:
+ @action_methods = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -436,13 +439,13 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 149
- def method_added(name) # :doc:
- super
- clear_action_methods!
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 152
+def method_added(name) # :doc:
+ super
+ clear_action_methods!
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -476,21 +479,21 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 176
- def perform_action(data)
- action = extract_action(data)
+ # File actioncable/lib/action_cable/channel/base.rb, line 179
+def perform_action(data)
+ action = extract_action(data)
- if processable_action?(action)
- payload = { channel_class: self.class.name, action: action, data: data }
- ActiveSupport::Notifications.instrument("perform_action.action_cable", payload) do
- dispatch_action(action, data)
- end
- else
- logger.error "Unable to process #{action_signature(action, data)}"
- end
- end
+ if processable_action?(action)
+ payload = { channel_class: self.class.name, action: action, data: data }
+ ActiveSupport::Notifications.instrument("perform_action.action_cable", payload) do
+ dispatch_action(action, data)
+ end
+ else
+ logger.error "Unable to process #{action_signature(action, data)}"
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -520,17 +523,17 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 191
- def subscribe_to_channel
- run_callbacks :subscribe do
- subscribed
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 194
+def subscribe_to_channel
+ run_callbacks :subscribe do
+ subscribed
+ end
- reject_subscription if subscription_rejected?
- ensure_confirmation_sent
- end
+ reject_subscription if subscription_rejected?
+ ensure_confirmation_sent
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -563,12 +566,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 250
- def defer_subscription_confirmation! # :doc:
- @defer_subscription_confirmation_counter.increment
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 253
+def defer_subscription_confirmation! # :doc:
+ @defer_subscription_confirmation_counter.increment
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -598,12 +601,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 254
- def defer_subscription_confirmation? # :doc:
- @defer_subscription_confirmation_counter.value > 0
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 257
+def defer_subscription_confirmation? # :doc:
+ @defer_subscription_confirmation_counter.value > 0
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -633,14 +636,14 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 244
- def ensure_confirmation_sent # :doc:
- return if subscription_rejected?
- @defer_subscription_confirmation_counter.decrement
- transmit_subscription_confirmation unless defer_subscription_confirmation?
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 247
+def ensure_confirmation_sent # :doc:
+ return if subscription_rejected?
+ @defer_subscription_confirmation_counter.decrement
+ transmit_subscription_confirmation unless defer_subscription_confirmation?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -670,12 +673,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 262
- def reject # :doc:
- @reject_subscription = true
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 265
+def reject # :doc:
+ @reject_subscription = true
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -705,12 +708,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 218
- def subscribed # :doc:
- # Override in subclasses
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 221
+def subscribed # :doc:
+ # Override in subclasses
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -740,12 +743,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 258
- def subscription_confirmation_sent? # :doc:
- @subscription_confirmation_sent
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 261
+def subscription_confirmation_sent? # :doc:
+ @subscription_confirmation_sent
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -775,12 +778,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 266
- def subscription_rejected? # :doc:
- @reject_subscription
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 269
+def subscription_rejected? # :doc:
+ @reject_subscription
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -810,21 +813,21 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 231
- def transmit(data, via: nil) # :doc:
- logger.debug do
- status = "#{self.class.name} transmitting #{data.inspect.truncate(300)}"
- status += " (via #{via})" if via
- status
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 234
+def transmit(data, via: nil) # :doc:
+ logger.debug do
+ status = "#{self.class.name} transmitting #{data.inspect.truncate(300)}"
+ status += " (via #{via})" if via
+ status
+ end
- payload = { channel_class: self.class.name, data: data, via: via }
- ActiveSupport::Notifications.instrument("transmit.action_cable", payload) do
- connection.transmit identifier: @identifier, message: data
- end
- end
+ payload = { channel_class: self.class.name, data: data, via: via }
+ ActiveSupport::Notifications.instrument("transmit.action_cable", payload) do
+ connection.transmit identifier: @identifier, message: data
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -854,12 +857,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 224
- def unsubscribed # :doc:
- # Override in subclasses
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 227
+def unsubscribed # :doc:
+ # Override in subclasses
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Broadcasting.html b/src/classes/ActionCable/Channel/Broadcasting.html
index bb71b89445..7fecc3f6b8 100644
--- a/src/classes/ActionCable/Channel/Broadcasting.html
+++ b/src/classes/ActionCable/Channel/Broadcasting.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -99,11 +99,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 45
- def broadcast_to(model, message)
- self.class.broadcast_to(model, message)
- end
+def broadcast_to(model, message)
+ self.class.broadcast_to(model, message)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -134,11 +134,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 41
- def broadcasting_for(model)
- self.class.broadcasting_for(model)
- end
+def broadcasting_for(model)
+ self.class.broadcasting_for(model)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html b/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
index 684bccb1ab..432bb5d74f 100644
--- a/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 14
- def broadcast_to(broadcastables, message)
- ActionCable.server.broadcast(broadcasting_for(broadcastables), message)
- end
+def broadcast_to(broadcastables, message)
+ ActionCable.server.broadcast(broadcasting_for(broadcastables), message)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -126,11 +126,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 24
- def broadcasting_for(broadcastables)
- serialize_broadcasting([ channel_name ] + Array(broadcastables))
- end
+def broadcasting_for(broadcastables)
+ serialize_broadcasting([ channel_name ] + Array(broadcastables))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Callbacks.html b/src/classes/ActionCable/Channel/Callbacks.html
index 076bdbc8fa..64985186c3 100644
--- a/src/classes/ActionCable/Channel/Callbacks.html
+++ b/src/classes/ActionCable/Channel/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html b/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
index 6ee4317311..7949b5fdf6 100644
--- a/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -111,11 +111,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 60
- def after_subscribe(*methods, &block)
- set_callback(:subscribe, :after, *methods, &block)
- end
+def after_subscribe(*methods, &block)
+ set_callback(:subscribe, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -150,11 +150,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 69
- def after_unsubscribe(*methods, &block)
- set_callback(:unsubscribe, :after, *methods, &block)
- end
+def after_unsubscribe(*methods, &block)
+ set_callback(:unsubscribe, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -185,11 +185,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 48
- def before_subscribe(*methods, &block)
- set_callback(:subscribe, :before, *methods, &block)
- end
+def before_subscribe(*methods, &block)
+ set_callback(:subscribe, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -220,11 +220,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 65
- def before_unsubscribe(*methods, &block)
- set_callback(:unsubscribe, :before, *methods, &block)
- end
+def before_unsubscribe(*methods, &block)
+ set_callback(:unsubscribe, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/ChannelStub.html b/src/classes/ActionCable/Channel/ChannelStub.html
index 9db98daac2..d004896dc5 100644
--- a/src/classes/ActionCable/Channel/ChannelStub.html
+++ b/src/classes/ActionCable/Channel/ChannelStub.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -25,7 +25,7 @@
Action Cable Channel Stub
-
Stub stream_from to track streams for the channel. Add public aliases for subscription_confirmation_sent? and subscription_rejected?.
+Stub stream_from to track streams for the channel. Add public aliases for subscription_confirmation_sent? and subscription_rejected?.
@@ -114,11 +114,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 25
- def confirmed?
- subscription_confirmation_sent?
- end
+def confirmed?
+ subscription_confirmation_sent?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -149,11 +149,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 29
- def rejected?
- subscription_rejected?
- end
+def rejected?
+ subscription_rejected?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -188,9 +188,9 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 46
- def start_periodic_timers; end
+def start_periodic_timers; end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -221,11 +221,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 37
- def stop_all_streams
- @_streams = []
- end
+def stop_all_streams
+ @_streams = []
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -281,11 +281,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 33
- def stream_from(broadcasting, *)
- streams << broadcasting
- end
+def stream_from(broadcasting, *)
+ streams << broadcasting
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -316,11 +316,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 41
- def streams
- @_streams ||= []
- end
+def streams
+ @_streams ||= []
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/ConnectionStub.html b/src/classes/ActionCable/Channel/ConnectionStub.html
index 62c52b567f..0fdc0d8690 100644
--- a/src/classes/ActionCable/Channel/ConnectionStub.html
+++ b/src/classes/ActionCable/Channel/ConnectionStub.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -141,20 +141,20 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 55
- def initialize(identifiers = {})
- @server = ActionCable.server
- @transmissions = []
-
- identifiers.each do |identifier, val|
- define_singleton_method(identifier) { val }
- end
-
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @identifiers = identifiers.keys
- @logger = ActiveSupport::TaggedLogging.new ActiveSupport::Logger.new(StringIO.new)
- end
+def initialize(identifiers = {})
+ @server = ActionCable.server
+ @transmissions = []
+
+ identifiers.each do |identifier, val|
+ define_singleton_method(identifier) { val }
+ end
+
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @identifiers = identifiers.keys
+ @logger = ActiveSupport::TaggedLogging.new ActiveSupport::Logger.new(StringIO.new)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -189,11 +189,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 72
- def connection_identifier
- @connection_identifier ||= connection_gid(identifiers.filter_map { |id| send(id.to_sym) if id })
- end
+def connection_identifier
+ @connection_identifier ||= connection_gid(identifiers.filter_map { |id| send(id.to_sym) if id })
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -224,11 +224,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 68
- def transmit(cable_message)
- transmissions << cable_message.with_indifferent_access
- end
+def transmit(cable_message)
+ transmissions << cable_message.with_indifferent_access
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Naming.html b/src/classes/ActionCable/Channel/Naming.html
index 84bfc0232c..db2aa18589 100644
--- a/src/classes/ActionCable/Channel/Naming.html
+++ b/src/classes/ActionCable/Channel/Naming.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,11 +95,11 @@
# File actioncable/lib/action_cable/channel/naming.rb, line 23
- def channel_name
- self.class.channel_name
- end
+def channel_name
+ self.class.channel_name
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Naming/ClassMethods.html b/src/classes/ActionCable/Channel/Naming/ClassMethods.html
index b847309f12..e99c0744a7 100644
--- a/src/classes/ActionCable/Channel/Naming/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Naming/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -66,7 +66,7 @@
- Returns the name of the channel, underscored, without the Channel ending. If the channel is in a namespace, then the namespaces are represented by single colon separators in the channel name.
+ Returns the name of the channel, underscored, without the Channel ending. If the channel is in a namespace, then the namespaces are represented by single colon separators in the channel name.
ChatChannel.channel_name # => 'chat'
Chats::AppearancesChannel.channel_name # => 'chats:appearances'
@@ -87,11 +87,11 @@
# File actioncable/lib/action_cable/channel/naming.rb, line 18
- def channel_name
- @channel_name ||= name.delete_suffix("Channel").gsub("::", ":").underscore
- end
+def channel_name
+ @channel_name ||= name.delete_suffix("Channel").gsub("::", ":").underscore
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/NonInferrableChannelError.html b/src/classes/ActionCable/Channel/NonInferrableChannelError.html
index 034c36b135..1eac81cbd2 100644
--- a/src/classes/ActionCable/Channel/NonInferrableChannelError.html
+++ b/src/classes/ActionCable/Channel/NonInferrableChannelError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 13
- def initialize(name)
- super "Unable to determine the channel to test from #{name}. " +
- "You'll need to specify it using `tests YourChannel` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the channel to test from #{name}. " +
+ "You'll need to specify it using `tests YourChannel` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/PeriodicTimers.html b/src/classes/ActionCable/Channel/PeriodicTimers.html
index 88facef675..561da6e0dd 100644
--- a/src/classes/ActionCable/Channel/PeriodicTimers.html
+++ b/src/classes/ActionCable/Channel/PeriodicTimers.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html b/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
index 233865e2e3..a694f6de16 100644
--- a/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -91,30 +91,30 @@
# File actioncable/lib/action_cable/channel/periodic_timers.rb, line 31
- def periodically(callback_or_method_name = nil, every:, &block)
- callback =
- if block_given?
- raise ArgumentError, "Pass a block or provide a callback arg, not both" if callback_or_method_name
- block
- else
- case callback_or_method_name
- when Proc
- callback_or_method_name
- when Symbol
- -> { __send__ callback_or_method_name }
- else
- raise ArgumentError, "Expected a Symbol method name or a Proc, got #{callback_or_method_name.inspect}"
- end
- end
-
- unless every.kind_of?(Numeric) && every > 0
- raise ArgumentError, "Expected every: to be a positive number of seconds, got #{every.inspect}"
- end
-
- self.periodic_timers += [[ callback, every: every ]]
- end
+def periodically(callback_or_method_name = nil, every:, &block)
+ callback =
+ if block_given?
+ raise ArgumentError, "Pass a block or provide a callback arg, not both" if callback_or_method_name
+ block
+ else
+ case callback_or_method_name
+ when Proc
+ callback_or_method_name
+ when Symbol
+ -> { __send__ callback_or_method_name }
+ else
+ raise ArgumentError, "Expected a Symbol method name or a Proc, got #{callback_or_method_name.inspect}"
+ end
+ end
+
+ unless every.kind_of?(Numeric) && every > 0
+ raise ArgumentError, "Expected every: to be a positive number of seconds, got #{every.inspect}"
+ end
+
+ self.periodic_timers += [[ callback, every: every ]]
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Streams.html b/src/classes/ActionCable/Channel/Streams.html
index 0967feb616..a2e686a3e9 100644
--- a/src/classes/ActionCable/Channel/Streams.html
+++ b/src/classes/ActionCable/Channel/Streams.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -167,14 +167,14 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 137
- def stop_all_streams
- streams.each do |broadcasting, callback|
- pubsub.unsubscribe broadcasting, callback
- logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
- end.clear
- end
+def stop_all_streams
+ streams.each do |broadcasting, callback|
+ pubsub.unsubscribe broadcasting, callback
+ logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
+ end.clear
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -205,11 +205,11 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 132
- def stop_stream_for(model)
- stop_stream_from(broadcasting_for(model))
- end
+def stop_stream_for(model)
+ stop_stream_from(broadcasting_for(model))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,15 +240,15 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 123
- def stop_stream_from(broadcasting)
- callback = streams.delete(broadcasting)
- if callback
- pubsub.unsubscribe(broadcasting, callback)
- logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
- end
- end
+def stop_stream_from(broadcasting)
+ callback = streams.delete(broadcasting)
+ if callback
+ pubsub.unsubscribe(broadcasting, callback)
+ logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -281,11 +281,11 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 118
- def stream_for(broadcastables, callback = nil, coder: nil, &block)
- stream_from(broadcasting_for(broadcastables), callback || block, coder: coder)
- end
+def stream_for(broadcastables, callback = nil, coder: nil, &block)
+ stream_from(broadcasting_for(broadcastables), callback || block, coder: coder)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -316,28 +316,28 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 90
- def stream_from(broadcasting, callback = nil, coder: nil, &block)
- return if unsubscribed?
-
- broadcasting = String(broadcasting)
-
- # Don't send the confirmation until pubsub#subscribe is successful
- defer_subscription_confirmation!
-
- # Build a stream handler by wrapping the user-provided callback with a decoder
- # or defaulting to a JSON-decoding retransmitter.
- handler = worker_pool_stream_handler(broadcasting, callback || block, coder: coder)
- streams[broadcasting] = handler
-
- connection.server.event_loop.post do
- pubsub.subscribe(broadcasting, handler, lambda do
- ensure_confirmation_sent
- logger.info "#{self.class.name} is streaming from #{broadcasting}"
- end)
- end
- end
+def stream_from(broadcasting, callback = nil, coder: nil, &block)
+ return if unsubscribed?
+
+ broadcasting = String(broadcasting)
+
+ # Don't send the confirmation until pubsub#subscribe is successful
+ defer_subscription_confirmation!
+
+ # Build a stream handler by wrapping the user-provided callback with a decoder
+ # or defaulting to a JSON-decoding retransmitter.
+ handler = worker_pool_stream_handler(broadcasting, callback || block, coder: coder)
+ streams[broadcasting] = handler
+
+ connection.server.event_loop.post do
+ pubsub.subscribe(broadcasting, handler, lambda do
+ ensure_confirmation_sent
+ logger.info "#{self.class.name} is streaming from #{broadcasting}"
+ end)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -368,15 +368,15 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 146
- def stream_or_reject_for(model)
- if model
- stream_for model
- else
- reject
- end
- end
+def stream_or_reject_for(model)
+ if model
+ stream_for model
+ else
+ reject
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase.html b/src/classes/ActionCable/Channel/TestCase.html
index 08fb28c0cf..6317ff44d0 100644
--- a/src/classes/ActionCable/Channel/TestCase.html
+++ b/src/classes/ActionCable/Channel/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior.html b/src/classes/ActionCable/Channel/TestCase/Behavior.html
index b5f3a5cbb7..5a8ea0fd78 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -196,11 +196,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 282
- def assert_broadcast_on(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcast_on(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -231,11 +231,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 278
- def assert_broadcasts(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcasts(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,11 +272,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 326
- def assert_has_no_stream(stream)
- assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
- end
+def assert_has_no_stream(stream)
+ assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -313,11 +313,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 337
- def assert_has_no_stream_for(object)
- assert_has_no_stream(broadcasting_for(object))
- end
+def assert_has_no_stream_for(object)
+ assert_has_no_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -354,11 +354,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 304
- def assert_has_stream(stream)
- assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
- end
+def assert_has_stream(stream)
+ assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -395,11 +395,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 315
- def assert_has_stream_for(object)
- assert_has_stream(broadcasting_for(object))
- end
+def assert_has_stream_for(object)
+ assert_has_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -436,11 +436,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 293
- def assert_no_streams
- assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
- end
+def assert_no_streams
+ assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -473,12 +473,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 266
- def perform(action, data = {})
- check_subscribed!
- subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
- end
+def perform(action, data = {})
+ check_subscribed!
+ subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -516,11 +516,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 243
- def stub_connection(identifiers = {})
- @connection = ConnectionStub.new(identifiers)
- end
+def stub_connection(identifiers = {})
+ @connection = ConnectionStub.new(identifiers)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -551,15 +551,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 249
- def subscribe(params = {})
- @connection ||= stub_connection
- @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
- @subscription.singleton_class.include(ChannelStub)
- @subscription.subscribe_to_channel
- @subscription
- end
+def subscribe(params = {})
+ @connection ||= stub_connection
+ @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
+ @subscription.singleton_class.include(ChannelStub)
+ @subscription.subscribe_to_channel
+ @subscription
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -590,12 +590,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 272
- def transmissions
- # Return only directly sent message (via #transmit)
- connection.transmissions.filter_map { |data| data["message"] }
- end
+def transmissions
+ # Return only directly sent message (via #transmit)
+ connection.transmissions.filter_map { |data| data["message"] }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -626,12 +626,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 258
- def unsubscribe
- check_subscribed!
- subscription.unsubscribe_from_channel
- end
+def unsubscribe
+ check_subscribed!
+ subscription.unsubscribe_from_channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
index 48ea87f130..57efb4cdac 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 219
- def channel_class
- if channel = self._channel_class
- channel
- else
- tests determine_default_channel(name)
- end
- end
+def channel_class
+ if channel = self._channel_class
+ channel
+ else
+ tests determine_default_channel(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 227
- def determine_default_channel(name)
- channel = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Channel::Base
- end
- raise NonInferrableChannelError.new(name) if channel.nil?
- channel
- end
+def determine_default_channel(name)
+ channel = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Channel::Base
+ end
+ raise NonInferrableChannelError.new(name) if channel.nil?
+ channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 208
- def tests(channel)
- case channel
- when String, Symbol
- self._channel_class = channel.to_s.camelize.constantize
- when Module
- self._channel_class = channel
- else
- raise NonInferrableChannelError.new(channel)
- end
- end
+def tests(channel)
+ case channel
+ when String, Symbol
+ self._channel_class = channel.to_s.camelize.constantize
+ when Module
+ self._channel_class = channel
+ else
+ raise NonInferrableChannelError.new(channel)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection.html b/src/classes/ActionCable/Connection.html
index f832214f0e..7889c75284 100644
--- a/src/classes/ActionCable/Connection.html
+++ b/src/classes/ActionCable/Connection.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Assertions.html b/src/classes/ActionCable/Connection/Assertions.html
index 933ea80e4c..6b10ec5528 100644
--- a/src/classes/ActionCable/Connection/Assertions.html
+++ b/src/classes/ActionCable/Connection/Assertions.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 28
- def assert_reject_connection(&block)
- assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
- end
+def assert_reject_connection(&block)
+ assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization.html b/src/classes/ActionCable/Connection/Authorization.html
index feb855aa9e..baf85a37b3 100644
--- a/src/classes/ActionCable/Connection/Authorization.html
+++ b/src/classes/ActionCable/Connection/Authorization.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -97,12 +97,12 @@
# File actioncable/lib/action_cable/connection/authorization.rb, line 12
- def reject_unauthorized_connection
- logger.error "An unauthorized connection attempt was rejected"
- raise UnauthorizedError
- end
+def reject_unauthorized_connection
+ logger.error "An unauthorized connection attempt was rejected"
+ raise UnauthorizedError
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
index b63b282b0b..ff36299a28 100644
--- a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
+++ b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/Base.html b/src/classes/ActionCable/Connection/Base.html
index 36a2f1e1bb..ea0d62911f 100644
--- a/src/classes/ActionCable/Connection/Base.html
+++ b/src/classes/ActionCable/Connection/Base.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -255,21 +255,21 @@
# File actioncable/lib/action_cable/connection/base.rb, line 67
- def initialize(server, env, coder: ActiveSupport::JSON)
- @server, @env, @coder = server, env, coder
+def initialize(server, env, coder: ActiveSupport::JSON)
+ @server, @env, @coder = server, env, coder
- @worker_pool = server.worker_pool
- @logger = new_tagged_logger
+ @worker_pool = server.worker_pool
+ @logger = new_tagged_logger
- @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
+ @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
- @_internal_subscriptions = nil
- @started_at = Time.now
- end
+ @_internal_subscriptions = nil
+ @started_at = Time.now
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -304,11 +304,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 147
- def beat
- transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
- end
+def beat
+ transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -339,16 +339,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 120
- def close(reason: nil, reconnect: true)
- transmit(
- type: ActionCable::INTERNAL[:message_types][:disconnect],
- reason: reason,
- reconnect: reconnect
- )
- websocket.close
- end
+def close(reason: nil, reconnect: true)
+ transmit(
+ type: ActionCable::INTERNAL[:message_types][:disconnect],
+ reason: reason,
+ reconnect: reconnect
+ )
+ websocket.close
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -379,13 +379,13 @@
# File actioncable/lib/action_cable/connection/base.rb, line 109
- def handle_channel_command(payload)
- run_callbacks :command do
- subscriptions.execute_command payload
- end
- end
+def handle_channel_command(payload)
+ run_callbacks :command do
+ subscriptions.execute_command payload
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -416,11 +416,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 131
- def send_async(method, *arguments)
- worker_pool.async_invoke(self, method, *arguments)
- end
+def send_async(method, *arguments)
+ worker_pool.async_invoke(self, method, *arguments)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -451,16 +451,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 138
- def statistics
- {
- identifier: connection_identifier,
- started_at: @started_at,
- subscriptions: subscriptions.identifiers,
- request_id: @env["action_dispatch.request_id"]
- }
- end
+def statistics
+ {
+ identifier: connection_identifier,
+ started_at: @started_at,
+ subscriptions: subscriptions.identifiers,
+ request_id: @env["action_dispatch.request_id"]
+ }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -494,11 +494,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 187
- def cookies # :doc:
- request.cookie_jar
- end
+def cookies # :doc:
+ request.cookie_jar
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -529,14 +529,14 @@
# File actioncable/lib/action_cable/connection/base.rb, line 178
- def request # :doc:
- @request ||= begin
- environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
- ActionDispatch::Request.new(environment || env)
- end
- end
+def request # :doc:
+ @request ||= begin
+ environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
+ ActionDispatch::Request.new(environment || env)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Callbacks.html b/src/classes/ActionCable/Connection/Callbacks.html
index 818958bf81..d6504ca284 100644
--- a/src/classes/ActionCable/Connection/Callbacks.html
+++ b/src/classes/ActionCable/Connection/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
index 933056a029..6376d7195b 100644
--- a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,11 +90,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 47
- def after_command(*methods, &block)
- set_callback(:command, :after, *methods, &block)
- end
+def after_command(*methods, &block)
+ set_callback(:command, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -125,11 +125,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 51
- def around_command(*methods, &block)
- set_callback(:command, :around, *methods, &block)
- end
+def around_command(*methods, &block)
+ set_callback(:command, :around, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -160,11 +160,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 43
- def before_command(*methods, &block)
- set_callback(:command, :before, *methods, &block)
- end
+def before_command(*methods, &block)
+ set_callback(:command, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification.html b/src/classes/ActionCable/Connection/Identification.html
index f3dcea9bfc..063ca88999 100644
--- a/src/classes/ActionCable/Connection/Identification.html
+++ b/src/classes/ActionCable/Connection/Identification.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,15 +95,15 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 29
- def connection_identifier
- unless defined? @connection_identifier
- @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
- end
+def connection_identifier
+ unless defined? @connection_identifier
+ @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
+ end
- @connection_identifier
- end
+ @connection_identifier
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification/ClassMethods.html b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
index 324ded31f5..a3395ef8a3 100644
--- a/src/classes/ActionCable/Connection/Identification/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -84,12 +84,12 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 21
- def identified_by(*identifiers)
- Array(identifiers).each { |identifier| attr_accessor identifier }
- self.identifiers += identifiers
- end
+def identified_by(*identifiers)
+ Array(identifiers).each { |identifier| attr_accessor identifier }
+ self.identifiers += identifiers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/InternalChannel.html b/src/classes/ActionCable/Connection/InternalChannel.html
index 9b0144f690..cfdccceaf4 100644
--- a/src/classes/ActionCable/Connection/InternalChannel.html
+++ b/src/classes/ActionCable/Connection/InternalChannel.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
index 7167904452..bf0c696d62 100644
--- a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
+++ b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 15
- def initialize(name)
- super "Unable to determine the connection to test from #{name}. " +
- "You'll need to specify it using `tests YourConnection` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the connection to test from #{name}. " +
+ "You'll need to specify it using `tests YourConnection` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/StreamEventLoop.html b/src/classes/ActionCable/Connection/StreamEventLoop.html
index 2b71a213e3..f7c49354ef 100644
--- a/src/classes/ActionCable/Connection/StreamEventLoop.html
+++ b/src/classes/ActionCable/Connection/StreamEventLoop.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -111,16 +111,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 10
- def initialize
- @nio = @executor = @thread = nil
- @map = {}
- @stopping = false
- @todo = Queue.new
-
- @spawn_mutex = Mutex.new
- end
+def initialize
+ @nio = @executor = @thread = nil
+ @map = {}
+ @stopping = false
+ @todo = Queue.new
+
+ @spawn_mutex = Mutex.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -155,15 +155,15 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 30
- def attach(io, stream)
- @todo << lambda do
- @map[io] = @nio.register(io, :r)
- @map[io].value = stream
- end
- wakeup
- end
+def attach(io, stream)
+ @todo << lambda do
+ @map[io] = @nio.register(io, :r)
+ @map[io].value = stream
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -194,16 +194,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 38
- def detach(io, stream)
- @todo << lambda do
- @nio.deregister io
- @map.delete io
- io.close
- end
- wakeup
- end
+def detach(io, stream)
+ @todo << lambda do
+ @nio.deregister io
+ @map.delete io
+ io.close
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -234,14 +234,14 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 23
- def post(task = nil, &block)
- task ||= block
+def post(task = nil, &block)
+ task ||= block
- spawn
- @executor << task
- end
+ spawn
+ @executor << task
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,12 +272,12 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 56
- def stop
- @stopping = true
- wakeup if @nio
- end
+def stop
+ @stopping = true
+ wakeup if @nio
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -308,11 +308,11 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 19
- def timer(interval, &block)
- Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
- end
+def timer(interval, &block)
+ Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -343,16 +343,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 47
- def writes_pending(io)
- @todo << lambda do
- if monitor = @map[io]
- monitor.interests = :rw
- end
- end
- wakeup
- end
+def writes_pending(io)
+ @todo << lambda do
+ if monitor = @map[io]
+ monitor.interests = :rw
+ end
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
index f4d5cacc63..99731855fb 100644
--- a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
+++ b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -121,12 +121,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 16
- def initialize(logger, tags:)
- @logger = logger
- @tags = tags.flatten
- end
+def initialize(logger, tags:)
+ @logger = logger
+ @tags = tags.flatten
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -161,12 +161,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 21
- def add_tags(*tags)
- @tags += tags.flatten
- @tags = @tags.uniq
- end
+def add_tags(*tags)
+ @tags += tags.flatten
+ @tags = @tags.uniq
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -197,16 +197,16 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 26
- def tag(logger, &block)
- if logger.respond_to?(:tagged)
- current_tags = tags - logger.formatter.current_tags
- logger.tagged(*current_tags, &block)
- else
- yield
- end
- end
+def tag(logger, &block)
+ if logger.respond_to?(:tagged)
+ current_tags = tags - logger.formatter.current_tags
+ logger.tagged(*current_tags, &block)
+ else
+ yield
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,11 +240,11 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 42
- def log(type, message, &block) # :doc:
- tag(@logger) { @logger.send type, message, &block }
- end
+def log(type, message, &block) # :doc:
+ tag(@logger) { @logger.send type, message, &block }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase.html b/src/classes/ActionCable/Connection/TestCase.html
index 948378e491..39bc5cb056 100644
--- a/src/classes/ActionCable/Connection/TestCase.html
+++ b/src/classes/ActionCable/Connection/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior.html b/src/classes/ActionCable/Connection/TestCase/Behavior.html
index b87870becd..4ee0debbea 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -163,19 +163,19 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 192
- def connect(path = ActionCable.server.config.mount_path, **request_params)
- path ||= DEFAULT_PATH
+def connect(path = ActionCable.server.config.mount_path, **request_params)
+ path ||= DEFAULT_PATH
- connection = self.class.connection_class.allocate
- connection.singleton_class.include(TestConnection)
- connection.send(:initialize, build_test_request(path, **request_params))
- connection.connect if connection.respond_to?(:connect)
+ connection = self.class.connection_class.allocate
+ connection.singleton_class.include(TestConnection)
+ connection.send(:initialize, build_test_request(path, **request_params))
+ connection.connect if connection.respond_to?(:connect)
- # Only set instance variable if connected successfully
- @connection = connection
- end
+ # Only set instance variable if connected successfully
+ @connection = connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -206,11 +206,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 212
- def cookies
- @cookie_jar ||= TestCookieJar.new
- end
+def cookies
+ @cookie_jar ||= TestCookieJar.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -241,14 +241,14 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 205
- def disconnect
- raise "Must be connected!" if connection.nil?
+def disconnect
+ raise "Must be connected!" if connection.nil?
- connection.disconnect if connection.respond_to?(:disconnect)
- @connection = nil
- end
+ connection.disconnect if connection.respond_to?(:disconnect)
+ @connection = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
index 63444f4b27..99fc0e3f6f 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 167
- def connection_class
- if connection = self._connection_class
- connection
- else
- tests determine_default_connection(name)
- end
- end
+def connection_class
+ if connection = self._connection_class
+ connection
+ else
+ tests determine_default_connection(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 175
- def determine_default_connection(name)
- connection = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Connection::Base
- end
- raise NonInferrableConnectionError.new(name) if connection.nil?
- connection
- end
+def determine_default_connection(name)
+ connection = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Connection::Base
+ end
+ raise NonInferrableConnectionError.new(name) if connection.nil?
+ connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
Normalizes arguments and options, and then delegates to render_to_body and sticks the result in self.response_body.
Supported options depend on the underlying render_to_body implementation.
Supported options depend on the underlying render_to_body implementation.
# File actionpack/lib/abstract_controller/rendering.rb, line 26
- def render(*args, &block)
- options = _normalize_render(*args, &block)
- rendered_body = render_to_body(options)
- if options[:html]
- _set_html_content_type
- else
- _set_rendered_content_type rendered_format
- end
- _set_vary_header
- self.response_body = rendered_body
- end
+def render(*args, &block)
+ options = _normalize_render(*args, &block)
+ rendered_body = render_to_body(options)
+ if options[:html]
+ _set_html_content_type
+ else
+ _set_rendered_content_type rendered_format
+ end
+ _set_vary_header
+ self.response_body = rendered_body
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -182,10 +182,10 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 50
- def render_to_body(options = {})
- end
+def render_to_body(options = {})
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -218,12 +218,12 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 44
- def render_to_string(*args, &block)
- options = _normalize_render(*args, &block)
- render_to_body(options)
- end
+def render_to_string(*args, &block)
+ options = _normalize_render(*args, &block)
+ render_to_body(options)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -254,11 +254,11 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 54
- def rendered_format
- Mime[:text]
- end
+def rendered_format
+ Mime[:text]
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -289,15 +289,15 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 62
- def view_assigns
- variables = instance_variables - _protected_ivars
+def view_assigns
+ variables = instance_variables - _protected_ivars
- variables.each_with_object({}) do |name, hash|
- hash[name.slice(1, name.length)] = instance_variable_get(name)
- end
- end
+ variables.each_with_object({}) do |name, hash|
+ hash[name.slice(1, name.length)] = instance_variable_get(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -331,21 +331,21 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 73
- def _normalize_args(action = nil, options = {}) # :doc:
- if action.respond_to?(:permitted?)
- if action.permitted?
- action
- else
- raise ArgumentError, "render parameters are not permitted"
- end
- elsif action.is_a?(Hash)
- action
- else
- options
- end
- end
+def _normalize_args(action = nil, options = {}) # :doc:
+ if action.respond_to?(:permitted?)
+ if action.permitted?
+ action
+ else
+ raise ArgumentError, "render parameters are not permitted"
+ end
+ elsif action.is_a?(Hash)
+ action
+ else
+ options
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -376,11 +376,11 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 88
- def _normalize_options(options) # :doc:
- options
- end
+def _normalize_options(options) # :doc:
+ options
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -411,11 +411,11 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 93
- def _process_options(options) # :doc:
- options
- end
+def _process_options(options) # :doc:
+ options
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Translation.html b/src/classes/AbstractController/Translation.html
index e429818684..446e93e2cd 100644
--- a/src/classes/AbstractController/Translation.html
+++ b/src/classes/AbstractController/Translation.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -123,11 +123,11 @@
# File actionpack/lib/abstract_controller/translation.rb, line 37
- def localize(object, **options)
- I18n.localize(object, **options)
- end
+def localize(object, **options)
+ I18n.localize(object, **options)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -189,25 +189,25 @@
# File actionpack/lib/abstract_controller/translation.rb, line 17
- def translate(key, **options)
- if key&.start_with?(".")
- path = controller_path.tr("/", ".")
- defaults = [:"#{path}#{key}"]
- defaults << options[:default] if options[:default]
- options[:default] = defaults.flatten
- key = "#{path}.#{action_name}#{key}"
- end
-
- if options[:default] && ActiveSupport::HtmlSafeTranslation.html_safe_translation_key?(key)
- options[:default] = Array(options[:default]).map do |value|
- value.is_a?(String) ? ERB::Util.html_escape(value) : value
- end
- end
-
- ActiveSupport::HtmlSafeTranslation.translate(key, **options)
- end
+def translate(key, **options)
+ if key&.start_with?(".")
+ path = controller_path.tr("/", ".")
+ defaults = [:"#{path}#{key}"]
+ defaults << options[:default] if options[:default]
+ options[:default] = defaults.flatten
+ key = "#{path}.#{action_name}#{key}"
+ end
+
+ if options[:default] && ActiveSupport::HtmlSafeTranslation.html_safe_translation_key?(key)
+ options[:default] = Array(options[:default]).map do |value|
+ value.is_a?(String) ? ERB::Util.html_escape(value) : value
+ end
+ end
+
+ ActiveSupport::HtmlSafeTranslation.translate(key, **options)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/UrlFor.html b/src/classes/AbstractController/UrlFor.html
index 8d49da9f5c..bd5d0224eb 100644
--- a/src/classes/AbstractController/UrlFor.html
+++ b/src/classes/AbstractController/UrlFor.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -119,12 +119,12 @@
# File actionpack/lib/abstract_controller/url_for.rb, line 18
- def _routes
- raise "In order to use #url_for, you must include routing helpers explicitly. " \
- "For instance, `include Rails.application.routes.url_helpers`."
- end
+def _routes
+ raise "In order to use #url_for, you must include routing helpers explicitly. " \
+ "For instance, `include Rails.application.routes.url_helpers`."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/UrlFor/ClassMethods.html b/src/classes/AbstractController/UrlFor/ClassMethods.html
index cd0e5e9509..e4471b2d66 100644
--- a/src/classes/AbstractController/UrlFor/ClassMethods.html
+++ b/src/classes/AbstractController/UrlFor/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actionpack/lib/abstract_controller/url_for.rb, line 24
- def _routes
- nil
- end
+def _routes
+ nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -121,15 +121,15 @@
# File actionpack/lib/abstract_controller/url_for.rb, line 28
- def action_methods
- @action_methods ||= if _routes
- super - _routes.named_routes.helper_names
- else
- super
- end
- end
+def action_methods
+ @action_methods ||= if _routes
+ super - _routes.named_routes.helper_names
+ else
+ super
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable.html b/src/classes/ActionCable.html
index 4951b5813f..5e5f891dce 100644
--- a/src/classes/ActionCable.html
+++ b/src/classes/ActionCable.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -267,11 +267,11 @@
# File actioncable/lib/action_cable/gem_version.rb, line 7
- def self.gem_version
- Gem::Version.new VERSION::STRING
- end
+def self.gem_version
+ Gem::Version.new VERSION::STRING
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -302,11 +302,11 @@
# File actioncable/lib/action_cable/version.rb, line 9
- def self.version
- gem_version
- end
+def self.version
+ gem_version
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -341,11 +341,11 @@
# File actioncable/lib/action_cable.rb, line 77
- def server
- @server ||= ActionCable::Server::Base.new
- end
+def server
+@server ||= ActionCable::Server::Base.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel.html b/src/classes/ActionCable/Channel.html
index 38c886ddbc..06b36ff362 100644
--- a/src/classes/ActionCable/Channel.html
+++ b/src/classes/ActionCable/Channel.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Channel/Base.html b/src/classes/ActionCable/Channel/Base.html
index bc63a53315..32e2ff9b70 100644
--- a/src/classes/ActionCable/Channel/Base.html
+++ b/src/classes/ActionCable/Channel/Base.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -82,7 +82,7 @@ Action process
end
-
In this example, the subscribed and unsubscribed methods are not callable methods, as they were already declared in ActionCable::Channel::Base, but #appear and #away are. #generate_connection_token is also not callable, since it’s a private method. You’ll see that appear accepts a data parameter, which it then uses as part of its model call. #away does not, since it’s simply a trigger action.
+In this example, the subscribed and unsubscribed methods are not callable methods, as they were already declared in ActionCable::Channel::Base, but appear and away are. generate_connection_token is also not callable, since it’s a private method. You’ll see that appear accepts a data parameter, which it then uses as part of its model call. away does not, since it’s simply a trigger action.
Also note that in this example, current_user is available because it was marked as an identifying attribute on the connection. All such identifiers will automatically create a delegation method of the same name on the channel instance.
@@ -307,19 +307,22 @@ Returns
# File actioncable/lib/action_cable/channel/base.rb, line 128
- def action_methods
- @action_methods ||= begin
- # All public instance methods of this class, including ancestors
- methods = (public_instance_methods(true) -
- # Except for public instance methods of Base and its ancestors
- ActionCable::Channel::Base.public_instance_methods(true) +
- # Be sure to include shadowed public instance methods of this class
- public_instance_methods(false)).uniq.map(&:to_s)
- methods.to_set
- end
- end
-
- 🔎 See on GitHub
+def action_methods
+ @action_methods ||= begin
+ # All public instance methods of this class, including ancestors
+ methods = (public_instance_methods(true) -
+ # Except for public instance methods of Base and its ancestors
+ ActionCable::Channel::Base.public_instance_methods(true) +
+ # Be sure to include shadowed public instance methods of this class
+ public_instance_methods(false)).uniq
+
+ methods.reject! { |m| m.start_with?("_") }
+ methods.map!(&:name)
+ methods.to_set
+ end
+end
+
+ 🔎 See on GitHub
@@ -349,26 +352,26 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 155
- def initialize(connection, identifier, params = {})
- @connection = connection
- @identifier = identifier
- @params = params
+ # File actioncable/lib/action_cable/channel/base.rb, line 158
+def initialize(connection, identifier, params = {})
+ @connection = connection
+ @identifier = identifier
+ @params = params
- # When a channel is streaming via pubsub, we want to delay the confirmation
- # transmission until pubsub subscription is confirmed.
- #
- # The counter starts at 1 because it's awaiting a call to #subscribe_to_channel
- @defer_subscription_confirmation_counter = Concurrent::AtomicFixnum.new(1)
+ # When a channel is streaming via pubsub, we want to delay the confirmation
+ # transmission until pubsub subscription is confirmed.
+ #
+ # The counter starts at 1 because it's awaiting a call to #subscribe_to_channel
+ @defer_subscription_confirmation_counter = Concurrent::AtomicFixnum.new(1)
- @reject_subscription = nil
- @subscription_confirmation_sent = nil
- @unsubscribed = false
+ @reject_subscription = nil
+ @subscription_confirmation_sent = nil
+ @unsubscribed = false
- delegate_connection_identifiers
- end
+ delegate_connection_identifiers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -401,12 +404,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 144
- def clear_action_methods! # :doc:
- @action_methods = nil
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 147
+def clear_action_methods! # :doc:
+ @action_methods = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -436,13 +439,13 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 149
- def method_added(name) # :doc:
- super
- clear_action_methods!
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 152
+def method_added(name) # :doc:
+ super
+ clear_action_methods!
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -476,21 +479,21 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 176
- def perform_action(data)
- action = extract_action(data)
+ # File actioncable/lib/action_cable/channel/base.rb, line 179
+def perform_action(data)
+ action = extract_action(data)
- if processable_action?(action)
- payload = { channel_class: self.class.name, action: action, data: data }
- ActiveSupport::Notifications.instrument("perform_action.action_cable", payload) do
- dispatch_action(action, data)
- end
- else
- logger.error "Unable to process #{action_signature(action, data)}"
- end
- end
+ if processable_action?(action)
+ payload = { channel_class: self.class.name, action: action, data: data }
+ ActiveSupport::Notifications.instrument("perform_action.action_cable", payload) do
+ dispatch_action(action, data)
+ end
+ else
+ logger.error "Unable to process #{action_signature(action, data)}"
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -520,17 +523,17 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 191
- def subscribe_to_channel
- run_callbacks :subscribe do
- subscribed
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 194
+def subscribe_to_channel
+ run_callbacks :subscribe do
+ subscribed
+ end
- reject_subscription if subscription_rejected?
- ensure_confirmation_sent
- end
+ reject_subscription if subscription_rejected?
+ ensure_confirmation_sent
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -563,12 +566,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 250
- def defer_subscription_confirmation! # :doc:
- @defer_subscription_confirmation_counter.increment
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 253
+def defer_subscription_confirmation! # :doc:
+ @defer_subscription_confirmation_counter.increment
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -598,12 +601,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 254
- def defer_subscription_confirmation? # :doc:
- @defer_subscription_confirmation_counter.value > 0
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 257
+def defer_subscription_confirmation? # :doc:
+ @defer_subscription_confirmation_counter.value > 0
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -633,14 +636,14 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 244
- def ensure_confirmation_sent # :doc:
- return if subscription_rejected?
- @defer_subscription_confirmation_counter.decrement
- transmit_subscription_confirmation unless defer_subscription_confirmation?
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 247
+def ensure_confirmation_sent # :doc:
+ return if subscription_rejected?
+ @defer_subscription_confirmation_counter.decrement
+ transmit_subscription_confirmation unless defer_subscription_confirmation?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -670,12 +673,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 262
- def reject # :doc:
- @reject_subscription = true
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 265
+def reject # :doc:
+ @reject_subscription = true
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -705,12 +708,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 218
- def subscribed # :doc:
- # Override in subclasses
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 221
+def subscribed # :doc:
+ # Override in subclasses
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -740,12 +743,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 258
- def subscription_confirmation_sent? # :doc:
- @subscription_confirmation_sent
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 261
+def subscription_confirmation_sent? # :doc:
+ @subscription_confirmation_sent
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -775,12 +778,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 266
- def subscription_rejected? # :doc:
- @reject_subscription
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 269
+def subscription_rejected? # :doc:
+ @reject_subscription
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -810,21 +813,21 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 231
- def transmit(data, via: nil) # :doc:
- logger.debug do
- status = "#{self.class.name} transmitting #{data.inspect.truncate(300)}"
- status += " (via #{via})" if via
- status
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 234
+def transmit(data, via: nil) # :doc:
+ logger.debug do
+ status = "#{self.class.name} transmitting #{data.inspect.truncate(300)}"
+ status += " (via #{via})" if via
+ status
+ end
- payload = { channel_class: self.class.name, data: data, via: via }
- ActiveSupport::Notifications.instrument("transmit.action_cable", payload) do
- connection.transmit identifier: @identifier, message: data
- end
- end
+ payload = { channel_class: self.class.name, data: data, via: via }
+ ActiveSupport::Notifications.instrument("transmit.action_cable", payload) do
+ connection.transmit identifier: @identifier, message: data
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -854,12 +857,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 224
- def unsubscribed # :doc:
- # Override in subclasses
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 227
+def unsubscribed # :doc:
+ # Override in subclasses
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Broadcasting.html b/src/classes/ActionCable/Channel/Broadcasting.html
index bb71b89445..7fecc3f6b8 100644
--- a/src/classes/ActionCable/Channel/Broadcasting.html
+++ b/src/classes/ActionCable/Channel/Broadcasting.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -99,11 +99,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 45
- def broadcast_to(model, message)
- self.class.broadcast_to(model, message)
- end
+def broadcast_to(model, message)
+ self.class.broadcast_to(model, message)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -134,11 +134,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 41
- def broadcasting_for(model)
- self.class.broadcasting_for(model)
- end
+def broadcasting_for(model)
+ self.class.broadcasting_for(model)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html b/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
index 684bccb1ab..432bb5d74f 100644
--- a/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 14
- def broadcast_to(broadcastables, message)
- ActionCable.server.broadcast(broadcasting_for(broadcastables), message)
- end
+def broadcast_to(broadcastables, message)
+ ActionCable.server.broadcast(broadcasting_for(broadcastables), message)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -126,11 +126,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 24
- def broadcasting_for(broadcastables)
- serialize_broadcasting([ channel_name ] + Array(broadcastables))
- end
+def broadcasting_for(broadcastables)
+ serialize_broadcasting([ channel_name ] + Array(broadcastables))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Callbacks.html b/src/classes/ActionCable/Channel/Callbacks.html
index 076bdbc8fa..64985186c3 100644
--- a/src/classes/ActionCable/Channel/Callbacks.html
+++ b/src/classes/ActionCable/Channel/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html b/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
index 6ee4317311..7949b5fdf6 100644
--- a/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -111,11 +111,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 60
- def after_subscribe(*methods, &block)
- set_callback(:subscribe, :after, *methods, &block)
- end
+def after_subscribe(*methods, &block)
+ set_callback(:subscribe, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -150,11 +150,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 69
- def after_unsubscribe(*methods, &block)
- set_callback(:unsubscribe, :after, *methods, &block)
- end
+def after_unsubscribe(*methods, &block)
+ set_callback(:unsubscribe, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -185,11 +185,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 48
- def before_subscribe(*methods, &block)
- set_callback(:subscribe, :before, *methods, &block)
- end
+def before_subscribe(*methods, &block)
+ set_callback(:subscribe, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -220,11 +220,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 65
- def before_unsubscribe(*methods, &block)
- set_callback(:unsubscribe, :before, *methods, &block)
- end
+def before_unsubscribe(*methods, &block)
+ set_callback(:unsubscribe, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/ChannelStub.html b/src/classes/ActionCable/Channel/ChannelStub.html
index 9db98daac2..d004896dc5 100644
--- a/src/classes/ActionCable/Channel/ChannelStub.html
+++ b/src/classes/ActionCable/Channel/ChannelStub.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -25,7 +25,7 @@
Action Cable Channel Stub
-
Stub stream_from to track streams for the channel. Add public aliases for subscription_confirmation_sent? and subscription_rejected?.
+Stub stream_from to track streams for the channel. Add public aliases for subscription_confirmation_sent? and subscription_rejected?.
@@ -114,11 +114,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 25
- def confirmed?
- subscription_confirmation_sent?
- end
+def confirmed?
+ subscription_confirmation_sent?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -149,11 +149,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 29
- def rejected?
- subscription_rejected?
- end
+def rejected?
+ subscription_rejected?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -188,9 +188,9 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 46
- def start_periodic_timers; end
+def start_periodic_timers; end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -221,11 +221,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 37
- def stop_all_streams
- @_streams = []
- end
+def stop_all_streams
+ @_streams = []
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -281,11 +281,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 33
- def stream_from(broadcasting, *)
- streams << broadcasting
- end
+def stream_from(broadcasting, *)
+ streams << broadcasting
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -316,11 +316,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 41
- def streams
- @_streams ||= []
- end
+def streams
+ @_streams ||= []
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/ConnectionStub.html b/src/classes/ActionCable/Channel/ConnectionStub.html
index 62c52b567f..0fdc0d8690 100644
--- a/src/classes/ActionCable/Channel/ConnectionStub.html
+++ b/src/classes/ActionCable/Channel/ConnectionStub.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -141,20 +141,20 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 55
- def initialize(identifiers = {})
- @server = ActionCable.server
- @transmissions = []
-
- identifiers.each do |identifier, val|
- define_singleton_method(identifier) { val }
- end
-
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @identifiers = identifiers.keys
- @logger = ActiveSupport::TaggedLogging.new ActiveSupport::Logger.new(StringIO.new)
- end
+def initialize(identifiers = {})
+ @server = ActionCable.server
+ @transmissions = []
+
+ identifiers.each do |identifier, val|
+ define_singleton_method(identifier) { val }
+ end
+
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @identifiers = identifiers.keys
+ @logger = ActiveSupport::TaggedLogging.new ActiveSupport::Logger.new(StringIO.new)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -189,11 +189,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 72
- def connection_identifier
- @connection_identifier ||= connection_gid(identifiers.filter_map { |id| send(id.to_sym) if id })
- end
+def connection_identifier
+ @connection_identifier ||= connection_gid(identifiers.filter_map { |id| send(id.to_sym) if id })
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -224,11 +224,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 68
- def transmit(cable_message)
- transmissions << cable_message.with_indifferent_access
- end
+def transmit(cable_message)
+ transmissions << cable_message.with_indifferent_access
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Naming.html b/src/classes/ActionCable/Channel/Naming.html
index 84bfc0232c..db2aa18589 100644
--- a/src/classes/ActionCable/Channel/Naming.html
+++ b/src/classes/ActionCable/Channel/Naming.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,11 +95,11 @@
# File actioncable/lib/action_cable/channel/naming.rb, line 23
- def channel_name
- self.class.channel_name
- end
+def channel_name
+ self.class.channel_name
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Naming/ClassMethods.html b/src/classes/ActionCable/Channel/Naming/ClassMethods.html
index b847309f12..e99c0744a7 100644
--- a/src/classes/ActionCable/Channel/Naming/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Naming/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -66,7 +66,7 @@
- Returns the name of the channel, underscored, without the Channel ending. If the channel is in a namespace, then the namespaces are represented by single colon separators in the channel name.
+ Returns the name of the channel, underscored, without the Channel ending. If the channel is in a namespace, then the namespaces are represented by single colon separators in the channel name.
ChatChannel.channel_name # => 'chat'
Chats::AppearancesChannel.channel_name # => 'chats:appearances'
@@ -87,11 +87,11 @@
# File actioncable/lib/action_cable/channel/naming.rb, line 18
- def channel_name
- @channel_name ||= name.delete_suffix("Channel").gsub("::", ":").underscore
- end
+def channel_name
+ @channel_name ||= name.delete_suffix("Channel").gsub("::", ":").underscore
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/NonInferrableChannelError.html b/src/classes/ActionCable/Channel/NonInferrableChannelError.html
index 034c36b135..1eac81cbd2 100644
--- a/src/classes/ActionCable/Channel/NonInferrableChannelError.html
+++ b/src/classes/ActionCable/Channel/NonInferrableChannelError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 13
- def initialize(name)
- super "Unable to determine the channel to test from #{name}. " +
- "You'll need to specify it using `tests YourChannel` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the channel to test from #{name}. " +
+ "You'll need to specify it using `tests YourChannel` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/PeriodicTimers.html b/src/classes/ActionCable/Channel/PeriodicTimers.html
index 88facef675..561da6e0dd 100644
--- a/src/classes/ActionCable/Channel/PeriodicTimers.html
+++ b/src/classes/ActionCable/Channel/PeriodicTimers.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html b/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
index 233865e2e3..a694f6de16 100644
--- a/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -91,30 +91,30 @@
# File actioncable/lib/action_cable/channel/periodic_timers.rb, line 31
- def periodically(callback_or_method_name = nil, every:, &block)
- callback =
- if block_given?
- raise ArgumentError, "Pass a block or provide a callback arg, not both" if callback_or_method_name
- block
- else
- case callback_or_method_name
- when Proc
- callback_or_method_name
- when Symbol
- -> { __send__ callback_or_method_name }
- else
- raise ArgumentError, "Expected a Symbol method name or a Proc, got #{callback_or_method_name.inspect}"
- end
- end
-
- unless every.kind_of?(Numeric) && every > 0
- raise ArgumentError, "Expected every: to be a positive number of seconds, got #{every.inspect}"
- end
-
- self.periodic_timers += [[ callback, every: every ]]
- end
+def periodically(callback_or_method_name = nil, every:, &block)
+ callback =
+ if block_given?
+ raise ArgumentError, "Pass a block or provide a callback arg, not both" if callback_or_method_name
+ block
+ else
+ case callback_or_method_name
+ when Proc
+ callback_or_method_name
+ when Symbol
+ -> { __send__ callback_or_method_name }
+ else
+ raise ArgumentError, "Expected a Symbol method name or a Proc, got #{callback_or_method_name.inspect}"
+ end
+ end
+
+ unless every.kind_of?(Numeric) && every > 0
+ raise ArgumentError, "Expected every: to be a positive number of seconds, got #{every.inspect}"
+ end
+
+ self.periodic_timers += [[ callback, every: every ]]
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Streams.html b/src/classes/ActionCable/Channel/Streams.html
index 0967feb616..a2e686a3e9 100644
--- a/src/classes/ActionCable/Channel/Streams.html
+++ b/src/classes/ActionCable/Channel/Streams.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -167,14 +167,14 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 137
- def stop_all_streams
- streams.each do |broadcasting, callback|
- pubsub.unsubscribe broadcasting, callback
- logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
- end.clear
- end
+def stop_all_streams
+ streams.each do |broadcasting, callback|
+ pubsub.unsubscribe broadcasting, callback
+ logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
+ end.clear
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -205,11 +205,11 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 132
- def stop_stream_for(model)
- stop_stream_from(broadcasting_for(model))
- end
+def stop_stream_for(model)
+ stop_stream_from(broadcasting_for(model))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,15 +240,15 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 123
- def stop_stream_from(broadcasting)
- callback = streams.delete(broadcasting)
- if callback
- pubsub.unsubscribe(broadcasting, callback)
- logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
- end
- end
+def stop_stream_from(broadcasting)
+ callback = streams.delete(broadcasting)
+ if callback
+ pubsub.unsubscribe(broadcasting, callback)
+ logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -281,11 +281,11 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 118
- def stream_for(broadcastables, callback = nil, coder: nil, &block)
- stream_from(broadcasting_for(broadcastables), callback || block, coder: coder)
- end
+def stream_for(broadcastables, callback = nil, coder: nil, &block)
+ stream_from(broadcasting_for(broadcastables), callback || block, coder: coder)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -316,28 +316,28 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 90
- def stream_from(broadcasting, callback = nil, coder: nil, &block)
- return if unsubscribed?
-
- broadcasting = String(broadcasting)
-
- # Don't send the confirmation until pubsub#subscribe is successful
- defer_subscription_confirmation!
-
- # Build a stream handler by wrapping the user-provided callback with a decoder
- # or defaulting to a JSON-decoding retransmitter.
- handler = worker_pool_stream_handler(broadcasting, callback || block, coder: coder)
- streams[broadcasting] = handler
-
- connection.server.event_loop.post do
- pubsub.subscribe(broadcasting, handler, lambda do
- ensure_confirmation_sent
- logger.info "#{self.class.name} is streaming from #{broadcasting}"
- end)
- end
- end
+def stream_from(broadcasting, callback = nil, coder: nil, &block)
+ return if unsubscribed?
+
+ broadcasting = String(broadcasting)
+
+ # Don't send the confirmation until pubsub#subscribe is successful
+ defer_subscription_confirmation!
+
+ # Build a stream handler by wrapping the user-provided callback with a decoder
+ # or defaulting to a JSON-decoding retransmitter.
+ handler = worker_pool_stream_handler(broadcasting, callback || block, coder: coder)
+ streams[broadcasting] = handler
+
+ connection.server.event_loop.post do
+ pubsub.subscribe(broadcasting, handler, lambda do
+ ensure_confirmation_sent
+ logger.info "#{self.class.name} is streaming from #{broadcasting}"
+ end)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -368,15 +368,15 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 146
- def stream_or_reject_for(model)
- if model
- stream_for model
- else
- reject
- end
- end
+def stream_or_reject_for(model)
+ if model
+ stream_for model
+ else
+ reject
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase.html b/src/classes/ActionCable/Channel/TestCase.html
index 08fb28c0cf..6317ff44d0 100644
--- a/src/classes/ActionCable/Channel/TestCase.html
+++ b/src/classes/ActionCable/Channel/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior.html b/src/classes/ActionCable/Channel/TestCase/Behavior.html
index b5f3a5cbb7..5a8ea0fd78 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -196,11 +196,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 282
- def assert_broadcast_on(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcast_on(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -231,11 +231,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 278
- def assert_broadcasts(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcasts(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,11 +272,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 326
- def assert_has_no_stream(stream)
- assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
- end
+def assert_has_no_stream(stream)
+ assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -313,11 +313,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 337
- def assert_has_no_stream_for(object)
- assert_has_no_stream(broadcasting_for(object))
- end
+def assert_has_no_stream_for(object)
+ assert_has_no_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -354,11 +354,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 304
- def assert_has_stream(stream)
- assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
- end
+def assert_has_stream(stream)
+ assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -395,11 +395,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 315
- def assert_has_stream_for(object)
- assert_has_stream(broadcasting_for(object))
- end
+def assert_has_stream_for(object)
+ assert_has_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -436,11 +436,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 293
- def assert_no_streams
- assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
- end
+def assert_no_streams
+ assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -473,12 +473,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 266
- def perform(action, data = {})
- check_subscribed!
- subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
- end
+def perform(action, data = {})
+ check_subscribed!
+ subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -516,11 +516,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 243
- def stub_connection(identifiers = {})
- @connection = ConnectionStub.new(identifiers)
- end
+def stub_connection(identifiers = {})
+ @connection = ConnectionStub.new(identifiers)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -551,15 +551,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 249
- def subscribe(params = {})
- @connection ||= stub_connection
- @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
- @subscription.singleton_class.include(ChannelStub)
- @subscription.subscribe_to_channel
- @subscription
- end
+def subscribe(params = {})
+ @connection ||= stub_connection
+ @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
+ @subscription.singleton_class.include(ChannelStub)
+ @subscription.subscribe_to_channel
+ @subscription
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -590,12 +590,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 272
- def transmissions
- # Return only directly sent message (via #transmit)
- connection.transmissions.filter_map { |data| data["message"] }
- end
+def transmissions
+ # Return only directly sent message (via #transmit)
+ connection.transmissions.filter_map { |data| data["message"] }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -626,12 +626,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 258
- def unsubscribe
- check_subscribed!
- subscription.unsubscribe_from_channel
- end
+def unsubscribe
+ check_subscribed!
+ subscription.unsubscribe_from_channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
index 48ea87f130..57efb4cdac 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 219
- def channel_class
- if channel = self._channel_class
- channel
- else
- tests determine_default_channel(name)
- end
- end
+def channel_class
+ if channel = self._channel_class
+ channel
+ else
+ tests determine_default_channel(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 227
- def determine_default_channel(name)
- channel = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Channel::Base
- end
- raise NonInferrableChannelError.new(name) if channel.nil?
- channel
- end
+def determine_default_channel(name)
+ channel = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Channel::Base
+ end
+ raise NonInferrableChannelError.new(name) if channel.nil?
+ channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 208
- def tests(channel)
- case channel
- when String, Symbol
- self._channel_class = channel.to_s.camelize.constantize
- when Module
- self._channel_class = channel
- else
- raise NonInferrableChannelError.new(channel)
- end
- end
+def tests(channel)
+ case channel
+ when String, Symbol
+ self._channel_class = channel.to_s.camelize.constantize
+ when Module
+ self._channel_class = channel
+ else
+ raise NonInferrableChannelError.new(channel)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection.html b/src/classes/ActionCable/Connection.html
index f832214f0e..7889c75284 100644
--- a/src/classes/ActionCable/Connection.html
+++ b/src/classes/ActionCable/Connection.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Assertions.html b/src/classes/ActionCable/Connection/Assertions.html
index 933ea80e4c..6b10ec5528 100644
--- a/src/classes/ActionCable/Connection/Assertions.html
+++ b/src/classes/ActionCable/Connection/Assertions.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 28
- def assert_reject_connection(&block)
- assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
- end
+def assert_reject_connection(&block)
+ assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization.html b/src/classes/ActionCable/Connection/Authorization.html
index feb855aa9e..baf85a37b3 100644
--- a/src/classes/ActionCable/Connection/Authorization.html
+++ b/src/classes/ActionCable/Connection/Authorization.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -97,12 +97,12 @@
# File actioncable/lib/action_cable/connection/authorization.rb, line 12
- def reject_unauthorized_connection
- logger.error "An unauthorized connection attempt was rejected"
- raise UnauthorizedError
- end
+def reject_unauthorized_connection
+ logger.error "An unauthorized connection attempt was rejected"
+ raise UnauthorizedError
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
index b63b282b0b..ff36299a28 100644
--- a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
+++ b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/Base.html b/src/classes/ActionCable/Connection/Base.html
index 36a2f1e1bb..ea0d62911f 100644
--- a/src/classes/ActionCable/Connection/Base.html
+++ b/src/classes/ActionCable/Connection/Base.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -255,21 +255,21 @@
# File actioncable/lib/action_cable/connection/base.rb, line 67
- def initialize(server, env, coder: ActiveSupport::JSON)
- @server, @env, @coder = server, env, coder
+def initialize(server, env, coder: ActiveSupport::JSON)
+ @server, @env, @coder = server, env, coder
- @worker_pool = server.worker_pool
- @logger = new_tagged_logger
+ @worker_pool = server.worker_pool
+ @logger = new_tagged_logger
- @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
+ @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
- @_internal_subscriptions = nil
- @started_at = Time.now
- end
+ @_internal_subscriptions = nil
+ @started_at = Time.now
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -304,11 +304,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 147
- def beat
- transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
- end
+def beat
+ transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -339,16 +339,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 120
- def close(reason: nil, reconnect: true)
- transmit(
- type: ActionCable::INTERNAL[:message_types][:disconnect],
- reason: reason,
- reconnect: reconnect
- )
- websocket.close
- end
+def close(reason: nil, reconnect: true)
+ transmit(
+ type: ActionCable::INTERNAL[:message_types][:disconnect],
+ reason: reason,
+ reconnect: reconnect
+ )
+ websocket.close
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -379,13 +379,13 @@
# File actioncable/lib/action_cable/connection/base.rb, line 109
- def handle_channel_command(payload)
- run_callbacks :command do
- subscriptions.execute_command payload
- end
- end
+def handle_channel_command(payload)
+ run_callbacks :command do
+ subscriptions.execute_command payload
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -416,11 +416,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 131
- def send_async(method, *arguments)
- worker_pool.async_invoke(self, method, *arguments)
- end
+def send_async(method, *arguments)
+ worker_pool.async_invoke(self, method, *arguments)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -451,16 +451,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 138
- def statistics
- {
- identifier: connection_identifier,
- started_at: @started_at,
- subscriptions: subscriptions.identifiers,
- request_id: @env["action_dispatch.request_id"]
- }
- end
+def statistics
+ {
+ identifier: connection_identifier,
+ started_at: @started_at,
+ subscriptions: subscriptions.identifiers,
+ request_id: @env["action_dispatch.request_id"]
+ }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -494,11 +494,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 187
- def cookies # :doc:
- request.cookie_jar
- end
+def cookies # :doc:
+ request.cookie_jar
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -529,14 +529,14 @@
# File actioncable/lib/action_cable/connection/base.rb, line 178
- def request # :doc:
- @request ||= begin
- environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
- ActionDispatch::Request.new(environment || env)
- end
- end
+def request # :doc:
+ @request ||= begin
+ environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
+ ActionDispatch::Request.new(environment || env)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Callbacks.html b/src/classes/ActionCable/Connection/Callbacks.html
index 818958bf81..d6504ca284 100644
--- a/src/classes/ActionCable/Connection/Callbacks.html
+++ b/src/classes/ActionCable/Connection/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
index 933056a029..6376d7195b 100644
--- a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,11 +90,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 47
- def after_command(*methods, &block)
- set_callback(:command, :after, *methods, &block)
- end
+def after_command(*methods, &block)
+ set_callback(:command, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -125,11 +125,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 51
- def around_command(*methods, &block)
- set_callback(:command, :around, *methods, &block)
- end
+def around_command(*methods, &block)
+ set_callback(:command, :around, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -160,11 +160,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 43
- def before_command(*methods, &block)
- set_callback(:command, :before, *methods, &block)
- end
+def before_command(*methods, &block)
+ set_callback(:command, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification.html b/src/classes/ActionCable/Connection/Identification.html
index f3dcea9bfc..063ca88999 100644
--- a/src/classes/ActionCable/Connection/Identification.html
+++ b/src/classes/ActionCable/Connection/Identification.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,15 +95,15 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 29
- def connection_identifier
- unless defined? @connection_identifier
- @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
- end
+def connection_identifier
+ unless defined? @connection_identifier
+ @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
+ end
- @connection_identifier
- end
+ @connection_identifier
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification/ClassMethods.html b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
index 324ded31f5..a3395ef8a3 100644
--- a/src/classes/ActionCable/Connection/Identification/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -84,12 +84,12 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 21
- def identified_by(*identifiers)
- Array(identifiers).each { |identifier| attr_accessor identifier }
- self.identifiers += identifiers
- end
+def identified_by(*identifiers)
+ Array(identifiers).each { |identifier| attr_accessor identifier }
+ self.identifiers += identifiers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/InternalChannel.html b/src/classes/ActionCable/Connection/InternalChannel.html
index 9b0144f690..cfdccceaf4 100644
--- a/src/classes/ActionCable/Connection/InternalChannel.html
+++ b/src/classes/ActionCable/Connection/InternalChannel.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
index 7167904452..bf0c696d62 100644
--- a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
+++ b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 15
- def initialize(name)
- super "Unable to determine the connection to test from #{name}. " +
- "You'll need to specify it using `tests YourConnection` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the connection to test from #{name}. " +
+ "You'll need to specify it using `tests YourConnection` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/StreamEventLoop.html b/src/classes/ActionCable/Connection/StreamEventLoop.html
index 2b71a213e3..f7c49354ef 100644
--- a/src/classes/ActionCable/Connection/StreamEventLoop.html
+++ b/src/classes/ActionCable/Connection/StreamEventLoop.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -111,16 +111,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 10
- def initialize
- @nio = @executor = @thread = nil
- @map = {}
- @stopping = false
- @todo = Queue.new
-
- @spawn_mutex = Mutex.new
- end
+def initialize
+ @nio = @executor = @thread = nil
+ @map = {}
+ @stopping = false
+ @todo = Queue.new
+
+ @spawn_mutex = Mutex.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -155,15 +155,15 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 30
- def attach(io, stream)
- @todo << lambda do
- @map[io] = @nio.register(io, :r)
- @map[io].value = stream
- end
- wakeup
- end
+def attach(io, stream)
+ @todo << lambda do
+ @map[io] = @nio.register(io, :r)
+ @map[io].value = stream
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -194,16 +194,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 38
- def detach(io, stream)
- @todo << lambda do
- @nio.deregister io
- @map.delete io
- io.close
- end
- wakeup
- end
+def detach(io, stream)
+ @todo << lambda do
+ @nio.deregister io
+ @map.delete io
+ io.close
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -234,14 +234,14 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 23
- def post(task = nil, &block)
- task ||= block
+def post(task = nil, &block)
+ task ||= block
- spawn
- @executor << task
- end
+ spawn
+ @executor << task
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,12 +272,12 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 56
- def stop
- @stopping = true
- wakeup if @nio
- end
+def stop
+ @stopping = true
+ wakeup if @nio
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -308,11 +308,11 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 19
- def timer(interval, &block)
- Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
- end
+def timer(interval, &block)
+ Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -343,16 +343,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 47
- def writes_pending(io)
- @todo << lambda do
- if monitor = @map[io]
- monitor.interests = :rw
- end
- end
- wakeup
- end
+def writes_pending(io)
+ @todo << lambda do
+ if monitor = @map[io]
+ monitor.interests = :rw
+ end
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
index f4d5cacc63..99731855fb 100644
--- a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
+++ b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -121,12 +121,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 16
- def initialize(logger, tags:)
- @logger = logger
- @tags = tags.flatten
- end
+def initialize(logger, tags:)
+ @logger = logger
+ @tags = tags.flatten
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -161,12 +161,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 21
- def add_tags(*tags)
- @tags += tags.flatten
- @tags = @tags.uniq
- end
+def add_tags(*tags)
+ @tags += tags.flatten
+ @tags = @tags.uniq
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -197,16 +197,16 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 26
- def tag(logger, &block)
- if logger.respond_to?(:tagged)
- current_tags = tags - logger.formatter.current_tags
- logger.tagged(*current_tags, &block)
- else
- yield
- end
- end
+def tag(logger, &block)
+ if logger.respond_to?(:tagged)
+ current_tags = tags - logger.formatter.current_tags
+ logger.tagged(*current_tags, &block)
+ else
+ yield
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,11 +240,11 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 42
- def log(type, message, &block) # :doc:
- tag(@logger) { @logger.send type, message, &block }
- end
+def log(type, message, &block) # :doc:
+ tag(@logger) { @logger.send type, message, &block }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase.html b/src/classes/ActionCable/Connection/TestCase.html
index 948378e491..39bc5cb056 100644
--- a/src/classes/ActionCable/Connection/TestCase.html
+++ b/src/classes/ActionCable/Connection/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior.html b/src/classes/ActionCable/Connection/TestCase/Behavior.html
index b87870becd..4ee0debbea 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -163,19 +163,19 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 192
- def connect(path = ActionCable.server.config.mount_path, **request_params)
- path ||= DEFAULT_PATH
+def connect(path = ActionCable.server.config.mount_path, **request_params)
+ path ||= DEFAULT_PATH
- connection = self.class.connection_class.allocate
- connection.singleton_class.include(TestConnection)
- connection.send(:initialize, build_test_request(path, **request_params))
- connection.connect if connection.respond_to?(:connect)
+ connection = self.class.connection_class.allocate
+ connection.singleton_class.include(TestConnection)
+ connection.send(:initialize, build_test_request(path, **request_params))
+ connection.connect if connection.respond_to?(:connect)
- # Only set instance variable if connected successfully
- @connection = connection
- end
+ # Only set instance variable if connected successfully
+ @connection = connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -206,11 +206,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 212
- def cookies
- @cookie_jar ||= TestCookieJar.new
- end
+def cookies
+ @cookie_jar ||= TestCookieJar.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -241,14 +241,14 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 205
- def disconnect
- raise "Must be connected!" if connection.nil?
+def disconnect
+ raise "Must be connected!" if connection.nil?
- connection.disconnect if connection.respond_to?(:disconnect)
- @connection = nil
- end
+ connection.disconnect if connection.respond_to?(:disconnect)
+ @connection = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
index 63444f4b27..99fc0e3f6f 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 167
- def connection_class
- if connection = self._connection_class
- connection
- else
- tests determine_default_connection(name)
- end
- end
+def connection_class
+ if connection = self._connection_class
+ connection
+ else
+ tests determine_default_connection(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 175
- def determine_default_connection(name)
- connection = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Connection::Base
- end
- raise NonInferrableConnectionError.new(name) if connection.nil?
- connection
- end
+def determine_default_connection(name)
+ connection = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Connection::Base
+ end
+ raise NonInferrableConnectionError.new(name) if connection.nil?
+ connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 26
- def render(*args, &block)
- options = _normalize_render(*args, &block)
- rendered_body = render_to_body(options)
- if options[:html]
- _set_html_content_type
- else
- _set_rendered_content_type rendered_format
- end
- _set_vary_header
- self.response_body = rendered_body
- end# File actionpack/lib/abstract_controller/rendering.rb, line 50
- def render_to_body(options = {})
- end
+def render_to_body(options = {})
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -218,12 +218,12 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 44
- def render_to_string(*args, &block)
- options = _normalize_render(*args, &block)
- render_to_body(options)
- end
+def render_to_string(*args, &block)
+ options = _normalize_render(*args, &block)
+ render_to_body(options)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -254,11 +254,11 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 54
- def rendered_format
- Mime[:text]
- end
+def rendered_format
+ Mime[:text]
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -289,15 +289,15 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 62
- def view_assigns
- variables = instance_variables - _protected_ivars
+def view_assigns
+ variables = instance_variables - _protected_ivars
- variables.each_with_object({}) do |name, hash|
- hash[name.slice(1, name.length)] = instance_variable_get(name)
- end
- end
+ variables.each_with_object({}) do |name, hash|
+ hash[name.slice(1, name.length)] = instance_variable_get(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -331,21 +331,21 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 73
- def _normalize_args(action = nil, options = {}) # :doc:
- if action.respond_to?(:permitted?)
- if action.permitted?
- action
- else
- raise ArgumentError, "render parameters are not permitted"
- end
- elsif action.is_a?(Hash)
- action
- else
- options
- end
- end
+def _normalize_args(action = nil, options = {}) # :doc:
+ if action.respond_to?(:permitted?)
+ if action.permitted?
+ action
+ else
+ raise ArgumentError, "render parameters are not permitted"
+ end
+ elsif action.is_a?(Hash)
+ action
+ else
+ options
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -376,11 +376,11 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 88
- def _normalize_options(options) # :doc:
- options
- end
+def _normalize_options(options) # :doc:
+ options
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -411,11 +411,11 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 93
- def _process_options(options) # :doc:
- options
- end
+def _process_options(options) # :doc:
+ options
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Translation.html b/src/classes/AbstractController/Translation.html
index e429818684..446e93e2cd 100644
--- a/src/classes/AbstractController/Translation.html
+++ b/src/classes/AbstractController/Translation.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -123,11 +123,11 @@
# File actionpack/lib/abstract_controller/translation.rb, line 37
- def localize(object, **options)
- I18n.localize(object, **options)
- end
+def localize(object, **options)
+ I18n.localize(object, **options)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -189,25 +189,25 @@
# File actionpack/lib/abstract_controller/translation.rb, line 17
- def translate(key, **options)
- if key&.start_with?(".")
- path = controller_path.tr("/", ".")
- defaults = [:"#{path}#{key}"]
- defaults << options[:default] if options[:default]
- options[:default] = defaults.flatten
- key = "#{path}.#{action_name}#{key}"
- end
-
- if options[:default] && ActiveSupport::HtmlSafeTranslation.html_safe_translation_key?(key)
- options[:default] = Array(options[:default]).map do |value|
- value.is_a?(String) ? ERB::Util.html_escape(value) : value
- end
- end
-
- ActiveSupport::HtmlSafeTranslation.translate(key, **options)
- end
+def translate(key, **options)
+ if key&.start_with?(".")
+ path = controller_path.tr("/", ".")
+ defaults = [:"#{path}#{key}"]
+ defaults << options[:default] if options[:default]
+ options[:default] = defaults.flatten
+ key = "#{path}.#{action_name}#{key}"
+ end
+
+ if options[:default] && ActiveSupport::HtmlSafeTranslation.html_safe_translation_key?(key)
+ options[:default] = Array(options[:default]).map do |value|
+ value.is_a?(String) ? ERB::Util.html_escape(value) : value
+ end
+ end
+
+ ActiveSupport::HtmlSafeTranslation.translate(key, **options)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/UrlFor.html b/src/classes/AbstractController/UrlFor.html
index 8d49da9f5c..bd5d0224eb 100644
--- a/src/classes/AbstractController/UrlFor.html
+++ b/src/classes/AbstractController/UrlFor.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -119,12 +119,12 @@
# File actionpack/lib/abstract_controller/url_for.rb, line 18
- def _routes
- raise "In order to use #url_for, you must include routing helpers explicitly. " \
- "For instance, `include Rails.application.routes.url_helpers`."
- end
+def _routes
+ raise "In order to use #url_for, you must include routing helpers explicitly. " \
+ "For instance, `include Rails.application.routes.url_helpers`."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/UrlFor/ClassMethods.html b/src/classes/AbstractController/UrlFor/ClassMethods.html
index cd0e5e9509..e4471b2d66 100644
--- a/src/classes/AbstractController/UrlFor/ClassMethods.html
+++ b/src/classes/AbstractController/UrlFor/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actionpack/lib/abstract_controller/url_for.rb, line 24
- def _routes
- nil
- end
+def _routes
+ nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -121,15 +121,15 @@
# File actionpack/lib/abstract_controller/url_for.rb, line 28
- def action_methods
- @action_methods ||= if _routes
- super - _routes.named_routes.helper_names
- else
- super
- end
- end
+def action_methods
+ @action_methods ||= if _routes
+ super - _routes.named_routes.helper_names
+ else
+ super
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable.html b/src/classes/ActionCable.html
index 4951b5813f..5e5f891dce 100644
--- a/src/classes/ActionCable.html
+++ b/src/classes/ActionCable.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -267,11 +267,11 @@
# File actioncable/lib/action_cable/gem_version.rb, line 7
- def self.gem_version
- Gem::Version.new VERSION::STRING
- end
+def self.gem_version
+ Gem::Version.new VERSION::STRING
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -302,11 +302,11 @@
# File actioncable/lib/action_cable/version.rb, line 9
- def self.version
- gem_version
- end
+def self.version
+ gem_version
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -341,11 +341,11 @@
# File actioncable/lib/action_cable.rb, line 77
- def server
- @server ||= ActionCable::Server::Base.new
- end
+def server
+@server ||= ActionCable::Server::Base.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel.html b/src/classes/ActionCable/Channel.html
index 38c886ddbc..06b36ff362 100644
--- a/src/classes/ActionCable/Channel.html
+++ b/src/classes/ActionCable/Channel.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Channel/Base.html b/src/classes/ActionCable/Channel/Base.html
index bc63a53315..32e2ff9b70 100644
--- a/src/classes/ActionCable/Channel/Base.html
+++ b/src/classes/ActionCable/Channel/Base.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -82,7 +82,7 @@ Action process
end
-
In this example, the subscribed and unsubscribed methods are not callable methods, as they were already declared in ActionCable::Channel::Base, but #appear and #away are. #generate_connection_token is also not callable, since it’s a private method. You’ll see that appear accepts a data parameter, which it then uses as part of its model call. #away does not, since it’s simply a trigger action.
+In this example, the subscribed and unsubscribed methods are not callable methods, as they were already declared in ActionCable::Channel::Base, but appear and away are. generate_connection_token is also not callable, since it’s a private method. You’ll see that appear accepts a data parameter, which it then uses as part of its model call. away does not, since it’s simply a trigger action.
Also note that in this example, current_user is available because it was marked as an identifying attribute on the connection. All such identifiers will automatically create a delegation method of the same name on the channel instance.
@@ -307,19 +307,22 @@ Returns
# File actioncable/lib/action_cable/channel/base.rb, line 128
- def action_methods
- @action_methods ||= begin
- # All public instance methods of this class, including ancestors
- methods = (public_instance_methods(true) -
- # Except for public instance methods of Base and its ancestors
- ActionCable::Channel::Base.public_instance_methods(true) +
- # Be sure to include shadowed public instance methods of this class
- public_instance_methods(false)).uniq.map(&:to_s)
- methods.to_set
- end
- end
-
- 🔎 See on GitHub
+def action_methods
+ @action_methods ||= begin
+ # All public instance methods of this class, including ancestors
+ methods = (public_instance_methods(true) -
+ # Except for public instance methods of Base and its ancestors
+ ActionCable::Channel::Base.public_instance_methods(true) +
+ # Be sure to include shadowed public instance methods of this class
+ public_instance_methods(false)).uniq
+
+ methods.reject! { |m| m.start_with?("_") }
+ methods.map!(&:name)
+ methods.to_set
+ end
+end
+
+ 🔎 See on GitHub
@@ -349,26 +352,26 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 155
- def initialize(connection, identifier, params = {})
- @connection = connection
- @identifier = identifier
- @params = params
+ # File actioncable/lib/action_cable/channel/base.rb, line 158
+def initialize(connection, identifier, params = {})
+ @connection = connection
+ @identifier = identifier
+ @params = params
- # When a channel is streaming via pubsub, we want to delay the confirmation
- # transmission until pubsub subscription is confirmed.
- #
- # The counter starts at 1 because it's awaiting a call to #subscribe_to_channel
- @defer_subscription_confirmation_counter = Concurrent::AtomicFixnum.new(1)
+ # When a channel is streaming via pubsub, we want to delay the confirmation
+ # transmission until pubsub subscription is confirmed.
+ #
+ # The counter starts at 1 because it's awaiting a call to #subscribe_to_channel
+ @defer_subscription_confirmation_counter = Concurrent::AtomicFixnum.new(1)
- @reject_subscription = nil
- @subscription_confirmation_sent = nil
- @unsubscribed = false
+ @reject_subscription = nil
+ @subscription_confirmation_sent = nil
+ @unsubscribed = false
- delegate_connection_identifiers
- end
+ delegate_connection_identifiers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -401,12 +404,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 144
- def clear_action_methods! # :doc:
- @action_methods = nil
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 147
+def clear_action_methods! # :doc:
+ @action_methods = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -436,13 +439,13 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 149
- def method_added(name) # :doc:
- super
- clear_action_methods!
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 152
+def method_added(name) # :doc:
+ super
+ clear_action_methods!
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -476,21 +479,21 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 176
- def perform_action(data)
- action = extract_action(data)
+ # File actioncable/lib/action_cable/channel/base.rb, line 179
+def perform_action(data)
+ action = extract_action(data)
- if processable_action?(action)
- payload = { channel_class: self.class.name, action: action, data: data }
- ActiveSupport::Notifications.instrument("perform_action.action_cable", payload) do
- dispatch_action(action, data)
- end
- else
- logger.error "Unable to process #{action_signature(action, data)}"
- end
- end
+ if processable_action?(action)
+ payload = { channel_class: self.class.name, action: action, data: data }
+ ActiveSupport::Notifications.instrument("perform_action.action_cable", payload) do
+ dispatch_action(action, data)
+ end
+ else
+ logger.error "Unable to process #{action_signature(action, data)}"
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -520,17 +523,17 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 191
- def subscribe_to_channel
- run_callbacks :subscribe do
- subscribed
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 194
+def subscribe_to_channel
+ run_callbacks :subscribe do
+ subscribed
+ end
- reject_subscription if subscription_rejected?
- ensure_confirmation_sent
- end
+ reject_subscription if subscription_rejected?
+ ensure_confirmation_sent
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -563,12 +566,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 250
- def defer_subscription_confirmation! # :doc:
- @defer_subscription_confirmation_counter.increment
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 253
+def defer_subscription_confirmation! # :doc:
+ @defer_subscription_confirmation_counter.increment
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -598,12 +601,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 254
- def defer_subscription_confirmation? # :doc:
- @defer_subscription_confirmation_counter.value > 0
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 257
+def defer_subscription_confirmation? # :doc:
+ @defer_subscription_confirmation_counter.value > 0
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -633,14 +636,14 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 244
- def ensure_confirmation_sent # :doc:
- return if subscription_rejected?
- @defer_subscription_confirmation_counter.decrement
- transmit_subscription_confirmation unless defer_subscription_confirmation?
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 247
+def ensure_confirmation_sent # :doc:
+ return if subscription_rejected?
+ @defer_subscription_confirmation_counter.decrement
+ transmit_subscription_confirmation unless defer_subscription_confirmation?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -670,12 +673,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 262
- def reject # :doc:
- @reject_subscription = true
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 265
+def reject # :doc:
+ @reject_subscription = true
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -705,12 +708,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 218
- def subscribed # :doc:
- # Override in subclasses
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 221
+def subscribed # :doc:
+ # Override in subclasses
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -740,12 +743,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 258
- def subscription_confirmation_sent? # :doc:
- @subscription_confirmation_sent
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 261
+def subscription_confirmation_sent? # :doc:
+ @subscription_confirmation_sent
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -775,12 +778,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 266
- def subscription_rejected? # :doc:
- @reject_subscription
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 269
+def subscription_rejected? # :doc:
+ @reject_subscription
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -810,21 +813,21 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 231
- def transmit(data, via: nil) # :doc:
- logger.debug do
- status = "#{self.class.name} transmitting #{data.inspect.truncate(300)}"
- status += " (via #{via})" if via
- status
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 234
+def transmit(data, via: nil) # :doc:
+ logger.debug do
+ status = "#{self.class.name} transmitting #{data.inspect.truncate(300)}"
+ status += " (via #{via})" if via
+ status
+ end
- payload = { channel_class: self.class.name, data: data, via: via }
- ActiveSupport::Notifications.instrument("transmit.action_cable", payload) do
- connection.transmit identifier: @identifier, message: data
- end
- end
+ payload = { channel_class: self.class.name, data: data, via: via }
+ ActiveSupport::Notifications.instrument("transmit.action_cable", payload) do
+ connection.transmit identifier: @identifier, message: data
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -854,12 +857,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 224
- def unsubscribed # :doc:
- # Override in subclasses
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 227
+def unsubscribed # :doc:
+ # Override in subclasses
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Broadcasting.html b/src/classes/ActionCable/Channel/Broadcasting.html
index bb71b89445..7fecc3f6b8 100644
--- a/src/classes/ActionCable/Channel/Broadcasting.html
+++ b/src/classes/ActionCable/Channel/Broadcasting.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -99,11 +99,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 45
- def broadcast_to(model, message)
- self.class.broadcast_to(model, message)
- end
+def broadcast_to(model, message)
+ self.class.broadcast_to(model, message)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -134,11 +134,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 41
- def broadcasting_for(model)
- self.class.broadcasting_for(model)
- end
+def broadcasting_for(model)
+ self.class.broadcasting_for(model)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html b/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
index 684bccb1ab..432bb5d74f 100644
--- a/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 14
- def broadcast_to(broadcastables, message)
- ActionCable.server.broadcast(broadcasting_for(broadcastables), message)
- end
+def broadcast_to(broadcastables, message)
+ ActionCable.server.broadcast(broadcasting_for(broadcastables), message)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -126,11 +126,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 24
- def broadcasting_for(broadcastables)
- serialize_broadcasting([ channel_name ] + Array(broadcastables))
- end
+def broadcasting_for(broadcastables)
+ serialize_broadcasting([ channel_name ] + Array(broadcastables))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Callbacks.html b/src/classes/ActionCable/Channel/Callbacks.html
index 076bdbc8fa..64985186c3 100644
--- a/src/classes/ActionCable/Channel/Callbacks.html
+++ b/src/classes/ActionCable/Channel/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html b/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
index 6ee4317311..7949b5fdf6 100644
--- a/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -111,11 +111,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 60
- def after_subscribe(*methods, &block)
- set_callback(:subscribe, :after, *methods, &block)
- end
+def after_subscribe(*methods, &block)
+ set_callback(:subscribe, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -150,11 +150,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 69
- def after_unsubscribe(*methods, &block)
- set_callback(:unsubscribe, :after, *methods, &block)
- end
+def after_unsubscribe(*methods, &block)
+ set_callback(:unsubscribe, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -185,11 +185,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 48
- def before_subscribe(*methods, &block)
- set_callback(:subscribe, :before, *methods, &block)
- end
+def before_subscribe(*methods, &block)
+ set_callback(:subscribe, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -220,11 +220,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 65
- def before_unsubscribe(*methods, &block)
- set_callback(:unsubscribe, :before, *methods, &block)
- end
+def before_unsubscribe(*methods, &block)
+ set_callback(:unsubscribe, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/ChannelStub.html b/src/classes/ActionCable/Channel/ChannelStub.html
index 9db98daac2..d004896dc5 100644
--- a/src/classes/ActionCable/Channel/ChannelStub.html
+++ b/src/classes/ActionCable/Channel/ChannelStub.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -25,7 +25,7 @@
Action Cable Channel Stub
-
Stub stream_from to track streams for the channel. Add public aliases for subscription_confirmation_sent? and subscription_rejected?.
+Stub stream_from to track streams for the channel. Add public aliases for subscription_confirmation_sent? and subscription_rejected?.
@@ -114,11 +114,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 25
- def confirmed?
- subscription_confirmation_sent?
- end
+def confirmed?
+ subscription_confirmation_sent?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -149,11 +149,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 29
- def rejected?
- subscription_rejected?
- end
+def rejected?
+ subscription_rejected?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -188,9 +188,9 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 46
- def start_periodic_timers; end
+def start_periodic_timers; end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -221,11 +221,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 37
- def stop_all_streams
- @_streams = []
- end
+def stop_all_streams
+ @_streams = []
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -281,11 +281,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 33
- def stream_from(broadcasting, *)
- streams << broadcasting
- end
+def stream_from(broadcasting, *)
+ streams << broadcasting
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -316,11 +316,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 41
- def streams
- @_streams ||= []
- end
+def streams
+ @_streams ||= []
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/ConnectionStub.html b/src/classes/ActionCable/Channel/ConnectionStub.html
index 62c52b567f..0fdc0d8690 100644
--- a/src/classes/ActionCable/Channel/ConnectionStub.html
+++ b/src/classes/ActionCable/Channel/ConnectionStub.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -141,20 +141,20 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 55
- def initialize(identifiers = {})
- @server = ActionCable.server
- @transmissions = []
-
- identifiers.each do |identifier, val|
- define_singleton_method(identifier) { val }
- end
-
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @identifiers = identifiers.keys
- @logger = ActiveSupport::TaggedLogging.new ActiveSupport::Logger.new(StringIO.new)
- end
+def initialize(identifiers = {})
+ @server = ActionCable.server
+ @transmissions = []
+
+ identifiers.each do |identifier, val|
+ define_singleton_method(identifier) { val }
+ end
+
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @identifiers = identifiers.keys
+ @logger = ActiveSupport::TaggedLogging.new ActiveSupport::Logger.new(StringIO.new)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -189,11 +189,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 72
- def connection_identifier
- @connection_identifier ||= connection_gid(identifiers.filter_map { |id| send(id.to_sym) if id })
- end
+def connection_identifier
+ @connection_identifier ||= connection_gid(identifiers.filter_map { |id| send(id.to_sym) if id })
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -224,11 +224,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 68
- def transmit(cable_message)
- transmissions << cable_message.with_indifferent_access
- end
+def transmit(cable_message)
+ transmissions << cable_message.with_indifferent_access
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Naming.html b/src/classes/ActionCable/Channel/Naming.html
index 84bfc0232c..db2aa18589 100644
--- a/src/classes/ActionCable/Channel/Naming.html
+++ b/src/classes/ActionCable/Channel/Naming.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,11 +95,11 @@
# File actioncable/lib/action_cable/channel/naming.rb, line 23
- def channel_name
- self.class.channel_name
- end
+def channel_name
+ self.class.channel_name
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Naming/ClassMethods.html b/src/classes/ActionCable/Channel/Naming/ClassMethods.html
index b847309f12..e99c0744a7 100644
--- a/src/classes/ActionCable/Channel/Naming/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Naming/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -66,7 +66,7 @@
- Returns the name of the channel, underscored, without the Channel ending. If the channel is in a namespace, then the namespaces are represented by single colon separators in the channel name.
+ Returns the name of the channel, underscored, without the Channel ending. If the channel is in a namespace, then the namespaces are represented by single colon separators in the channel name.
ChatChannel.channel_name # => 'chat'
Chats::AppearancesChannel.channel_name # => 'chats:appearances'
@@ -87,11 +87,11 @@
# File actioncable/lib/action_cable/channel/naming.rb, line 18
- def channel_name
- @channel_name ||= name.delete_suffix("Channel").gsub("::", ":").underscore
- end
+def channel_name
+ @channel_name ||= name.delete_suffix("Channel").gsub("::", ":").underscore
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/NonInferrableChannelError.html b/src/classes/ActionCable/Channel/NonInferrableChannelError.html
index 034c36b135..1eac81cbd2 100644
--- a/src/classes/ActionCable/Channel/NonInferrableChannelError.html
+++ b/src/classes/ActionCable/Channel/NonInferrableChannelError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 13
- def initialize(name)
- super "Unable to determine the channel to test from #{name}. " +
- "You'll need to specify it using `tests YourChannel` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the channel to test from #{name}. " +
+ "You'll need to specify it using `tests YourChannel` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/PeriodicTimers.html b/src/classes/ActionCable/Channel/PeriodicTimers.html
index 88facef675..561da6e0dd 100644
--- a/src/classes/ActionCable/Channel/PeriodicTimers.html
+++ b/src/classes/ActionCable/Channel/PeriodicTimers.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html b/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
index 233865e2e3..a694f6de16 100644
--- a/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -91,30 +91,30 @@
# File actioncable/lib/action_cable/channel/periodic_timers.rb, line 31
- def periodically(callback_or_method_name = nil, every:, &block)
- callback =
- if block_given?
- raise ArgumentError, "Pass a block or provide a callback arg, not both" if callback_or_method_name
- block
- else
- case callback_or_method_name
- when Proc
- callback_or_method_name
- when Symbol
- -> { __send__ callback_or_method_name }
- else
- raise ArgumentError, "Expected a Symbol method name or a Proc, got #{callback_or_method_name.inspect}"
- end
- end
-
- unless every.kind_of?(Numeric) && every > 0
- raise ArgumentError, "Expected every: to be a positive number of seconds, got #{every.inspect}"
- end
-
- self.periodic_timers += [[ callback, every: every ]]
- end
+def periodically(callback_or_method_name = nil, every:, &block)
+ callback =
+ if block_given?
+ raise ArgumentError, "Pass a block or provide a callback arg, not both" if callback_or_method_name
+ block
+ else
+ case callback_or_method_name
+ when Proc
+ callback_or_method_name
+ when Symbol
+ -> { __send__ callback_or_method_name }
+ else
+ raise ArgumentError, "Expected a Symbol method name or a Proc, got #{callback_or_method_name.inspect}"
+ end
+ end
+
+ unless every.kind_of?(Numeric) && every > 0
+ raise ArgumentError, "Expected every: to be a positive number of seconds, got #{every.inspect}"
+ end
+
+ self.periodic_timers += [[ callback, every: every ]]
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Streams.html b/src/classes/ActionCable/Channel/Streams.html
index 0967feb616..a2e686a3e9 100644
--- a/src/classes/ActionCable/Channel/Streams.html
+++ b/src/classes/ActionCable/Channel/Streams.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -167,14 +167,14 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 137
- def stop_all_streams
- streams.each do |broadcasting, callback|
- pubsub.unsubscribe broadcasting, callback
- logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
- end.clear
- end
+def stop_all_streams
+ streams.each do |broadcasting, callback|
+ pubsub.unsubscribe broadcasting, callback
+ logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
+ end.clear
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -205,11 +205,11 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 132
- def stop_stream_for(model)
- stop_stream_from(broadcasting_for(model))
- end
+def stop_stream_for(model)
+ stop_stream_from(broadcasting_for(model))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,15 +240,15 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 123
- def stop_stream_from(broadcasting)
- callback = streams.delete(broadcasting)
- if callback
- pubsub.unsubscribe(broadcasting, callback)
- logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
- end
- end
+def stop_stream_from(broadcasting)
+ callback = streams.delete(broadcasting)
+ if callback
+ pubsub.unsubscribe(broadcasting, callback)
+ logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -281,11 +281,11 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 118
- def stream_for(broadcastables, callback = nil, coder: nil, &block)
- stream_from(broadcasting_for(broadcastables), callback || block, coder: coder)
- end
+def stream_for(broadcastables, callback = nil, coder: nil, &block)
+ stream_from(broadcasting_for(broadcastables), callback || block, coder: coder)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -316,28 +316,28 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 90
- def stream_from(broadcasting, callback = nil, coder: nil, &block)
- return if unsubscribed?
-
- broadcasting = String(broadcasting)
-
- # Don't send the confirmation until pubsub#subscribe is successful
- defer_subscription_confirmation!
-
- # Build a stream handler by wrapping the user-provided callback with a decoder
- # or defaulting to a JSON-decoding retransmitter.
- handler = worker_pool_stream_handler(broadcasting, callback || block, coder: coder)
- streams[broadcasting] = handler
-
- connection.server.event_loop.post do
- pubsub.subscribe(broadcasting, handler, lambda do
- ensure_confirmation_sent
- logger.info "#{self.class.name} is streaming from #{broadcasting}"
- end)
- end
- end
+def stream_from(broadcasting, callback = nil, coder: nil, &block)
+ return if unsubscribed?
+
+ broadcasting = String(broadcasting)
+
+ # Don't send the confirmation until pubsub#subscribe is successful
+ defer_subscription_confirmation!
+
+ # Build a stream handler by wrapping the user-provided callback with a decoder
+ # or defaulting to a JSON-decoding retransmitter.
+ handler = worker_pool_stream_handler(broadcasting, callback || block, coder: coder)
+ streams[broadcasting] = handler
+
+ connection.server.event_loop.post do
+ pubsub.subscribe(broadcasting, handler, lambda do
+ ensure_confirmation_sent
+ logger.info "#{self.class.name} is streaming from #{broadcasting}"
+ end)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -368,15 +368,15 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 146
- def stream_or_reject_for(model)
- if model
- stream_for model
- else
- reject
- end
- end
+def stream_or_reject_for(model)
+ if model
+ stream_for model
+ else
+ reject
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase.html b/src/classes/ActionCable/Channel/TestCase.html
index 08fb28c0cf..6317ff44d0 100644
--- a/src/classes/ActionCable/Channel/TestCase.html
+++ b/src/classes/ActionCable/Channel/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior.html b/src/classes/ActionCable/Channel/TestCase/Behavior.html
index b5f3a5cbb7..5a8ea0fd78 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -196,11 +196,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 282
- def assert_broadcast_on(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcast_on(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -231,11 +231,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 278
- def assert_broadcasts(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcasts(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,11 +272,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 326
- def assert_has_no_stream(stream)
- assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
- end
+def assert_has_no_stream(stream)
+ assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -313,11 +313,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 337
- def assert_has_no_stream_for(object)
- assert_has_no_stream(broadcasting_for(object))
- end
+def assert_has_no_stream_for(object)
+ assert_has_no_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -354,11 +354,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 304
- def assert_has_stream(stream)
- assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
- end
+def assert_has_stream(stream)
+ assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -395,11 +395,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 315
- def assert_has_stream_for(object)
- assert_has_stream(broadcasting_for(object))
- end
+def assert_has_stream_for(object)
+ assert_has_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -436,11 +436,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 293
- def assert_no_streams
- assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
- end
+def assert_no_streams
+ assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -473,12 +473,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 266
- def perform(action, data = {})
- check_subscribed!
- subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
- end
+def perform(action, data = {})
+ check_subscribed!
+ subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -516,11 +516,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 243
- def stub_connection(identifiers = {})
- @connection = ConnectionStub.new(identifiers)
- end
+def stub_connection(identifiers = {})
+ @connection = ConnectionStub.new(identifiers)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -551,15 +551,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 249
- def subscribe(params = {})
- @connection ||= stub_connection
- @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
- @subscription.singleton_class.include(ChannelStub)
- @subscription.subscribe_to_channel
- @subscription
- end
+def subscribe(params = {})
+ @connection ||= stub_connection
+ @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
+ @subscription.singleton_class.include(ChannelStub)
+ @subscription.subscribe_to_channel
+ @subscription
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -590,12 +590,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 272
- def transmissions
- # Return only directly sent message (via #transmit)
- connection.transmissions.filter_map { |data| data["message"] }
- end
+def transmissions
+ # Return only directly sent message (via #transmit)
+ connection.transmissions.filter_map { |data| data["message"] }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -626,12 +626,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 258
- def unsubscribe
- check_subscribed!
- subscription.unsubscribe_from_channel
- end
+def unsubscribe
+ check_subscribed!
+ subscription.unsubscribe_from_channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
index 48ea87f130..57efb4cdac 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 219
- def channel_class
- if channel = self._channel_class
- channel
- else
- tests determine_default_channel(name)
- end
- end
+def channel_class
+ if channel = self._channel_class
+ channel
+ else
+ tests determine_default_channel(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 227
- def determine_default_channel(name)
- channel = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Channel::Base
- end
- raise NonInferrableChannelError.new(name) if channel.nil?
- channel
- end
+def determine_default_channel(name)
+ channel = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Channel::Base
+ end
+ raise NonInferrableChannelError.new(name) if channel.nil?
+ channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 208
- def tests(channel)
- case channel
- when String, Symbol
- self._channel_class = channel.to_s.camelize.constantize
- when Module
- self._channel_class = channel
- else
- raise NonInferrableChannelError.new(channel)
- end
- end
+def tests(channel)
+ case channel
+ when String, Symbol
+ self._channel_class = channel.to_s.camelize.constantize
+ when Module
+ self._channel_class = channel
+ else
+ raise NonInferrableChannelError.new(channel)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection.html b/src/classes/ActionCable/Connection.html
index f832214f0e..7889c75284 100644
--- a/src/classes/ActionCable/Connection.html
+++ b/src/classes/ActionCable/Connection.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Assertions.html b/src/classes/ActionCable/Connection/Assertions.html
index 933ea80e4c..6b10ec5528 100644
--- a/src/classes/ActionCable/Connection/Assertions.html
+++ b/src/classes/ActionCable/Connection/Assertions.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 28
- def assert_reject_connection(&block)
- assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
- end
+def assert_reject_connection(&block)
+ assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization.html b/src/classes/ActionCable/Connection/Authorization.html
index feb855aa9e..baf85a37b3 100644
--- a/src/classes/ActionCable/Connection/Authorization.html
+++ b/src/classes/ActionCable/Connection/Authorization.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -97,12 +97,12 @@
# File actioncable/lib/action_cable/connection/authorization.rb, line 12
- def reject_unauthorized_connection
- logger.error "An unauthorized connection attempt was rejected"
- raise UnauthorizedError
- end
+def reject_unauthorized_connection
+ logger.error "An unauthorized connection attempt was rejected"
+ raise UnauthorizedError
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
index b63b282b0b..ff36299a28 100644
--- a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
+++ b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/Base.html b/src/classes/ActionCable/Connection/Base.html
index 36a2f1e1bb..ea0d62911f 100644
--- a/src/classes/ActionCable/Connection/Base.html
+++ b/src/classes/ActionCable/Connection/Base.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -255,21 +255,21 @@
# File actioncable/lib/action_cable/connection/base.rb, line 67
- def initialize(server, env, coder: ActiveSupport::JSON)
- @server, @env, @coder = server, env, coder
+def initialize(server, env, coder: ActiveSupport::JSON)
+ @server, @env, @coder = server, env, coder
- @worker_pool = server.worker_pool
- @logger = new_tagged_logger
+ @worker_pool = server.worker_pool
+ @logger = new_tagged_logger
- @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
+ @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
- @_internal_subscriptions = nil
- @started_at = Time.now
- end
+ @_internal_subscriptions = nil
+ @started_at = Time.now
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -304,11 +304,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 147
- def beat
- transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
- end
+def beat
+ transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -339,16 +339,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 120
- def close(reason: nil, reconnect: true)
- transmit(
- type: ActionCable::INTERNAL[:message_types][:disconnect],
- reason: reason,
- reconnect: reconnect
- )
- websocket.close
- end
+def close(reason: nil, reconnect: true)
+ transmit(
+ type: ActionCable::INTERNAL[:message_types][:disconnect],
+ reason: reason,
+ reconnect: reconnect
+ )
+ websocket.close
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -379,13 +379,13 @@
# File actioncable/lib/action_cable/connection/base.rb, line 109
- def handle_channel_command(payload)
- run_callbacks :command do
- subscriptions.execute_command payload
- end
- end
+def handle_channel_command(payload)
+ run_callbacks :command do
+ subscriptions.execute_command payload
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -416,11 +416,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 131
- def send_async(method, *arguments)
- worker_pool.async_invoke(self, method, *arguments)
- end
+def send_async(method, *arguments)
+ worker_pool.async_invoke(self, method, *arguments)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -451,16 +451,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 138
- def statistics
- {
- identifier: connection_identifier,
- started_at: @started_at,
- subscriptions: subscriptions.identifiers,
- request_id: @env["action_dispatch.request_id"]
- }
- end
+def statistics
+ {
+ identifier: connection_identifier,
+ started_at: @started_at,
+ subscriptions: subscriptions.identifiers,
+ request_id: @env["action_dispatch.request_id"]
+ }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -494,11 +494,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 187
- def cookies # :doc:
- request.cookie_jar
- end
+def cookies # :doc:
+ request.cookie_jar
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -529,14 +529,14 @@
# File actioncable/lib/action_cable/connection/base.rb, line 178
- def request # :doc:
- @request ||= begin
- environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
- ActionDispatch::Request.new(environment || env)
- end
- end
+def request # :doc:
+ @request ||= begin
+ environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
+ ActionDispatch::Request.new(environment || env)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Callbacks.html b/src/classes/ActionCable/Connection/Callbacks.html
index 818958bf81..d6504ca284 100644
--- a/src/classes/ActionCable/Connection/Callbacks.html
+++ b/src/classes/ActionCable/Connection/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
index 933056a029..6376d7195b 100644
--- a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,11 +90,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 47
- def after_command(*methods, &block)
- set_callback(:command, :after, *methods, &block)
- end
+def after_command(*methods, &block)
+ set_callback(:command, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -125,11 +125,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 51
- def around_command(*methods, &block)
- set_callback(:command, :around, *methods, &block)
- end
+def around_command(*methods, &block)
+ set_callback(:command, :around, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -160,11 +160,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 43
- def before_command(*methods, &block)
- set_callback(:command, :before, *methods, &block)
- end
+def before_command(*methods, &block)
+ set_callback(:command, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification.html b/src/classes/ActionCable/Connection/Identification.html
index f3dcea9bfc..063ca88999 100644
--- a/src/classes/ActionCable/Connection/Identification.html
+++ b/src/classes/ActionCable/Connection/Identification.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,15 +95,15 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 29
- def connection_identifier
- unless defined? @connection_identifier
- @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
- end
+def connection_identifier
+ unless defined? @connection_identifier
+ @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
+ end
- @connection_identifier
- end
+ @connection_identifier
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification/ClassMethods.html b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
index 324ded31f5..a3395ef8a3 100644
--- a/src/classes/ActionCable/Connection/Identification/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -84,12 +84,12 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 21
- def identified_by(*identifiers)
- Array(identifiers).each { |identifier| attr_accessor identifier }
- self.identifiers += identifiers
- end
+def identified_by(*identifiers)
+ Array(identifiers).each { |identifier| attr_accessor identifier }
+ self.identifiers += identifiers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/InternalChannel.html b/src/classes/ActionCable/Connection/InternalChannel.html
index 9b0144f690..cfdccceaf4 100644
--- a/src/classes/ActionCable/Connection/InternalChannel.html
+++ b/src/classes/ActionCable/Connection/InternalChannel.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
index 7167904452..bf0c696d62 100644
--- a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
+++ b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 15
- def initialize(name)
- super "Unable to determine the connection to test from #{name}. " +
- "You'll need to specify it using `tests YourConnection` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the connection to test from #{name}. " +
+ "You'll need to specify it using `tests YourConnection` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/StreamEventLoop.html b/src/classes/ActionCable/Connection/StreamEventLoop.html
index 2b71a213e3..f7c49354ef 100644
--- a/src/classes/ActionCable/Connection/StreamEventLoop.html
+++ b/src/classes/ActionCable/Connection/StreamEventLoop.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -111,16 +111,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 10
- def initialize
- @nio = @executor = @thread = nil
- @map = {}
- @stopping = false
- @todo = Queue.new
-
- @spawn_mutex = Mutex.new
- end
+def initialize
+ @nio = @executor = @thread = nil
+ @map = {}
+ @stopping = false
+ @todo = Queue.new
+
+ @spawn_mutex = Mutex.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -155,15 +155,15 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 30
- def attach(io, stream)
- @todo << lambda do
- @map[io] = @nio.register(io, :r)
- @map[io].value = stream
- end
- wakeup
- end
+def attach(io, stream)
+ @todo << lambda do
+ @map[io] = @nio.register(io, :r)
+ @map[io].value = stream
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -194,16 +194,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 38
- def detach(io, stream)
- @todo << lambda do
- @nio.deregister io
- @map.delete io
- io.close
- end
- wakeup
- end
+def detach(io, stream)
+ @todo << lambda do
+ @nio.deregister io
+ @map.delete io
+ io.close
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -234,14 +234,14 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 23
- def post(task = nil, &block)
- task ||= block
+def post(task = nil, &block)
+ task ||= block
- spawn
- @executor << task
- end
+ spawn
+ @executor << task
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,12 +272,12 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 56
- def stop
- @stopping = true
- wakeup if @nio
- end
+def stop
+ @stopping = true
+ wakeup if @nio
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -308,11 +308,11 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 19
- def timer(interval, &block)
- Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
- end
+def timer(interval, &block)
+ Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -343,16 +343,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 47
- def writes_pending(io)
- @todo << lambda do
- if monitor = @map[io]
- monitor.interests = :rw
- end
- end
- wakeup
- end
+def writes_pending(io)
+ @todo << lambda do
+ if monitor = @map[io]
+ monitor.interests = :rw
+ end
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
index f4d5cacc63..99731855fb 100644
--- a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
+++ b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -121,12 +121,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 16
- def initialize(logger, tags:)
- @logger = logger
- @tags = tags.flatten
- end
+def initialize(logger, tags:)
+ @logger = logger
+ @tags = tags.flatten
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -161,12 +161,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 21
- def add_tags(*tags)
- @tags += tags.flatten
- @tags = @tags.uniq
- end
+def add_tags(*tags)
+ @tags += tags.flatten
+ @tags = @tags.uniq
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -197,16 +197,16 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 26
- def tag(logger, &block)
- if logger.respond_to?(:tagged)
- current_tags = tags - logger.formatter.current_tags
- logger.tagged(*current_tags, &block)
- else
- yield
- end
- end
+def tag(logger, &block)
+ if logger.respond_to?(:tagged)
+ current_tags = tags - logger.formatter.current_tags
+ logger.tagged(*current_tags, &block)
+ else
+ yield
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,11 +240,11 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 42
- def log(type, message, &block) # :doc:
- tag(@logger) { @logger.send type, message, &block }
- end
+def log(type, message, &block) # :doc:
+ tag(@logger) { @logger.send type, message, &block }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase.html b/src/classes/ActionCable/Connection/TestCase.html
index 948378e491..39bc5cb056 100644
--- a/src/classes/ActionCable/Connection/TestCase.html
+++ b/src/classes/ActionCable/Connection/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior.html b/src/classes/ActionCable/Connection/TestCase/Behavior.html
index b87870becd..4ee0debbea 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -163,19 +163,19 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 192
- def connect(path = ActionCable.server.config.mount_path, **request_params)
- path ||= DEFAULT_PATH
+def connect(path = ActionCable.server.config.mount_path, **request_params)
+ path ||= DEFAULT_PATH
- connection = self.class.connection_class.allocate
- connection.singleton_class.include(TestConnection)
- connection.send(:initialize, build_test_request(path, **request_params))
- connection.connect if connection.respond_to?(:connect)
+ connection = self.class.connection_class.allocate
+ connection.singleton_class.include(TestConnection)
+ connection.send(:initialize, build_test_request(path, **request_params))
+ connection.connect if connection.respond_to?(:connect)
- # Only set instance variable if connected successfully
- @connection = connection
- end
+ # Only set instance variable if connected successfully
+ @connection = connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -206,11 +206,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 212
- def cookies
- @cookie_jar ||= TestCookieJar.new
- end
+def cookies
+ @cookie_jar ||= TestCookieJar.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -241,14 +241,14 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 205
- def disconnect
- raise "Must be connected!" if connection.nil?
+def disconnect
+ raise "Must be connected!" if connection.nil?
- connection.disconnect if connection.respond_to?(:disconnect)
- @connection = nil
- end
+ connection.disconnect if connection.respond_to?(:disconnect)
+ @connection = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
index 63444f4b27..99fc0e3f6f 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 167
- def connection_class
- if connection = self._connection_class
- connection
- else
- tests determine_default_connection(name)
- end
- end
+def connection_class
+ if connection = self._connection_class
+ connection
+ else
+ tests determine_default_connection(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 175
- def determine_default_connection(name)
- connection = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Connection::Base
- end
- raise NonInferrableConnectionError.new(name) if connection.nil?
- connection
- end
+def determine_default_connection(name)
+ connection = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Connection::Base
+ end
+ raise NonInferrableConnectionError.new(name) if connection.nil?
+ connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 44
- def render_to_string(*args, &block)
- options = _normalize_render(*args, &block)
- render_to_body(options)
- end# File actionpack/lib/abstract_controller/rendering.rb, line 54
- def rendered_format
- Mime[:text]
- end
+def rendered_format
+ Mime[:text]
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -289,15 +289,15 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 62
- def view_assigns
- variables = instance_variables - _protected_ivars
+def view_assigns
+ variables = instance_variables - _protected_ivars
- variables.each_with_object({}) do |name, hash|
- hash[name.slice(1, name.length)] = instance_variable_get(name)
- end
- end
+ variables.each_with_object({}) do |name, hash|
+ hash[name.slice(1, name.length)] = instance_variable_get(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -331,21 +331,21 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 73
- def _normalize_args(action = nil, options = {}) # :doc:
- if action.respond_to?(:permitted?)
- if action.permitted?
- action
- else
- raise ArgumentError, "render parameters are not permitted"
- end
- elsif action.is_a?(Hash)
- action
- else
- options
- end
- end
+def _normalize_args(action = nil, options = {}) # :doc:
+ if action.respond_to?(:permitted?)
+ if action.permitted?
+ action
+ else
+ raise ArgumentError, "render parameters are not permitted"
+ end
+ elsif action.is_a?(Hash)
+ action
+ else
+ options
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -376,11 +376,11 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 88
- def _normalize_options(options) # :doc:
- options
- end
+def _normalize_options(options) # :doc:
+ options
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -411,11 +411,11 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 93
- def _process_options(options) # :doc:
- options
- end
+def _process_options(options) # :doc:
+ options
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Translation.html b/src/classes/AbstractController/Translation.html
index e429818684..446e93e2cd 100644
--- a/src/classes/AbstractController/Translation.html
+++ b/src/classes/AbstractController/Translation.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -123,11 +123,11 @@
# File actionpack/lib/abstract_controller/translation.rb, line 37
- def localize(object, **options)
- I18n.localize(object, **options)
- end
+def localize(object, **options)
+ I18n.localize(object, **options)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -189,25 +189,25 @@
# File actionpack/lib/abstract_controller/translation.rb, line 17
- def translate(key, **options)
- if key&.start_with?(".")
- path = controller_path.tr("/", ".")
- defaults = [:"#{path}#{key}"]
- defaults << options[:default] if options[:default]
- options[:default] = defaults.flatten
- key = "#{path}.#{action_name}#{key}"
- end
-
- if options[:default] && ActiveSupport::HtmlSafeTranslation.html_safe_translation_key?(key)
- options[:default] = Array(options[:default]).map do |value|
- value.is_a?(String) ? ERB::Util.html_escape(value) : value
- end
- end
-
- ActiveSupport::HtmlSafeTranslation.translate(key, **options)
- end
+def translate(key, **options)
+ if key&.start_with?(".")
+ path = controller_path.tr("/", ".")
+ defaults = [:"#{path}#{key}"]
+ defaults << options[:default] if options[:default]
+ options[:default] = defaults.flatten
+ key = "#{path}.#{action_name}#{key}"
+ end
+
+ if options[:default] && ActiveSupport::HtmlSafeTranslation.html_safe_translation_key?(key)
+ options[:default] = Array(options[:default]).map do |value|
+ value.is_a?(String) ? ERB::Util.html_escape(value) : value
+ end
+ end
+
+ ActiveSupport::HtmlSafeTranslation.translate(key, **options)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/UrlFor.html b/src/classes/AbstractController/UrlFor.html
index 8d49da9f5c..bd5d0224eb 100644
--- a/src/classes/AbstractController/UrlFor.html
+++ b/src/classes/AbstractController/UrlFor.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -119,12 +119,12 @@
# File actionpack/lib/abstract_controller/url_for.rb, line 18
- def _routes
- raise "In order to use #url_for, you must include routing helpers explicitly. " \
- "For instance, `include Rails.application.routes.url_helpers`."
- end
+def _routes
+ raise "In order to use #url_for, you must include routing helpers explicitly. " \
+ "For instance, `include Rails.application.routes.url_helpers`."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/UrlFor/ClassMethods.html b/src/classes/AbstractController/UrlFor/ClassMethods.html
index cd0e5e9509..e4471b2d66 100644
--- a/src/classes/AbstractController/UrlFor/ClassMethods.html
+++ b/src/classes/AbstractController/UrlFor/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actionpack/lib/abstract_controller/url_for.rb, line 24
- def _routes
- nil
- end
+def _routes
+ nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -121,15 +121,15 @@
# File actionpack/lib/abstract_controller/url_for.rb, line 28
- def action_methods
- @action_methods ||= if _routes
- super - _routes.named_routes.helper_names
- else
- super
- end
- end
+def action_methods
+ @action_methods ||= if _routes
+ super - _routes.named_routes.helper_names
+ else
+ super
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable.html b/src/classes/ActionCable.html
index 4951b5813f..5e5f891dce 100644
--- a/src/classes/ActionCable.html
+++ b/src/classes/ActionCable.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -267,11 +267,11 @@
# File actioncable/lib/action_cable/gem_version.rb, line 7
- def self.gem_version
- Gem::Version.new VERSION::STRING
- end
+def self.gem_version
+ Gem::Version.new VERSION::STRING
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -302,11 +302,11 @@
# File actioncable/lib/action_cable/version.rb, line 9
- def self.version
- gem_version
- end
+def self.version
+ gem_version
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -341,11 +341,11 @@
# File actioncable/lib/action_cable.rb, line 77
- def server
- @server ||= ActionCable::Server::Base.new
- end
+def server
+@server ||= ActionCable::Server::Base.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel.html b/src/classes/ActionCable/Channel.html
index 38c886ddbc..06b36ff362 100644
--- a/src/classes/ActionCable/Channel.html
+++ b/src/classes/ActionCable/Channel.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Channel/Base.html b/src/classes/ActionCable/Channel/Base.html
index bc63a53315..32e2ff9b70 100644
--- a/src/classes/ActionCable/Channel/Base.html
+++ b/src/classes/ActionCable/Channel/Base.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -82,7 +82,7 @@ Action process
end
-
In this example, the subscribed and unsubscribed methods are not callable methods, as they were already declared in ActionCable::Channel::Base, but #appear and #away are. #generate_connection_token is also not callable, since it’s a private method. You’ll see that appear accepts a data parameter, which it then uses as part of its model call. #away does not, since it’s simply a trigger action.
+In this example, the subscribed and unsubscribed methods are not callable methods, as they were already declared in ActionCable::Channel::Base, but appear and away are. generate_connection_token is also not callable, since it’s a private method. You’ll see that appear accepts a data parameter, which it then uses as part of its model call. away does not, since it’s simply a trigger action.
Also note that in this example, current_user is available because it was marked as an identifying attribute on the connection. All such identifiers will automatically create a delegation method of the same name on the channel instance.
@@ -307,19 +307,22 @@ Returns
# File actioncable/lib/action_cable/channel/base.rb, line 128
- def action_methods
- @action_methods ||= begin
- # All public instance methods of this class, including ancestors
- methods = (public_instance_methods(true) -
- # Except for public instance methods of Base and its ancestors
- ActionCable::Channel::Base.public_instance_methods(true) +
- # Be sure to include shadowed public instance methods of this class
- public_instance_methods(false)).uniq.map(&:to_s)
- methods.to_set
- end
- end
-
- 🔎 See on GitHub
+def action_methods
+ @action_methods ||= begin
+ # All public instance methods of this class, including ancestors
+ methods = (public_instance_methods(true) -
+ # Except for public instance methods of Base and its ancestors
+ ActionCable::Channel::Base.public_instance_methods(true) +
+ # Be sure to include shadowed public instance methods of this class
+ public_instance_methods(false)).uniq
+
+ methods.reject! { |m| m.start_with?("_") }
+ methods.map!(&:name)
+ methods.to_set
+ end
+end
+
+ 🔎 See on GitHub
@@ -349,26 +352,26 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 155
- def initialize(connection, identifier, params = {})
- @connection = connection
- @identifier = identifier
- @params = params
+ # File actioncable/lib/action_cable/channel/base.rb, line 158
+def initialize(connection, identifier, params = {})
+ @connection = connection
+ @identifier = identifier
+ @params = params
- # When a channel is streaming via pubsub, we want to delay the confirmation
- # transmission until pubsub subscription is confirmed.
- #
- # The counter starts at 1 because it's awaiting a call to #subscribe_to_channel
- @defer_subscription_confirmation_counter = Concurrent::AtomicFixnum.new(1)
+ # When a channel is streaming via pubsub, we want to delay the confirmation
+ # transmission until pubsub subscription is confirmed.
+ #
+ # The counter starts at 1 because it's awaiting a call to #subscribe_to_channel
+ @defer_subscription_confirmation_counter = Concurrent::AtomicFixnum.new(1)
- @reject_subscription = nil
- @subscription_confirmation_sent = nil
- @unsubscribed = false
+ @reject_subscription = nil
+ @subscription_confirmation_sent = nil
+ @unsubscribed = false
- delegate_connection_identifiers
- end
+ delegate_connection_identifiers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -401,12 +404,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 144
- def clear_action_methods! # :doc:
- @action_methods = nil
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 147
+def clear_action_methods! # :doc:
+ @action_methods = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -436,13 +439,13 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 149
- def method_added(name) # :doc:
- super
- clear_action_methods!
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 152
+def method_added(name) # :doc:
+ super
+ clear_action_methods!
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -476,21 +479,21 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 176
- def perform_action(data)
- action = extract_action(data)
+ # File actioncable/lib/action_cable/channel/base.rb, line 179
+def perform_action(data)
+ action = extract_action(data)
- if processable_action?(action)
- payload = { channel_class: self.class.name, action: action, data: data }
- ActiveSupport::Notifications.instrument("perform_action.action_cable", payload) do
- dispatch_action(action, data)
- end
- else
- logger.error "Unable to process #{action_signature(action, data)}"
- end
- end
+ if processable_action?(action)
+ payload = { channel_class: self.class.name, action: action, data: data }
+ ActiveSupport::Notifications.instrument("perform_action.action_cable", payload) do
+ dispatch_action(action, data)
+ end
+ else
+ logger.error "Unable to process #{action_signature(action, data)}"
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -520,17 +523,17 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 191
- def subscribe_to_channel
- run_callbacks :subscribe do
- subscribed
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 194
+def subscribe_to_channel
+ run_callbacks :subscribe do
+ subscribed
+ end
- reject_subscription if subscription_rejected?
- ensure_confirmation_sent
- end
+ reject_subscription if subscription_rejected?
+ ensure_confirmation_sent
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -563,12 +566,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 250
- def defer_subscription_confirmation! # :doc:
- @defer_subscription_confirmation_counter.increment
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 253
+def defer_subscription_confirmation! # :doc:
+ @defer_subscription_confirmation_counter.increment
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -598,12 +601,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 254
- def defer_subscription_confirmation? # :doc:
- @defer_subscription_confirmation_counter.value > 0
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 257
+def defer_subscription_confirmation? # :doc:
+ @defer_subscription_confirmation_counter.value > 0
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -633,14 +636,14 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 244
- def ensure_confirmation_sent # :doc:
- return if subscription_rejected?
- @defer_subscription_confirmation_counter.decrement
- transmit_subscription_confirmation unless defer_subscription_confirmation?
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 247
+def ensure_confirmation_sent # :doc:
+ return if subscription_rejected?
+ @defer_subscription_confirmation_counter.decrement
+ transmit_subscription_confirmation unless defer_subscription_confirmation?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -670,12 +673,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 262
- def reject # :doc:
- @reject_subscription = true
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 265
+def reject # :doc:
+ @reject_subscription = true
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -705,12 +708,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 218
- def subscribed # :doc:
- # Override in subclasses
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 221
+def subscribed # :doc:
+ # Override in subclasses
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -740,12 +743,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 258
- def subscription_confirmation_sent? # :doc:
- @subscription_confirmation_sent
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 261
+def subscription_confirmation_sent? # :doc:
+ @subscription_confirmation_sent
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -775,12 +778,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 266
- def subscription_rejected? # :doc:
- @reject_subscription
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 269
+def subscription_rejected? # :doc:
+ @reject_subscription
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -810,21 +813,21 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 231
- def transmit(data, via: nil) # :doc:
- logger.debug do
- status = "#{self.class.name} transmitting #{data.inspect.truncate(300)}"
- status += " (via #{via})" if via
- status
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 234
+def transmit(data, via: nil) # :doc:
+ logger.debug do
+ status = "#{self.class.name} transmitting #{data.inspect.truncate(300)}"
+ status += " (via #{via})" if via
+ status
+ end
- payload = { channel_class: self.class.name, data: data, via: via }
- ActiveSupport::Notifications.instrument("transmit.action_cable", payload) do
- connection.transmit identifier: @identifier, message: data
- end
- end
+ payload = { channel_class: self.class.name, data: data, via: via }
+ ActiveSupport::Notifications.instrument("transmit.action_cable", payload) do
+ connection.transmit identifier: @identifier, message: data
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -854,12 +857,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 224
- def unsubscribed # :doc:
- # Override in subclasses
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 227
+def unsubscribed # :doc:
+ # Override in subclasses
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Broadcasting.html b/src/classes/ActionCable/Channel/Broadcasting.html
index bb71b89445..7fecc3f6b8 100644
--- a/src/classes/ActionCable/Channel/Broadcasting.html
+++ b/src/classes/ActionCable/Channel/Broadcasting.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -99,11 +99,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 45
- def broadcast_to(model, message)
- self.class.broadcast_to(model, message)
- end
+def broadcast_to(model, message)
+ self.class.broadcast_to(model, message)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -134,11 +134,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 41
- def broadcasting_for(model)
- self.class.broadcasting_for(model)
- end
+def broadcasting_for(model)
+ self.class.broadcasting_for(model)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html b/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
index 684bccb1ab..432bb5d74f 100644
--- a/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 14
- def broadcast_to(broadcastables, message)
- ActionCable.server.broadcast(broadcasting_for(broadcastables), message)
- end
+def broadcast_to(broadcastables, message)
+ ActionCable.server.broadcast(broadcasting_for(broadcastables), message)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -126,11 +126,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 24
- def broadcasting_for(broadcastables)
- serialize_broadcasting([ channel_name ] + Array(broadcastables))
- end
+def broadcasting_for(broadcastables)
+ serialize_broadcasting([ channel_name ] + Array(broadcastables))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Callbacks.html b/src/classes/ActionCable/Channel/Callbacks.html
index 076bdbc8fa..64985186c3 100644
--- a/src/classes/ActionCable/Channel/Callbacks.html
+++ b/src/classes/ActionCable/Channel/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html b/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
index 6ee4317311..7949b5fdf6 100644
--- a/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -111,11 +111,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 60
- def after_subscribe(*methods, &block)
- set_callback(:subscribe, :after, *methods, &block)
- end
+def after_subscribe(*methods, &block)
+ set_callback(:subscribe, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -150,11 +150,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 69
- def after_unsubscribe(*methods, &block)
- set_callback(:unsubscribe, :after, *methods, &block)
- end
+def after_unsubscribe(*methods, &block)
+ set_callback(:unsubscribe, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -185,11 +185,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 48
- def before_subscribe(*methods, &block)
- set_callback(:subscribe, :before, *methods, &block)
- end
+def before_subscribe(*methods, &block)
+ set_callback(:subscribe, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -220,11 +220,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 65
- def before_unsubscribe(*methods, &block)
- set_callback(:unsubscribe, :before, *methods, &block)
- end
+def before_unsubscribe(*methods, &block)
+ set_callback(:unsubscribe, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/ChannelStub.html b/src/classes/ActionCable/Channel/ChannelStub.html
index 9db98daac2..d004896dc5 100644
--- a/src/classes/ActionCable/Channel/ChannelStub.html
+++ b/src/classes/ActionCable/Channel/ChannelStub.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -25,7 +25,7 @@
Action Cable Channel Stub
-
Stub stream_from to track streams for the channel. Add public aliases for subscription_confirmation_sent? and subscription_rejected?.
+Stub stream_from to track streams for the channel. Add public aliases for subscription_confirmation_sent? and subscription_rejected?.
@@ -114,11 +114,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 25
- def confirmed?
- subscription_confirmation_sent?
- end
+def confirmed?
+ subscription_confirmation_sent?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -149,11 +149,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 29
- def rejected?
- subscription_rejected?
- end
+def rejected?
+ subscription_rejected?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -188,9 +188,9 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 46
- def start_periodic_timers; end
+def start_periodic_timers; end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -221,11 +221,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 37
- def stop_all_streams
- @_streams = []
- end
+def stop_all_streams
+ @_streams = []
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -281,11 +281,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 33
- def stream_from(broadcasting, *)
- streams << broadcasting
- end
+def stream_from(broadcasting, *)
+ streams << broadcasting
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -316,11 +316,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 41
- def streams
- @_streams ||= []
- end
+def streams
+ @_streams ||= []
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/ConnectionStub.html b/src/classes/ActionCable/Channel/ConnectionStub.html
index 62c52b567f..0fdc0d8690 100644
--- a/src/classes/ActionCable/Channel/ConnectionStub.html
+++ b/src/classes/ActionCable/Channel/ConnectionStub.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -141,20 +141,20 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 55
- def initialize(identifiers = {})
- @server = ActionCable.server
- @transmissions = []
-
- identifiers.each do |identifier, val|
- define_singleton_method(identifier) { val }
- end
-
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @identifiers = identifiers.keys
- @logger = ActiveSupport::TaggedLogging.new ActiveSupport::Logger.new(StringIO.new)
- end
+def initialize(identifiers = {})
+ @server = ActionCable.server
+ @transmissions = []
+
+ identifiers.each do |identifier, val|
+ define_singleton_method(identifier) { val }
+ end
+
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @identifiers = identifiers.keys
+ @logger = ActiveSupport::TaggedLogging.new ActiveSupport::Logger.new(StringIO.new)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -189,11 +189,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 72
- def connection_identifier
- @connection_identifier ||= connection_gid(identifiers.filter_map { |id| send(id.to_sym) if id })
- end
+def connection_identifier
+ @connection_identifier ||= connection_gid(identifiers.filter_map { |id| send(id.to_sym) if id })
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -224,11 +224,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 68
- def transmit(cable_message)
- transmissions << cable_message.with_indifferent_access
- end
+def transmit(cable_message)
+ transmissions << cable_message.with_indifferent_access
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Naming.html b/src/classes/ActionCable/Channel/Naming.html
index 84bfc0232c..db2aa18589 100644
--- a/src/classes/ActionCable/Channel/Naming.html
+++ b/src/classes/ActionCable/Channel/Naming.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,11 +95,11 @@
# File actioncable/lib/action_cable/channel/naming.rb, line 23
- def channel_name
- self.class.channel_name
- end
+def channel_name
+ self.class.channel_name
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Naming/ClassMethods.html b/src/classes/ActionCable/Channel/Naming/ClassMethods.html
index b847309f12..e99c0744a7 100644
--- a/src/classes/ActionCable/Channel/Naming/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Naming/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -66,7 +66,7 @@
- Returns the name of the channel, underscored, without the Channel ending. If the channel is in a namespace, then the namespaces are represented by single colon separators in the channel name.
+ Returns the name of the channel, underscored, without the Channel ending. If the channel is in a namespace, then the namespaces are represented by single colon separators in the channel name.
ChatChannel.channel_name # => 'chat'
Chats::AppearancesChannel.channel_name # => 'chats:appearances'
@@ -87,11 +87,11 @@
# File actioncable/lib/action_cable/channel/naming.rb, line 18
- def channel_name
- @channel_name ||= name.delete_suffix("Channel").gsub("::", ":").underscore
- end
+def channel_name
+ @channel_name ||= name.delete_suffix("Channel").gsub("::", ":").underscore
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/NonInferrableChannelError.html b/src/classes/ActionCable/Channel/NonInferrableChannelError.html
index 034c36b135..1eac81cbd2 100644
--- a/src/classes/ActionCable/Channel/NonInferrableChannelError.html
+++ b/src/classes/ActionCable/Channel/NonInferrableChannelError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 13
- def initialize(name)
- super "Unable to determine the channel to test from #{name}. " +
- "You'll need to specify it using `tests YourChannel` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the channel to test from #{name}. " +
+ "You'll need to specify it using `tests YourChannel` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/PeriodicTimers.html b/src/classes/ActionCable/Channel/PeriodicTimers.html
index 88facef675..561da6e0dd 100644
--- a/src/classes/ActionCable/Channel/PeriodicTimers.html
+++ b/src/classes/ActionCable/Channel/PeriodicTimers.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html b/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
index 233865e2e3..a694f6de16 100644
--- a/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -91,30 +91,30 @@
# File actioncable/lib/action_cable/channel/periodic_timers.rb, line 31
- def periodically(callback_or_method_name = nil, every:, &block)
- callback =
- if block_given?
- raise ArgumentError, "Pass a block or provide a callback arg, not both" if callback_or_method_name
- block
- else
- case callback_or_method_name
- when Proc
- callback_or_method_name
- when Symbol
- -> { __send__ callback_or_method_name }
- else
- raise ArgumentError, "Expected a Symbol method name or a Proc, got #{callback_or_method_name.inspect}"
- end
- end
-
- unless every.kind_of?(Numeric) && every > 0
- raise ArgumentError, "Expected every: to be a positive number of seconds, got #{every.inspect}"
- end
-
- self.periodic_timers += [[ callback, every: every ]]
- end
+def periodically(callback_or_method_name = nil, every:, &block)
+ callback =
+ if block_given?
+ raise ArgumentError, "Pass a block or provide a callback arg, not both" if callback_or_method_name
+ block
+ else
+ case callback_or_method_name
+ when Proc
+ callback_or_method_name
+ when Symbol
+ -> { __send__ callback_or_method_name }
+ else
+ raise ArgumentError, "Expected a Symbol method name or a Proc, got #{callback_or_method_name.inspect}"
+ end
+ end
+
+ unless every.kind_of?(Numeric) && every > 0
+ raise ArgumentError, "Expected every: to be a positive number of seconds, got #{every.inspect}"
+ end
+
+ self.periodic_timers += [[ callback, every: every ]]
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Streams.html b/src/classes/ActionCable/Channel/Streams.html
index 0967feb616..a2e686a3e9 100644
--- a/src/classes/ActionCable/Channel/Streams.html
+++ b/src/classes/ActionCable/Channel/Streams.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -167,14 +167,14 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 137
- def stop_all_streams
- streams.each do |broadcasting, callback|
- pubsub.unsubscribe broadcasting, callback
- logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
- end.clear
- end
+def stop_all_streams
+ streams.each do |broadcasting, callback|
+ pubsub.unsubscribe broadcasting, callback
+ logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
+ end.clear
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -205,11 +205,11 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 132
- def stop_stream_for(model)
- stop_stream_from(broadcasting_for(model))
- end
+def stop_stream_for(model)
+ stop_stream_from(broadcasting_for(model))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,15 +240,15 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 123
- def stop_stream_from(broadcasting)
- callback = streams.delete(broadcasting)
- if callback
- pubsub.unsubscribe(broadcasting, callback)
- logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
- end
- end
+def stop_stream_from(broadcasting)
+ callback = streams.delete(broadcasting)
+ if callback
+ pubsub.unsubscribe(broadcasting, callback)
+ logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -281,11 +281,11 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 118
- def stream_for(broadcastables, callback = nil, coder: nil, &block)
- stream_from(broadcasting_for(broadcastables), callback || block, coder: coder)
- end
+def stream_for(broadcastables, callback = nil, coder: nil, &block)
+ stream_from(broadcasting_for(broadcastables), callback || block, coder: coder)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -316,28 +316,28 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 90
- def stream_from(broadcasting, callback = nil, coder: nil, &block)
- return if unsubscribed?
-
- broadcasting = String(broadcasting)
-
- # Don't send the confirmation until pubsub#subscribe is successful
- defer_subscription_confirmation!
-
- # Build a stream handler by wrapping the user-provided callback with a decoder
- # or defaulting to a JSON-decoding retransmitter.
- handler = worker_pool_stream_handler(broadcasting, callback || block, coder: coder)
- streams[broadcasting] = handler
-
- connection.server.event_loop.post do
- pubsub.subscribe(broadcasting, handler, lambda do
- ensure_confirmation_sent
- logger.info "#{self.class.name} is streaming from #{broadcasting}"
- end)
- end
- end
+def stream_from(broadcasting, callback = nil, coder: nil, &block)
+ return if unsubscribed?
+
+ broadcasting = String(broadcasting)
+
+ # Don't send the confirmation until pubsub#subscribe is successful
+ defer_subscription_confirmation!
+
+ # Build a stream handler by wrapping the user-provided callback with a decoder
+ # or defaulting to a JSON-decoding retransmitter.
+ handler = worker_pool_stream_handler(broadcasting, callback || block, coder: coder)
+ streams[broadcasting] = handler
+
+ connection.server.event_loop.post do
+ pubsub.subscribe(broadcasting, handler, lambda do
+ ensure_confirmation_sent
+ logger.info "#{self.class.name} is streaming from #{broadcasting}"
+ end)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -368,15 +368,15 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 146
- def stream_or_reject_for(model)
- if model
- stream_for model
- else
- reject
- end
- end
+def stream_or_reject_for(model)
+ if model
+ stream_for model
+ else
+ reject
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase.html b/src/classes/ActionCable/Channel/TestCase.html
index 08fb28c0cf..6317ff44d0 100644
--- a/src/classes/ActionCable/Channel/TestCase.html
+++ b/src/classes/ActionCable/Channel/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior.html b/src/classes/ActionCable/Channel/TestCase/Behavior.html
index b5f3a5cbb7..5a8ea0fd78 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -196,11 +196,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 282
- def assert_broadcast_on(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcast_on(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -231,11 +231,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 278
- def assert_broadcasts(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcasts(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,11 +272,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 326
- def assert_has_no_stream(stream)
- assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
- end
+def assert_has_no_stream(stream)
+ assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -313,11 +313,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 337
- def assert_has_no_stream_for(object)
- assert_has_no_stream(broadcasting_for(object))
- end
+def assert_has_no_stream_for(object)
+ assert_has_no_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -354,11 +354,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 304
- def assert_has_stream(stream)
- assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
- end
+def assert_has_stream(stream)
+ assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -395,11 +395,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 315
- def assert_has_stream_for(object)
- assert_has_stream(broadcasting_for(object))
- end
+def assert_has_stream_for(object)
+ assert_has_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -436,11 +436,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 293
- def assert_no_streams
- assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
- end
+def assert_no_streams
+ assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -473,12 +473,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 266
- def perform(action, data = {})
- check_subscribed!
- subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
- end
+def perform(action, data = {})
+ check_subscribed!
+ subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -516,11 +516,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 243
- def stub_connection(identifiers = {})
- @connection = ConnectionStub.new(identifiers)
- end
+def stub_connection(identifiers = {})
+ @connection = ConnectionStub.new(identifiers)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -551,15 +551,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 249
- def subscribe(params = {})
- @connection ||= stub_connection
- @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
- @subscription.singleton_class.include(ChannelStub)
- @subscription.subscribe_to_channel
- @subscription
- end
+def subscribe(params = {})
+ @connection ||= stub_connection
+ @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
+ @subscription.singleton_class.include(ChannelStub)
+ @subscription.subscribe_to_channel
+ @subscription
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -590,12 +590,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 272
- def transmissions
- # Return only directly sent message (via #transmit)
- connection.transmissions.filter_map { |data| data["message"] }
- end
+def transmissions
+ # Return only directly sent message (via #transmit)
+ connection.transmissions.filter_map { |data| data["message"] }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -626,12 +626,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 258
- def unsubscribe
- check_subscribed!
- subscription.unsubscribe_from_channel
- end
+def unsubscribe
+ check_subscribed!
+ subscription.unsubscribe_from_channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
index 48ea87f130..57efb4cdac 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 219
- def channel_class
- if channel = self._channel_class
- channel
- else
- tests determine_default_channel(name)
- end
- end
+def channel_class
+ if channel = self._channel_class
+ channel
+ else
+ tests determine_default_channel(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 227
- def determine_default_channel(name)
- channel = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Channel::Base
- end
- raise NonInferrableChannelError.new(name) if channel.nil?
- channel
- end
+def determine_default_channel(name)
+ channel = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Channel::Base
+ end
+ raise NonInferrableChannelError.new(name) if channel.nil?
+ channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 208
- def tests(channel)
- case channel
- when String, Symbol
- self._channel_class = channel.to_s.camelize.constantize
- when Module
- self._channel_class = channel
- else
- raise NonInferrableChannelError.new(channel)
- end
- end
+def tests(channel)
+ case channel
+ when String, Symbol
+ self._channel_class = channel.to_s.camelize.constantize
+ when Module
+ self._channel_class = channel
+ else
+ raise NonInferrableChannelError.new(channel)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection.html b/src/classes/ActionCable/Connection.html
index f832214f0e..7889c75284 100644
--- a/src/classes/ActionCable/Connection.html
+++ b/src/classes/ActionCable/Connection.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Assertions.html b/src/classes/ActionCable/Connection/Assertions.html
index 933ea80e4c..6b10ec5528 100644
--- a/src/classes/ActionCable/Connection/Assertions.html
+++ b/src/classes/ActionCable/Connection/Assertions.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 28
- def assert_reject_connection(&block)
- assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
- end
+def assert_reject_connection(&block)
+ assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization.html b/src/classes/ActionCable/Connection/Authorization.html
index feb855aa9e..baf85a37b3 100644
--- a/src/classes/ActionCable/Connection/Authorization.html
+++ b/src/classes/ActionCable/Connection/Authorization.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -97,12 +97,12 @@
# File actioncable/lib/action_cable/connection/authorization.rb, line 12
- def reject_unauthorized_connection
- logger.error "An unauthorized connection attempt was rejected"
- raise UnauthorizedError
- end
+def reject_unauthorized_connection
+ logger.error "An unauthorized connection attempt was rejected"
+ raise UnauthorizedError
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
index b63b282b0b..ff36299a28 100644
--- a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
+++ b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/Base.html b/src/classes/ActionCable/Connection/Base.html
index 36a2f1e1bb..ea0d62911f 100644
--- a/src/classes/ActionCable/Connection/Base.html
+++ b/src/classes/ActionCable/Connection/Base.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -255,21 +255,21 @@
# File actioncable/lib/action_cable/connection/base.rb, line 67
- def initialize(server, env, coder: ActiveSupport::JSON)
- @server, @env, @coder = server, env, coder
+def initialize(server, env, coder: ActiveSupport::JSON)
+ @server, @env, @coder = server, env, coder
- @worker_pool = server.worker_pool
- @logger = new_tagged_logger
+ @worker_pool = server.worker_pool
+ @logger = new_tagged_logger
- @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
+ @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
- @_internal_subscriptions = nil
- @started_at = Time.now
- end
+ @_internal_subscriptions = nil
+ @started_at = Time.now
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -304,11 +304,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 147
- def beat
- transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
- end
+def beat
+ transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -339,16 +339,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 120
- def close(reason: nil, reconnect: true)
- transmit(
- type: ActionCable::INTERNAL[:message_types][:disconnect],
- reason: reason,
- reconnect: reconnect
- )
- websocket.close
- end
+def close(reason: nil, reconnect: true)
+ transmit(
+ type: ActionCable::INTERNAL[:message_types][:disconnect],
+ reason: reason,
+ reconnect: reconnect
+ )
+ websocket.close
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -379,13 +379,13 @@
# File actioncable/lib/action_cable/connection/base.rb, line 109
- def handle_channel_command(payload)
- run_callbacks :command do
- subscriptions.execute_command payload
- end
- end
+def handle_channel_command(payload)
+ run_callbacks :command do
+ subscriptions.execute_command payload
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -416,11 +416,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 131
- def send_async(method, *arguments)
- worker_pool.async_invoke(self, method, *arguments)
- end
+def send_async(method, *arguments)
+ worker_pool.async_invoke(self, method, *arguments)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -451,16 +451,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 138
- def statistics
- {
- identifier: connection_identifier,
- started_at: @started_at,
- subscriptions: subscriptions.identifiers,
- request_id: @env["action_dispatch.request_id"]
- }
- end
+def statistics
+ {
+ identifier: connection_identifier,
+ started_at: @started_at,
+ subscriptions: subscriptions.identifiers,
+ request_id: @env["action_dispatch.request_id"]
+ }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -494,11 +494,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 187
- def cookies # :doc:
- request.cookie_jar
- end
+def cookies # :doc:
+ request.cookie_jar
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -529,14 +529,14 @@
# File actioncable/lib/action_cable/connection/base.rb, line 178
- def request # :doc:
- @request ||= begin
- environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
- ActionDispatch::Request.new(environment || env)
- end
- end
+def request # :doc:
+ @request ||= begin
+ environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
+ ActionDispatch::Request.new(environment || env)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Callbacks.html b/src/classes/ActionCable/Connection/Callbacks.html
index 818958bf81..d6504ca284 100644
--- a/src/classes/ActionCable/Connection/Callbacks.html
+++ b/src/classes/ActionCable/Connection/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
index 933056a029..6376d7195b 100644
--- a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,11 +90,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 47
- def after_command(*methods, &block)
- set_callback(:command, :after, *methods, &block)
- end
+def after_command(*methods, &block)
+ set_callback(:command, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -125,11 +125,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 51
- def around_command(*methods, &block)
- set_callback(:command, :around, *methods, &block)
- end
+def around_command(*methods, &block)
+ set_callback(:command, :around, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -160,11 +160,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 43
- def before_command(*methods, &block)
- set_callback(:command, :before, *methods, &block)
- end
+def before_command(*methods, &block)
+ set_callback(:command, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification.html b/src/classes/ActionCable/Connection/Identification.html
index f3dcea9bfc..063ca88999 100644
--- a/src/classes/ActionCable/Connection/Identification.html
+++ b/src/classes/ActionCable/Connection/Identification.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,15 +95,15 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 29
- def connection_identifier
- unless defined? @connection_identifier
- @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
- end
+def connection_identifier
+ unless defined? @connection_identifier
+ @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
+ end
- @connection_identifier
- end
+ @connection_identifier
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification/ClassMethods.html b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
index 324ded31f5..a3395ef8a3 100644
--- a/src/classes/ActionCable/Connection/Identification/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -84,12 +84,12 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 21
- def identified_by(*identifiers)
- Array(identifiers).each { |identifier| attr_accessor identifier }
- self.identifiers += identifiers
- end
+def identified_by(*identifiers)
+ Array(identifiers).each { |identifier| attr_accessor identifier }
+ self.identifiers += identifiers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/InternalChannel.html b/src/classes/ActionCable/Connection/InternalChannel.html
index 9b0144f690..cfdccceaf4 100644
--- a/src/classes/ActionCable/Connection/InternalChannel.html
+++ b/src/classes/ActionCable/Connection/InternalChannel.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
index 7167904452..bf0c696d62 100644
--- a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
+++ b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 15
- def initialize(name)
- super "Unable to determine the connection to test from #{name}. " +
- "You'll need to specify it using `tests YourConnection` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the connection to test from #{name}. " +
+ "You'll need to specify it using `tests YourConnection` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/StreamEventLoop.html b/src/classes/ActionCable/Connection/StreamEventLoop.html
index 2b71a213e3..f7c49354ef 100644
--- a/src/classes/ActionCable/Connection/StreamEventLoop.html
+++ b/src/classes/ActionCable/Connection/StreamEventLoop.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -111,16 +111,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 10
- def initialize
- @nio = @executor = @thread = nil
- @map = {}
- @stopping = false
- @todo = Queue.new
-
- @spawn_mutex = Mutex.new
- end
+def initialize
+ @nio = @executor = @thread = nil
+ @map = {}
+ @stopping = false
+ @todo = Queue.new
+
+ @spawn_mutex = Mutex.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -155,15 +155,15 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 30
- def attach(io, stream)
- @todo << lambda do
- @map[io] = @nio.register(io, :r)
- @map[io].value = stream
- end
- wakeup
- end
+def attach(io, stream)
+ @todo << lambda do
+ @map[io] = @nio.register(io, :r)
+ @map[io].value = stream
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -194,16 +194,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 38
- def detach(io, stream)
- @todo << lambda do
- @nio.deregister io
- @map.delete io
- io.close
- end
- wakeup
- end
+def detach(io, stream)
+ @todo << lambda do
+ @nio.deregister io
+ @map.delete io
+ io.close
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -234,14 +234,14 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 23
- def post(task = nil, &block)
- task ||= block
+def post(task = nil, &block)
+ task ||= block
- spawn
- @executor << task
- end
+ spawn
+ @executor << task
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,12 +272,12 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 56
- def stop
- @stopping = true
- wakeup if @nio
- end
+def stop
+ @stopping = true
+ wakeup if @nio
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -308,11 +308,11 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 19
- def timer(interval, &block)
- Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
- end
+def timer(interval, &block)
+ Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -343,16 +343,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 47
- def writes_pending(io)
- @todo << lambda do
- if monitor = @map[io]
- monitor.interests = :rw
- end
- end
- wakeup
- end
+def writes_pending(io)
+ @todo << lambda do
+ if monitor = @map[io]
+ monitor.interests = :rw
+ end
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
index f4d5cacc63..99731855fb 100644
--- a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
+++ b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -121,12 +121,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 16
- def initialize(logger, tags:)
- @logger = logger
- @tags = tags.flatten
- end
+def initialize(logger, tags:)
+ @logger = logger
+ @tags = tags.flatten
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -161,12 +161,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 21
- def add_tags(*tags)
- @tags += tags.flatten
- @tags = @tags.uniq
- end
+def add_tags(*tags)
+ @tags += tags.flatten
+ @tags = @tags.uniq
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -197,16 +197,16 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 26
- def tag(logger, &block)
- if logger.respond_to?(:tagged)
- current_tags = tags - logger.formatter.current_tags
- logger.tagged(*current_tags, &block)
- else
- yield
- end
- end
+def tag(logger, &block)
+ if logger.respond_to?(:tagged)
+ current_tags = tags - logger.formatter.current_tags
+ logger.tagged(*current_tags, &block)
+ else
+ yield
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,11 +240,11 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 42
- def log(type, message, &block) # :doc:
- tag(@logger) { @logger.send type, message, &block }
- end
+def log(type, message, &block) # :doc:
+ tag(@logger) { @logger.send type, message, &block }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase.html b/src/classes/ActionCable/Connection/TestCase.html
index 948378e491..39bc5cb056 100644
--- a/src/classes/ActionCable/Connection/TestCase.html
+++ b/src/classes/ActionCable/Connection/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior.html b/src/classes/ActionCable/Connection/TestCase/Behavior.html
index b87870becd..4ee0debbea 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -163,19 +163,19 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 192
- def connect(path = ActionCable.server.config.mount_path, **request_params)
- path ||= DEFAULT_PATH
+def connect(path = ActionCable.server.config.mount_path, **request_params)
+ path ||= DEFAULT_PATH
- connection = self.class.connection_class.allocate
- connection.singleton_class.include(TestConnection)
- connection.send(:initialize, build_test_request(path, **request_params))
- connection.connect if connection.respond_to?(:connect)
+ connection = self.class.connection_class.allocate
+ connection.singleton_class.include(TestConnection)
+ connection.send(:initialize, build_test_request(path, **request_params))
+ connection.connect if connection.respond_to?(:connect)
- # Only set instance variable if connected successfully
- @connection = connection
- end
+ # Only set instance variable if connected successfully
+ @connection = connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -206,11 +206,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 212
- def cookies
- @cookie_jar ||= TestCookieJar.new
- end
+def cookies
+ @cookie_jar ||= TestCookieJar.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -241,14 +241,14 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 205
- def disconnect
- raise "Must be connected!" if connection.nil?
+def disconnect
+ raise "Must be connected!" if connection.nil?
- connection.disconnect if connection.respond_to?(:disconnect)
- @connection = nil
- end
+ connection.disconnect if connection.respond_to?(:disconnect)
+ @connection = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
index 63444f4b27..99fc0e3f6f 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 167
- def connection_class
- if connection = self._connection_class
- connection
- else
- tests determine_default_connection(name)
- end
- end
+def connection_class
+ if connection = self._connection_class
+ connection
+ else
+ tests determine_default_connection(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 175
- def determine_default_connection(name)
- connection = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Connection::Base
- end
- raise NonInferrableConnectionError.new(name) if connection.nil?
- connection
- end
+def determine_default_connection(name)
+ connection = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Connection::Base
+ end
+ raise NonInferrableConnectionError.new(name) if connection.nil?
+ connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 62
- def view_assigns
- variables = instance_variables - _protected_ivars
+def view_assigns
+ variables = instance_variables - _protected_ivars
- variables.each_with_object({}) do |name, hash|
- hash[name.slice(1, name.length)] = instance_variable_get(name)
- end
- end# File actionpack/lib/abstract_controller/rendering.rb, line 73
- def _normalize_args(action = nil, options = {}) # :doc:
- if action.respond_to?(:permitted?)
- if action.permitted?
- action
- else
- raise ArgumentError, "render parameters are not permitted"
- end
- elsif action.is_a?(Hash)
- action
- else
- options
- end
- end
+def _normalize_args(action = nil, options = {}) # :doc:
+ if action.respond_to?(:permitted?)
+ if action.permitted?
+ action
+ else
+ raise ArgumentError, "render parameters are not permitted"
+ end
+ elsif action.is_a?(Hash)
+ action
+ else
+ options
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -376,11 +376,11 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 88
- def _normalize_options(options) # :doc:
- options
- end
+def _normalize_options(options) # :doc:
+ options
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -411,11 +411,11 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 93
- def _process_options(options) # :doc:
- options
- end
+def _process_options(options) # :doc:
+ options
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Translation.html b/src/classes/AbstractController/Translation.html
index e429818684..446e93e2cd 100644
--- a/src/classes/AbstractController/Translation.html
+++ b/src/classes/AbstractController/Translation.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -123,11 +123,11 @@
# File actionpack/lib/abstract_controller/translation.rb, line 37
- def localize(object, **options)
- I18n.localize(object, **options)
- end
+def localize(object, **options)
+ I18n.localize(object, **options)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -189,25 +189,25 @@
# File actionpack/lib/abstract_controller/translation.rb, line 17
- def translate(key, **options)
- if key&.start_with?(".")
- path = controller_path.tr("/", ".")
- defaults = [:"#{path}#{key}"]
- defaults << options[:default] if options[:default]
- options[:default] = defaults.flatten
- key = "#{path}.#{action_name}#{key}"
- end
-
- if options[:default] && ActiveSupport::HtmlSafeTranslation.html_safe_translation_key?(key)
- options[:default] = Array(options[:default]).map do |value|
- value.is_a?(String) ? ERB::Util.html_escape(value) : value
- end
- end
-
- ActiveSupport::HtmlSafeTranslation.translate(key, **options)
- end
+def translate(key, **options)
+ if key&.start_with?(".")
+ path = controller_path.tr("/", ".")
+ defaults = [:"#{path}#{key}"]
+ defaults << options[:default] if options[:default]
+ options[:default] = defaults.flatten
+ key = "#{path}.#{action_name}#{key}"
+ end
+
+ if options[:default] && ActiveSupport::HtmlSafeTranslation.html_safe_translation_key?(key)
+ options[:default] = Array(options[:default]).map do |value|
+ value.is_a?(String) ? ERB::Util.html_escape(value) : value
+ end
+ end
+
+ ActiveSupport::HtmlSafeTranslation.translate(key, **options)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/UrlFor.html b/src/classes/AbstractController/UrlFor.html
index 8d49da9f5c..bd5d0224eb 100644
--- a/src/classes/AbstractController/UrlFor.html
+++ b/src/classes/AbstractController/UrlFor.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -119,12 +119,12 @@
# File actionpack/lib/abstract_controller/url_for.rb, line 18
- def _routes
- raise "In order to use #url_for, you must include routing helpers explicitly. " \
- "For instance, `include Rails.application.routes.url_helpers`."
- end
+def _routes
+ raise "In order to use #url_for, you must include routing helpers explicitly. " \
+ "For instance, `include Rails.application.routes.url_helpers`."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/UrlFor/ClassMethods.html b/src/classes/AbstractController/UrlFor/ClassMethods.html
index cd0e5e9509..e4471b2d66 100644
--- a/src/classes/AbstractController/UrlFor/ClassMethods.html
+++ b/src/classes/AbstractController/UrlFor/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actionpack/lib/abstract_controller/url_for.rb, line 24
- def _routes
- nil
- end
+def _routes
+ nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -121,15 +121,15 @@
# File actionpack/lib/abstract_controller/url_for.rb, line 28
- def action_methods
- @action_methods ||= if _routes
- super - _routes.named_routes.helper_names
- else
- super
- end
- end
+def action_methods
+ @action_methods ||= if _routes
+ super - _routes.named_routes.helper_names
+ else
+ super
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable.html b/src/classes/ActionCable.html
index 4951b5813f..5e5f891dce 100644
--- a/src/classes/ActionCable.html
+++ b/src/classes/ActionCable.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -267,11 +267,11 @@
# File actioncable/lib/action_cable/gem_version.rb, line 7
- def self.gem_version
- Gem::Version.new VERSION::STRING
- end
+def self.gem_version
+ Gem::Version.new VERSION::STRING
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -302,11 +302,11 @@
# File actioncable/lib/action_cable/version.rb, line 9
- def self.version
- gem_version
- end
+def self.version
+ gem_version
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -341,11 +341,11 @@
# File actioncable/lib/action_cable.rb, line 77
- def server
- @server ||= ActionCable::Server::Base.new
- end
+def server
+@server ||= ActionCable::Server::Base.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel.html b/src/classes/ActionCable/Channel.html
index 38c886ddbc..06b36ff362 100644
--- a/src/classes/ActionCable/Channel.html
+++ b/src/classes/ActionCable/Channel.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Channel/Base.html b/src/classes/ActionCable/Channel/Base.html
index bc63a53315..32e2ff9b70 100644
--- a/src/classes/ActionCable/Channel/Base.html
+++ b/src/classes/ActionCable/Channel/Base.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -82,7 +82,7 @@ Action process
end
-
In this example, the subscribed and unsubscribed methods are not callable methods, as they were already declared in ActionCable::Channel::Base, but #appear and #away are. #generate_connection_token is also not callable, since it’s a private method. You’ll see that appear accepts a data parameter, which it then uses as part of its model call. #away does not, since it’s simply a trigger action.
+In this example, the subscribed and unsubscribed methods are not callable methods, as they were already declared in ActionCable::Channel::Base, but appear and away are. generate_connection_token is also not callable, since it’s a private method. You’ll see that appear accepts a data parameter, which it then uses as part of its model call. away does not, since it’s simply a trigger action.
Also note that in this example, current_user is available because it was marked as an identifying attribute on the connection. All such identifiers will automatically create a delegation method of the same name on the channel instance.
@@ -307,19 +307,22 @@ Returns
# File actioncable/lib/action_cable/channel/base.rb, line 128
- def action_methods
- @action_methods ||= begin
- # All public instance methods of this class, including ancestors
- methods = (public_instance_methods(true) -
- # Except for public instance methods of Base and its ancestors
- ActionCable::Channel::Base.public_instance_methods(true) +
- # Be sure to include shadowed public instance methods of this class
- public_instance_methods(false)).uniq.map(&:to_s)
- methods.to_set
- end
- end
-
- 🔎 See on GitHub
+def action_methods
+ @action_methods ||= begin
+ # All public instance methods of this class, including ancestors
+ methods = (public_instance_methods(true) -
+ # Except for public instance methods of Base and its ancestors
+ ActionCable::Channel::Base.public_instance_methods(true) +
+ # Be sure to include shadowed public instance methods of this class
+ public_instance_methods(false)).uniq
+
+ methods.reject! { |m| m.start_with?("_") }
+ methods.map!(&:name)
+ methods.to_set
+ end
+end
+
+ 🔎 See on GitHub
@@ -349,26 +352,26 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 155
- def initialize(connection, identifier, params = {})
- @connection = connection
- @identifier = identifier
- @params = params
+ # File actioncable/lib/action_cable/channel/base.rb, line 158
+def initialize(connection, identifier, params = {})
+ @connection = connection
+ @identifier = identifier
+ @params = params
- # When a channel is streaming via pubsub, we want to delay the confirmation
- # transmission until pubsub subscription is confirmed.
- #
- # The counter starts at 1 because it's awaiting a call to #subscribe_to_channel
- @defer_subscription_confirmation_counter = Concurrent::AtomicFixnum.new(1)
+ # When a channel is streaming via pubsub, we want to delay the confirmation
+ # transmission until pubsub subscription is confirmed.
+ #
+ # The counter starts at 1 because it's awaiting a call to #subscribe_to_channel
+ @defer_subscription_confirmation_counter = Concurrent::AtomicFixnum.new(1)
- @reject_subscription = nil
- @subscription_confirmation_sent = nil
- @unsubscribed = false
+ @reject_subscription = nil
+ @subscription_confirmation_sent = nil
+ @unsubscribed = false
- delegate_connection_identifiers
- end
+ delegate_connection_identifiers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -401,12 +404,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 144
- def clear_action_methods! # :doc:
- @action_methods = nil
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 147
+def clear_action_methods! # :doc:
+ @action_methods = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -436,13 +439,13 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 149
- def method_added(name) # :doc:
- super
- clear_action_methods!
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 152
+def method_added(name) # :doc:
+ super
+ clear_action_methods!
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -476,21 +479,21 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 176
- def perform_action(data)
- action = extract_action(data)
+ # File actioncable/lib/action_cable/channel/base.rb, line 179
+def perform_action(data)
+ action = extract_action(data)
- if processable_action?(action)
- payload = { channel_class: self.class.name, action: action, data: data }
- ActiveSupport::Notifications.instrument("perform_action.action_cable", payload) do
- dispatch_action(action, data)
- end
- else
- logger.error "Unable to process #{action_signature(action, data)}"
- end
- end
+ if processable_action?(action)
+ payload = { channel_class: self.class.name, action: action, data: data }
+ ActiveSupport::Notifications.instrument("perform_action.action_cable", payload) do
+ dispatch_action(action, data)
+ end
+ else
+ logger.error "Unable to process #{action_signature(action, data)}"
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -520,17 +523,17 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 191
- def subscribe_to_channel
- run_callbacks :subscribe do
- subscribed
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 194
+def subscribe_to_channel
+ run_callbacks :subscribe do
+ subscribed
+ end
- reject_subscription if subscription_rejected?
- ensure_confirmation_sent
- end
+ reject_subscription if subscription_rejected?
+ ensure_confirmation_sent
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -563,12 +566,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 250
- def defer_subscription_confirmation! # :doc:
- @defer_subscription_confirmation_counter.increment
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 253
+def defer_subscription_confirmation! # :doc:
+ @defer_subscription_confirmation_counter.increment
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -598,12 +601,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 254
- def defer_subscription_confirmation? # :doc:
- @defer_subscription_confirmation_counter.value > 0
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 257
+def defer_subscription_confirmation? # :doc:
+ @defer_subscription_confirmation_counter.value > 0
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -633,14 +636,14 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 244
- def ensure_confirmation_sent # :doc:
- return if subscription_rejected?
- @defer_subscription_confirmation_counter.decrement
- transmit_subscription_confirmation unless defer_subscription_confirmation?
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 247
+def ensure_confirmation_sent # :doc:
+ return if subscription_rejected?
+ @defer_subscription_confirmation_counter.decrement
+ transmit_subscription_confirmation unless defer_subscription_confirmation?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -670,12 +673,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 262
- def reject # :doc:
- @reject_subscription = true
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 265
+def reject # :doc:
+ @reject_subscription = true
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -705,12 +708,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 218
- def subscribed # :doc:
- # Override in subclasses
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 221
+def subscribed # :doc:
+ # Override in subclasses
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -740,12 +743,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 258
- def subscription_confirmation_sent? # :doc:
- @subscription_confirmation_sent
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 261
+def subscription_confirmation_sent? # :doc:
+ @subscription_confirmation_sent
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -775,12 +778,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 266
- def subscription_rejected? # :doc:
- @reject_subscription
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 269
+def subscription_rejected? # :doc:
+ @reject_subscription
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -810,21 +813,21 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 231
- def transmit(data, via: nil) # :doc:
- logger.debug do
- status = "#{self.class.name} transmitting #{data.inspect.truncate(300)}"
- status += " (via #{via})" if via
- status
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 234
+def transmit(data, via: nil) # :doc:
+ logger.debug do
+ status = "#{self.class.name} transmitting #{data.inspect.truncate(300)}"
+ status += " (via #{via})" if via
+ status
+ end
- payload = { channel_class: self.class.name, data: data, via: via }
- ActiveSupport::Notifications.instrument("transmit.action_cable", payload) do
- connection.transmit identifier: @identifier, message: data
- end
- end
+ payload = { channel_class: self.class.name, data: data, via: via }
+ ActiveSupport::Notifications.instrument("transmit.action_cable", payload) do
+ connection.transmit identifier: @identifier, message: data
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -854,12 +857,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 224
- def unsubscribed # :doc:
- # Override in subclasses
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 227
+def unsubscribed # :doc:
+ # Override in subclasses
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Broadcasting.html b/src/classes/ActionCable/Channel/Broadcasting.html
index bb71b89445..7fecc3f6b8 100644
--- a/src/classes/ActionCable/Channel/Broadcasting.html
+++ b/src/classes/ActionCable/Channel/Broadcasting.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -99,11 +99,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 45
- def broadcast_to(model, message)
- self.class.broadcast_to(model, message)
- end
+def broadcast_to(model, message)
+ self.class.broadcast_to(model, message)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -134,11 +134,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 41
- def broadcasting_for(model)
- self.class.broadcasting_for(model)
- end
+def broadcasting_for(model)
+ self.class.broadcasting_for(model)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html b/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
index 684bccb1ab..432bb5d74f 100644
--- a/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 14
- def broadcast_to(broadcastables, message)
- ActionCable.server.broadcast(broadcasting_for(broadcastables), message)
- end
+def broadcast_to(broadcastables, message)
+ ActionCable.server.broadcast(broadcasting_for(broadcastables), message)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -126,11 +126,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 24
- def broadcasting_for(broadcastables)
- serialize_broadcasting([ channel_name ] + Array(broadcastables))
- end
+def broadcasting_for(broadcastables)
+ serialize_broadcasting([ channel_name ] + Array(broadcastables))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Callbacks.html b/src/classes/ActionCable/Channel/Callbacks.html
index 076bdbc8fa..64985186c3 100644
--- a/src/classes/ActionCable/Channel/Callbacks.html
+++ b/src/classes/ActionCable/Channel/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html b/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
index 6ee4317311..7949b5fdf6 100644
--- a/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -111,11 +111,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 60
- def after_subscribe(*methods, &block)
- set_callback(:subscribe, :after, *methods, &block)
- end
+def after_subscribe(*methods, &block)
+ set_callback(:subscribe, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -150,11 +150,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 69
- def after_unsubscribe(*methods, &block)
- set_callback(:unsubscribe, :after, *methods, &block)
- end
+def after_unsubscribe(*methods, &block)
+ set_callback(:unsubscribe, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -185,11 +185,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 48
- def before_subscribe(*methods, &block)
- set_callback(:subscribe, :before, *methods, &block)
- end
+def before_subscribe(*methods, &block)
+ set_callback(:subscribe, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -220,11 +220,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 65
- def before_unsubscribe(*methods, &block)
- set_callback(:unsubscribe, :before, *methods, &block)
- end
+def before_unsubscribe(*methods, &block)
+ set_callback(:unsubscribe, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/ChannelStub.html b/src/classes/ActionCable/Channel/ChannelStub.html
index 9db98daac2..d004896dc5 100644
--- a/src/classes/ActionCable/Channel/ChannelStub.html
+++ b/src/classes/ActionCable/Channel/ChannelStub.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -25,7 +25,7 @@
Action Cable Channel Stub
-
Stub stream_from to track streams for the channel. Add public aliases for subscription_confirmation_sent? and subscription_rejected?.
+Stub stream_from to track streams for the channel. Add public aliases for subscription_confirmation_sent? and subscription_rejected?.
@@ -114,11 +114,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 25
- def confirmed?
- subscription_confirmation_sent?
- end
+def confirmed?
+ subscription_confirmation_sent?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -149,11 +149,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 29
- def rejected?
- subscription_rejected?
- end
+def rejected?
+ subscription_rejected?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -188,9 +188,9 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 46
- def start_periodic_timers; end
+def start_periodic_timers; end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -221,11 +221,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 37
- def stop_all_streams
- @_streams = []
- end
+def stop_all_streams
+ @_streams = []
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -281,11 +281,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 33
- def stream_from(broadcasting, *)
- streams << broadcasting
- end
+def stream_from(broadcasting, *)
+ streams << broadcasting
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -316,11 +316,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 41
- def streams
- @_streams ||= []
- end
+def streams
+ @_streams ||= []
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/ConnectionStub.html b/src/classes/ActionCable/Channel/ConnectionStub.html
index 62c52b567f..0fdc0d8690 100644
--- a/src/classes/ActionCable/Channel/ConnectionStub.html
+++ b/src/classes/ActionCable/Channel/ConnectionStub.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -141,20 +141,20 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 55
- def initialize(identifiers = {})
- @server = ActionCable.server
- @transmissions = []
-
- identifiers.each do |identifier, val|
- define_singleton_method(identifier) { val }
- end
-
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @identifiers = identifiers.keys
- @logger = ActiveSupport::TaggedLogging.new ActiveSupport::Logger.new(StringIO.new)
- end
+def initialize(identifiers = {})
+ @server = ActionCable.server
+ @transmissions = []
+
+ identifiers.each do |identifier, val|
+ define_singleton_method(identifier) { val }
+ end
+
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @identifiers = identifiers.keys
+ @logger = ActiveSupport::TaggedLogging.new ActiveSupport::Logger.new(StringIO.new)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -189,11 +189,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 72
- def connection_identifier
- @connection_identifier ||= connection_gid(identifiers.filter_map { |id| send(id.to_sym) if id })
- end
+def connection_identifier
+ @connection_identifier ||= connection_gid(identifiers.filter_map { |id| send(id.to_sym) if id })
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -224,11 +224,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 68
- def transmit(cable_message)
- transmissions << cable_message.with_indifferent_access
- end
+def transmit(cable_message)
+ transmissions << cable_message.with_indifferent_access
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Naming.html b/src/classes/ActionCable/Channel/Naming.html
index 84bfc0232c..db2aa18589 100644
--- a/src/classes/ActionCable/Channel/Naming.html
+++ b/src/classes/ActionCable/Channel/Naming.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,11 +95,11 @@
# File actioncable/lib/action_cable/channel/naming.rb, line 23
- def channel_name
- self.class.channel_name
- end
+def channel_name
+ self.class.channel_name
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Naming/ClassMethods.html b/src/classes/ActionCable/Channel/Naming/ClassMethods.html
index b847309f12..e99c0744a7 100644
--- a/src/classes/ActionCable/Channel/Naming/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Naming/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -66,7 +66,7 @@
- Returns the name of the channel, underscored, without the Channel ending. If the channel is in a namespace, then the namespaces are represented by single colon separators in the channel name.
+ Returns the name of the channel, underscored, without the Channel ending. If the channel is in a namespace, then the namespaces are represented by single colon separators in the channel name.
ChatChannel.channel_name # => 'chat'
Chats::AppearancesChannel.channel_name # => 'chats:appearances'
@@ -87,11 +87,11 @@
# File actioncable/lib/action_cable/channel/naming.rb, line 18
- def channel_name
- @channel_name ||= name.delete_suffix("Channel").gsub("::", ":").underscore
- end
+def channel_name
+ @channel_name ||= name.delete_suffix("Channel").gsub("::", ":").underscore
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/NonInferrableChannelError.html b/src/classes/ActionCable/Channel/NonInferrableChannelError.html
index 034c36b135..1eac81cbd2 100644
--- a/src/classes/ActionCable/Channel/NonInferrableChannelError.html
+++ b/src/classes/ActionCable/Channel/NonInferrableChannelError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 13
- def initialize(name)
- super "Unable to determine the channel to test from #{name}. " +
- "You'll need to specify it using `tests YourChannel` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the channel to test from #{name}. " +
+ "You'll need to specify it using `tests YourChannel` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/PeriodicTimers.html b/src/classes/ActionCable/Channel/PeriodicTimers.html
index 88facef675..561da6e0dd 100644
--- a/src/classes/ActionCable/Channel/PeriodicTimers.html
+++ b/src/classes/ActionCable/Channel/PeriodicTimers.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html b/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
index 233865e2e3..a694f6de16 100644
--- a/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -91,30 +91,30 @@
# File actioncable/lib/action_cable/channel/periodic_timers.rb, line 31
- def periodically(callback_or_method_name = nil, every:, &block)
- callback =
- if block_given?
- raise ArgumentError, "Pass a block or provide a callback arg, not both" if callback_or_method_name
- block
- else
- case callback_or_method_name
- when Proc
- callback_or_method_name
- when Symbol
- -> { __send__ callback_or_method_name }
- else
- raise ArgumentError, "Expected a Symbol method name or a Proc, got #{callback_or_method_name.inspect}"
- end
- end
-
- unless every.kind_of?(Numeric) && every > 0
- raise ArgumentError, "Expected every: to be a positive number of seconds, got #{every.inspect}"
- end
-
- self.periodic_timers += [[ callback, every: every ]]
- end
+def periodically(callback_or_method_name = nil, every:, &block)
+ callback =
+ if block_given?
+ raise ArgumentError, "Pass a block or provide a callback arg, not both" if callback_or_method_name
+ block
+ else
+ case callback_or_method_name
+ when Proc
+ callback_or_method_name
+ when Symbol
+ -> { __send__ callback_or_method_name }
+ else
+ raise ArgumentError, "Expected a Symbol method name or a Proc, got #{callback_or_method_name.inspect}"
+ end
+ end
+
+ unless every.kind_of?(Numeric) && every > 0
+ raise ArgumentError, "Expected every: to be a positive number of seconds, got #{every.inspect}"
+ end
+
+ self.periodic_timers += [[ callback, every: every ]]
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Streams.html b/src/classes/ActionCable/Channel/Streams.html
index 0967feb616..a2e686a3e9 100644
--- a/src/classes/ActionCable/Channel/Streams.html
+++ b/src/classes/ActionCable/Channel/Streams.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -167,14 +167,14 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 137
- def stop_all_streams
- streams.each do |broadcasting, callback|
- pubsub.unsubscribe broadcasting, callback
- logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
- end.clear
- end
+def stop_all_streams
+ streams.each do |broadcasting, callback|
+ pubsub.unsubscribe broadcasting, callback
+ logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
+ end.clear
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -205,11 +205,11 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 132
- def stop_stream_for(model)
- stop_stream_from(broadcasting_for(model))
- end
+def stop_stream_for(model)
+ stop_stream_from(broadcasting_for(model))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,15 +240,15 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 123
- def stop_stream_from(broadcasting)
- callback = streams.delete(broadcasting)
- if callback
- pubsub.unsubscribe(broadcasting, callback)
- logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
- end
- end
+def stop_stream_from(broadcasting)
+ callback = streams.delete(broadcasting)
+ if callback
+ pubsub.unsubscribe(broadcasting, callback)
+ logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -281,11 +281,11 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 118
- def stream_for(broadcastables, callback = nil, coder: nil, &block)
- stream_from(broadcasting_for(broadcastables), callback || block, coder: coder)
- end
+def stream_for(broadcastables, callback = nil, coder: nil, &block)
+ stream_from(broadcasting_for(broadcastables), callback || block, coder: coder)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -316,28 +316,28 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 90
- def stream_from(broadcasting, callback = nil, coder: nil, &block)
- return if unsubscribed?
-
- broadcasting = String(broadcasting)
-
- # Don't send the confirmation until pubsub#subscribe is successful
- defer_subscription_confirmation!
-
- # Build a stream handler by wrapping the user-provided callback with a decoder
- # or defaulting to a JSON-decoding retransmitter.
- handler = worker_pool_stream_handler(broadcasting, callback || block, coder: coder)
- streams[broadcasting] = handler
-
- connection.server.event_loop.post do
- pubsub.subscribe(broadcasting, handler, lambda do
- ensure_confirmation_sent
- logger.info "#{self.class.name} is streaming from #{broadcasting}"
- end)
- end
- end
+def stream_from(broadcasting, callback = nil, coder: nil, &block)
+ return if unsubscribed?
+
+ broadcasting = String(broadcasting)
+
+ # Don't send the confirmation until pubsub#subscribe is successful
+ defer_subscription_confirmation!
+
+ # Build a stream handler by wrapping the user-provided callback with a decoder
+ # or defaulting to a JSON-decoding retransmitter.
+ handler = worker_pool_stream_handler(broadcasting, callback || block, coder: coder)
+ streams[broadcasting] = handler
+
+ connection.server.event_loop.post do
+ pubsub.subscribe(broadcasting, handler, lambda do
+ ensure_confirmation_sent
+ logger.info "#{self.class.name} is streaming from #{broadcasting}"
+ end)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -368,15 +368,15 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 146
- def stream_or_reject_for(model)
- if model
- stream_for model
- else
- reject
- end
- end
+def stream_or_reject_for(model)
+ if model
+ stream_for model
+ else
+ reject
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase.html b/src/classes/ActionCable/Channel/TestCase.html
index 08fb28c0cf..6317ff44d0 100644
--- a/src/classes/ActionCable/Channel/TestCase.html
+++ b/src/classes/ActionCable/Channel/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior.html b/src/classes/ActionCable/Channel/TestCase/Behavior.html
index b5f3a5cbb7..5a8ea0fd78 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -196,11 +196,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 282
- def assert_broadcast_on(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcast_on(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -231,11 +231,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 278
- def assert_broadcasts(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcasts(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,11 +272,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 326
- def assert_has_no_stream(stream)
- assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
- end
+def assert_has_no_stream(stream)
+ assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -313,11 +313,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 337
- def assert_has_no_stream_for(object)
- assert_has_no_stream(broadcasting_for(object))
- end
+def assert_has_no_stream_for(object)
+ assert_has_no_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -354,11 +354,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 304
- def assert_has_stream(stream)
- assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
- end
+def assert_has_stream(stream)
+ assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -395,11 +395,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 315
- def assert_has_stream_for(object)
- assert_has_stream(broadcasting_for(object))
- end
+def assert_has_stream_for(object)
+ assert_has_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -436,11 +436,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 293
- def assert_no_streams
- assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
- end
+def assert_no_streams
+ assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -473,12 +473,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 266
- def perform(action, data = {})
- check_subscribed!
- subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
- end
+def perform(action, data = {})
+ check_subscribed!
+ subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -516,11 +516,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 243
- def stub_connection(identifiers = {})
- @connection = ConnectionStub.new(identifiers)
- end
+def stub_connection(identifiers = {})
+ @connection = ConnectionStub.new(identifiers)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -551,15 +551,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 249
- def subscribe(params = {})
- @connection ||= stub_connection
- @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
- @subscription.singleton_class.include(ChannelStub)
- @subscription.subscribe_to_channel
- @subscription
- end
+def subscribe(params = {})
+ @connection ||= stub_connection
+ @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
+ @subscription.singleton_class.include(ChannelStub)
+ @subscription.subscribe_to_channel
+ @subscription
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -590,12 +590,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 272
- def transmissions
- # Return only directly sent message (via #transmit)
- connection.transmissions.filter_map { |data| data["message"] }
- end
+def transmissions
+ # Return only directly sent message (via #transmit)
+ connection.transmissions.filter_map { |data| data["message"] }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -626,12 +626,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 258
- def unsubscribe
- check_subscribed!
- subscription.unsubscribe_from_channel
- end
+def unsubscribe
+ check_subscribed!
+ subscription.unsubscribe_from_channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
index 48ea87f130..57efb4cdac 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 219
- def channel_class
- if channel = self._channel_class
- channel
- else
- tests determine_default_channel(name)
- end
- end
+def channel_class
+ if channel = self._channel_class
+ channel
+ else
+ tests determine_default_channel(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 227
- def determine_default_channel(name)
- channel = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Channel::Base
- end
- raise NonInferrableChannelError.new(name) if channel.nil?
- channel
- end
+def determine_default_channel(name)
+ channel = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Channel::Base
+ end
+ raise NonInferrableChannelError.new(name) if channel.nil?
+ channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 208
- def tests(channel)
- case channel
- when String, Symbol
- self._channel_class = channel.to_s.camelize.constantize
- when Module
- self._channel_class = channel
- else
- raise NonInferrableChannelError.new(channel)
- end
- end
+def tests(channel)
+ case channel
+ when String, Symbol
+ self._channel_class = channel.to_s.camelize.constantize
+ when Module
+ self._channel_class = channel
+ else
+ raise NonInferrableChannelError.new(channel)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection.html b/src/classes/ActionCable/Connection.html
index f832214f0e..7889c75284 100644
--- a/src/classes/ActionCable/Connection.html
+++ b/src/classes/ActionCable/Connection.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Assertions.html b/src/classes/ActionCable/Connection/Assertions.html
index 933ea80e4c..6b10ec5528 100644
--- a/src/classes/ActionCable/Connection/Assertions.html
+++ b/src/classes/ActionCable/Connection/Assertions.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 28
- def assert_reject_connection(&block)
- assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
- end
+def assert_reject_connection(&block)
+ assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization.html b/src/classes/ActionCable/Connection/Authorization.html
index feb855aa9e..baf85a37b3 100644
--- a/src/classes/ActionCable/Connection/Authorization.html
+++ b/src/classes/ActionCable/Connection/Authorization.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -97,12 +97,12 @@
# File actioncable/lib/action_cable/connection/authorization.rb, line 12
- def reject_unauthorized_connection
- logger.error "An unauthorized connection attempt was rejected"
- raise UnauthorizedError
- end
+def reject_unauthorized_connection
+ logger.error "An unauthorized connection attempt was rejected"
+ raise UnauthorizedError
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
index b63b282b0b..ff36299a28 100644
--- a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
+++ b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/Base.html b/src/classes/ActionCable/Connection/Base.html
index 36a2f1e1bb..ea0d62911f 100644
--- a/src/classes/ActionCable/Connection/Base.html
+++ b/src/classes/ActionCable/Connection/Base.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -255,21 +255,21 @@
# File actioncable/lib/action_cable/connection/base.rb, line 67
- def initialize(server, env, coder: ActiveSupport::JSON)
- @server, @env, @coder = server, env, coder
+def initialize(server, env, coder: ActiveSupport::JSON)
+ @server, @env, @coder = server, env, coder
- @worker_pool = server.worker_pool
- @logger = new_tagged_logger
+ @worker_pool = server.worker_pool
+ @logger = new_tagged_logger
- @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
+ @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
- @_internal_subscriptions = nil
- @started_at = Time.now
- end
+ @_internal_subscriptions = nil
+ @started_at = Time.now
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -304,11 +304,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 147
- def beat
- transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
- end
+def beat
+ transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -339,16 +339,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 120
- def close(reason: nil, reconnect: true)
- transmit(
- type: ActionCable::INTERNAL[:message_types][:disconnect],
- reason: reason,
- reconnect: reconnect
- )
- websocket.close
- end
+def close(reason: nil, reconnect: true)
+ transmit(
+ type: ActionCable::INTERNAL[:message_types][:disconnect],
+ reason: reason,
+ reconnect: reconnect
+ )
+ websocket.close
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -379,13 +379,13 @@
# File actioncable/lib/action_cable/connection/base.rb, line 109
- def handle_channel_command(payload)
- run_callbacks :command do
- subscriptions.execute_command payload
- end
- end
+def handle_channel_command(payload)
+ run_callbacks :command do
+ subscriptions.execute_command payload
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -416,11 +416,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 131
- def send_async(method, *arguments)
- worker_pool.async_invoke(self, method, *arguments)
- end
+def send_async(method, *arguments)
+ worker_pool.async_invoke(self, method, *arguments)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -451,16 +451,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 138
- def statistics
- {
- identifier: connection_identifier,
- started_at: @started_at,
- subscriptions: subscriptions.identifiers,
- request_id: @env["action_dispatch.request_id"]
- }
- end
+def statistics
+ {
+ identifier: connection_identifier,
+ started_at: @started_at,
+ subscriptions: subscriptions.identifiers,
+ request_id: @env["action_dispatch.request_id"]
+ }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -494,11 +494,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 187
- def cookies # :doc:
- request.cookie_jar
- end
+def cookies # :doc:
+ request.cookie_jar
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -529,14 +529,14 @@
# File actioncable/lib/action_cable/connection/base.rb, line 178
- def request # :doc:
- @request ||= begin
- environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
- ActionDispatch::Request.new(environment || env)
- end
- end
+def request # :doc:
+ @request ||= begin
+ environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
+ ActionDispatch::Request.new(environment || env)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Callbacks.html b/src/classes/ActionCable/Connection/Callbacks.html
index 818958bf81..d6504ca284 100644
--- a/src/classes/ActionCable/Connection/Callbacks.html
+++ b/src/classes/ActionCable/Connection/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
index 933056a029..6376d7195b 100644
--- a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,11 +90,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 47
- def after_command(*methods, &block)
- set_callback(:command, :after, *methods, &block)
- end
+def after_command(*methods, &block)
+ set_callback(:command, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -125,11 +125,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 51
- def around_command(*methods, &block)
- set_callback(:command, :around, *methods, &block)
- end
+def around_command(*methods, &block)
+ set_callback(:command, :around, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -160,11 +160,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 43
- def before_command(*methods, &block)
- set_callback(:command, :before, *methods, &block)
- end
+def before_command(*methods, &block)
+ set_callback(:command, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification.html b/src/classes/ActionCable/Connection/Identification.html
index f3dcea9bfc..063ca88999 100644
--- a/src/classes/ActionCable/Connection/Identification.html
+++ b/src/classes/ActionCable/Connection/Identification.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,15 +95,15 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 29
- def connection_identifier
- unless defined? @connection_identifier
- @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
- end
+def connection_identifier
+ unless defined? @connection_identifier
+ @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
+ end
- @connection_identifier
- end
+ @connection_identifier
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification/ClassMethods.html b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
index 324ded31f5..a3395ef8a3 100644
--- a/src/classes/ActionCable/Connection/Identification/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -84,12 +84,12 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 21
- def identified_by(*identifiers)
- Array(identifiers).each { |identifier| attr_accessor identifier }
- self.identifiers += identifiers
- end
+def identified_by(*identifiers)
+ Array(identifiers).each { |identifier| attr_accessor identifier }
+ self.identifiers += identifiers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/InternalChannel.html b/src/classes/ActionCable/Connection/InternalChannel.html
index 9b0144f690..cfdccceaf4 100644
--- a/src/classes/ActionCable/Connection/InternalChannel.html
+++ b/src/classes/ActionCable/Connection/InternalChannel.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
index 7167904452..bf0c696d62 100644
--- a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
+++ b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 15
- def initialize(name)
- super "Unable to determine the connection to test from #{name}. " +
- "You'll need to specify it using `tests YourConnection` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the connection to test from #{name}. " +
+ "You'll need to specify it using `tests YourConnection` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/StreamEventLoop.html b/src/classes/ActionCable/Connection/StreamEventLoop.html
index 2b71a213e3..f7c49354ef 100644
--- a/src/classes/ActionCable/Connection/StreamEventLoop.html
+++ b/src/classes/ActionCable/Connection/StreamEventLoop.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -111,16 +111,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 10
- def initialize
- @nio = @executor = @thread = nil
- @map = {}
- @stopping = false
- @todo = Queue.new
-
- @spawn_mutex = Mutex.new
- end
+def initialize
+ @nio = @executor = @thread = nil
+ @map = {}
+ @stopping = false
+ @todo = Queue.new
+
+ @spawn_mutex = Mutex.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -155,15 +155,15 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 30
- def attach(io, stream)
- @todo << lambda do
- @map[io] = @nio.register(io, :r)
- @map[io].value = stream
- end
- wakeup
- end
+def attach(io, stream)
+ @todo << lambda do
+ @map[io] = @nio.register(io, :r)
+ @map[io].value = stream
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -194,16 +194,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 38
- def detach(io, stream)
- @todo << lambda do
- @nio.deregister io
- @map.delete io
- io.close
- end
- wakeup
- end
+def detach(io, stream)
+ @todo << lambda do
+ @nio.deregister io
+ @map.delete io
+ io.close
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -234,14 +234,14 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 23
- def post(task = nil, &block)
- task ||= block
+def post(task = nil, &block)
+ task ||= block
- spawn
- @executor << task
- end
+ spawn
+ @executor << task
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,12 +272,12 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 56
- def stop
- @stopping = true
- wakeup if @nio
- end
+def stop
+ @stopping = true
+ wakeup if @nio
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -308,11 +308,11 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 19
- def timer(interval, &block)
- Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
- end
+def timer(interval, &block)
+ Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -343,16 +343,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 47
- def writes_pending(io)
- @todo << lambda do
- if monitor = @map[io]
- monitor.interests = :rw
- end
- end
- wakeup
- end
+def writes_pending(io)
+ @todo << lambda do
+ if monitor = @map[io]
+ monitor.interests = :rw
+ end
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
index f4d5cacc63..99731855fb 100644
--- a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
+++ b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -121,12 +121,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 16
- def initialize(logger, tags:)
- @logger = logger
- @tags = tags.flatten
- end
+def initialize(logger, tags:)
+ @logger = logger
+ @tags = tags.flatten
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -161,12 +161,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 21
- def add_tags(*tags)
- @tags += tags.flatten
- @tags = @tags.uniq
- end
+def add_tags(*tags)
+ @tags += tags.flatten
+ @tags = @tags.uniq
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -197,16 +197,16 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 26
- def tag(logger, &block)
- if logger.respond_to?(:tagged)
- current_tags = tags - logger.formatter.current_tags
- logger.tagged(*current_tags, &block)
- else
- yield
- end
- end
+def tag(logger, &block)
+ if logger.respond_to?(:tagged)
+ current_tags = tags - logger.formatter.current_tags
+ logger.tagged(*current_tags, &block)
+ else
+ yield
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,11 +240,11 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 42
- def log(type, message, &block) # :doc:
- tag(@logger) { @logger.send type, message, &block }
- end
+def log(type, message, &block) # :doc:
+ tag(@logger) { @logger.send type, message, &block }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase.html b/src/classes/ActionCable/Connection/TestCase.html
index 948378e491..39bc5cb056 100644
--- a/src/classes/ActionCable/Connection/TestCase.html
+++ b/src/classes/ActionCable/Connection/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior.html b/src/classes/ActionCable/Connection/TestCase/Behavior.html
index b87870becd..4ee0debbea 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -163,19 +163,19 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 192
- def connect(path = ActionCable.server.config.mount_path, **request_params)
- path ||= DEFAULT_PATH
+def connect(path = ActionCable.server.config.mount_path, **request_params)
+ path ||= DEFAULT_PATH
- connection = self.class.connection_class.allocate
- connection.singleton_class.include(TestConnection)
- connection.send(:initialize, build_test_request(path, **request_params))
- connection.connect if connection.respond_to?(:connect)
+ connection = self.class.connection_class.allocate
+ connection.singleton_class.include(TestConnection)
+ connection.send(:initialize, build_test_request(path, **request_params))
+ connection.connect if connection.respond_to?(:connect)
- # Only set instance variable if connected successfully
- @connection = connection
- end
+ # Only set instance variable if connected successfully
+ @connection = connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -206,11 +206,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 212
- def cookies
- @cookie_jar ||= TestCookieJar.new
- end
+def cookies
+ @cookie_jar ||= TestCookieJar.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -241,14 +241,14 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 205
- def disconnect
- raise "Must be connected!" if connection.nil?
+def disconnect
+ raise "Must be connected!" if connection.nil?
- connection.disconnect if connection.respond_to?(:disconnect)
- @connection = nil
- end
+ connection.disconnect if connection.respond_to?(:disconnect)
+ @connection = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
index 63444f4b27..99fc0e3f6f 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 167
- def connection_class
- if connection = self._connection_class
- connection
- else
- tests determine_default_connection(name)
- end
- end
+def connection_class
+ if connection = self._connection_class
+ connection
+ else
+ tests determine_default_connection(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 175
- def determine_default_connection(name)
- connection = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Connection::Base
- end
- raise NonInferrableConnectionError.new(name) if connection.nil?
- connection
- end
+def determine_default_connection(name)
+ connection = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Connection::Base
+ end
+ raise NonInferrableConnectionError.new(name) if connection.nil?
+ connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actionpack/lib/abstract_controller/rendering.rb, line 88
- def _normalize_options(options) # :doc:
- options
- end# File actionpack/lib/abstract_controller/rendering.rb, line 93
- def _process_options(options) # :doc:
- options
- end
+def _process_options(options) # :doc:
+ options
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Translation.html b/src/classes/AbstractController/Translation.html
index e429818684..446e93e2cd 100644
--- a/src/classes/AbstractController/Translation.html
+++ b/src/classes/AbstractController/Translation.html
@@ -5,7 +5,7 @@
+ Ruby on Rails 8.1.0.rc1
@@ -123,11 +123,11 @@
# File actionpack/lib/abstract_controller/translation.rb, line 37
- def localize(object, **options)
- I18n.localize(object, **options)
- end
+def localize(object, **options)
+ I18n.localize(object, **options)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -189,25 +189,25 @@
# File actionpack/lib/abstract_controller/translation.rb, line 17
- def translate(key, **options)
- if key&.start_with?(".")
- path = controller_path.tr("/", ".")
- defaults = [:"#{path}#{key}"]
- defaults << options[:default] if options[:default]
- options[:default] = defaults.flatten
- key = "#{path}.#{action_name}#{key}"
- end
-
- if options[:default] && ActiveSupport::HtmlSafeTranslation.html_safe_translation_key?(key)
- options[:default] = Array(options[:default]).map do |value|
- value.is_a?(String) ? ERB::Util.html_escape(value) : value
- end
- end
-
- ActiveSupport::HtmlSafeTranslation.translate(key, **options)
- end
+def translate(key, **options)
+ if key&.start_with?(".")
+ path = controller_path.tr("/", ".")
+ defaults = [:"#{path}#{key}"]
+ defaults << options[:default] if options[:default]
+ options[:default] = defaults.flatten
+ key = "#{path}.#{action_name}#{key}"
+ end
+
+ if options[:default] && ActiveSupport::HtmlSafeTranslation.html_safe_translation_key?(key)
+ options[:default] = Array(options[:default]).map do |value|
+ value.is_a?(String) ? ERB::Util.html_escape(value) : value
+ end
+ end
+
+ ActiveSupport::HtmlSafeTranslation.translate(key, **options)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/UrlFor.html b/src/classes/AbstractController/UrlFor.html
index 8d49da9f5c..bd5d0224eb 100644
--- a/src/classes/AbstractController/UrlFor.html
+++ b/src/classes/AbstractController/UrlFor.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -119,12 +119,12 @@
# File actionpack/lib/abstract_controller/url_for.rb, line 18
- def _routes
- raise "In order to use #url_for, you must include routing helpers explicitly. " \
- "For instance, `include Rails.application.routes.url_helpers`."
- end
+def _routes
+ raise "In order to use #url_for, you must include routing helpers explicitly. " \
+ "For instance, `include Rails.application.routes.url_helpers`."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/UrlFor/ClassMethods.html b/src/classes/AbstractController/UrlFor/ClassMethods.html
index cd0e5e9509..e4471b2d66 100644
--- a/src/classes/AbstractController/UrlFor/ClassMethods.html
+++ b/src/classes/AbstractController/UrlFor/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actionpack/lib/abstract_controller/url_for.rb, line 24
- def _routes
- nil
- end
+def _routes
+ nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -121,15 +121,15 @@
# File actionpack/lib/abstract_controller/url_for.rb, line 28
- def action_methods
- @action_methods ||= if _routes
- super - _routes.named_routes.helper_names
- else
- super
- end
- end
+def action_methods
+ @action_methods ||= if _routes
+ super - _routes.named_routes.helper_names
+ else
+ super
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable.html b/src/classes/ActionCable.html
index 4951b5813f..5e5f891dce 100644
--- a/src/classes/ActionCable.html
+++ b/src/classes/ActionCable.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -267,11 +267,11 @@
# File actioncable/lib/action_cable/gem_version.rb, line 7
- def self.gem_version
- Gem::Version.new VERSION::STRING
- end
+def self.gem_version
+ Gem::Version.new VERSION::STRING
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -302,11 +302,11 @@
# File actioncable/lib/action_cable/version.rb, line 9
- def self.version
- gem_version
- end
+def self.version
+ gem_version
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -341,11 +341,11 @@
# File actioncable/lib/action_cable.rb, line 77
- def server
- @server ||= ActionCable::Server::Base.new
- end
+def server
+@server ||= ActionCable::Server::Base.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel.html b/src/classes/ActionCable/Channel.html
index 38c886ddbc..06b36ff362 100644
--- a/src/classes/ActionCable/Channel.html
+++ b/src/classes/ActionCable/Channel.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Channel/Base.html b/src/classes/ActionCable/Channel/Base.html
index bc63a53315..32e2ff9b70 100644
--- a/src/classes/ActionCable/Channel/Base.html
+++ b/src/classes/ActionCable/Channel/Base.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -82,7 +82,7 @@ Action process
end
-
In this example, the subscribed and unsubscribed methods are not callable methods, as they were already declared in ActionCable::Channel::Base, but #appear and #away are. #generate_connection_token is also not callable, since it’s a private method. You’ll see that appear accepts a data parameter, which it then uses as part of its model call. #away does not, since it’s simply a trigger action.
+In this example, the subscribed and unsubscribed methods are not callable methods, as they were already declared in ActionCable::Channel::Base, but appear and away are. generate_connection_token is also not callable, since it’s a private method. You’ll see that appear accepts a data parameter, which it then uses as part of its model call. away does not, since it’s simply a trigger action.
Also note that in this example, current_user is available because it was marked as an identifying attribute on the connection. All such identifiers will automatically create a delegation method of the same name on the channel instance.
@@ -307,19 +307,22 @@ Returns
# File actioncable/lib/action_cable/channel/base.rb, line 128
- def action_methods
- @action_methods ||= begin
- # All public instance methods of this class, including ancestors
- methods = (public_instance_methods(true) -
- # Except for public instance methods of Base and its ancestors
- ActionCable::Channel::Base.public_instance_methods(true) +
- # Be sure to include shadowed public instance methods of this class
- public_instance_methods(false)).uniq.map(&:to_s)
- methods.to_set
- end
- end
-
- 🔎 See on GitHub
+def action_methods
+ @action_methods ||= begin
+ # All public instance methods of this class, including ancestors
+ methods = (public_instance_methods(true) -
+ # Except for public instance methods of Base and its ancestors
+ ActionCable::Channel::Base.public_instance_methods(true) +
+ # Be sure to include shadowed public instance methods of this class
+ public_instance_methods(false)).uniq
+
+ methods.reject! { |m| m.start_with?("_") }
+ methods.map!(&:name)
+ methods.to_set
+ end
+end
+
+ 🔎 See on GitHub
@@ -349,26 +352,26 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 155
- def initialize(connection, identifier, params = {})
- @connection = connection
- @identifier = identifier
- @params = params
+ # File actioncable/lib/action_cable/channel/base.rb, line 158
+def initialize(connection, identifier, params = {})
+ @connection = connection
+ @identifier = identifier
+ @params = params
- # When a channel is streaming via pubsub, we want to delay the confirmation
- # transmission until pubsub subscription is confirmed.
- #
- # The counter starts at 1 because it's awaiting a call to #subscribe_to_channel
- @defer_subscription_confirmation_counter = Concurrent::AtomicFixnum.new(1)
+ # When a channel is streaming via pubsub, we want to delay the confirmation
+ # transmission until pubsub subscription is confirmed.
+ #
+ # The counter starts at 1 because it's awaiting a call to #subscribe_to_channel
+ @defer_subscription_confirmation_counter = Concurrent::AtomicFixnum.new(1)
- @reject_subscription = nil
- @subscription_confirmation_sent = nil
- @unsubscribed = false
+ @reject_subscription = nil
+ @subscription_confirmation_sent = nil
+ @unsubscribed = false
- delegate_connection_identifiers
- end
+ delegate_connection_identifiers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -401,12 +404,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 144
- def clear_action_methods! # :doc:
- @action_methods = nil
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 147
+def clear_action_methods! # :doc:
+ @action_methods = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -436,13 +439,13 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 149
- def method_added(name) # :doc:
- super
- clear_action_methods!
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 152
+def method_added(name) # :doc:
+ super
+ clear_action_methods!
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -476,21 +479,21 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 176
- def perform_action(data)
- action = extract_action(data)
+ # File actioncable/lib/action_cable/channel/base.rb, line 179
+def perform_action(data)
+ action = extract_action(data)
- if processable_action?(action)
- payload = { channel_class: self.class.name, action: action, data: data }
- ActiveSupport::Notifications.instrument("perform_action.action_cable", payload) do
- dispatch_action(action, data)
- end
- else
- logger.error "Unable to process #{action_signature(action, data)}"
- end
- end
+ if processable_action?(action)
+ payload = { channel_class: self.class.name, action: action, data: data }
+ ActiveSupport::Notifications.instrument("perform_action.action_cable", payload) do
+ dispatch_action(action, data)
+ end
+ else
+ logger.error "Unable to process #{action_signature(action, data)}"
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -520,17 +523,17 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 191
- def subscribe_to_channel
- run_callbacks :subscribe do
- subscribed
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 194
+def subscribe_to_channel
+ run_callbacks :subscribe do
+ subscribed
+ end
- reject_subscription if subscription_rejected?
- ensure_confirmation_sent
- end
+ reject_subscription if subscription_rejected?
+ ensure_confirmation_sent
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -563,12 +566,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 250
- def defer_subscription_confirmation! # :doc:
- @defer_subscription_confirmation_counter.increment
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 253
+def defer_subscription_confirmation! # :doc:
+ @defer_subscription_confirmation_counter.increment
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -598,12 +601,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 254
- def defer_subscription_confirmation? # :doc:
- @defer_subscription_confirmation_counter.value > 0
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 257
+def defer_subscription_confirmation? # :doc:
+ @defer_subscription_confirmation_counter.value > 0
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -633,14 +636,14 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 244
- def ensure_confirmation_sent # :doc:
- return if subscription_rejected?
- @defer_subscription_confirmation_counter.decrement
- transmit_subscription_confirmation unless defer_subscription_confirmation?
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 247
+def ensure_confirmation_sent # :doc:
+ return if subscription_rejected?
+ @defer_subscription_confirmation_counter.decrement
+ transmit_subscription_confirmation unless defer_subscription_confirmation?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -670,12 +673,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 262
- def reject # :doc:
- @reject_subscription = true
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 265
+def reject # :doc:
+ @reject_subscription = true
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -705,12 +708,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 218
- def subscribed # :doc:
- # Override in subclasses
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 221
+def subscribed # :doc:
+ # Override in subclasses
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -740,12 +743,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 258
- def subscription_confirmation_sent? # :doc:
- @subscription_confirmation_sent
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 261
+def subscription_confirmation_sent? # :doc:
+ @subscription_confirmation_sent
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -775,12 +778,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 266
- def subscription_rejected? # :doc:
- @reject_subscription
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 269
+def subscription_rejected? # :doc:
+ @reject_subscription
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -810,21 +813,21 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 231
- def transmit(data, via: nil) # :doc:
- logger.debug do
- status = "#{self.class.name} transmitting #{data.inspect.truncate(300)}"
- status += " (via #{via})" if via
- status
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 234
+def transmit(data, via: nil) # :doc:
+ logger.debug do
+ status = "#{self.class.name} transmitting #{data.inspect.truncate(300)}"
+ status += " (via #{via})" if via
+ status
+ end
- payload = { channel_class: self.class.name, data: data, via: via }
- ActiveSupport::Notifications.instrument("transmit.action_cable", payload) do
- connection.transmit identifier: @identifier, message: data
- end
- end
+ payload = { channel_class: self.class.name, data: data, via: via }
+ ActiveSupport::Notifications.instrument("transmit.action_cable", payload) do
+ connection.transmit identifier: @identifier, message: data
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -854,12 +857,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 224
- def unsubscribed # :doc:
- # Override in subclasses
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 227
+def unsubscribed # :doc:
+ # Override in subclasses
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Broadcasting.html b/src/classes/ActionCable/Channel/Broadcasting.html
index bb71b89445..7fecc3f6b8 100644
--- a/src/classes/ActionCable/Channel/Broadcasting.html
+++ b/src/classes/ActionCable/Channel/Broadcasting.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -99,11 +99,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 45
- def broadcast_to(model, message)
- self.class.broadcast_to(model, message)
- end
+def broadcast_to(model, message)
+ self.class.broadcast_to(model, message)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -134,11 +134,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 41
- def broadcasting_for(model)
- self.class.broadcasting_for(model)
- end
+def broadcasting_for(model)
+ self.class.broadcasting_for(model)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html b/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
index 684bccb1ab..432bb5d74f 100644
--- a/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 14
- def broadcast_to(broadcastables, message)
- ActionCable.server.broadcast(broadcasting_for(broadcastables), message)
- end
+def broadcast_to(broadcastables, message)
+ ActionCable.server.broadcast(broadcasting_for(broadcastables), message)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -126,11 +126,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 24
- def broadcasting_for(broadcastables)
- serialize_broadcasting([ channel_name ] + Array(broadcastables))
- end
+def broadcasting_for(broadcastables)
+ serialize_broadcasting([ channel_name ] + Array(broadcastables))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Callbacks.html b/src/classes/ActionCable/Channel/Callbacks.html
index 076bdbc8fa..64985186c3 100644
--- a/src/classes/ActionCable/Channel/Callbacks.html
+++ b/src/classes/ActionCable/Channel/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html b/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
index 6ee4317311..7949b5fdf6 100644
--- a/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -111,11 +111,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 60
- def after_subscribe(*methods, &block)
- set_callback(:subscribe, :after, *methods, &block)
- end
+def after_subscribe(*methods, &block)
+ set_callback(:subscribe, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -150,11 +150,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 69
- def after_unsubscribe(*methods, &block)
- set_callback(:unsubscribe, :after, *methods, &block)
- end
+def after_unsubscribe(*methods, &block)
+ set_callback(:unsubscribe, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -185,11 +185,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 48
- def before_subscribe(*methods, &block)
- set_callback(:subscribe, :before, *methods, &block)
- end
+def before_subscribe(*methods, &block)
+ set_callback(:subscribe, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -220,11 +220,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 65
- def before_unsubscribe(*methods, &block)
- set_callback(:unsubscribe, :before, *methods, &block)
- end
+def before_unsubscribe(*methods, &block)
+ set_callback(:unsubscribe, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/ChannelStub.html b/src/classes/ActionCable/Channel/ChannelStub.html
index 9db98daac2..d004896dc5 100644
--- a/src/classes/ActionCable/Channel/ChannelStub.html
+++ b/src/classes/ActionCable/Channel/ChannelStub.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -25,7 +25,7 @@
Action Cable Channel Stub
-
Stub stream_from to track streams for the channel. Add public aliases for subscription_confirmation_sent? and subscription_rejected?.
+Stub stream_from to track streams for the channel. Add public aliases for subscription_confirmation_sent? and subscription_rejected?.
@@ -114,11 +114,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 25
- def confirmed?
- subscription_confirmation_sent?
- end
+def confirmed?
+ subscription_confirmation_sent?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -149,11 +149,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 29
- def rejected?
- subscription_rejected?
- end
+def rejected?
+ subscription_rejected?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -188,9 +188,9 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 46
- def start_periodic_timers; end
+def start_periodic_timers; end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -221,11 +221,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 37
- def stop_all_streams
- @_streams = []
- end
+def stop_all_streams
+ @_streams = []
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -281,11 +281,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 33
- def stream_from(broadcasting, *)
- streams << broadcasting
- end
+def stream_from(broadcasting, *)
+ streams << broadcasting
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -316,11 +316,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 41
- def streams
- @_streams ||= []
- end
+def streams
+ @_streams ||= []
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/ConnectionStub.html b/src/classes/ActionCable/Channel/ConnectionStub.html
index 62c52b567f..0fdc0d8690 100644
--- a/src/classes/ActionCable/Channel/ConnectionStub.html
+++ b/src/classes/ActionCable/Channel/ConnectionStub.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -141,20 +141,20 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 55
- def initialize(identifiers = {})
- @server = ActionCable.server
- @transmissions = []
-
- identifiers.each do |identifier, val|
- define_singleton_method(identifier) { val }
- end
-
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @identifiers = identifiers.keys
- @logger = ActiveSupport::TaggedLogging.new ActiveSupport::Logger.new(StringIO.new)
- end
+def initialize(identifiers = {})
+ @server = ActionCable.server
+ @transmissions = []
+
+ identifiers.each do |identifier, val|
+ define_singleton_method(identifier) { val }
+ end
+
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @identifiers = identifiers.keys
+ @logger = ActiveSupport::TaggedLogging.new ActiveSupport::Logger.new(StringIO.new)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -189,11 +189,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 72
- def connection_identifier
- @connection_identifier ||= connection_gid(identifiers.filter_map { |id| send(id.to_sym) if id })
- end
+def connection_identifier
+ @connection_identifier ||= connection_gid(identifiers.filter_map { |id| send(id.to_sym) if id })
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -224,11 +224,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 68
- def transmit(cable_message)
- transmissions << cable_message.with_indifferent_access
- end
+def transmit(cable_message)
+ transmissions << cable_message.with_indifferent_access
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Naming.html b/src/classes/ActionCable/Channel/Naming.html
index 84bfc0232c..db2aa18589 100644
--- a/src/classes/ActionCable/Channel/Naming.html
+++ b/src/classes/ActionCable/Channel/Naming.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,11 +95,11 @@
# File actioncable/lib/action_cable/channel/naming.rb, line 23
- def channel_name
- self.class.channel_name
- end
+def channel_name
+ self.class.channel_name
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Naming/ClassMethods.html b/src/classes/ActionCable/Channel/Naming/ClassMethods.html
index b847309f12..e99c0744a7 100644
--- a/src/classes/ActionCable/Channel/Naming/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Naming/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -66,7 +66,7 @@
- Returns the name of the channel, underscored, without the Channel ending. If the channel is in a namespace, then the namespaces are represented by single colon separators in the channel name.
+ Returns the name of the channel, underscored, without the Channel ending. If the channel is in a namespace, then the namespaces are represented by single colon separators in the channel name.
ChatChannel.channel_name # => 'chat'
Chats::AppearancesChannel.channel_name # => 'chats:appearances'
@@ -87,11 +87,11 @@
# File actioncable/lib/action_cable/channel/naming.rb, line 18
- def channel_name
- @channel_name ||= name.delete_suffix("Channel").gsub("::", ":").underscore
- end
+def channel_name
+ @channel_name ||= name.delete_suffix("Channel").gsub("::", ":").underscore
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/NonInferrableChannelError.html b/src/classes/ActionCable/Channel/NonInferrableChannelError.html
index 034c36b135..1eac81cbd2 100644
--- a/src/classes/ActionCable/Channel/NonInferrableChannelError.html
+++ b/src/classes/ActionCable/Channel/NonInferrableChannelError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 13
- def initialize(name)
- super "Unable to determine the channel to test from #{name}. " +
- "You'll need to specify it using `tests YourChannel` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the channel to test from #{name}. " +
+ "You'll need to specify it using `tests YourChannel` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/PeriodicTimers.html b/src/classes/ActionCable/Channel/PeriodicTimers.html
index 88facef675..561da6e0dd 100644
--- a/src/classes/ActionCable/Channel/PeriodicTimers.html
+++ b/src/classes/ActionCable/Channel/PeriodicTimers.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html b/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
index 233865e2e3..a694f6de16 100644
--- a/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -91,30 +91,30 @@
# File actioncable/lib/action_cable/channel/periodic_timers.rb, line 31
- def periodically(callback_or_method_name = nil, every:, &block)
- callback =
- if block_given?
- raise ArgumentError, "Pass a block or provide a callback arg, not both" if callback_or_method_name
- block
- else
- case callback_or_method_name
- when Proc
- callback_or_method_name
- when Symbol
- -> { __send__ callback_or_method_name }
- else
- raise ArgumentError, "Expected a Symbol method name or a Proc, got #{callback_or_method_name.inspect}"
- end
- end
-
- unless every.kind_of?(Numeric) && every > 0
- raise ArgumentError, "Expected every: to be a positive number of seconds, got #{every.inspect}"
- end
-
- self.periodic_timers += [[ callback, every: every ]]
- end
+def periodically(callback_or_method_name = nil, every:, &block)
+ callback =
+ if block_given?
+ raise ArgumentError, "Pass a block or provide a callback arg, not both" if callback_or_method_name
+ block
+ else
+ case callback_or_method_name
+ when Proc
+ callback_or_method_name
+ when Symbol
+ -> { __send__ callback_or_method_name }
+ else
+ raise ArgumentError, "Expected a Symbol method name or a Proc, got #{callback_or_method_name.inspect}"
+ end
+ end
+
+ unless every.kind_of?(Numeric) && every > 0
+ raise ArgumentError, "Expected every: to be a positive number of seconds, got #{every.inspect}"
+ end
+
+ self.periodic_timers += [[ callback, every: every ]]
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Streams.html b/src/classes/ActionCable/Channel/Streams.html
index 0967feb616..a2e686a3e9 100644
--- a/src/classes/ActionCable/Channel/Streams.html
+++ b/src/classes/ActionCable/Channel/Streams.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -167,14 +167,14 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 137
- def stop_all_streams
- streams.each do |broadcasting, callback|
- pubsub.unsubscribe broadcasting, callback
- logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
- end.clear
- end
+def stop_all_streams
+ streams.each do |broadcasting, callback|
+ pubsub.unsubscribe broadcasting, callback
+ logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
+ end.clear
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -205,11 +205,11 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 132
- def stop_stream_for(model)
- stop_stream_from(broadcasting_for(model))
- end
+def stop_stream_for(model)
+ stop_stream_from(broadcasting_for(model))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,15 +240,15 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 123
- def stop_stream_from(broadcasting)
- callback = streams.delete(broadcasting)
- if callback
- pubsub.unsubscribe(broadcasting, callback)
- logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
- end
- end
+def stop_stream_from(broadcasting)
+ callback = streams.delete(broadcasting)
+ if callback
+ pubsub.unsubscribe(broadcasting, callback)
+ logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -281,11 +281,11 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 118
- def stream_for(broadcastables, callback = nil, coder: nil, &block)
- stream_from(broadcasting_for(broadcastables), callback || block, coder: coder)
- end
+def stream_for(broadcastables, callback = nil, coder: nil, &block)
+ stream_from(broadcasting_for(broadcastables), callback || block, coder: coder)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -316,28 +316,28 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 90
- def stream_from(broadcasting, callback = nil, coder: nil, &block)
- return if unsubscribed?
-
- broadcasting = String(broadcasting)
-
- # Don't send the confirmation until pubsub#subscribe is successful
- defer_subscription_confirmation!
-
- # Build a stream handler by wrapping the user-provided callback with a decoder
- # or defaulting to a JSON-decoding retransmitter.
- handler = worker_pool_stream_handler(broadcasting, callback || block, coder: coder)
- streams[broadcasting] = handler
-
- connection.server.event_loop.post do
- pubsub.subscribe(broadcasting, handler, lambda do
- ensure_confirmation_sent
- logger.info "#{self.class.name} is streaming from #{broadcasting}"
- end)
- end
- end
+def stream_from(broadcasting, callback = nil, coder: nil, &block)
+ return if unsubscribed?
+
+ broadcasting = String(broadcasting)
+
+ # Don't send the confirmation until pubsub#subscribe is successful
+ defer_subscription_confirmation!
+
+ # Build a stream handler by wrapping the user-provided callback with a decoder
+ # or defaulting to a JSON-decoding retransmitter.
+ handler = worker_pool_stream_handler(broadcasting, callback || block, coder: coder)
+ streams[broadcasting] = handler
+
+ connection.server.event_loop.post do
+ pubsub.subscribe(broadcasting, handler, lambda do
+ ensure_confirmation_sent
+ logger.info "#{self.class.name} is streaming from #{broadcasting}"
+ end)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -368,15 +368,15 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 146
- def stream_or_reject_for(model)
- if model
- stream_for model
- else
- reject
- end
- end
+def stream_or_reject_for(model)
+ if model
+ stream_for model
+ else
+ reject
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase.html b/src/classes/ActionCable/Channel/TestCase.html
index 08fb28c0cf..6317ff44d0 100644
--- a/src/classes/ActionCable/Channel/TestCase.html
+++ b/src/classes/ActionCable/Channel/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior.html b/src/classes/ActionCable/Channel/TestCase/Behavior.html
index b5f3a5cbb7..5a8ea0fd78 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -196,11 +196,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 282
- def assert_broadcast_on(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcast_on(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -231,11 +231,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 278
- def assert_broadcasts(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcasts(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,11 +272,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 326
- def assert_has_no_stream(stream)
- assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
- end
+def assert_has_no_stream(stream)
+ assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -313,11 +313,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 337
- def assert_has_no_stream_for(object)
- assert_has_no_stream(broadcasting_for(object))
- end
+def assert_has_no_stream_for(object)
+ assert_has_no_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -354,11 +354,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 304
- def assert_has_stream(stream)
- assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
- end
+def assert_has_stream(stream)
+ assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -395,11 +395,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 315
- def assert_has_stream_for(object)
- assert_has_stream(broadcasting_for(object))
- end
+def assert_has_stream_for(object)
+ assert_has_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -436,11 +436,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 293
- def assert_no_streams
- assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
- end
+def assert_no_streams
+ assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -473,12 +473,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 266
- def perform(action, data = {})
- check_subscribed!
- subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
- end
+def perform(action, data = {})
+ check_subscribed!
+ subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -516,11 +516,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 243
- def stub_connection(identifiers = {})
- @connection = ConnectionStub.new(identifiers)
- end
+def stub_connection(identifiers = {})
+ @connection = ConnectionStub.new(identifiers)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -551,15 +551,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 249
- def subscribe(params = {})
- @connection ||= stub_connection
- @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
- @subscription.singleton_class.include(ChannelStub)
- @subscription.subscribe_to_channel
- @subscription
- end
+def subscribe(params = {})
+ @connection ||= stub_connection
+ @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
+ @subscription.singleton_class.include(ChannelStub)
+ @subscription.subscribe_to_channel
+ @subscription
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -590,12 +590,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 272
- def transmissions
- # Return only directly sent message (via #transmit)
- connection.transmissions.filter_map { |data| data["message"] }
- end
+def transmissions
+ # Return only directly sent message (via #transmit)
+ connection.transmissions.filter_map { |data| data["message"] }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -626,12 +626,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 258
- def unsubscribe
- check_subscribed!
- subscription.unsubscribe_from_channel
- end
+def unsubscribe
+ check_subscribed!
+ subscription.unsubscribe_from_channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
index 48ea87f130..57efb4cdac 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 219
- def channel_class
- if channel = self._channel_class
- channel
- else
- tests determine_default_channel(name)
- end
- end
+def channel_class
+ if channel = self._channel_class
+ channel
+ else
+ tests determine_default_channel(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 227
- def determine_default_channel(name)
- channel = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Channel::Base
- end
- raise NonInferrableChannelError.new(name) if channel.nil?
- channel
- end
+def determine_default_channel(name)
+ channel = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Channel::Base
+ end
+ raise NonInferrableChannelError.new(name) if channel.nil?
+ channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 208
- def tests(channel)
- case channel
- when String, Symbol
- self._channel_class = channel.to_s.camelize.constantize
- when Module
- self._channel_class = channel
- else
- raise NonInferrableChannelError.new(channel)
- end
- end
+def tests(channel)
+ case channel
+ when String, Symbol
+ self._channel_class = channel.to_s.camelize.constantize
+ when Module
+ self._channel_class = channel
+ else
+ raise NonInferrableChannelError.new(channel)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection.html b/src/classes/ActionCable/Connection.html
index f832214f0e..7889c75284 100644
--- a/src/classes/ActionCable/Connection.html
+++ b/src/classes/ActionCable/Connection.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Assertions.html b/src/classes/ActionCable/Connection/Assertions.html
index 933ea80e4c..6b10ec5528 100644
--- a/src/classes/ActionCable/Connection/Assertions.html
+++ b/src/classes/ActionCable/Connection/Assertions.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 28
- def assert_reject_connection(&block)
- assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
- end
+def assert_reject_connection(&block)
+ assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization.html b/src/classes/ActionCable/Connection/Authorization.html
index feb855aa9e..baf85a37b3 100644
--- a/src/classes/ActionCable/Connection/Authorization.html
+++ b/src/classes/ActionCable/Connection/Authorization.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -97,12 +97,12 @@
# File actioncable/lib/action_cable/connection/authorization.rb, line 12
- def reject_unauthorized_connection
- logger.error "An unauthorized connection attempt was rejected"
- raise UnauthorizedError
- end
+def reject_unauthorized_connection
+ logger.error "An unauthorized connection attempt was rejected"
+ raise UnauthorizedError
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
index b63b282b0b..ff36299a28 100644
--- a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
+++ b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/Base.html b/src/classes/ActionCable/Connection/Base.html
index 36a2f1e1bb..ea0d62911f 100644
--- a/src/classes/ActionCable/Connection/Base.html
+++ b/src/classes/ActionCable/Connection/Base.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -255,21 +255,21 @@
# File actioncable/lib/action_cable/connection/base.rb, line 67
- def initialize(server, env, coder: ActiveSupport::JSON)
- @server, @env, @coder = server, env, coder
+def initialize(server, env, coder: ActiveSupport::JSON)
+ @server, @env, @coder = server, env, coder
- @worker_pool = server.worker_pool
- @logger = new_tagged_logger
+ @worker_pool = server.worker_pool
+ @logger = new_tagged_logger
- @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
+ @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
- @_internal_subscriptions = nil
- @started_at = Time.now
- end
+ @_internal_subscriptions = nil
+ @started_at = Time.now
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -304,11 +304,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 147
- def beat
- transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
- end
+def beat
+ transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -339,16 +339,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 120
- def close(reason: nil, reconnect: true)
- transmit(
- type: ActionCable::INTERNAL[:message_types][:disconnect],
- reason: reason,
- reconnect: reconnect
- )
- websocket.close
- end
+def close(reason: nil, reconnect: true)
+ transmit(
+ type: ActionCable::INTERNAL[:message_types][:disconnect],
+ reason: reason,
+ reconnect: reconnect
+ )
+ websocket.close
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -379,13 +379,13 @@
# File actioncable/lib/action_cable/connection/base.rb, line 109
- def handle_channel_command(payload)
- run_callbacks :command do
- subscriptions.execute_command payload
- end
- end
+def handle_channel_command(payload)
+ run_callbacks :command do
+ subscriptions.execute_command payload
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -416,11 +416,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 131
- def send_async(method, *arguments)
- worker_pool.async_invoke(self, method, *arguments)
- end
+def send_async(method, *arguments)
+ worker_pool.async_invoke(self, method, *arguments)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -451,16 +451,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 138
- def statistics
- {
- identifier: connection_identifier,
- started_at: @started_at,
- subscriptions: subscriptions.identifiers,
- request_id: @env["action_dispatch.request_id"]
- }
- end
+def statistics
+ {
+ identifier: connection_identifier,
+ started_at: @started_at,
+ subscriptions: subscriptions.identifiers,
+ request_id: @env["action_dispatch.request_id"]
+ }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -494,11 +494,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 187
- def cookies # :doc:
- request.cookie_jar
- end
+def cookies # :doc:
+ request.cookie_jar
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -529,14 +529,14 @@
# File actioncable/lib/action_cable/connection/base.rb, line 178
- def request # :doc:
- @request ||= begin
- environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
- ActionDispatch::Request.new(environment || env)
- end
- end
+def request # :doc:
+ @request ||= begin
+ environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
+ ActionDispatch::Request.new(environment || env)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Callbacks.html b/src/classes/ActionCable/Connection/Callbacks.html
index 818958bf81..d6504ca284 100644
--- a/src/classes/ActionCable/Connection/Callbacks.html
+++ b/src/classes/ActionCable/Connection/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
index 933056a029..6376d7195b 100644
--- a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,11 +90,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 47
- def after_command(*methods, &block)
- set_callback(:command, :after, *methods, &block)
- end
+def after_command(*methods, &block)
+ set_callback(:command, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -125,11 +125,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 51
- def around_command(*methods, &block)
- set_callback(:command, :around, *methods, &block)
- end
+def around_command(*methods, &block)
+ set_callback(:command, :around, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -160,11 +160,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 43
- def before_command(*methods, &block)
- set_callback(:command, :before, *methods, &block)
- end
+def before_command(*methods, &block)
+ set_callback(:command, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification.html b/src/classes/ActionCable/Connection/Identification.html
index f3dcea9bfc..063ca88999 100644
--- a/src/classes/ActionCable/Connection/Identification.html
+++ b/src/classes/ActionCable/Connection/Identification.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,15 +95,15 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 29
- def connection_identifier
- unless defined? @connection_identifier
- @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
- end
+def connection_identifier
+ unless defined? @connection_identifier
+ @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
+ end
- @connection_identifier
- end
+ @connection_identifier
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification/ClassMethods.html b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
index 324ded31f5..a3395ef8a3 100644
--- a/src/classes/ActionCable/Connection/Identification/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -84,12 +84,12 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 21
- def identified_by(*identifiers)
- Array(identifiers).each { |identifier| attr_accessor identifier }
- self.identifiers += identifiers
- end
+def identified_by(*identifiers)
+ Array(identifiers).each { |identifier| attr_accessor identifier }
+ self.identifiers += identifiers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/InternalChannel.html b/src/classes/ActionCable/Connection/InternalChannel.html
index 9b0144f690..cfdccceaf4 100644
--- a/src/classes/ActionCable/Connection/InternalChannel.html
+++ b/src/classes/ActionCable/Connection/InternalChannel.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
index 7167904452..bf0c696d62 100644
--- a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
+++ b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 15
- def initialize(name)
- super "Unable to determine the connection to test from #{name}. " +
- "You'll need to specify it using `tests YourConnection` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the connection to test from #{name}. " +
+ "You'll need to specify it using `tests YourConnection` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/StreamEventLoop.html b/src/classes/ActionCable/Connection/StreamEventLoop.html
index 2b71a213e3..f7c49354ef 100644
--- a/src/classes/ActionCable/Connection/StreamEventLoop.html
+++ b/src/classes/ActionCable/Connection/StreamEventLoop.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -111,16 +111,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 10
- def initialize
- @nio = @executor = @thread = nil
- @map = {}
- @stopping = false
- @todo = Queue.new
-
- @spawn_mutex = Mutex.new
- end
+def initialize
+ @nio = @executor = @thread = nil
+ @map = {}
+ @stopping = false
+ @todo = Queue.new
+
+ @spawn_mutex = Mutex.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -155,15 +155,15 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 30
- def attach(io, stream)
- @todo << lambda do
- @map[io] = @nio.register(io, :r)
- @map[io].value = stream
- end
- wakeup
- end
+def attach(io, stream)
+ @todo << lambda do
+ @map[io] = @nio.register(io, :r)
+ @map[io].value = stream
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -194,16 +194,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 38
- def detach(io, stream)
- @todo << lambda do
- @nio.deregister io
- @map.delete io
- io.close
- end
- wakeup
- end
+def detach(io, stream)
+ @todo << lambda do
+ @nio.deregister io
+ @map.delete io
+ io.close
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -234,14 +234,14 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 23
- def post(task = nil, &block)
- task ||= block
+def post(task = nil, &block)
+ task ||= block
- spawn
- @executor << task
- end
+ spawn
+ @executor << task
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,12 +272,12 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 56
- def stop
- @stopping = true
- wakeup if @nio
- end
+def stop
+ @stopping = true
+ wakeup if @nio
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -308,11 +308,11 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 19
- def timer(interval, &block)
- Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
- end
+def timer(interval, &block)
+ Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -343,16 +343,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 47
- def writes_pending(io)
- @todo << lambda do
- if monitor = @map[io]
- monitor.interests = :rw
- end
- end
- wakeup
- end
+def writes_pending(io)
+ @todo << lambda do
+ if monitor = @map[io]
+ monitor.interests = :rw
+ end
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
index f4d5cacc63..99731855fb 100644
--- a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
+++ b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -121,12 +121,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 16
- def initialize(logger, tags:)
- @logger = logger
- @tags = tags.flatten
- end
+def initialize(logger, tags:)
+ @logger = logger
+ @tags = tags.flatten
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -161,12 +161,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 21
- def add_tags(*tags)
- @tags += tags.flatten
- @tags = @tags.uniq
- end
+def add_tags(*tags)
+ @tags += tags.flatten
+ @tags = @tags.uniq
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -197,16 +197,16 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 26
- def tag(logger, &block)
- if logger.respond_to?(:tagged)
- current_tags = tags - logger.formatter.current_tags
- logger.tagged(*current_tags, &block)
- else
- yield
- end
- end
+def tag(logger, &block)
+ if logger.respond_to?(:tagged)
+ current_tags = tags - logger.formatter.current_tags
+ logger.tagged(*current_tags, &block)
+ else
+ yield
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,11 +240,11 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 42
- def log(type, message, &block) # :doc:
- tag(@logger) { @logger.send type, message, &block }
- end
+def log(type, message, &block) # :doc:
+ tag(@logger) { @logger.send type, message, &block }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase.html b/src/classes/ActionCable/Connection/TestCase.html
index 948378e491..39bc5cb056 100644
--- a/src/classes/ActionCable/Connection/TestCase.html
+++ b/src/classes/ActionCable/Connection/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior.html b/src/classes/ActionCable/Connection/TestCase/Behavior.html
index b87870becd..4ee0debbea 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -163,19 +163,19 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 192
- def connect(path = ActionCable.server.config.mount_path, **request_params)
- path ||= DEFAULT_PATH
+def connect(path = ActionCable.server.config.mount_path, **request_params)
+ path ||= DEFAULT_PATH
- connection = self.class.connection_class.allocate
- connection.singleton_class.include(TestConnection)
- connection.send(:initialize, build_test_request(path, **request_params))
- connection.connect if connection.respond_to?(:connect)
+ connection = self.class.connection_class.allocate
+ connection.singleton_class.include(TestConnection)
+ connection.send(:initialize, build_test_request(path, **request_params))
+ connection.connect if connection.respond_to?(:connect)
- # Only set instance variable if connected successfully
- @connection = connection
- end
+ # Only set instance variable if connected successfully
+ @connection = connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -206,11 +206,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 212
- def cookies
- @cookie_jar ||= TestCookieJar.new
- end
+def cookies
+ @cookie_jar ||= TestCookieJar.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -241,14 +241,14 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 205
- def disconnect
- raise "Must be connected!" if connection.nil?
+def disconnect
+ raise "Must be connected!" if connection.nil?
- connection.disconnect if connection.respond_to?(:disconnect)
- @connection = nil
- end
+ connection.disconnect if connection.respond_to?(:disconnect)
+ @connection = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
index 63444f4b27..99fc0e3f6f 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 167
- def connection_class
- if connection = self._connection_class
- connection
- else
- tests determine_default_connection(name)
- end
- end
+def connection_class
+ if connection = self._connection_class
+ connection
+ else
+ tests determine_default_connection(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 175
- def determine_default_connection(name)
- connection = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Connection::Base
- end
- raise NonInferrableConnectionError.new(name) if connection.nil?
- connection
- end
+def determine_default_connection(name)
+ connection = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Connection::Base
+ end
+ raise NonInferrableConnectionError.new(name) if connection.nil?
+ connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actionpack/lib/abstract_controller/translation.rb, line 37
- def localize(object, **options)
- I18n.localize(object, **options)
- end
+def localize(object, **options)
+ I18n.localize(object, **options)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -189,25 +189,25 @@
# File actionpack/lib/abstract_controller/translation.rb, line 17
- def translate(key, **options)
- if key&.start_with?(".")
- path = controller_path.tr("/", ".")
- defaults = [:"#{path}#{key}"]
- defaults << options[:default] if options[:default]
- options[:default] = defaults.flatten
- key = "#{path}.#{action_name}#{key}"
- end
-
- if options[:default] && ActiveSupport::HtmlSafeTranslation.html_safe_translation_key?(key)
- options[:default] = Array(options[:default]).map do |value|
- value.is_a?(String) ? ERB::Util.html_escape(value) : value
- end
- end
-
- ActiveSupport::HtmlSafeTranslation.translate(key, **options)
- end
+def translate(key, **options)
+ if key&.start_with?(".")
+ path = controller_path.tr("/", ".")
+ defaults = [:"#{path}#{key}"]
+ defaults << options[:default] if options[:default]
+ options[:default] = defaults.flatten
+ key = "#{path}.#{action_name}#{key}"
+ end
+
+ if options[:default] && ActiveSupport::HtmlSafeTranslation.html_safe_translation_key?(key)
+ options[:default] = Array(options[:default]).map do |value|
+ value.is_a?(String) ? ERB::Util.html_escape(value) : value
+ end
+ end
+
+ ActiveSupport::HtmlSafeTranslation.translate(key, **options)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/UrlFor.html b/src/classes/AbstractController/UrlFor.html
index 8d49da9f5c..bd5d0224eb 100644
--- a/src/classes/AbstractController/UrlFor.html
+++ b/src/classes/AbstractController/UrlFor.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -119,12 +119,12 @@
# File actionpack/lib/abstract_controller/url_for.rb, line 18
- def _routes
- raise "In order to use #url_for, you must include routing helpers explicitly. " \
- "For instance, `include Rails.application.routes.url_helpers`."
- end
+def _routes
+ raise "In order to use #url_for, you must include routing helpers explicitly. " \
+ "For instance, `include Rails.application.routes.url_helpers`."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/UrlFor/ClassMethods.html b/src/classes/AbstractController/UrlFor/ClassMethods.html
index cd0e5e9509..e4471b2d66 100644
--- a/src/classes/AbstractController/UrlFor/ClassMethods.html
+++ b/src/classes/AbstractController/UrlFor/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actionpack/lib/abstract_controller/url_for.rb, line 24
- def _routes
- nil
- end
+def _routes
+ nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -121,15 +121,15 @@
# File actionpack/lib/abstract_controller/url_for.rb, line 28
- def action_methods
- @action_methods ||= if _routes
- super - _routes.named_routes.helper_names
- else
- super
- end
- end
+def action_methods
+ @action_methods ||= if _routes
+ super - _routes.named_routes.helper_names
+ else
+ super
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable.html b/src/classes/ActionCable.html
index 4951b5813f..5e5f891dce 100644
--- a/src/classes/ActionCable.html
+++ b/src/classes/ActionCable.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -267,11 +267,11 @@
# File actioncable/lib/action_cable/gem_version.rb, line 7
- def self.gem_version
- Gem::Version.new VERSION::STRING
- end
+def self.gem_version
+ Gem::Version.new VERSION::STRING
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -302,11 +302,11 @@
# File actioncable/lib/action_cable/version.rb, line 9
- def self.version
- gem_version
- end
+def self.version
+ gem_version
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -341,11 +341,11 @@
# File actioncable/lib/action_cable.rb, line 77
- def server
- @server ||= ActionCable::Server::Base.new
- end
+def server
+@server ||= ActionCable::Server::Base.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel.html b/src/classes/ActionCable/Channel.html
index 38c886ddbc..06b36ff362 100644
--- a/src/classes/ActionCable/Channel.html
+++ b/src/classes/ActionCable/Channel.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Channel/Base.html b/src/classes/ActionCable/Channel/Base.html
index bc63a53315..32e2ff9b70 100644
--- a/src/classes/ActionCable/Channel/Base.html
+++ b/src/classes/ActionCable/Channel/Base.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -82,7 +82,7 @@ Action process
end
-
In this example, the subscribed and unsubscribed methods are not callable methods, as they were already declared in ActionCable::Channel::Base, but #appear and #away are. #generate_connection_token is also not callable, since it’s a private method. You’ll see that appear accepts a data parameter, which it then uses as part of its model call. #away does not, since it’s simply a trigger action.
+In this example, the subscribed and unsubscribed methods are not callable methods, as they were already declared in ActionCable::Channel::Base, but appear and away are. generate_connection_token is also not callable, since it’s a private method. You’ll see that appear accepts a data parameter, which it then uses as part of its model call. away does not, since it’s simply a trigger action.
Also note that in this example, current_user is available because it was marked as an identifying attribute on the connection. All such identifiers will automatically create a delegation method of the same name on the channel instance.
@@ -307,19 +307,22 @@ Returns
# File actioncable/lib/action_cable/channel/base.rb, line 128
- def action_methods
- @action_methods ||= begin
- # All public instance methods of this class, including ancestors
- methods = (public_instance_methods(true) -
- # Except for public instance methods of Base and its ancestors
- ActionCable::Channel::Base.public_instance_methods(true) +
- # Be sure to include shadowed public instance methods of this class
- public_instance_methods(false)).uniq.map(&:to_s)
- methods.to_set
- end
- end
-
- 🔎 See on GitHub
+def action_methods
+ @action_methods ||= begin
+ # All public instance methods of this class, including ancestors
+ methods = (public_instance_methods(true) -
+ # Except for public instance methods of Base and its ancestors
+ ActionCable::Channel::Base.public_instance_methods(true) +
+ # Be sure to include shadowed public instance methods of this class
+ public_instance_methods(false)).uniq
+
+ methods.reject! { |m| m.start_with?("_") }
+ methods.map!(&:name)
+ methods.to_set
+ end
+end
+
+ 🔎 See on GitHub
@@ -349,26 +352,26 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 155
- def initialize(connection, identifier, params = {})
- @connection = connection
- @identifier = identifier
- @params = params
+ # File actioncable/lib/action_cable/channel/base.rb, line 158
+def initialize(connection, identifier, params = {})
+ @connection = connection
+ @identifier = identifier
+ @params = params
- # When a channel is streaming via pubsub, we want to delay the confirmation
- # transmission until pubsub subscription is confirmed.
- #
- # The counter starts at 1 because it's awaiting a call to #subscribe_to_channel
- @defer_subscription_confirmation_counter = Concurrent::AtomicFixnum.new(1)
+ # When a channel is streaming via pubsub, we want to delay the confirmation
+ # transmission until pubsub subscription is confirmed.
+ #
+ # The counter starts at 1 because it's awaiting a call to #subscribe_to_channel
+ @defer_subscription_confirmation_counter = Concurrent::AtomicFixnum.new(1)
- @reject_subscription = nil
- @subscription_confirmation_sent = nil
- @unsubscribed = false
+ @reject_subscription = nil
+ @subscription_confirmation_sent = nil
+ @unsubscribed = false
- delegate_connection_identifiers
- end
+ delegate_connection_identifiers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -401,12 +404,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 144
- def clear_action_methods! # :doc:
- @action_methods = nil
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 147
+def clear_action_methods! # :doc:
+ @action_methods = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -436,13 +439,13 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 149
- def method_added(name) # :doc:
- super
- clear_action_methods!
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 152
+def method_added(name) # :doc:
+ super
+ clear_action_methods!
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -476,21 +479,21 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 176
- def perform_action(data)
- action = extract_action(data)
+ # File actioncable/lib/action_cable/channel/base.rb, line 179
+def perform_action(data)
+ action = extract_action(data)
- if processable_action?(action)
- payload = { channel_class: self.class.name, action: action, data: data }
- ActiveSupport::Notifications.instrument("perform_action.action_cable", payload) do
- dispatch_action(action, data)
- end
- else
- logger.error "Unable to process #{action_signature(action, data)}"
- end
- end
+ if processable_action?(action)
+ payload = { channel_class: self.class.name, action: action, data: data }
+ ActiveSupport::Notifications.instrument("perform_action.action_cable", payload) do
+ dispatch_action(action, data)
+ end
+ else
+ logger.error "Unable to process #{action_signature(action, data)}"
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -520,17 +523,17 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 191
- def subscribe_to_channel
- run_callbacks :subscribe do
- subscribed
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 194
+def subscribe_to_channel
+ run_callbacks :subscribe do
+ subscribed
+ end
- reject_subscription if subscription_rejected?
- ensure_confirmation_sent
- end
+ reject_subscription if subscription_rejected?
+ ensure_confirmation_sent
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -563,12 +566,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 250
- def defer_subscription_confirmation! # :doc:
- @defer_subscription_confirmation_counter.increment
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 253
+def defer_subscription_confirmation! # :doc:
+ @defer_subscription_confirmation_counter.increment
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -598,12 +601,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 254
- def defer_subscription_confirmation? # :doc:
- @defer_subscription_confirmation_counter.value > 0
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 257
+def defer_subscription_confirmation? # :doc:
+ @defer_subscription_confirmation_counter.value > 0
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -633,14 +636,14 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 244
- def ensure_confirmation_sent # :doc:
- return if subscription_rejected?
- @defer_subscription_confirmation_counter.decrement
- transmit_subscription_confirmation unless defer_subscription_confirmation?
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 247
+def ensure_confirmation_sent # :doc:
+ return if subscription_rejected?
+ @defer_subscription_confirmation_counter.decrement
+ transmit_subscription_confirmation unless defer_subscription_confirmation?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -670,12 +673,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 262
- def reject # :doc:
- @reject_subscription = true
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 265
+def reject # :doc:
+ @reject_subscription = true
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -705,12 +708,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 218
- def subscribed # :doc:
- # Override in subclasses
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 221
+def subscribed # :doc:
+ # Override in subclasses
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -740,12 +743,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 258
- def subscription_confirmation_sent? # :doc:
- @subscription_confirmation_sent
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 261
+def subscription_confirmation_sent? # :doc:
+ @subscription_confirmation_sent
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -775,12 +778,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 266
- def subscription_rejected? # :doc:
- @reject_subscription
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 269
+def subscription_rejected? # :doc:
+ @reject_subscription
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -810,21 +813,21 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 231
- def transmit(data, via: nil) # :doc:
- logger.debug do
- status = "#{self.class.name} transmitting #{data.inspect.truncate(300)}"
- status += " (via #{via})" if via
- status
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 234
+def transmit(data, via: nil) # :doc:
+ logger.debug do
+ status = "#{self.class.name} transmitting #{data.inspect.truncate(300)}"
+ status += " (via #{via})" if via
+ status
+ end
- payload = { channel_class: self.class.name, data: data, via: via }
- ActiveSupport::Notifications.instrument("transmit.action_cable", payload) do
- connection.transmit identifier: @identifier, message: data
- end
- end
+ payload = { channel_class: self.class.name, data: data, via: via }
+ ActiveSupport::Notifications.instrument("transmit.action_cable", payload) do
+ connection.transmit identifier: @identifier, message: data
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -854,12 +857,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 224
- def unsubscribed # :doc:
- # Override in subclasses
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 227
+def unsubscribed # :doc:
+ # Override in subclasses
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Broadcasting.html b/src/classes/ActionCable/Channel/Broadcasting.html
index bb71b89445..7fecc3f6b8 100644
--- a/src/classes/ActionCable/Channel/Broadcasting.html
+++ b/src/classes/ActionCable/Channel/Broadcasting.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -99,11 +99,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 45
- def broadcast_to(model, message)
- self.class.broadcast_to(model, message)
- end
+def broadcast_to(model, message)
+ self.class.broadcast_to(model, message)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -134,11 +134,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 41
- def broadcasting_for(model)
- self.class.broadcasting_for(model)
- end
+def broadcasting_for(model)
+ self.class.broadcasting_for(model)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html b/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
index 684bccb1ab..432bb5d74f 100644
--- a/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 14
- def broadcast_to(broadcastables, message)
- ActionCable.server.broadcast(broadcasting_for(broadcastables), message)
- end
+def broadcast_to(broadcastables, message)
+ ActionCable.server.broadcast(broadcasting_for(broadcastables), message)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -126,11 +126,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 24
- def broadcasting_for(broadcastables)
- serialize_broadcasting([ channel_name ] + Array(broadcastables))
- end
+def broadcasting_for(broadcastables)
+ serialize_broadcasting([ channel_name ] + Array(broadcastables))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Callbacks.html b/src/classes/ActionCable/Channel/Callbacks.html
index 076bdbc8fa..64985186c3 100644
--- a/src/classes/ActionCable/Channel/Callbacks.html
+++ b/src/classes/ActionCable/Channel/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html b/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
index 6ee4317311..7949b5fdf6 100644
--- a/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -111,11 +111,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 60
- def after_subscribe(*methods, &block)
- set_callback(:subscribe, :after, *methods, &block)
- end
+def after_subscribe(*methods, &block)
+ set_callback(:subscribe, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -150,11 +150,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 69
- def after_unsubscribe(*methods, &block)
- set_callback(:unsubscribe, :after, *methods, &block)
- end
+def after_unsubscribe(*methods, &block)
+ set_callback(:unsubscribe, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -185,11 +185,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 48
- def before_subscribe(*methods, &block)
- set_callback(:subscribe, :before, *methods, &block)
- end
+def before_subscribe(*methods, &block)
+ set_callback(:subscribe, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -220,11 +220,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 65
- def before_unsubscribe(*methods, &block)
- set_callback(:unsubscribe, :before, *methods, &block)
- end
+def before_unsubscribe(*methods, &block)
+ set_callback(:unsubscribe, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/ChannelStub.html b/src/classes/ActionCable/Channel/ChannelStub.html
index 9db98daac2..d004896dc5 100644
--- a/src/classes/ActionCable/Channel/ChannelStub.html
+++ b/src/classes/ActionCable/Channel/ChannelStub.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -25,7 +25,7 @@
Action Cable Channel Stub
-
Stub stream_from to track streams for the channel. Add public aliases for subscription_confirmation_sent? and subscription_rejected?.
+Stub stream_from to track streams for the channel. Add public aliases for subscription_confirmation_sent? and subscription_rejected?.
@@ -114,11 +114,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 25
- def confirmed?
- subscription_confirmation_sent?
- end
+def confirmed?
+ subscription_confirmation_sent?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -149,11 +149,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 29
- def rejected?
- subscription_rejected?
- end
+def rejected?
+ subscription_rejected?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -188,9 +188,9 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 46
- def start_periodic_timers; end
+def start_periodic_timers; end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -221,11 +221,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 37
- def stop_all_streams
- @_streams = []
- end
+def stop_all_streams
+ @_streams = []
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -281,11 +281,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 33
- def stream_from(broadcasting, *)
- streams << broadcasting
- end
+def stream_from(broadcasting, *)
+ streams << broadcasting
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -316,11 +316,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 41
- def streams
- @_streams ||= []
- end
+def streams
+ @_streams ||= []
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/ConnectionStub.html b/src/classes/ActionCable/Channel/ConnectionStub.html
index 62c52b567f..0fdc0d8690 100644
--- a/src/classes/ActionCable/Channel/ConnectionStub.html
+++ b/src/classes/ActionCable/Channel/ConnectionStub.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -141,20 +141,20 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 55
- def initialize(identifiers = {})
- @server = ActionCable.server
- @transmissions = []
-
- identifiers.each do |identifier, val|
- define_singleton_method(identifier) { val }
- end
-
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @identifiers = identifiers.keys
- @logger = ActiveSupport::TaggedLogging.new ActiveSupport::Logger.new(StringIO.new)
- end
+def initialize(identifiers = {})
+ @server = ActionCable.server
+ @transmissions = []
+
+ identifiers.each do |identifier, val|
+ define_singleton_method(identifier) { val }
+ end
+
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @identifiers = identifiers.keys
+ @logger = ActiveSupport::TaggedLogging.new ActiveSupport::Logger.new(StringIO.new)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -189,11 +189,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 72
- def connection_identifier
- @connection_identifier ||= connection_gid(identifiers.filter_map { |id| send(id.to_sym) if id })
- end
+def connection_identifier
+ @connection_identifier ||= connection_gid(identifiers.filter_map { |id| send(id.to_sym) if id })
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -224,11 +224,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 68
- def transmit(cable_message)
- transmissions << cable_message.with_indifferent_access
- end
+def transmit(cable_message)
+ transmissions << cable_message.with_indifferent_access
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Naming.html b/src/classes/ActionCable/Channel/Naming.html
index 84bfc0232c..db2aa18589 100644
--- a/src/classes/ActionCable/Channel/Naming.html
+++ b/src/classes/ActionCable/Channel/Naming.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,11 +95,11 @@
# File actioncable/lib/action_cable/channel/naming.rb, line 23
- def channel_name
- self.class.channel_name
- end
+def channel_name
+ self.class.channel_name
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Naming/ClassMethods.html b/src/classes/ActionCable/Channel/Naming/ClassMethods.html
index b847309f12..e99c0744a7 100644
--- a/src/classes/ActionCable/Channel/Naming/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Naming/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -66,7 +66,7 @@
- Returns the name of the channel, underscored, without the Channel ending. If the channel is in a namespace, then the namespaces are represented by single colon separators in the channel name.
+ Returns the name of the channel, underscored, without the Channel ending. If the channel is in a namespace, then the namespaces are represented by single colon separators in the channel name.
ChatChannel.channel_name # => 'chat'
Chats::AppearancesChannel.channel_name # => 'chats:appearances'
@@ -87,11 +87,11 @@
# File actioncable/lib/action_cable/channel/naming.rb, line 18
- def channel_name
- @channel_name ||= name.delete_suffix("Channel").gsub("::", ":").underscore
- end
+def channel_name
+ @channel_name ||= name.delete_suffix("Channel").gsub("::", ":").underscore
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/NonInferrableChannelError.html b/src/classes/ActionCable/Channel/NonInferrableChannelError.html
index 034c36b135..1eac81cbd2 100644
--- a/src/classes/ActionCable/Channel/NonInferrableChannelError.html
+++ b/src/classes/ActionCable/Channel/NonInferrableChannelError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 13
- def initialize(name)
- super "Unable to determine the channel to test from #{name}. " +
- "You'll need to specify it using `tests YourChannel` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the channel to test from #{name}. " +
+ "You'll need to specify it using `tests YourChannel` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/PeriodicTimers.html b/src/classes/ActionCable/Channel/PeriodicTimers.html
index 88facef675..561da6e0dd 100644
--- a/src/classes/ActionCable/Channel/PeriodicTimers.html
+++ b/src/classes/ActionCable/Channel/PeriodicTimers.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html b/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
index 233865e2e3..a694f6de16 100644
--- a/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -91,30 +91,30 @@
# File actioncable/lib/action_cable/channel/periodic_timers.rb, line 31
- def periodically(callback_or_method_name = nil, every:, &block)
- callback =
- if block_given?
- raise ArgumentError, "Pass a block or provide a callback arg, not both" if callback_or_method_name
- block
- else
- case callback_or_method_name
- when Proc
- callback_or_method_name
- when Symbol
- -> { __send__ callback_or_method_name }
- else
- raise ArgumentError, "Expected a Symbol method name or a Proc, got #{callback_or_method_name.inspect}"
- end
- end
-
- unless every.kind_of?(Numeric) && every > 0
- raise ArgumentError, "Expected every: to be a positive number of seconds, got #{every.inspect}"
- end
-
- self.periodic_timers += [[ callback, every: every ]]
- end
+def periodically(callback_or_method_name = nil, every:, &block)
+ callback =
+ if block_given?
+ raise ArgumentError, "Pass a block or provide a callback arg, not both" if callback_or_method_name
+ block
+ else
+ case callback_or_method_name
+ when Proc
+ callback_or_method_name
+ when Symbol
+ -> { __send__ callback_or_method_name }
+ else
+ raise ArgumentError, "Expected a Symbol method name or a Proc, got #{callback_or_method_name.inspect}"
+ end
+ end
+
+ unless every.kind_of?(Numeric) && every > 0
+ raise ArgumentError, "Expected every: to be a positive number of seconds, got #{every.inspect}"
+ end
+
+ self.periodic_timers += [[ callback, every: every ]]
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Streams.html b/src/classes/ActionCable/Channel/Streams.html
index 0967feb616..a2e686a3e9 100644
--- a/src/classes/ActionCable/Channel/Streams.html
+++ b/src/classes/ActionCable/Channel/Streams.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -167,14 +167,14 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 137
- def stop_all_streams
- streams.each do |broadcasting, callback|
- pubsub.unsubscribe broadcasting, callback
- logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
- end.clear
- end
+def stop_all_streams
+ streams.each do |broadcasting, callback|
+ pubsub.unsubscribe broadcasting, callback
+ logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
+ end.clear
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -205,11 +205,11 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 132
- def stop_stream_for(model)
- stop_stream_from(broadcasting_for(model))
- end
+def stop_stream_for(model)
+ stop_stream_from(broadcasting_for(model))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,15 +240,15 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 123
- def stop_stream_from(broadcasting)
- callback = streams.delete(broadcasting)
- if callback
- pubsub.unsubscribe(broadcasting, callback)
- logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
- end
- end
+def stop_stream_from(broadcasting)
+ callback = streams.delete(broadcasting)
+ if callback
+ pubsub.unsubscribe(broadcasting, callback)
+ logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -281,11 +281,11 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 118
- def stream_for(broadcastables, callback = nil, coder: nil, &block)
- stream_from(broadcasting_for(broadcastables), callback || block, coder: coder)
- end
+def stream_for(broadcastables, callback = nil, coder: nil, &block)
+ stream_from(broadcasting_for(broadcastables), callback || block, coder: coder)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -316,28 +316,28 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 90
- def stream_from(broadcasting, callback = nil, coder: nil, &block)
- return if unsubscribed?
-
- broadcasting = String(broadcasting)
-
- # Don't send the confirmation until pubsub#subscribe is successful
- defer_subscription_confirmation!
-
- # Build a stream handler by wrapping the user-provided callback with a decoder
- # or defaulting to a JSON-decoding retransmitter.
- handler = worker_pool_stream_handler(broadcasting, callback || block, coder: coder)
- streams[broadcasting] = handler
-
- connection.server.event_loop.post do
- pubsub.subscribe(broadcasting, handler, lambda do
- ensure_confirmation_sent
- logger.info "#{self.class.name} is streaming from #{broadcasting}"
- end)
- end
- end
+def stream_from(broadcasting, callback = nil, coder: nil, &block)
+ return if unsubscribed?
+
+ broadcasting = String(broadcasting)
+
+ # Don't send the confirmation until pubsub#subscribe is successful
+ defer_subscription_confirmation!
+
+ # Build a stream handler by wrapping the user-provided callback with a decoder
+ # or defaulting to a JSON-decoding retransmitter.
+ handler = worker_pool_stream_handler(broadcasting, callback || block, coder: coder)
+ streams[broadcasting] = handler
+
+ connection.server.event_loop.post do
+ pubsub.subscribe(broadcasting, handler, lambda do
+ ensure_confirmation_sent
+ logger.info "#{self.class.name} is streaming from #{broadcasting}"
+ end)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -368,15 +368,15 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 146
- def stream_or_reject_for(model)
- if model
- stream_for model
- else
- reject
- end
- end
+def stream_or_reject_for(model)
+ if model
+ stream_for model
+ else
+ reject
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase.html b/src/classes/ActionCable/Channel/TestCase.html
index 08fb28c0cf..6317ff44d0 100644
--- a/src/classes/ActionCable/Channel/TestCase.html
+++ b/src/classes/ActionCable/Channel/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior.html b/src/classes/ActionCable/Channel/TestCase/Behavior.html
index b5f3a5cbb7..5a8ea0fd78 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -196,11 +196,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 282
- def assert_broadcast_on(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcast_on(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -231,11 +231,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 278
- def assert_broadcasts(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcasts(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,11 +272,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 326
- def assert_has_no_stream(stream)
- assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
- end
+def assert_has_no_stream(stream)
+ assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -313,11 +313,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 337
- def assert_has_no_stream_for(object)
- assert_has_no_stream(broadcasting_for(object))
- end
+def assert_has_no_stream_for(object)
+ assert_has_no_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -354,11 +354,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 304
- def assert_has_stream(stream)
- assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
- end
+def assert_has_stream(stream)
+ assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -395,11 +395,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 315
- def assert_has_stream_for(object)
- assert_has_stream(broadcasting_for(object))
- end
+def assert_has_stream_for(object)
+ assert_has_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -436,11 +436,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 293
- def assert_no_streams
- assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
- end
+def assert_no_streams
+ assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -473,12 +473,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 266
- def perform(action, data = {})
- check_subscribed!
- subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
- end
+def perform(action, data = {})
+ check_subscribed!
+ subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -516,11 +516,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 243
- def stub_connection(identifiers = {})
- @connection = ConnectionStub.new(identifiers)
- end
+def stub_connection(identifiers = {})
+ @connection = ConnectionStub.new(identifiers)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -551,15 +551,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 249
- def subscribe(params = {})
- @connection ||= stub_connection
- @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
- @subscription.singleton_class.include(ChannelStub)
- @subscription.subscribe_to_channel
- @subscription
- end
+def subscribe(params = {})
+ @connection ||= stub_connection
+ @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
+ @subscription.singleton_class.include(ChannelStub)
+ @subscription.subscribe_to_channel
+ @subscription
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -590,12 +590,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 272
- def transmissions
- # Return only directly sent message (via #transmit)
- connection.transmissions.filter_map { |data| data["message"] }
- end
+def transmissions
+ # Return only directly sent message (via #transmit)
+ connection.transmissions.filter_map { |data| data["message"] }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -626,12 +626,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 258
- def unsubscribe
- check_subscribed!
- subscription.unsubscribe_from_channel
- end
+def unsubscribe
+ check_subscribed!
+ subscription.unsubscribe_from_channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
index 48ea87f130..57efb4cdac 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 219
- def channel_class
- if channel = self._channel_class
- channel
- else
- tests determine_default_channel(name)
- end
- end
+def channel_class
+ if channel = self._channel_class
+ channel
+ else
+ tests determine_default_channel(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 227
- def determine_default_channel(name)
- channel = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Channel::Base
- end
- raise NonInferrableChannelError.new(name) if channel.nil?
- channel
- end
+def determine_default_channel(name)
+ channel = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Channel::Base
+ end
+ raise NonInferrableChannelError.new(name) if channel.nil?
+ channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 208
- def tests(channel)
- case channel
- when String, Symbol
- self._channel_class = channel.to_s.camelize.constantize
- when Module
- self._channel_class = channel
- else
- raise NonInferrableChannelError.new(channel)
- end
- end
+def tests(channel)
+ case channel
+ when String, Symbol
+ self._channel_class = channel.to_s.camelize.constantize
+ when Module
+ self._channel_class = channel
+ else
+ raise NonInferrableChannelError.new(channel)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection.html b/src/classes/ActionCable/Connection.html
index f832214f0e..7889c75284 100644
--- a/src/classes/ActionCable/Connection.html
+++ b/src/classes/ActionCable/Connection.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Assertions.html b/src/classes/ActionCable/Connection/Assertions.html
index 933ea80e4c..6b10ec5528 100644
--- a/src/classes/ActionCable/Connection/Assertions.html
+++ b/src/classes/ActionCable/Connection/Assertions.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 28
- def assert_reject_connection(&block)
- assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
- end
+def assert_reject_connection(&block)
+ assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization.html b/src/classes/ActionCable/Connection/Authorization.html
index feb855aa9e..baf85a37b3 100644
--- a/src/classes/ActionCable/Connection/Authorization.html
+++ b/src/classes/ActionCable/Connection/Authorization.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -97,12 +97,12 @@
# File actioncable/lib/action_cable/connection/authorization.rb, line 12
- def reject_unauthorized_connection
- logger.error "An unauthorized connection attempt was rejected"
- raise UnauthorizedError
- end
+def reject_unauthorized_connection
+ logger.error "An unauthorized connection attempt was rejected"
+ raise UnauthorizedError
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
index b63b282b0b..ff36299a28 100644
--- a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
+++ b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/Base.html b/src/classes/ActionCable/Connection/Base.html
index 36a2f1e1bb..ea0d62911f 100644
--- a/src/classes/ActionCable/Connection/Base.html
+++ b/src/classes/ActionCable/Connection/Base.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -255,21 +255,21 @@
# File actioncable/lib/action_cable/connection/base.rb, line 67
- def initialize(server, env, coder: ActiveSupport::JSON)
- @server, @env, @coder = server, env, coder
+def initialize(server, env, coder: ActiveSupport::JSON)
+ @server, @env, @coder = server, env, coder
- @worker_pool = server.worker_pool
- @logger = new_tagged_logger
+ @worker_pool = server.worker_pool
+ @logger = new_tagged_logger
- @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
+ @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
- @_internal_subscriptions = nil
- @started_at = Time.now
- end
+ @_internal_subscriptions = nil
+ @started_at = Time.now
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -304,11 +304,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 147
- def beat
- transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
- end
+def beat
+ transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -339,16 +339,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 120
- def close(reason: nil, reconnect: true)
- transmit(
- type: ActionCable::INTERNAL[:message_types][:disconnect],
- reason: reason,
- reconnect: reconnect
- )
- websocket.close
- end
+def close(reason: nil, reconnect: true)
+ transmit(
+ type: ActionCable::INTERNAL[:message_types][:disconnect],
+ reason: reason,
+ reconnect: reconnect
+ )
+ websocket.close
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -379,13 +379,13 @@
# File actioncable/lib/action_cable/connection/base.rb, line 109
- def handle_channel_command(payload)
- run_callbacks :command do
- subscriptions.execute_command payload
- end
- end
+def handle_channel_command(payload)
+ run_callbacks :command do
+ subscriptions.execute_command payload
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -416,11 +416,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 131
- def send_async(method, *arguments)
- worker_pool.async_invoke(self, method, *arguments)
- end
+def send_async(method, *arguments)
+ worker_pool.async_invoke(self, method, *arguments)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -451,16 +451,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 138
- def statistics
- {
- identifier: connection_identifier,
- started_at: @started_at,
- subscriptions: subscriptions.identifiers,
- request_id: @env["action_dispatch.request_id"]
- }
- end
+def statistics
+ {
+ identifier: connection_identifier,
+ started_at: @started_at,
+ subscriptions: subscriptions.identifiers,
+ request_id: @env["action_dispatch.request_id"]
+ }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -494,11 +494,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 187
- def cookies # :doc:
- request.cookie_jar
- end
+def cookies # :doc:
+ request.cookie_jar
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -529,14 +529,14 @@
# File actioncable/lib/action_cable/connection/base.rb, line 178
- def request # :doc:
- @request ||= begin
- environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
- ActionDispatch::Request.new(environment || env)
- end
- end
+def request # :doc:
+ @request ||= begin
+ environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
+ ActionDispatch::Request.new(environment || env)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Callbacks.html b/src/classes/ActionCable/Connection/Callbacks.html
index 818958bf81..d6504ca284 100644
--- a/src/classes/ActionCable/Connection/Callbacks.html
+++ b/src/classes/ActionCable/Connection/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
index 933056a029..6376d7195b 100644
--- a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,11 +90,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 47
- def after_command(*methods, &block)
- set_callback(:command, :after, *methods, &block)
- end
+def after_command(*methods, &block)
+ set_callback(:command, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -125,11 +125,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 51
- def around_command(*methods, &block)
- set_callback(:command, :around, *methods, &block)
- end
+def around_command(*methods, &block)
+ set_callback(:command, :around, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -160,11 +160,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 43
- def before_command(*methods, &block)
- set_callback(:command, :before, *methods, &block)
- end
+def before_command(*methods, &block)
+ set_callback(:command, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification.html b/src/classes/ActionCable/Connection/Identification.html
index f3dcea9bfc..063ca88999 100644
--- a/src/classes/ActionCable/Connection/Identification.html
+++ b/src/classes/ActionCable/Connection/Identification.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,15 +95,15 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 29
- def connection_identifier
- unless defined? @connection_identifier
- @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
- end
+def connection_identifier
+ unless defined? @connection_identifier
+ @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
+ end
- @connection_identifier
- end
+ @connection_identifier
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification/ClassMethods.html b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
index 324ded31f5..a3395ef8a3 100644
--- a/src/classes/ActionCable/Connection/Identification/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -84,12 +84,12 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 21
- def identified_by(*identifiers)
- Array(identifiers).each { |identifier| attr_accessor identifier }
- self.identifiers += identifiers
- end
+def identified_by(*identifiers)
+ Array(identifiers).each { |identifier| attr_accessor identifier }
+ self.identifiers += identifiers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/InternalChannel.html b/src/classes/ActionCable/Connection/InternalChannel.html
index 9b0144f690..cfdccceaf4 100644
--- a/src/classes/ActionCable/Connection/InternalChannel.html
+++ b/src/classes/ActionCable/Connection/InternalChannel.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
index 7167904452..bf0c696d62 100644
--- a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
+++ b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 15
- def initialize(name)
- super "Unable to determine the connection to test from #{name}. " +
- "You'll need to specify it using `tests YourConnection` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the connection to test from #{name}. " +
+ "You'll need to specify it using `tests YourConnection` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/StreamEventLoop.html b/src/classes/ActionCable/Connection/StreamEventLoop.html
index 2b71a213e3..f7c49354ef 100644
--- a/src/classes/ActionCable/Connection/StreamEventLoop.html
+++ b/src/classes/ActionCable/Connection/StreamEventLoop.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -111,16 +111,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 10
- def initialize
- @nio = @executor = @thread = nil
- @map = {}
- @stopping = false
- @todo = Queue.new
-
- @spawn_mutex = Mutex.new
- end
+def initialize
+ @nio = @executor = @thread = nil
+ @map = {}
+ @stopping = false
+ @todo = Queue.new
+
+ @spawn_mutex = Mutex.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -155,15 +155,15 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 30
- def attach(io, stream)
- @todo << lambda do
- @map[io] = @nio.register(io, :r)
- @map[io].value = stream
- end
- wakeup
- end
+def attach(io, stream)
+ @todo << lambda do
+ @map[io] = @nio.register(io, :r)
+ @map[io].value = stream
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -194,16 +194,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 38
- def detach(io, stream)
- @todo << lambda do
- @nio.deregister io
- @map.delete io
- io.close
- end
- wakeup
- end
+def detach(io, stream)
+ @todo << lambda do
+ @nio.deregister io
+ @map.delete io
+ io.close
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -234,14 +234,14 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 23
- def post(task = nil, &block)
- task ||= block
+def post(task = nil, &block)
+ task ||= block
- spawn
- @executor << task
- end
+ spawn
+ @executor << task
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,12 +272,12 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 56
- def stop
- @stopping = true
- wakeup if @nio
- end
+def stop
+ @stopping = true
+ wakeup if @nio
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -308,11 +308,11 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 19
- def timer(interval, &block)
- Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
- end
+def timer(interval, &block)
+ Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -343,16 +343,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 47
- def writes_pending(io)
- @todo << lambda do
- if monitor = @map[io]
- monitor.interests = :rw
- end
- end
- wakeup
- end
+def writes_pending(io)
+ @todo << lambda do
+ if monitor = @map[io]
+ monitor.interests = :rw
+ end
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
index f4d5cacc63..99731855fb 100644
--- a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
+++ b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -121,12 +121,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 16
- def initialize(logger, tags:)
- @logger = logger
- @tags = tags.flatten
- end
+def initialize(logger, tags:)
+ @logger = logger
+ @tags = tags.flatten
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -161,12 +161,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 21
- def add_tags(*tags)
- @tags += tags.flatten
- @tags = @tags.uniq
- end
+def add_tags(*tags)
+ @tags += tags.flatten
+ @tags = @tags.uniq
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -197,16 +197,16 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 26
- def tag(logger, &block)
- if logger.respond_to?(:tagged)
- current_tags = tags - logger.formatter.current_tags
- logger.tagged(*current_tags, &block)
- else
- yield
- end
- end
+def tag(logger, &block)
+ if logger.respond_to?(:tagged)
+ current_tags = tags - logger.formatter.current_tags
+ logger.tagged(*current_tags, &block)
+ else
+ yield
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,11 +240,11 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 42
- def log(type, message, &block) # :doc:
- tag(@logger) { @logger.send type, message, &block }
- end
+def log(type, message, &block) # :doc:
+ tag(@logger) { @logger.send type, message, &block }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase.html b/src/classes/ActionCable/Connection/TestCase.html
index 948378e491..39bc5cb056 100644
--- a/src/classes/ActionCable/Connection/TestCase.html
+++ b/src/classes/ActionCable/Connection/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior.html b/src/classes/ActionCable/Connection/TestCase/Behavior.html
index b87870becd..4ee0debbea 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -163,19 +163,19 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 192
- def connect(path = ActionCable.server.config.mount_path, **request_params)
- path ||= DEFAULT_PATH
+def connect(path = ActionCable.server.config.mount_path, **request_params)
+ path ||= DEFAULT_PATH
- connection = self.class.connection_class.allocate
- connection.singleton_class.include(TestConnection)
- connection.send(:initialize, build_test_request(path, **request_params))
- connection.connect if connection.respond_to?(:connect)
+ connection = self.class.connection_class.allocate
+ connection.singleton_class.include(TestConnection)
+ connection.send(:initialize, build_test_request(path, **request_params))
+ connection.connect if connection.respond_to?(:connect)
- # Only set instance variable if connected successfully
- @connection = connection
- end
+ # Only set instance variable if connected successfully
+ @connection = connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -206,11 +206,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 212
- def cookies
- @cookie_jar ||= TestCookieJar.new
- end
+def cookies
+ @cookie_jar ||= TestCookieJar.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -241,14 +241,14 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 205
- def disconnect
- raise "Must be connected!" if connection.nil?
+def disconnect
+ raise "Must be connected!" if connection.nil?
- connection.disconnect if connection.respond_to?(:disconnect)
- @connection = nil
- end
+ connection.disconnect if connection.respond_to?(:disconnect)
+ @connection = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
index 63444f4b27..99fc0e3f6f 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 167
- def connection_class
- if connection = self._connection_class
- connection
- else
- tests determine_default_connection(name)
- end
- end
+def connection_class
+ if connection = self._connection_class
+ connection
+ else
+ tests determine_default_connection(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 175
- def determine_default_connection(name)
- connection = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Connection::Base
- end
- raise NonInferrableConnectionError.new(name) if connection.nil?
- connection
- end
+def determine_default_connection(name)
+ connection = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Connection::Base
+ end
+ raise NonInferrableConnectionError.new(name) if connection.nil?
+ connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actionpack/lib/abstract_controller/translation.rb, line 17
- def translate(key, **options)
- if key&.start_with?(".")
- path = controller_path.tr("/", ".")
- defaults = [:"#{path}#{key}"]
- defaults << options[:default] if options[:default]
- options[:default] = defaults.flatten
- key = "#{path}.#{action_name}#{key}"
- end
-
- if options[:default] && ActiveSupport::HtmlSafeTranslation.html_safe_translation_key?(key)
- options[:default] = Array(options[:default]).map do |value|
- value.is_a?(String) ? ERB::Util.html_escape(value) : value
- end
- end
-
- ActiveSupport::HtmlSafeTranslation.translate(key, **options)
- end+ Ruby on Rails 8.1.0.rc1
@@ -119,12 +119,12 @@
# File actionpack/lib/abstract_controller/url_for.rb, line 18
- def _routes
- raise "In order to use #url_for, you must include routing helpers explicitly. " \
- "For instance, `include Rails.application.routes.url_helpers`."
- end
+def _routes
+ raise "In order to use #url_for, you must include routing helpers explicitly. " \
+ "For instance, `include Rails.application.routes.url_helpers`."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/UrlFor/ClassMethods.html b/src/classes/AbstractController/UrlFor/ClassMethods.html
index cd0e5e9509..e4471b2d66 100644
--- a/src/classes/AbstractController/UrlFor/ClassMethods.html
+++ b/src/classes/AbstractController/UrlFor/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actionpack/lib/abstract_controller/url_for.rb, line 24
- def _routes
- nil
- end
+def _routes
+ nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -121,15 +121,15 @@
# File actionpack/lib/abstract_controller/url_for.rb, line 28
- def action_methods
- @action_methods ||= if _routes
- super - _routes.named_routes.helper_names
- else
- super
- end
- end
+def action_methods
+ @action_methods ||= if _routes
+ super - _routes.named_routes.helper_names
+ else
+ super
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable.html b/src/classes/ActionCable.html
index 4951b5813f..5e5f891dce 100644
--- a/src/classes/ActionCable.html
+++ b/src/classes/ActionCable.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -267,11 +267,11 @@
# File actioncable/lib/action_cable/gem_version.rb, line 7
- def self.gem_version
- Gem::Version.new VERSION::STRING
- end
+def self.gem_version
+ Gem::Version.new VERSION::STRING
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -302,11 +302,11 @@
# File actioncable/lib/action_cable/version.rb, line 9
- def self.version
- gem_version
- end
+def self.version
+ gem_version
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -341,11 +341,11 @@
# File actioncable/lib/action_cable.rb, line 77
- def server
- @server ||= ActionCable::Server::Base.new
- end
+def server
+@server ||= ActionCable::Server::Base.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel.html b/src/classes/ActionCable/Channel.html
index 38c886ddbc..06b36ff362 100644
--- a/src/classes/ActionCable/Channel.html
+++ b/src/classes/ActionCable/Channel.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Channel/Base.html b/src/classes/ActionCable/Channel/Base.html
index bc63a53315..32e2ff9b70 100644
--- a/src/classes/ActionCable/Channel/Base.html
+++ b/src/classes/ActionCable/Channel/Base.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -82,7 +82,7 @@ Action process
end
-
In this example, the subscribed and unsubscribed methods are not callable methods, as they were already declared in ActionCable::Channel::Base, but #appear and #away are. #generate_connection_token is also not callable, since it’s a private method. You’ll see that appear accepts a data parameter, which it then uses as part of its model call. #away does not, since it’s simply a trigger action.
+In this example, the subscribed and unsubscribed methods are not callable methods, as they were already declared in ActionCable::Channel::Base, but appear and away are. generate_connection_token is also not callable, since it’s a private method. You’ll see that appear accepts a data parameter, which it then uses as part of its model call. away does not, since it’s simply a trigger action.
Also note that in this example, current_user is available because it was marked as an identifying attribute on the connection. All such identifiers will automatically create a delegation method of the same name on the channel instance.
@@ -307,19 +307,22 @@ Returns
# File actioncable/lib/action_cable/channel/base.rb, line 128
- def action_methods
- @action_methods ||= begin
- # All public instance methods of this class, including ancestors
- methods = (public_instance_methods(true) -
- # Except for public instance methods of Base and its ancestors
- ActionCable::Channel::Base.public_instance_methods(true) +
- # Be sure to include shadowed public instance methods of this class
- public_instance_methods(false)).uniq.map(&:to_s)
- methods.to_set
- end
- end
-
- 🔎 See on GitHub
+def action_methods
+ @action_methods ||= begin
+ # All public instance methods of this class, including ancestors
+ methods = (public_instance_methods(true) -
+ # Except for public instance methods of Base and its ancestors
+ ActionCable::Channel::Base.public_instance_methods(true) +
+ # Be sure to include shadowed public instance methods of this class
+ public_instance_methods(false)).uniq
+
+ methods.reject! { |m| m.start_with?("_") }
+ methods.map!(&:name)
+ methods.to_set
+ end
+end
+
+ 🔎 See on GitHub
@@ -349,26 +352,26 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 155
- def initialize(connection, identifier, params = {})
- @connection = connection
- @identifier = identifier
- @params = params
+ # File actioncable/lib/action_cable/channel/base.rb, line 158
+def initialize(connection, identifier, params = {})
+ @connection = connection
+ @identifier = identifier
+ @params = params
- # When a channel is streaming via pubsub, we want to delay the confirmation
- # transmission until pubsub subscription is confirmed.
- #
- # The counter starts at 1 because it's awaiting a call to #subscribe_to_channel
- @defer_subscription_confirmation_counter = Concurrent::AtomicFixnum.new(1)
+ # When a channel is streaming via pubsub, we want to delay the confirmation
+ # transmission until pubsub subscription is confirmed.
+ #
+ # The counter starts at 1 because it's awaiting a call to #subscribe_to_channel
+ @defer_subscription_confirmation_counter = Concurrent::AtomicFixnum.new(1)
- @reject_subscription = nil
- @subscription_confirmation_sent = nil
- @unsubscribed = false
+ @reject_subscription = nil
+ @subscription_confirmation_sent = nil
+ @unsubscribed = false
- delegate_connection_identifiers
- end
+ delegate_connection_identifiers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -401,12 +404,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 144
- def clear_action_methods! # :doc:
- @action_methods = nil
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 147
+def clear_action_methods! # :doc:
+ @action_methods = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -436,13 +439,13 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 149
- def method_added(name) # :doc:
- super
- clear_action_methods!
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 152
+def method_added(name) # :doc:
+ super
+ clear_action_methods!
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -476,21 +479,21 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 176
- def perform_action(data)
- action = extract_action(data)
+ # File actioncable/lib/action_cable/channel/base.rb, line 179
+def perform_action(data)
+ action = extract_action(data)
- if processable_action?(action)
- payload = { channel_class: self.class.name, action: action, data: data }
- ActiveSupport::Notifications.instrument("perform_action.action_cable", payload) do
- dispatch_action(action, data)
- end
- else
- logger.error "Unable to process #{action_signature(action, data)}"
- end
- end
+ if processable_action?(action)
+ payload = { channel_class: self.class.name, action: action, data: data }
+ ActiveSupport::Notifications.instrument("perform_action.action_cable", payload) do
+ dispatch_action(action, data)
+ end
+ else
+ logger.error "Unable to process #{action_signature(action, data)}"
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -520,17 +523,17 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 191
- def subscribe_to_channel
- run_callbacks :subscribe do
- subscribed
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 194
+def subscribe_to_channel
+ run_callbacks :subscribe do
+ subscribed
+ end
- reject_subscription if subscription_rejected?
- ensure_confirmation_sent
- end
+ reject_subscription if subscription_rejected?
+ ensure_confirmation_sent
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -563,12 +566,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 250
- def defer_subscription_confirmation! # :doc:
- @defer_subscription_confirmation_counter.increment
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 253
+def defer_subscription_confirmation! # :doc:
+ @defer_subscription_confirmation_counter.increment
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -598,12 +601,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 254
- def defer_subscription_confirmation? # :doc:
- @defer_subscription_confirmation_counter.value > 0
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 257
+def defer_subscription_confirmation? # :doc:
+ @defer_subscription_confirmation_counter.value > 0
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -633,14 +636,14 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 244
- def ensure_confirmation_sent # :doc:
- return if subscription_rejected?
- @defer_subscription_confirmation_counter.decrement
- transmit_subscription_confirmation unless defer_subscription_confirmation?
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 247
+def ensure_confirmation_sent # :doc:
+ return if subscription_rejected?
+ @defer_subscription_confirmation_counter.decrement
+ transmit_subscription_confirmation unless defer_subscription_confirmation?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -670,12 +673,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 262
- def reject # :doc:
- @reject_subscription = true
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 265
+def reject # :doc:
+ @reject_subscription = true
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -705,12 +708,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 218
- def subscribed # :doc:
- # Override in subclasses
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 221
+def subscribed # :doc:
+ # Override in subclasses
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -740,12 +743,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 258
- def subscription_confirmation_sent? # :doc:
- @subscription_confirmation_sent
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 261
+def subscription_confirmation_sent? # :doc:
+ @subscription_confirmation_sent
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -775,12 +778,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 266
- def subscription_rejected? # :doc:
- @reject_subscription
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 269
+def subscription_rejected? # :doc:
+ @reject_subscription
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -810,21 +813,21 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 231
- def transmit(data, via: nil) # :doc:
- logger.debug do
- status = "#{self.class.name} transmitting #{data.inspect.truncate(300)}"
- status += " (via #{via})" if via
- status
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 234
+def transmit(data, via: nil) # :doc:
+ logger.debug do
+ status = "#{self.class.name} transmitting #{data.inspect.truncate(300)}"
+ status += " (via #{via})" if via
+ status
+ end
- payload = { channel_class: self.class.name, data: data, via: via }
- ActiveSupport::Notifications.instrument("transmit.action_cable", payload) do
- connection.transmit identifier: @identifier, message: data
- end
- end
+ payload = { channel_class: self.class.name, data: data, via: via }
+ ActiveSupport::Notifications.instrument("transmit.action_cable", payload) do
+ connection.transmit identifier: @identifier, message: data
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -854,12 +857,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 224
- def unsubscribed # :doc:
- # Override in subclasses
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 227
+def unsubscribed # :doc:
+ # Override in subclasses
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Broadcasting.html b/src/classes/ActionCable/Channel/Broadcasting.html
index bb71b89445..7fecc3f6b8 100644
--- a/src/classes/ActionCable/Channel/Broadcasting.html
+++ b/src/classes/ActionCable/Channel/Broadcasting.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -99,11 +99,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 45
- def broadcast_to(model, message)
- self.class.broadcast_to(model, message)
- end
+def broadcast_to(model, message)
+ self.class.broadcast_to(model, message)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -134,11 +134,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 41
- def broadcasting_for(model)
- self.class.broadcasting_for(model)
- end
+def broadcasting_for(model)
+ self.class.broadcasting_for(model)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html b/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
index 684bccb1ab..432bb5d74f 100644
--- a/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 14
- def broadcast_to(broadcastables, message)
- ActionCable.server.broadcast(broadcasting_for(broadcastables), message)
- end
+def broadcast_to(broadcastables, message)
+ ActionCable.server.broadcast(broadcasting_for(broadcastables), message)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -126,11 +126,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 24
- def broadcasting_for(broadcastables)
- serialize_broadcasting([ channel_name ] + Array(broadcastables))
- end
+def broadcasting_for(broadcastables)
+ serialize_broadcasting([ channel_name ] + Array(broadcastables))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Callbacks.html b/src/classes/ActionCable/Channel/Callbacks.html
index 076bdbc8fa..64985186c3 100644
--- a/src/classes/ActionCable/Channel/Callbacks.html
+++ b/src/classes/ActionCable/Channel/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html b/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
index 6ee4317311..7949b5fdf6 100644
--- a/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -111,11 +111,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 60
- def after_subscribe(*methods, &block)
- set_callback(:subscribe, :after, *methods, &block)
- end
+def after_subscribe(*methods, &block)
+ set_callback(:subscribe, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -150,11 +150,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 69
- def after_unsubscribe(*methods, &block)
- set_callback(:unsubscribe, :after, *methods, &block)
- end
+def after_unsubscribe(*methods, &block)
+ set_callback(:unsubscribe, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -185,11 +185,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 48
- def before_subscribe(*methods, &block)
- set_callback(:subscribe, :before, *methods, &block)
- end
+def before_subscribe(*methods, &block)
+ set_callback(:subscribe, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -220,11 +220,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 65
- def before_unsubscribe(*methods, &block)
- set_callback(:unsubscribe, :before, *methods, &block)
- end
+def before_unsubscribe(*methods, &block)
+ set_callback(:unsubscribe, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/ChannelStub.html b/src/classes/ActionCable/Channel/ChannelStub.html
index 9db98daac2..d004896dc5 100644
--- a/src/classes/ActionCable/Channel/ChannelStub.html
+++ b/src/classes/ActionCable/Channel/ChannelStub.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -25,7 +25,7 @@
Action Cable Channel Stub
-
Stub stream_from to track streams for the channel. Add public aliases for subscription_confirmation_sent? and subscription_rejected?.
+Stub stream_from to track streams for the channel. Add public aliases for subscription_confirmation_sent? and subscription_rejected?.
@@ -114,11 +114,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 25
- def confirmed?
- subscription_confirmation_sent?
- end
+def confirmed?
+ subscription_confirmation_sent?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -149,11 +149,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 29
- def rejected?
- subscription_rejected?
- end
+def rejected?
+ subscription_rejected?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -188,9 +188,9 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 46
- def start_periodic_timers; end
+def start_periodic_timers; end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -221,11 +221,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 37
- def stop_all_streams
- @_streams = []
- end
+def stop_all_streams
+ @_streams = []
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -281,11 +281,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 33
- def stream_from(broadcasting, *)
- streams << broadcasting
- end
+def stream_from(broadcasting, *)
+ streams << broadcasting
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -316,11 +316,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 41
- def streams
- @_streams ||= []
- end
+def streams
+ @_streams ||= []
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/ConnectionStub.html b/src/classes/ActionCable/Channel/ConnectionStub.html
index 62c52b567f..0fdc0d8690 100644
--- a/src/classes/ActionCable/Channel/ConnectionStub.html
+++ b/src/classes/ActionCable/Channel/ConnectionStub.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -141,20 +141,20 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 55
- def initialize(identifiers = {})
- @server = ActionCable.server
- @transmissions = []
-
- identifiers.each do |identifier, val|
- define_singleton_method(identifier) { val }
- end
-
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @identifiers = identifiers.keys
- @logger = ActiveSupport::TaggedLogging.new ActiveSupport::Logger.new(StringIO.new)
- end
+def initialize(identifiers = {})
+ @server = ActionCable.server
+ @transmissions = []
+
+ identifiers.each do |identifier, val|
+ define_singleton_method(identifier) { val }
+ end
+
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @identifiers = identifiers.keys
+ @logger = ActiveSupport::TaggedLogging.new ActiveSupport::Logger.new(StringIO.new)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -189,11 +189,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 72
- def connection_identifier
- @connection_identifier ||= connection_gid(identifiers.filter_map { |id| send(id.to_sym) if id })
- end
+def connection_identifier
+ @connection_identifier ||= connection_gid(identifiers.filter_map { |id| send(id.to_sym) if id })
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -224,11 +224,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 68
- def transmit(cable_message)
- transmissions << cable_message.with_indifferent_access
- end
+def transmit(cable_message)
+ transmissions << cable_message.with_indifferent_access
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Naming.html b/src/classes/ActionCable/Channel/Naming.html
index 84bfc0232c..db2aa18589 100644
--- a/src/classes/ActionCable/Channel/Naming.html
+++ b/src/classes/ActionCable/Channel/Naming.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,11 +95,11 @@
# File actioncable/lib/action_cable/channel/naming.rb, line 23
- def channel_name
- self.class.channel_name
- end
+def channel_name
+ self.class.channel_name
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Naming/ClassMethods.html b/src/classes/ActionCable/Channel/Naming/ClassMethods.html
index b847309f12..e99c0744a7 100644
--- a/src/classes/ActionCable/Channel/Naming/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Naming/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -66,7 +66,7 @@
- Returns the name of the channel, underscored, without the Channel ending. If the channel is in a namespace, then the namespaces are represented by single colon separators in the channel name.
+ Returns the name of the channel, underscored, without the Channel ending. If the channel is in a namespace, then the namespaces are represented by single colon separators in the channel name.
ChatChannel.channel_name # => 'chat'
Chats::AppearancesChannel.channel_name # => 'chats:appearances'
@@ -87,11 +87,11 @@
# File actioncable/lib/action_cable/channel/naming.rb, line 18
- def channel_name
- @channel_name ||= name.delete_suffix("Channel").gsub("::", ":").underscore
- end
+def channel_name
+ @channel_name ||= name.delete_suffix("Channel").gsub("::", ":").underscore
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/NonInferrableChannelError.html b/src/classes/ActionCable/Channel/NonInferrableChannelError.html
index 034c36b135..1eac81cbd2 100644
--- a/src/classes/ActionCable/Channel/NonInferrableChannelError.html
+++ b/src/classes/ActionCable/Channel/NonInferrableChannelError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 13
- def initialize(name)
- super "Unable to determine the channel to test from #{name}. " +
- "You'll need to specify it using `tests YourChannel` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the channel to test from #{name}. " +
+ "You'll need to specify it using `tests YourChannel` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/PeriodicTimers.html b/src/classes/ActionCable/Channel/PeriodicTimers.html
index 88facef675..561da6e0dd 100644
--- a/src/classes/ActionCable/Channel/PeriodicTimers.html
+++ b/src/classes/ActionCable/Channel/PeriodicTimers.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html b/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
index 233865e2e3..a694f6de16 100644
--- a/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -91,30 +91,30 @@
# File actioncable/lib/action_cable/channel/periodic_timers.rb, line 31
- def periodically(callback_or_method_name = nil, every:, &block)
- callback =
- if block_given?
- raise ArgumentError, "Pass a block or provide a callback arg, not both" if callback_or_method_name
- block
- else
- case callback_or_method_name
- when Proc
- callback_or_method_name
- when Symbol
- -> { __send__ callback_or_method_name }
- else
- raise ArgumentError, "Expected a Symbol method name or a Proc, got #{callback_or_method_name.inspect}"
- end
- end
-
- unless every.kind_of?(Numeric) && every > 0
- raise ArgumentError, "Expected every: to be a positive number of seconds, got #{every.inspect}"
- end
-
- self.periodic_timers += [[ callback, every: every ]]
- end
+def periodically(callback_or_method_name = nil, every:, &block)
+ callback =
+ if block_given?
+ raise ArgumentError, "Pass a block or provide a callback arg, not both" if callback_or_method_name
+ block
+ else
+ case callback_or_method_name
+ when Proc
+ callback_or_method_name
+ when Symbol
+ -> { __send__ callback_or_method_name }
+ else
+ raise ArgumentError, "Expected a Symbol method name or a Proc, got #{callback_or_method_name.inspect}"
+ end
+ end
+
+ unless every.kind_of?(Numeric) && every > 0
+ raise ArgumentError, "Expected every: to be a positive number of seconds, got #{every.inspect}"
+ end
+
+ self.periodic_timers += [[ callback, every: every ]]
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Streams.html b/src/classes/ActionCable/Channel/Streams.html
index 0967feb616..a2e686a3e9 100644
--- a/src/classes/ActionCable/Channel/Streams.html
+++ b/src/classes/ActionCable/Channel/Streams.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -167,14 +167,14 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 137
- def stop_all_streams
- streams.each do |broadcasting, callback|
- pubsub.unsubscribe broadcasting, callback
- logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
- end.clear
- end
+def stop_all_streams
+ streams.each do |broadcasting, callback|
+ pubsub.unsubscribe broadcasting, callback
+ logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
+ end.clear
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -205,11 +205,11 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 132
- def stop_stream_for(model)
- stop_stream_from(broadcasting_for(model))
- end
+def stop_stream_for(model)
+ stop_stream_from(broadcasting_for(model))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,15 +240,15 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 123
- def stop_stream_from(broadcasting)
- callback = streams.delete(broadcasting)
- if callback
- pubsub.unsubscribe(broadcasting, callback)
- logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
- end
- end
+def stop_stream_from(broadcasting)
+ callback = streams.delete(broadcasting)
+ if callback
+ pubsub.unsubscribe(broadcasting, callback)
+ logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -281,11 +281,11 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 118
- def stream_for(broadcastables, callback = nil, coder: nil, &block)
- stream_from(broadcasting_for(broadcastables), callback || block, coder: coder)
- end
+def stream_for(broadcastables, callback = nil, coder: nil, &block)
+ stream_from(broadcasting_for(broadcastables), callback || block, coder: coder)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -316,28 +316,28 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 90
- def stream_from(broadcasting, callback = nil, coder: nil, &block)
- return if unsubscribed?
-
- broadcasting = String(broadcasting)
-
- # Don't send the confirmation until pubsub#subscribe is successful
- defer_subscription_confirmation!
-
- # Build a stream handler by wrapping the user-provided callback with a decoder
- # or defaulting to a JSON-decoding retransmitter.
- handler = worker_pool_stream_handler(broadcasting, callback || block, coder: coder)
- streams[broadcasting] = handler
-
- connection.server.event_loop.post do
- pubsub.subscribe(broadcasting, handler, lambda do
- ensure_confirmation_sent
- logger.info "#{self.class.name} is streaming from #{broadcasting}"
- end)
- end
- end
+def stream_from(broadcasting, callback = nil, coder: nil, &block)
+ return if unsubscribed?
+
+ broadcasting = String(broadcasting)
+
+ # Don't send the confirmation until pubsub#subscribe is successful
+ defer_subscription_confirmation!
+
+ # Build a stream handler by wrapping the user-provided callback with a decoder
+ # or defaulting to a JSON-decoding retransmitter.
+ handler = worker_pool_stream_handler(broadcasting, callback || block, coder: coder)
+ streams[broadcasting] = handler
+
+ connection.server.event_loop.post do
+ pubsub.subscribe(broadcasting, handler, lambda do
+ ensure_confirmation_sent
+ logger.info "#{self.class.name} is streaming from #{broadcasting}"
+ end)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -368,15 +368,15 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 146
- def stream_or_reject_for(model)
- if model
- stream_for model
- else
- reject
- end
- end
+def stream_or_reject_for(model)
+ if model
+ stream_for model
+ else
+ reject
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase.html b/src/classes/ActionCable/Channel/TestCase.html
index 08fb28c0cf..6317ff44d0 100644
--- a/src/classes/ActionCable/Channel/TestCase.html
+++ b/src/classes/ActionCable/Channel/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior.html b/src/classes/ActionCable/Channel/TestCase/Behavior.html
index b5f3a5cbb7..5a8ea0fd78 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -196,11 +196,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 282
- def assert_broadcast_on(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcast_on(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -231,11 +231,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 278
- def assert_broadcasts(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcasts(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,11 +272,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 326
- def assert_has_no_stream(stream)
- assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
- end
+def assert_has_no_stream(stream)
+ assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -313,11 +313,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 337
- def assert_has_no_stream_for(object)
- assert_has_no_stream(broadcasting_for(object))
- end
+def assert_has_no_stream_for(object)
+ assert_has_no_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -354,11 +354,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 304
- def assert_has_stream(stream)
- assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
- end
+def assert_has_stream(stream)
+ assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -395,11 +395,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 315
- def assert_has_stream_for(object)
- assert_has_stream(broadcasting_for(object))
- end
+def assert_has_stream_for(object)
+ assert_has_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -436,11 +436,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 293
- def assert_no_streams
- assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
- end
+def assert_no_streams
+ assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -473,12 +473,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 266
- def perform(action, data = {})
- check_subscribed!
- subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
- end
+def perform(action, data = {})
+ check_subscribed!
+ subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -516,11 +516,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 243
- def stub_connection(identifiers = {})
- @connection = ConnectionStub.new(identifiers)
- end
+def stub_connection(identifiers = {})
+ @connection = ConnectionStub.new(identifiers)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -551,15 +551,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 249
- def subscribe(params = {})
- @connection ||= stub_connection
- @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
- @subscription.singleton_class.include(ChannelStub)
- @subscription.subscribe_to_channel
- @subscription
- end
+def subscribe(params = {})
+ @connection ||= stub_connection
+ @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
+ @subscription.singleton_class.include(ChannelStub)
+ @subscription.subscribe_to_channel
+ @subscription
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -590,12 +590,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 272
- def transmissions
- # Return only directly sent message (via #transmit)
- connection.transmissions.filter_map { |data| data["message"] }
- end
+def transmissions
+ # Return only directly sent message (via #transmit)
+ connection.transmissions.filter_map { |data| data["message"] }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -626,12 +626,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 258
- def unsubscribe
- check_subscribed!
- subscription.unsubscribe_from_channel
- end
+def unsubscribe
+ check_subscribed!
+ subscription.unsubscribe_from_channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
index 48ea87f130..57efb4cdac 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 219
- def channel_class
- if channel = self._channel_class
- channel
- else
- tests determine_default_channel(name)
- end
- end
+def channel_class
+ if channel = self._channel_class
+ channel
+ else
+ tests determine_default_channel(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 227
- def determine_default_channel(name)
- channel = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Channel::Base
- end
- raise NonInferrableChannelError.new(name) if channel.nil?
- channel
- end
+def determine_default_channel(name)
+ channel = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Channel::Base
+ end
+ raise NonInferrableChannelError.new(name) if channel.nil?
+ channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 208
- def tests(channel)
- case channel
- when String, Symbol
- self._channel_class = channel.to_s.camelize.constantize
- when Module
- self._channel_class = channel
- else
- raise NonInferrableChannelError.new(channel)
- end
- end
+def tests(channel)
+ case channel
+ when String, Symbol
+ self._channel_class = channel.to_s.camelize.constantize
+ when Module
+ self._channel_class = channel
+ else
+ raise NonInferrableChannelError.new(channel)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection.html b/src/classes/ActionCable/Connection.html
index f832214f0e..7889c75284 100644
--- a/src/classes/ActionCable/Connection.html
+++ b/src/classes/ActionCable/Connection.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Assertions.html b/src/classes/ActionCable/Connection/Assertions.html
index 933ea80e4c..6b10ec5528 100644
--- a/src/classes/ActionCable/Connection/Assertions.html
+++ b/src/classes/ActionCable/Connection/Assertions.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 28
- def assert_reject_connection(&block)
- assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
- end
+def assert_reject_connection(&block)
+ assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization.html b/src/classes/ActionCable/Connection/Authorization.html
index feb855aa9e..baf85a37b3 100644
--- a/src/classes/ActionCable/Connection/Authorization.html
+++ b/src/classes/ActionCable/Connection/Authorization.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -97,12 +97,12 @@
# File actioncable/lib/action_cable/connection/authorization.rb, line 12
- def reject_unauthorized_connection
- logger.error "An unauthorized connection attempt was rejected"
- raise UnauthorizedError
- end
+def reject_unauthorized_connection
+ logger.error "An unauthorized connection attempt was rejected"
+ raise UnauthorizedError
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
index b63b282b0b..ff36299a28 100644
--- a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
+++ b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/Base.html b/src/classes/ActionCable/Connection/Base.html
index 36a2f1e1bb..ea0d62911f 100644
--- a/src/classes/ActionCable/Connection/Base.html
+++ b/src/classes/ActionCable/Connection/Base.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -255,21 +255,21 @@
# File actioncable/lib/action_cable/connection/base.rb, line 67
- def initialize(server, env, coder: ActiveSupport::JSON)
- @server, @env, @coder = server, env, coder
+def initialize(server, env, coder: ActiveSupport::JSON)
+ @server, @env, @coder = server, env, coder
- @worker_pool = server.worker_pool
- @logger = new_tagged_logger
+ @worker_pool = server.worker_pool
+ @logger = new_tagged_logger
- @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
+ @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
- @_internal_subscriptions = nil
- @started_at = Time.now
- end
+ @_internal_subscriptions = nil
+ @started_at = Time.now
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -304,11 +304,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 147
- def beat
- transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
- end
+def beat
+ transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -339,16 +339,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 120
- def close(reason: nil, reconnect: true)
- transmit(
- type: ActionCable::INTERNAL[:message_types][:disconnect],
- reason: reason,
- reconnect: reconnect
- )
- websocket.close
- end
+def close(reason: nil, reconnect: true)
+ transmit(
+ type: ActionCable::INTERNAL[:message_types][:disconnect],
+ reason: reason,
+ reconnect: reconnect
+ )
+ websocket.close
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -379,13 +379,13 @@
# File actioncable/lib/action_cable/connection/base.rb, line 109
- def handle_channel_command(payload)
- run_callbacks :command do
- subscriptions.execute_command payload
- end
- end
+def handle_channel_command(payload)
+ run_callbacks :command do
+ subscriptions.execute_command payload
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -416,11 +416,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 131
- def send_async(method, *arguments)
- worker_pool.async_invoke(self, method, *arguments)
- end
+def send_async(method, *arguments)
+ worker_pool.async_invoke(self, method, *arguments)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -451,16 +451,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 138
- def statistics
- {
- identifier: connection_identifier,
- started_at: @started_at,
- subscriptions: subscriptions.identifiers,
- request_id: @env["action_dispatch.request_id"]
- }
- end
+def statistics
+ {
+ identifier: connection_identifier,
+ started_at: @started_at,
+ subscriptions: subscriptions.identifiers,
+ request_id: @env["action_dispatch.request_id"]
+ }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -494,11 +494,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 187
- def cookies # :doc:
- request.cookie_jar
- end
+def cookies # :doc:
+ request.cookie_jar
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -529,14 +529,14 @@
# File actioncable/lib/action_cable/connection/base.rb, line 178
- def request # :doc:
- @request ||= begin
- environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
- ActionDispatch::Request.new(environment || env)
- end
- end
+def request # :doc:
+ @request ||= begin
+ environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
+ ActionDispatch::Request.new(environment || env)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Callbacks.html b/src/classes/ActionCable/Connection/Callbacks.html
index 818958bf81..d6504ca284 100644
--- a/src/classes/ActionCable/Connection/Callbacks.html
+++ b/src/classes/ActionCable/Connection/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
index 933056a029..6376d7195b 100644
--- a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,11 +90,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 47
- def after_command(*methods, &block)
- set_callback(:command, :after, *methods, &block)
- end
+def after_command(*methods, &block)
+ set_callback(:command, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -125,11 +125,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 51
- def around_command(*methods, &block)
- set_callback(:command, :around, *methods, &block)
- end
+def around_command(*methods, &block)
+ set_callback(:command, :around, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -160,11 +160,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 43
- def before_command(*methods, &block)
- set_callback(:command, :before, *methods, &block)
- end
+def before_command(*methods, &block)
+ set_callback(:command, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification.html b/src/classes/ActionCable/Connection/Identification.html
index f3dcea9bfc..063ca88999 100644
--- a/src/classes/ActionCable/Connection/Identification.html
+++ b/src/classes/ActionCable/Connection/Identification.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,15 +95,15 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 29
- def connection_identifier
- unless defined? @connection_identifier
- @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
- end
+def connection_identifier
+ unless defined? @connection_identifier
+ @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
+ end
- @connection_identifier
- end
+ @connection_identifier
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification/ClassMethods.html b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
index 324ded31f5..a3395ef8a3 100644
--- a/src/classes/ActionCable/Connection/Identification/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -84,12 +84,12 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 21
- def identified_by(*identifiers)
- Array(identifiers).each { |identifier| attr_accessor identifier }
- self.identifiers += identifiers
- end
+def identified_by(*identifiers)
+ Array(identifiers).each { |identifier| attr_accessor identifier }
+ self.identifiers += identifiers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/InternalChannel.html b/src/classes/ActionCable/Connection/InternalChannel.html
index 9b0144f690..cfdccceaf4 100644
--- a/src/classes/ActionCable/Connection/InternalChannel.html
+++ b/src/classes/ActionCable/Connection/InternalChannel.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
index 7167904452..bf0c696d62 100644
--- a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
+++ b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 15
- def initialize(name)
- super "Unable to determine the connection to test from #{name}. " +
- "You'll need to specify it using `tests YourConnection` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the connection to test from #{name}. " +
+ "You'll need to specify it using `tests YourConnection` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/StreamEventLoop.html b/src/classes/ActionCable/Connection/StreamEventLoop.html
index 2b71a213e3..f7c49354ef 100644
--- a/src/classes/ActionCable/Connection/StreamEventLoop.html
+++ b/src/classes/ActionCable/Connection/StreamEventLoop.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -111,16 +111,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 10
- def initialize
- @nio = @executor = @thread = nil
- @map = {}
- @stopping = false
- @todo = Queue.new
-
- @spawn_mutex = Mutex.new
- end
+def initialize
+ @nio = @executor = @thread = nil
+ @map = {}
+ @stopping = false
+ @todo = Queue.new
+
+ @spawn_mutex = Mutex.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -155,15 +155,15 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 30
- def attach(io, stream)
- @todo << lambda do
- @map[io] = @nio.register(io, :r)
- @map[io].value = stream
- end
- wakeup
- end
+def attach(io, stream)
+ @todo << lambda do
+ @map[io] = @nio.register(io, :r)
+ @map[io].value = stream
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -194,16 +194,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 38
- def detach(io, stream)
- @todo << lambda do
- @nio.deregister io
- @map.delete io
- io.close
- end
- wakeup
- end
+def detach(io, stream)
+ @todo << lambda do
+ @nio.deregister io
+ @map.delete io
+ io.close
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -234,14 +234,14 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 23
- def post(task = nil, &block)
- task ||= block
+def post(task = nil, &block)
+ task ||= block
- spawn
- @executor << task
- end
+ spawn
+ @executor << task
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,12 +272,12 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 56
- def stop
- @stopping = true
- wakeup if @nio
- end
+def stop
+ @stopping = true
+ wakeup if @nio
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -308,11 +308,11 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 19
- def timer(interval, &block)
- Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
- end
+def timer(interval, &block)
+ Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -343,16 +343,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 47
- def writes_pending(io)
- @todo << lambda do
- if monitor = @map[io]
- monitor.interests = :rw
- end
- end
- wakeup
- end
+def writes_pending(io)
+ @todo << lambda do
+ if monitor = @map[io]
+ monitor.interests = :rw
+ end
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
index f4d5cacc63..99731855fb 100644
--- a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
+++ b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -121,12 +121,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 16
- def initialize(logger, tags:)
- @logger = logger
- @tags = tags.flatten
- end
+def initialize(logger, tags:)
+ @logger = logger
+ @tags = tags.flatten
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -161,12 +161,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 21
- def add_tags(*tags)
- @tags += tags.flatten
- @tags = @tags.uniq
- end
+def add_tags(*tags)
+ @tags += tags.flatten
+ @tags = @tags.uniq
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -197,16 +197,16 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 26
- def tag(logger, &block)
- if logger.respond_to?(:tagged)
- current_tags = tags - logger.formatter.current_tags
- logger.tagged(*current_tags, &block)
- else
- yield
- end
- end
+def tag(logger, &block)
+ if logger.respond_to?(:tagged)
+ current_tags = tags - logger.formatter.current_tags
+ logger.tagged(*current_tags, &block)
+ else
+ yield
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,11 +240,11 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 42
- def log(type, message, &block) # :doc:
- tag(@logger) { @logger.send type, message, &block }
- end
+def log(type, message, &block) # :doc:
+ tag(@logger) { @logger.send type, message, &block }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase.html b/src/classes/ActionCable/Connection/TestCase.html
index 948378e491..39bc5cb056 100644
--- a/src/classes/ActionCable/Connection/TestCase.html
+++ b/src/classes/ActionCable/Connection/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior.html b/src/classes/ActionCable/Connection/TestCase/Behavior.html
index b87870becd..4ee0debbea 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -163,19 +163,19 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 192
- def connect(path = ActionCable.server.config.mount_path, **request_params)
- path ||= DEFAULT_PATH
+def connect(path = ActionCable.server.config.mount_path, **request_params)
+ path ||= DEFAULT_PATH
- connection = self.class.connection_class.allocate
- connection.singleton_class.include(TestConnection)
- connection.send(:initialize, build_test_request(path, **request_params))
- connection.connect if connection.respond_to?(:connect)
+ connection = self.class.connection_class.allocate
+ connection.singleton_class.include(TestConnection)
+ connection.send(:initialize, build_test_request(path, **request_params))
+ connection.connect if connection.respond_to?(:connect)
- # Only set instance variable if connected successfully
- @connection = connection
- end
+ # Only set instance variable if connected successfully
+ @connection = connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -206,11 +206,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 212
- def cookies
- @cookie_jar ||= TestCookieJar.new
- end
+def cookies
+ @cookie_jar ||= TestCookieJar.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -241,14 +241,14 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 205
- def disconnect
- raise "Must be connected!" if connection.nil?
+def disconnect
+ raise "Must be connected!" if connection.nil?
- connection.disconnect if connection.respond_to?(:disconnect)
- @connection = nil
- end
+ connection.disconnect if connection.respond_to?(:disconnect)
+ @connection = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
index 63444f4b27..99fc0e3f6f 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 167
- def connection_class
- if connection = self._connection_class
- connection
- else
- tests determine_default_connection(name)
- end
- end
+def connection_class
+ if connection = self._connection_class
+ connection
+ else
+ tests determine_default_connection(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 175
- def determine_default_connection(name)
- connection = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Connection::Base
- end
- raise NonInferrableConnectionError.new(name) if connection.nil?
- connection
- end
+def determine_default_connection(name)
+ connection = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Connection::Base
+ end
+ raise NonInferrableConnectionError.new(name) if connection.nil?
+ connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actionpack/lib/abstract_controller/url_for.rb, line 18
- def _routes
- raise "In order to use #url_for, you must include routing helpers explicitly. " \
- "For instance, `include Rails.application.routes.url_helpers`."
- end
+def _routes
+ raise "In order to use #url_for, you must include routing helpers explicitly. " \
+ "For instance, `include Rails.application.routes.url_helpers`."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/UrlFor/ClassMethods.html b/src/classes/AbstractController/UrlFor/ClassMethods.html
index cd0e5e9509..e4471b2d66 100644
--- a/src/classes/AbstractController/UrlFor/ClassMethods.html
+++ b/src/classes/AbstractController/UrlFor/ClassMethods.html
@@ -5,7 +5,7 @@
+ Ruby on Rails 8.1.0.rc1
@@ -86,11 +86,11 @@
# File actionpack/lib/abstract_controller/url_for.rb, line 24
- def _routes
- nil
- end
+def _routes
+ nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -121,15 +121,15 @@
# File actionpack/lib/abstract_controller/url_for.rb, line 28
- def action_methods
- @action_methods ||= if _routes
- super - _routes.named_routes.helper_names
- else
- super
- end
- end
+def action_methods
+ @action_methods ||= if _routes
+ super - _routes.named_routes.helper_names
+ else
+ super
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable.html b/src/classes/ActionCable.html
index 4951b5813f..5e5f891dce 100644
--- a/src/classes/ActionCable.html
+++ b/src/classes/ActionCable.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -267,11 +267,11 @@
# File actioncable/lib/action_cable/gem_version.rb, line 7
- def self.gem_version
- Gem::Version.new VERSION::STRING
- end
+def self.gem_version
+ Gem::Version.new VERSION::STRING
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -302,11 +302,11 @@
# File actioncable/lib/action_cable/version.rb, line 9
- def self.version
- gem_version
- end
+def self.version
+ gem_version
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -341,11 +341,11 @@
# File actioncable/lib/action_cable.rb, line 77
- def server
- @server ||= ActionCable::Server::Base.new
- end
+def server
+@server ||= ActionCable::Server::Base.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel.html b/src/classes/ActionCable/Channel.html
index 38c886ddbc..06b36ff362 100644
--- a/src/classes/ActionCable/Channel.html
+++ b/src/classes/ActionCable/Channel.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Channel/Base.html b/src/classes/ActionCable/Channel/Base.html
index bc63a53315..32e2ff9b70 100644
--- a/src/classes/ActionCable/Channel/Base.html
+++ b/src/classes/ActionCable/Channel/Base.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -82,7 +82,7 @@ Action process
end
-
In this example, the subscribed and unsubscribed methods are not callable methods, as they were already declared in ActionCable::Channel::Base, but #appear and #away are. #generate_connection_token is also not callable, since it’s a private method. You’ll see that appear accepts a data parameter, which it then uses as part of its model call. #away does not, since it’s simply a trigger action.
+In this example, the subscribed and unsubscribed methods are not callable methods, as they were already declared in ActionCable::Channel::Base, but appear and away are. generate_connection_token is also not callable, since it’s a private method. You’ll see that appear accepts a data parameter, which it then uses as part of its model call. away does not, since it’s simply a trigger action.
Also note that in this example, current_user is available because it was marked as an identifying attribute on the connection. All such identifiers will automatically create a delegation method of the same name on the channel instance.
@@ -307,19 +307,22 @@ Returns
# File actioncable/lib/action_cable/channel/base.rb, line 128
- def action_methods
- @action_methods ||= begin
- # All public instance methods of this class, including ancestors
- methods = (public_instance_methods(true) -
- # Except for public instance methods of Base and its ancestors
- ActionCable::Channel::Base.public_instance_methods(true) +
- # Be sure to include shadowed public instance methods of this class
- public_instance_methods(false)).uniq.map(&:to_s)
- methods.to_set
- end
- end
-
- 🔎 See on GitHub
+def action_methods
+ @action_methods ||= begin
+ # All public instance methods of this class, including ancestors
+ methods = (public_instance_methods(true) -
+ # Except for public instance methods of Base and its ancestors
+ ActionCable::Channel::Base.public_instance_methods(true) +
+ # Be sure to include shadowed public instance methods of this class
+ public_instance_methods(false)).uniq
+
+ methods.reject! { |m| m.start_with?("_") }
+ methods.map!(&:name)
+ methods.to_set
+ end
+end
+
+ 🔎 See on GitHub
@@ -349,26 +352,26 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 155
- def initialize(connection, identifier, params = {})
- @connection = connection
- @identifier = identifier
- @params = params
+ # File actioncable/lib/action_cable/channel/base.rb, line 158
+def initialize(connection, identifier, params = {})
+ @connection = connection
+ @identifier = identifier
+ @params = params
- # When a channel is streaming via pubsub, we want to delay the confirmation
- # transmission until pubsub subscription is confirmed.
- #
- # The counter starts at 1 because it's awaiting a call to #subscribe_to_channel
- @defer_subscription_confirmation_counter = Concurrent::AtomicFixnum.new(1)
+ # When a channel is streaming via pubsub, we want to delay the confirmation
+ # transmission until pubsub subscription is confirmed.
+ #
+ # The counter starts at 1 because it's awaiting a call to #subscribe_to_channel
+ @defer_subscription_confirmation_counter = Concurrent::AtomicFixnum.new(1)
- @reject_subscription = nil
- @subscription_confirmation_sent = nil
- @unsubscribed = false
+ @reject_subscription = nil
+ @subscription_confirmation_sent = nil
+ @unsubscribed = false
- delegate_connection_identifiers
- end
+ delegate_connection_identifiers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -401,12 +404,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 144
- def clear_action_methods! # :doc:
- @action_methods = nil
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 147
+def clear_action_methods! # :doc:
+ @action_methods = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -436,13 +439,13 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 149
- def method_added(name) # :doc:
- super
- clear_action_methods!
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 152
+def method_added(name) # :doc:
+ super
+ clear_action_methods!
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -476,21 +479,21 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 176
- def perform_action(data)
- action = extract_action(data)
+ # File actioncable/lib/action_cable/channel/base.rb, line 179
+def perform_action(data)
+ action = extract_action(data)
- if processable_action?(action)
- payload = { channel_class: self.class.name, action: action, data: data }
- ActiveSupport::Notifications.instrument("perform_action.action_cable", payload) do
- dispatch_action(action, data)
- end
- else
- logger.error "Unable to process #{action_signature(action, data)}"
- end
- end
+ if processable_action?(action)
+ payload = { channel_class: self.class.name, action: action, data: data }
+ ActiveSupport::Notifications.instrument("perform_action.action_cable", payload) do
+ dispatch_action(action, data)
+ end
+ else
+ logger.error "Unable to process #{action_signature(action, data)}"
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -520,17 +523,17 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 191
- def subscribe_to_channel
- run_callbacks :subscribe do
- subscribed
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 194
+def subscribe_to_channel
+ run_callbacks :subscribe do
+ subscribed
+ end
- reject_subscription if subscription_rejected?
- ensure_confirmation_sent
- end
+ reject_subscription if subscription_rejected?
+ ensure_confirmation_sent
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -563,12 +566,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 250
- def defer_subscription_confirmation! # :doc:
- @defer_subscription_confirmation_counter.increment
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 253
+def defer_subscription_confirmation! # :doc:
+ @defer_subscription_confirmation_counter.increment
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -598,12 +601,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 254
- def defer_subscription_confirmation? # :doc:
- @defer_subscription_confirmation_counter.value > 0
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 257
+def defer_subscription_confirmation? # :doc:
+ @defer_subscription_confirmation_counter.value > 0
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -633,14 +636,14 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 244
- def ensure_confirmation_sent # :doc:
- return if subscription_rejected?
- @defer_subscription_confirmation_counter.decrement
- transmit_subscription_confirmation unless defer_subscription_confirmation?
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 247
+def ensure_confirmation_sent # :doc:
+ return if subscription_rejected?
+ @defer_subscription_confirmation_counter.decrement
+ transmit_subscription_confirmation unless defer_subscription_confirmation?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -670,12 +673,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 262
- def reject # :doc:
- @reject_subscription = true
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 265
+def reject # :doc:
+ @reject_subscription = true
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -705,12 +708,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 218
- def subscribed # :doc:
- # Override in subclasses
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 221
+def subscribed # :doc:
+ # Override in subclasses
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -740,12 +743,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 258
- def subscription_confirmation_sent? # :doc:
- @subscription_confirmation_sent
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 261
+def subscription_confirmation_sent? # :doc:
+ @subscription_confirmation_sent
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -775,12 +778,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 266
- def subscription_rejected? # :doc:
- @reject_subscription
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 269
+def subscription_rejected? # :doc:
+ @reject_subscription
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -810,21 +813,21 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 231
- def transmit(data, via: nil) # :doc:
- logger.debug do
- status = "#{self.class.name} transmitting #{data.inspect.truncate(300)}"
- status += " (via #{via})" if via
- status
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 234
+def transmit(data, via: nil) # :doc:
+ logger.debug do
+ status = "#{self.class.name} transmitting #{data.inspect.truncate(300)}"
+ status += " (via #{via})" if via
+ status
+ end
- payload = { channel_class: self.class.name, data: data, via: via }
- ActiveSupport::Notifications.instrument("transmit.action_cable", payload) do
- connection.transmit identifier: @identifier, message: data
- end
- end
+ payload = { channel_class: self.class.name, data: data, via: via }
+ ActiveSupport::Notifications.instrument("transmit.action_cable", payload) do
+ connection.transmit identifier: @identifier, message: data
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -854,12 +857,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 224
- def unsubscribed # :doc:
- # Override in subclasses
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 227
+def unsubscribed # :doc:
+ # Override in subclasses
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Broadcasting.html b/src/classes/ActionCable/Channel/Broadcasting.html
index bb71b89445..7fecc3f6b8 100644
--- a/src/classes/ActionCable/Channel/Broadcasting.html
+++ b/src/classes/ActionCable/Channel/Broadcasting.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -99,11 +99,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 45
- def broadcast_to(model, message)
- self.class.broadcast_to(model, message)
- end
+def broadcast_to(model, message)
+ self.class.broadcast_to(model, message)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -134,11 +134,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 41
- def broadcasting_for(model)
- self.class.broadcasting_for(model)
- end
+def broadcasting_for(model)
+ self.class.broadcasting_for(model)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html b/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
index 684bccb1ab..432bb5d74f 100644
--- a/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 14
- def broadcast_to(broadcastables, message)
- ActionCable.server.broadcast(broadcasting_for(broadcastables), message)
- end
+def broadcast_to(broadcastables, message)
+ ActionCable.server.broadcast(broadcasting_for(broadcastables), message)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -126,11 +126,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 24
- def broadcasting_for(broadcastables)
- serialize_broadcasting([ channel_name ] + Array(broadcastables))
- end
+def broadcasting_for(broadcastables)
+ serialize_broadcasting([ channel_name ] + Array(broadcastables))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Callbacks.html b/src/classes/ActionCable/Channel/Callbacks.html
index 076bdbc8fa..64985186c3 100644
--- a/src/classes/ActionCable/Channel/Callbacks.html
+++ b/src/classes/ActionCable/Channel/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html b/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
index 6ee4317311..7949b5fdf6 100644
--- a/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -111,11 +111,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 60
- def after_subscribe(*methods, &block)
- set_callback(:subscribe, :after, *methods, &block)
- end
+def after_subscribe(*methods, &block)
+ set_callback(:subscribe, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -150,11 +150,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 69
- def after_unsubscribe(*methods, &block)
- set_callback(:unsubscribe, :after, *methods, &block)
- end
+def after_unsubscribe(*methods, &block)
+ set_callback(:unsubscribe, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -185,11 +185,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 48
- def before_subscribe(*methods, &block)
- set_callback(:subscribe, :before, *methods, &block)
- end
+def before_subscribe(*methods, &block)
+ set_callback(:subscribe, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -220,11 +220,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 65
- def before_unsubscribe(*methods, &block)
- set_callback(:unsubscribe, :before, *methods, &block)
- end
+def before_unsubscribe(*methods, &block)
+ set_callback(:unsubscribe, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/ChannelStub.html b/src/classes/ActionCable/Channel/ChannelStub.html
index 9db98daac2..d004896dc5 100644
--- a/src/classes/ActionCable/Channel/ChannelStub.html
+++ b/src/classes/ActionCable/Channel/ChannelStub.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -25,7 +25,7 @@
Action Cable Channel Stub
-
Stub stream_from to track streams for the channel. Add public aliases for subscription_confirmation_sent? and subscription_rejected?.
+Stub stream_from to track streams for the channel. Add public aliases for subscription_confirmation_sent? and subscription_rejected?.
@@ -114,11 +114,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 25
- def confirmed?
- subscription_confirmation_sent?
- end
+def confirmed?
+ subscription_confirmation_sent?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -149,11 +149,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 29
- def rejected?
- subscription_rejected?
- end
+def rejected?
+ subscription_rejected?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -188,9 +188,9 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 46
- def start_periodic_timers; end
+def start_periodic_timers; end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -221,11 +221,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 37
- def stop_all_streams
- @_streams = []
- end
+def stop_all_streams
+ @_streams = []
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -281,11 +281,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 33
- def stream_from(broadcasting, *)
- streams << broadcasting
- end
+def stream_from(broadcasting, *)
+ streams << broadcasting
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -316,11 +316,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 41
- def streams
- @_streams ||= []
- end
+def streams
+ @_streams ||= []
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/ConnectionStub.html b/src/classes/ActionCable/Channel/ConnectionStub.html
index 62c52b567f..0fdc0d8690 100644
--- a/src/classes/ActionCable/Channel/ConnectionStub.html
+++ b/src/classes/ActionCable/Channel/ConnectionStub.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -141,20 +141,20 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 55
- def initialize(identifiers = {})
- @server = ActionCable.server
- @transmissions = []
-
- identifiers.each do |identifier, val|
- define_singleton_method(identifier) { val }
- end
-
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @identifiers = identifiers.keys
- @logger = ActiveSupport::TaggedLogging.new ActiveSupport::Logger.new(StringIO.new)
- end
+def initialize(identifiers = {})
+ @server = ActionCable.server
+ @transmissions = []
+
+ identifiers.each do |identifier, val|
+ define_singleton_method(identifier) { val }
+ end
+
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @identifiers = identifiers.keys
+ @logger = ActiveSupport::TaggedLogging.new ActiveSupport::Logger.new(StringIO.new)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -189,11 +189,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 72
- def connection_identifier
- @connection_identifier ||= connection_gid(identifiers.filter_map { |id| send(id.to_sym) if id })
- end
+def connection_identifier
+ @connection_identifier ||= connection_gid(identifiers.filter_map { |id| send(id.to_sym) if id })
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -224,11 +224,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 68
- def transmit(cable_message)
- transmissions << cable_message.with_indifferent_access
- end
+def transmit(cable_message)
+ transmissions << cable_message.with_indifferent_access
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Naming.html b/src/classes/ActionCable/Channel/Naming.html
index 84bfc0232c..db2aa18589 100644
--- a/src/classes/ActionCable/Channel/Naming.html
+++ b/src/classes/ActionCable/Channel/Naming.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,11 +95,11 @@
# File actioncable/lib/action_cable/channel/naming.rb, line 23
- def channel_name
- self.class.channel_name
- end
+def channel_name
+ self.class.channel_name
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Naming/ClassMethods.html b/src/classes/ActionCable/Channel/Naming/ClassMethods.html
index b847309f12..e99c0744a7 100644
--- a/src/classes/ActionCable/Channel/Naming/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Naming/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -66,7 +66,7 @@
- Returns the name of the channel, underscored, without the Channel ending. If the channel is in a namespace, then the namespaces are represented by single colon separators in the channel name.
+ Returns the name of the channel, underscored, without the Channel ending. If the channel is in a namespace, then the namespaces are represented by single colon separators in the channel name.
ChatChannel.channel_name # => 'chat'
Chats::AppearancesChannel.channel_name # => 'chats:appearances'
@@ -87,11 +87,11 @@
# File actioncable/lib/action_cable/channel/naming.rb, line 18
- def channel_name
- @channel_name ||= name.delete_suffix("Channel").gsub("::", ":").underscore
- end
+def channel_name
+ @channel_name ||= name.delete_suffix("Channel").gsub("::", ":").underscore
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/NonInferrableChannelError.html b/src/classes/ActionCable/Channel/NonInferrableChannelError.html
index 034c36b135..1eac81cbd2 100644
--- a/src/classes/ActionCable/Channel/NonInferrableChannelError.html
+++ b/src/classes/ActionCable/Channel/NonInferrableChannelError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 13
- def initialize(name)
- super "Unable to determine the channel to test from #{name}. " +
- "You'll need to specify it using `tests YourChannel` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the channel to test from #{name}. " +
+ "You'll need to specify it using `tests YourChannel` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/PeriodicTimers.html b/src/classes/ActionCable/Channel/PeriodicTimers.html
index 88facef675..561da6e0dd 100644
--- a/src/classes/ActionCable/Channel/PeriodicTimers.html
+++ b/src/classes/ActionCable/Channel/PeriodicTimers.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html b/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
index 233865e2e3..a694f6de16 100644
--- a/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -91,30 +91,30 @@
# File actioncable/lib/action_cable/channel/periodic_timers.rb, line 31
- def periodically(callback_or_method_name = nil, every:, &block)
- callback =
- if block_given?
- raise ArgumentError, "Pass a block or provide a callback arg, not both" if callback_or_method_name
- block
- else
- case callback_or_method_name
- when Proc
- callback_or_method_name
- when Symbol
- -> { __send__ callback_or_method_name }
- else
- raise ArgumentError, "Expected a Symbol method name or a Proc, got #{callback_or_method_name.inspect}"
- end
- end
-
- unless every.kind_of?(Numeric) && every > 0
- raise ArgumentError, "Expected every: to be a positive number of seconds, got #{every.inspect}"
- end
-
- self.periodic_timers += [[ callback, every: every ]]
- end
+def periodically(callback_or_method_name = nil, every:, &block)
+ callback =
+ if block_given?
+ raise ArgumentError, "Pass a block or provide a callback arg, not both" if callback_or_method_name
+ block
+ else
+ case callback_or_method_name
+ when Proc
+ callback_or_method_name
+ when Symbol
+ -> { __send__ callback_or_method_name }
+ else
+ raise ArgumentError, "Expected a Symbol method name or a Proc, got #{callback_or_method_name.inspect}"
+ end
+ end
+
+ unless every.kind_of?(Numeric) && every > 0
+ raise ArgumentError, "Expected every: to be a positive number of seconds, got #{every.inspect}"
+ end
+
+ self.periodic_timers += [[ callback, every: every ]]
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Streams.html b/src/classes/ActionCable/Channel/Streams.html
index 0967feb616..a2e686a3e9 100644
--- a/src/classes/ActionCable/Channel/Streams.html
+++ b/src/classes/ActionCable/Channel/Streams.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -167,14 +167,14 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 137
- def stop_all_streams
- streams.each do |broadcasting, callback|
- pubsub.unsubscribe broadcasting, callback
- logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
- end.clear
- end
+def stop_all_streams
+ streams.each do |broadcasting, callback|
+ pubsub.unsubscribe broadcasting, callback
+ logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
+ end.clear
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -205,11 +205,11 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 132
- def stop_stream_for(model)
- stop_stream_from(broadcasting_for(model))
- end
+def stop_stream_for(model)
+ stop_stream_from(broadcasting_for(model))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,15 +240,15 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 123
- def stop_stream_from(broadcasting)
- callback = streams.delete(broadcasting)
- if callback
- pubsub.unsubscribe(broadcasting, callback)
- logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
- end
- end
+def stop_stream_from(broadcasting)
+ callback = streams.delete(broadcasting)
+ if callback
+ pubsub.unsubscribe(broadcasting, callback)
+ logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -281,11 +281,11 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 118
- def stream_for(broadcastables, callback = nil, coder: nil, &block)
- stream_from(broadcasting_for(broadcastables), callback || block, coder: coder)
- end
+def stream_for(broadcastables, callback = nil, coder: nil, &block)
+ stream_from(broadcasting_for(broadcastables), callback || block, coder: coder)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -316,28 +316,28 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 90
- def stream_from(broadcasting, callback = nil, coder: nil, &block)
- return if unsubscribed?
-
- broadcasting = String(broadcasting)
-
- # Don't send the confirmation until pubsub#subscribe is successful
- defer_subscription_confirmation!
-
- # Build a stream handler by wrapping the user-provided callback with a decoder
- # or defaulting to a JSON-decoding retransmitter.
- handler = worker_pool_stream_handler(broadcasting, callback || block, coder: coder)
- streams[broadcasting] = handler
-
- connection.server.event_loop.post do
- pubsub.subscribe(broadcasting, handler, lambda do
- ensure_confirmation_sent
- logger.info "#{self.class.name} is streaming from #{broadcasting}"
- end)
- end
- end
+def stream_from(broadcasting, callback = nil, coder: nil, &block)
+ return if unsubscribed?
+
+ broadcasting = String(broadcasting)
+
+ # Don't send the confirmation until pubsub#subscribe is successful
+ defer_subscription_confirmation!
+
+ # Build a stream handler by wrapping the user-provided callback with a decoder
+ # or defaulting to a JSON-decoding retransmitter.
+ handler = worker_pool_stream_handler(broadcasting, callback || block, coder: coder)
+ streams[broadcasting] = handler
+
+ connection.server.event_loop.post do
+ pubsub.subscribe(broadcasting, handler, lambda do
+ ensure_confirmation_sent
+ logger.info "#{self.class.name} is streaming from #{broadcasting}"
+ end)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -368,15 +368,15 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 146
- def stream_or_reject_for(model)
- if model
- stream_for model
- else
- reject
- end
- end
+def stream_or_reject_for(model)
+ if model
+ stream_for model
+ else
+ reject
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase.html b/src/classes/ActionCable/Channel/TestCase.html
index 08fb28c0cf..6317ff44d0 100644
--- a/src/classes/ActionCable/Channel/TestCase.html
+++ b/src/classes/ActionCable/Channel/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior.html b/src/classes/ActionCable/Channel/TestCase/Behavior.html
index b5f3a5cbb7..5a8ea0fd78 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -196,11 +196,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 282
- def assert_broadcast_on(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcast_on(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -231,11 +231,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 278
- def assert_broadcasts(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcasts(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,11 +272,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 326
- def assert_has_no_stream(stream)
- assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
- end
+def assert_has_no_stream(stream)
+ assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -313,11 +313,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 337
- def assert_has_no_stream_for(object)
- assert_has_no_stream(broadcasting_for(object))
- end
+def assert_has_no_stream_for(object)
+ assert_has_no_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -354,11 +354,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 304
- def assert_has_stream(stream)
- assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
- end
+def assert_has_stream(stream)
+ assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -395,11 +395,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 315
- def assert_has_stream_for(object)
- assert_has_stream(broadcasting_for(object))
- end
+def assert_has_stream_for(object)
+ assert_has_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -436,11 +436,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 293
- def assert_no_streams
- assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
- end
+def assert_no_streams
+ assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -473,12 +473,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 266
- def perform(action, data = {})
- check_subscribed!
- subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
- end
+def perform(action, data = {})
+ check_subscribed!
+ subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -516,11 +516,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 243
- def stub_connection(identifiers = {})
- @connection = ConnectionStub.new(identifiers)
- end
+def stub_connection(identifiers = {})
+ @connection = ConnectionStub.new(identifiers)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -551,15 +551,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 249
- def subscribe(params = {})
- @connection ||= stub_connection
- @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
- @subscription.singleton_class.include(ChannelStub)
- @subscription.subscribe_to_channel
- @subscription
- end
+def subscribe(params = {})
+ @connection ||= stub_connection
+ @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
+ @subscription.singleton_class.include(ChannelStub)
+ @subscription.subscribe_to_channel
+ @subscription
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -590,12 +590,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 272
- def transmissions
- # Return only directly sent message (via #transmit)
- connection.transmissions.filter_map { |data| data["message"] }
- end
+def transmissions
+ # Return only directly sent message (via #transmit)
+ connection.transmissions.filter_map { |data| data["message"] }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -626,12 +626,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 258
- def unsubscribe
- check_subscribed!
- subscription.unsubscribe_from_channel
- end
+def unsubscribe
+ check_subscribed!
+ subscription.unsubscribe_from_channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
index 48ea87f130..57efb4cdac 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 219
- def channel_class
- if channel = self._channel_class
- channel
- else
- tests determine_default_channel(name)
- end
- end
+def channel_class
+ if channel = self._channel_class
+ channel
+ else
+ tests determine_default_channel(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 227
- def determine_default_channel(name)
- channel = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Channel::Base
- end
- raise NonInferrableChannelError.new(name) if channel.nil?
- channel
- end
+def determine_default_channel(name)
+ channel = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Channel::Base
+ end
+ raise NonInferrableChannelError.new(name) if channel.nil?
+ channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 208
- def tests(channel)
- case channel
- when String, Symbol
- self._channel_class = channel.to_s.camelize.constantize
- when Module
- self._channel_class = channel
- else
- raise NonInferrableChannelError.new(channel)
- end
- end
+def tests(channel)
+ case channel
+ when String, Symbol
+ self._channel_class = channel.to_s.camelize.constantize
+ when Module
+ self._channel_class = channel
+ else
+ raise NonInferrableChannelError.new(channel)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection.html b/src/classes/ActionCable/Connection.html
index f832214f0e..7889c75284 100644
--- a/src/classes/ActionCable/Connection.html
+++ b/src/classes/ActionCable/Connection.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Assertions.html b/src/classes/ActionCable/Connection/Assertions.html
index 933ea80e4c..6b10ec5528 100644
--- a/src/classes/ActionCable/Connection/Assertions.html
+++ b/src/classes/ActionCable/Connection/Assertions.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 28
- def assert_reject_connection(&block)
- assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
- end
+def assert_reject_connection(&block)
+ assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization.html b/src/classes/ActionCable/Connection/Authorization.html
index feb855aa9e..baf85a37b3 100644
--- a/src/classes/ActionCable/Connection/Authorization.html
+++ b/src/classes/ActionCable/Connection/Authorization.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -97,12 +97,12 @@
# File actioncable/lib/action_cable/connection/authorization.rb, line 12
- def reject_unauthorized_connection
- logger.error "An unauthorized connection attempt was rejected"
- raise UnauthorizedError
- end
+def reject_unauthorized_connection
+ logger.error "An unauthorized connection attempt was rejected"
+ raise UnauthorizedError
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
index b63b282b0b..ff36299a28 100644
--- a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
+++ b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/Base.html b/src/classes/ActionCable/Connection/Base.html
index 36a2f1e1bb..ea0d62911f 100644
--- a/src/classes/ActionCable/Connection/Base.html
+++ b/src/classes/ActionCable/Connection/Base.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -255,21 +255,21 @@
# File actioncable/lib/action_cable/connection/base.rb, line 67
- def initialize(server, env, coder: ActiveSupport::JSON)
- @server, @env, @coder = server, env, coder
+def initialize(server, env, coder: ActiveSupport::JSON)
+ @server, @env, @coder = server, env, coder
- @worker_pool = server.worker_pool
- @logger = new_tagged_logger
+ @worker_pool = server.worker_pool
+ @logger = new_tagged_logger
- @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
+ @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
- @_internal_subscriptions = nil
- @started_at = Time.now
- end
+ @_internal_subscriptions = nil
+ @started_at = Time.now
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -304,11 +304,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 147
- def beat
- transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
- end
+def beat
+ transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -339,16 +339,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 120
- def close(reason: nil, reconnect: true)
- transmit(
- type: ActionCable::INTERNAL[:message_types][:disconnect],
- reason: reason,
- reconnect: reconnect
- )
- websocket.close
- end
+def close(reason: nil, reconnect: true)
+ transmit(
+ type: ActionCable::INTERNAL[:message_types][:disconnect],
+ reason: reason,
+ reconnect: reconnect
+ )
+ websocket.close
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -379,13 +379,13 @@
# File actioncable/lib/action_cable/connection/base.rb, line 109
- def handle_channel_command(payload)
- run_callbacks :command do
- subscriptions.execute_command payload
- end
- end
+def handle_channel_command(payload)
+ run_callbacks :command do
+ subscriptions.execute_command payload
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -416,11 +416,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 131
- def send_async(method, *arguments)
- worker_pool.async_invoke(self, method, *arguments)
- end
+def send_async(method, *arguments)
+ worker_pool.async_invoke(self, method, *arguments)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -451,16 +451,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 138
- def statistics
- {
- identifier: connection_identifier,
- started_at: @started_at,
- subscriptions: subscriptions.identifiers,
- request_id: @env["action_dispatch.request_id"]
- }
- end
+def statistics
+ {
+ identifier: connection_identifier,
+ started_at: @started_at,
+ subscriptions: subscriptions.identifiers,
+ request_id: @env["action_dispatch.request_id"]
+ }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -494,11 +494,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 187
- def cookies # :doc:
- request.cookie_jar
- end
+def cookies # :doc:
+ request.cookie_jar
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -529,14 +529,14 @@
# File actioncable/lib/action_cable/connection/base.rb, line 178
- def request # :doc:
- @request ||= begin
- environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
- ActionDispatch::Request.new(environment || env)
- end
- end
+def request # :doc:
+ @request ||= begin
+ environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
+ ActionDispatch::Request.new(environment || env)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Callbacks.html b/src/classes/ActionCable/Connection/Callbacks.html
index 818958bf81..d6504ca284 100644
--- a/src/classes/ActionCable/Connection/Callbacks.html
+++ b/src/classes/ActionCable/Connection/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
index 933056a029..6376d7195b 100644
--- a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,11 +90,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 47
- def after_command(*methods, &block)
- set_callback(:command, :after, *methods, &block)
- end
+def after_command(*methods, &block)
+ set_callback(:command, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -125,11 +125,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 51
- def around_command(*methods, &block)
- set_callback(:command, :around, *methods, &block)
- end
+def around_command(*methods, &block)
+ set_callback(:command, :around, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -160,11 +160,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 43
- def before_command(*methods, &block)
- set_callback(:command, :before, *methods, &block)
- end
+def before_command(*methods, &block)
+ set_callback(:command, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification.html b/src/classes/ActionCable/Connection/Identification.html
index f3dcea9bfc..063ca88999 100644
--- a/src/classes/ActionCable/Connection/Identification.html
+++ b/src/classes/ActionCable/Connection/Identification.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,15 +95,15 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 29
- def connection_identifier
- unless defined? @connection_identifier
- @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
- end
+def connection_identifier
+ unless defined? @connection_identifier
+ @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
+ end
- @connection_identifier
- end
+ @connection_identifier
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification/ClassMethods.html b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
index 324ded31f5..a3395ef8a3 100644
--- a/src/classes/ActionCable/Connection/Identification/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -84,12 +84,12 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 21
- def identified_by(*identifiers)
- Array(identifiers).each { |identifier| attr_accessor identifier }
- self.identifiers += identifiers
- end
+def identified_by(*identifiers)
+ Array(identifiers).each { |identifier| attr_accessor identifier }
+ self.identifiers += identifiers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/InternalChannel.html b/src/classes/ActionCable/Connection/InternalChannel.html
index 9b0144f690..cfdccceaf4 100644
--- a/src/classes/ActionCable/Connection/InternalChannel.html
+++ b/src/classes/ActionCable/Connection/InternalChannel.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
index 7167904452..bf0c696d62 100644
--- a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
+++ b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 15
- def initialize(name)
- super "Unable to determine the connection to test from #{name}. " +
- "You'll need to specify it using `tests YourConnection` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the connection to test from #{name}. " +
+ "You'll need to specify it using `tests YourConnection` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/StreamEventLoop.html b/src/classes/ActionCable/Connection/StreamEventLoop.html
index 2b71a213e3..f7c49354ef 100644
--- a/src/classes/ActionCable/Connection/StreamEventLoop.html
+++ b/src/classes/ActionCable/Connection/StreamEventLoop.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -111,16 +111,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 10
- def initialize
- @nio = @executor = @thread = nil
- @map = {}
- @stopping = false
- @todo = Queue.new
-
- @spawn_mutex = Mutex.new
- end
+def initialize
+ @nio = @executor = @thread = nil
+ @map = {}
+ @stopping = false
+ @todo = Queue.new
+
+ @spawn_mutex = Mutex.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -155,15 +155,15 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 30
- def attach(io, stream)
- @todo << lambda do
- @map[io] = @nio.register(io, :r)
- @map[io].value = stream
- end
- wakeup
- end
+def attach(io, stream)
+ @todo << lambda do
+ @map[io] = @nio.register(io, :r)
+ @map[io].value = stream
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -194,16 +194,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 38
- def detach(io, stream)
- @todo << lambda do
- @nio.deregister io
- @map.delete io
- io.close
- end
- wakeup
- end
+def detach(io, stream)
+ @todo << lambda do
+ @nio.deregister io
+ @map.delete io
+ io.close
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -234,14 +234,14 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 23
- def post(task = nil, &block)
- task ||= block
+def post(task = nil, &block)
+ task ||= block
- spawn
- @executor << task
- end
+ spawn
+ @executor << task
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,12 +272,12 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 56
- def stop
- @stopping = true
- wakeup if @nio
- end
+def stop
+ @stopping = true
+ wakeup if @nio
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -308,11 +308,11 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 19
- def timer(interval, &block)
- Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
- end
+def timer(interval, &block)
+ Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -343,16 +343,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 47
- def writes_pending(io)
- @todo << lambda do
- if monitor = @map[io]
- monitor.interests = :rw
- end
- end
- wakeup
- end
+def writes_pending(io)
+ @todo << lambda do
+ if monitor = @map[io]
+ monitor.interests = :rw
+ end
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
index f4d5cacc63..99731855fb 100644
--- a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
+++ b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -121,12 +121,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 16
- def initialize(logger, tags:)
- @logger = logger
- @tags = tags.flatten
- end
+def initialize(logger, tags:)
+ @logger = logger
+ @tags = tags.flatten
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -161,12 +161,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 21
- def add_tags(*tags)
- @tags += tags.flatten
- @tags = @tags.uniq
- end
+def add_tags(*tags)
+ @tags += tags.flatten
+ @tags = @tags.uniq
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -197,16 +197,16 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 26
- def tag(logger, &block)
- if logger.respond_to?(:tagged)
- current_tags = tags - logger.formatter.current_tags
- logger.tagged(*current_tags, &block)
- else
- yield
- end
- end
+def tag(logger, &block)
+ if logger.respond_to?(:tagged)
+ current_tags = tags - logger.formatter.current_tags
+ logger.tagged(*current_tags, &block)
+ else
+ yield
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,11 +240,11 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 42
- def log(type, message, &block) # :doc:
- tag(@logger) { @logger.send type, message, &block }
- end
+def log(type, message, &block) # :doc:
+ tag(@logger) { @logger.send type, message, &block }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase.html b/src/classes/ActionCable/Connection/TestCase.html
index 948378e491..39bc5cb056 100644
--- a/src/classes/ActionCable/Connection/TestCase.html
+++ b/src/classes/ActionCable/Connection/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior.html b/src/classes/ActionCable/Connection/TestCase/Behavior.html
index b87870becd..4ee0debbea 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -163,19 +163,19 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 192
- def connect(path = ActionCable.server.config.mount_path, **request_params)
- path ||= DEFAULT_PATH
+def connect(path = ActionCable.server.config.mount_path, **request_params)
+ path ||= DEFAULT_PATH
- connection = self.class.connection_class.allocate
- connection.singleton_class.include(TestConnection)
- connection.send(:initialize, build_test_request(path, **request_params))
- connection.connect if connection.respond_to?(:connect)
+ connection = self.class.connection_class.allocate
+ connection.singleton_class.include(TestConnection)
+ connection.send(:initialize, build_test_request(path, **request_params))
+ connection.connect if connection.respond_to?(:connect)
- # Only set instance variable if connected successfully
- @connection = connection
- end
+ # Only set instance variable if connected successfully
+ @connection = connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -206,11 +206,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 212
- def cookies
- @cookie_jar ||= TestCookieJar.new
- end
+def cookies
+ @cookie_jar ||= TestCookieJar.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -241,14 +241,14 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 205
- def disconnect
- raise "Must be connected!" if connection.nil?
+def disconnect
+ raise "Must be connected!" if connection.nil?
- connection.disconnect if connection.respond_to?(:disconnect)
- @connection = nil
- end
+ connection.disconnect if connection.respond_to?(:disconnect)
+ @connection = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
index 63444f4b27..99fc0e3f6f 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 167
- def connection_class
- if connection = self._connection_class
- connection
- else
- tests determine_default_connection(name)
- end
- end
+def connection_class
+ if connection = self._connection_class
+ connection
+ else
+ tests determine_default_connection(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 175
- def determine_default_connection(name)
- connection = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Connection::Base
- end
- raise NonInferrableConnectionError.new(name) if connection.nil?
- connection
- end
+def determine_default_connection(name)
+ connection = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Connection::Base
+ end
+ raise NonInferrableConnectionError.new(name) if connection.nil?
+ connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actionpack/lib/abstract_controller/url_for.rb, line 24
- def _routes
- nil
- end
+def _routes
+ nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -121,15 +121,15 @@
# File actionpack/lib/abstract_controller/url_for.rb, line 28
- def action_methods
- @action_methods ||= if _routes
- super - _routes.named_routes.helper_names
- else
- super
- end
- end
+def action_methods
+ @action_methods ||= if _routes
+ super - _routes.named_routes.helper_names
+ else
+ super
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable.html b/src/classes/ActionCable.html
index 4951b5813f..5e5f891dce 100644
--- a/src/classes/ActionCable.html
+++ b/src/classes/ActionCable.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -267,11 +267,11 @@
# File actioncable/lib/action_cable/gem_version.rb, line 7
- def self.gem_version
- Gem::Version.new VERSION::STRING
- end
+def self.gem_version
+ Gem::Version.new VERSION::STRING
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -302,11 +302,11 @@
# File actioncable/lib/action_cable/version.rb, line 9
- def self.version
- gem_version
- end
+def self.version
+ gem_version
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -341,11 +341,11 @@
# File actioncable/lib/action_cable.rb, line 77
- def server
- @server ||= ActionCable::Server::Base.new
- end
+def server
+@server ||= ActionCable::Server::Base.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel.html b/src/classes/ActionCable/Channel.html
index 38c886ddbc..06b36ff362 100644
--- a/src/classes/ActionCable/Channel.html
+++ b/src/classes/ActionCable/Channel.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Channel/Base.html b/src/classes/ActionCable/Channel/Base.html
index bc63a53315..32e2ff9b70 100644
--- a/src/classes/ActionCable/Channel/Base.html
+++ b/src/classes/ActionCable/Channel/Base.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -82,7 +82,7 @@ Action process
end
-
In this example, the subscribed and unsubscribed methods are not callable methods, as they were already declared in ActionCable::Channel::Base, but #appear and #away are. #generate_connection_token is also not callable, since it’s a private method. You’ll see that appear accepts a data parameter, which it then uses as part of its model call. #away does not, since it’s simply a trigger action.
+In this example, the subscribed and unsubscribed methods are not callable methods, as they were already declared in ActionCable::Channel::Base, but appear and away are. generate_connection_token is also not callable, since it’s a private method. You’ll see that appear accepts a data parameter, which it then uses as part of its model call. away does not, since it’s simply a trigger action.
Also note that in this example, current_user is available because it was marked as an identifying attribute on the connection. All such identifiers will automatically create a delegation method of the same name on the channel instance.
@@ -307,19 +307,22 @@ Returns
# File actioncable/lib/action_cable/channel/base.rb, line 128
- def action_methods
- @action_methods ||= begin
- # All public instance methods of this class, including ancestors
- methods = (public_instance_methods(true) -
- # Except for public instance methods of Base and its ancestors
- ActionCable::Channel::Base.public_instance_methods(true) +
- # Be sure to include shadowed public instance methods of this class
- public_instance_methods(false)).uniq.map(&:to_s)
- methods.to_set
- end
- end
-
- 🔎 See on GitHub
+def action_methods
+ @action_methods ||= begin
+ # All public instance methods of this class, including ancestors
+ methods = (public_instance_methods(true) -
+ # Except for public instance methods of Base and its ancestors
+ ActionCable::Channel::Base.public_instance_methods(true) +
+ # Be sure to include shadowed public instance methods of this class
+ public_instance_methods(false)).uniq
+
+ methods.reject! { |m| m.start_with?("_") }
+ methods.map!(&:name)
+ methods.to_set
+ end
+end
+
+ 🔎 See on GitHub
@@ -349,26 +352,26 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 155
- def initialize(connection, identifier, params = {})
- @connection = connection
- @identifier = identifier
- @params = params
+ # File actioncable/lib/action_cable/channel/base.rb, line 158
+def initialize(connection, identifier, params = {})
+ @connection = connection
+ @identifier = identifier
+ @params = params
- # When a channel is streaming via pubsub, we want to delay the confirmation
- # transmission until pubsub subscription is confirmed.
- #
- # The counter starts at 1 because it's awaiting a call to #subscribe_to_channel
- @defer_subscription_confirmation_counter = Concurrent::AtomicFixnum.new(1)
+ # When a channel is streaming via pubsub, we want to delay the confirmation
+ # transmission until pubsub subscription is confirmed.
+ #
+ # The counter starts at 1 because it's awaiting a call to #subscribe_to_channel
+ @defer_subscription_confirmation_counter = Concurrent::AtomicFixnum.new(1)
- @reject_subscription = nil
- @subscription_confirmation_sent = nil
- @unsubscribed = false
+ @reject_subscription = nil
+ @subscription_confirmation_sent = nil
+ @unsubscribed = false
- delegate_connection_identifiers
- end
+ delegate_connection_identifiers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -401,12 +404,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 144
- def clear_action_methods! # :doc:
- @action_methods = nil
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 147
+def clear_action_methods! # :doc:
+ @action_methods = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -436,13 +439,13 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 149
- def method_added(name) # :doc:
- super
- clear_action_methods!
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 152
+def method_added(name) # :doc:
+ super
+ clear_action_methods!
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -476,21 +479,21 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 176
- def perform_action(data)
- action = extract_action(data)
+ # File actioncable/lib/action_cable/channel/base.rb, line 179
+def perform_action(data)
+ action = extract_action(data)
- if processable_action?(action)
- payload = { channel_class: self.class.name, action: action, data: data }
- ActiveSupport::Notifications.instrument("perform_action.action_cable", payload) do
- dispatch_action(action, data)
- end
- else
- logger.error "Unable to process #{action_signature(action, data)}"
- end
- end
+ if processable_action?(action)
+ payload = { channel_class: self.class.name, action: action, data: data }
+ ActiveSupport::Notifications.instrument("perform_action.action_cable", payload) do
+ dispatch_action(action, data)
+ end
+ else
+ logger.error "Unable to process #{action_signature(action, data)}"
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -520,17 +523,17 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 191
- def subscribe_to_channel
- run_callbacks :subscribe do
- subscribed
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 194
+def subscribe_to_channel
+ run_callbacks :subscribe do
+ subscribed
+ end
- reject_subscription if subscription_rejected?
- ensure_confirmation_sent
- end
+ reject_subscription if subscription_rejected?
+ ensure_confirmation_sent
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -563,12 +566,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 250
- def defer_subscription_confirmation! # :doc:
- @defer_subscription_confirmation_counter.increment
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 253
+def defer_subscription_confirmation! # :doc:
+ @defer_subscription_confirmation_counter.increment
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -598,12 +601,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 254
- def defer_subscription_confirmation? # :doc:
- @defer_subscription_confirmation_counter.value > 0
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 257
+def defer_subscription_confirmation? # :doc:
+ @defer_subscription_confirmation_counter.value > 0
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -633,14 +636,14 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 244
- def ensure_confirmation_sent # :doc:
- return if subscription_rejected?
- @defer_subscription_confirmation_counter.decrement
- transmit_subscription_confirmation unless defer_subscription_confirmation?
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 247
+def ensure_confirmation_sent # :doc:
+ return if subscription_rejected?
+ @defer_subscription_confirmation_counter.decrement
+ transmit_subscription_confirmation unless defer_subscription_confirmation?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -670,12 +673,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 262
- def reject # :doc:
- @reject_subscription = true
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 265
+def reject # :doc:
+ @reject_subscription = true
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -705,12 +708,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 218
- def subscribed # :doc:
- # Override in subclasses
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 221
+def subscribed # :doc:
+ # Override in subclasses
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -740,12 +743,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 258
- def subscription_confirmation_sent? # :doc:
- @subscription_confirmation_sent
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 261
+def subscription_confirmation_sent? # :doc:
+ @subscription_confirmation_sent
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -775,12 +778,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 266
- def subscription_rejected? # :doc:
- @reject_subscription
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 269
+def subscription_rejected? # :doc:
+ @reject_subscription
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -810,21 +813,21 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 231
- def transmit(data, via: nil) # :doc:
- logger.debug do
- status = "#{self.class.name} transmitting #{data.inspect.truncate(300)}"
- status += " (via #{via})" if via
- status
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 234
+def transmit(data, via: nil) # :doc:
+ logger.debug do
+ status = "#{self.class.name} transmitting #{data.inspect.truncate(300)}"
+ status += " (via #{via})" if via
+ status
+ end
- payload = { channel_class: self.class.name, data: data, via: via }
- ActiveSupport::Notifications.instrument("transmit.action_cable", payload) do
- connection.transmit identifier: @identifier, message: data
- end
- end
+ payload = { channel_class: self.class.name, data: data, via: via }
+ ActiveSupport::Notifications.instrument("transmit.action_cable", payload) do
+ connection.transmit identifier: @identifier, message: data
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -854,12 +857,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 224
- def unsubscribed # :doc:
- # Override in subclasses
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 227
+def unsubscribed # :doc:
+ # Override in subclasses
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Broadcasting.html b/src/classes/ActionCable/Channel/Broadcasting.html
index bb71b89445..7fecc3f6b8 100644
--- a/src/classes/ActionCable/Channel/Broadcasting.html
+++ b/src/classes/ActionCable/Channel/Broadcasting.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -99,11 +99,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 45
- def broadcast_to(model, message)
- self.class.broadcast_to(model, message)
- end
+def broadcast_to(model, message)
+ self.class.broadcast_to(model, message)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -134,11 +134,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 41
- def broadcasting_for(model)
- self.class.broadcasting_for(model)
- end
+def broadcasting_for(model)
+ self.class.broadcasting_for(model)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html b/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
index 684bccb1ab..432bb5d74f 100644
--- a/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 14
- def broadcast_to(broadcastables, message)
- ActionCable.server.broadcast(broadcasting_for(broadcastables), message)
- end
+def broadcast_to(broadcastables, message)
+ ActionCable.server.broadcast(broadcasting_for(broadcastables), message)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -126,11 +126,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 24
- def broadcasting_for(broadcastables)
- serialize_broadcasting([ channel_name ] + Array(broadcastables))
- end
+def broadcasting_for(broadcastables)
+ serialize_broadcasting([ channel_name ] + Array(broadcastables))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Callbacks.html b/src/classes/ActionCable/Channel/Callbacks.html
index 076bdbc8fa..64985186c3 100644
--- a/src/classes/ActionCable/Channel/Callbacks.html
+++ b/src/classes/ActionCable/Channel/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html b/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
index 6ee4317311..7949b5fdf6 100644
--- a/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -111,11 +111,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 60
- def after_subscribe(*methods, &block)
- set_callback(:subscribe, :after, *methods, &block)
- end
+def after_subscribe(*methods, &block)
+ set_callback(:subscribe, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -150,11 +150,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 69
- def after_unsubscribe(*methods, &block)
- set_callback(:unsubscribe, :after, *methods, &block)
- end
+def after_unsubscribe(*methods, &block)
+ set_callback(:unsubscribe, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -185,11 +185,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 48
- def before_subscribe(*methods, &block)
- set_callback(:subscribe, :before, *methods, &block)
- end
+def before_subscribe(*methods, &block)
+ set_callback(:subscribe, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -220,11 +220,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 65
- def before_unsubscribe(*methods, &block)
- set_callback(:unsubscribe, :before, *methods, &block)
- end
+def before_unsubscribe(*methods, &block)
+ set_callback(:unsubscribe, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/ChannelStub.html b/src/classes/ActionCable/Channel/ChannelStub.html
index 9db98daac2..d004896dc5 100644
--- a/src/classes/ActionCable/Channel/ChannelStub.html
+++ b/src/classes/ActionCable/Channel/ChannelStub.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -25,7 +25,7 @@
Action Cable Channel Stub
-
Stub stream_from to track streams for the channel. Add public aliases for subscription_confirmation_sent? and subscription_rejected?.
+Stub stream_from to track streams for the channel. Add public aliases for subscription_confirmation_sent? and subscription_rejected?.
@@ -114,11 +114,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 25
- def confirmed?
- subscription_confirmation_sent?
- end
+def confirmed?
+ subscription_confirmation_sent?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -149,11 +149,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 29
- def rejected?
- subscription_rejected?
- end
+def rejected?
+ subscription_rejected?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -188,9 +188,9 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 46
- def start_periodic_timers; end
+def start_periodic_timers; end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -221,11 +221,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 37
- def stop_all_streams
- @_streams = []
- end
+def stop_all_streams
+ @_streams = []
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -281,11 +281,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 33
- def stream_from(broadcasting, *)
- streams << broadcasting
- end
+def stream_from(broadcasting, *)
+ streams << broadcasting
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -316,11 +316,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 41
- def streams
- @_streams ||= []
- end
+def streams
+ @_streams ||= []
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/ConnectionStub.html b/src/classes/ActionCable/Channel/ConnectionStub.html
index 62c52b567f..0fdc0d8690 100644
--- a/src/classes/ActionCable/Channel/ConnectionStub.html
+++ b/src/classes/ActionCable/Channel/ConnectionStub.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -141,20 +141,20 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 55
- def initialize(identifiers = {})
- @server = ActionCable.server
- @transmissions = []
-
- identifiers.each do |identifier, val|
- define_singleton_method(identifier) { val }
- end
-
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @identifiers = identifiers.keys
- @logger = ActiveSupport::TaggedLogging.new ActiveSupport::Logger.new(StringIO.new)
- end
+def initialize(identifiers = {})
+ @server = ActionCable.server
+ @transmissions = []
+
+ identifiers.each do |identifier, val|
+ define_singleton_method(identifier) { val }
+ end
+
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @identifiers = identifiers.keys
+ @logger = ActiveSupport::TaggedLogging.new ActiveSupport::Logger.new(StringIO.new)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -189,11 +189,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 72
- def connection_identifier
- @connection_identifier ||= connection_gid(identifiers.filter_map { |id| send(id.to_sym) if id })
- end
+def connection_identifier
+ @connection_identifier ||= connection_gid(identifiers.filter_map { |id| send(id.to_sym) if id })
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -224,11 +224,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 68
- def transmit(cable_message)
- transmissions << cable_message.with_indifferent_access
- end
+def transmit(cable_message)
+ transmissions << cable_message.with_indifferent_access
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Naming.html b/src/classes/ActionCable/Channel/Naming.html
index 84bfc0232c..db2aa18589 100644
--- a/src/classes/ActionCable/Channel/Naming.html
+++ b/src/classes/ActionCable/Channel/Naming.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,11 +95,11 @@
# File actioncable/lib/action_cable/channel/naming.rb, line 23
- def channel_name
- self.class.channel_name
- end
+def channel_name
+ self.class.channel_name
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Naming/ClassMethods.html b/src/classes/ActionCable/Channel/Naming/ClassMethods.html
index b847309f12..e99c0744a7 100644
--- a/src/classes/ActionCable/Channel/Naming/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Naming/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -66,7 +66,7 @@
- Returns the name of the channel, underscored, without the Channel ending. If the channel is in a namespace, then the namespaces are represented by single colon separators in the channel name.
+ Returns the name of the channel, underscored, without the Channel ending. If the channel is in a namespace, then the namespaces are represented by single colon separators in the channel name.
ChatChannel.channel_name # => 'chat'
Chats::AppearancesChannel.channel_name # => 'chats:appearances'
@@ -87,11 +87,11 @@
# File actioncable/lib/action_cable/channel/naming.rb, line 18
- def channel_name
- @channel_name ||= name.delete_suffix("Channel").gsub("::", ":").underscore
- end
+def channel_name
+ @channel_name ||= name.delete_suffix("Channel").gsub("::", ":").underscore
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/NonInferrableChannelError.html b/src/classes/ActionCable/Channel/NonInferrableChannelError.html
index 034c36b135..1eac81cbd2 100644
--- a/src/classes/ActionCable/Channel/NonInferrableChannelError.html
+++ b/src/classes/ActionCable/Channel/NonInferrableChannelError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 13
- def initialize(name)
- super "Unable to determine the channel to test from #{name}. " +
- "You'll need to specify it using `tests YourChannel` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the channel to test from #{name}. " +
+ "You'll need to specify it using `tests YourChannel` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/PeriodicTimers.html b/src/classes/ActionCable/Channel/PeriodicTimers.html
index 88facef675..561da6e0dd 100644
--- a/src/classes/ActionCable/Channel/PeriodicTimers.html
+++ b/src/classes/ActionCable/Channel/PeriodicTimers.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html b/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
index 233865e2e3..a694f6de16 100644
--- a/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -91,30 +91,30 @@
# File actioncable/lib/action_cable/channel/periodic_timers.rb, line 31
- def periodically(callback_or_method_name = nil, every:, &block)
- callback =
- if block_given?
- raise ArgumentError, "Pass a block or provide a callback arg, not both" if callback_or_method_name
- block
- else
- case callback_or_method_name
- when Proc
- callback_or_method_name
- when Symbol
- -> { __send__ callback_or_method_name }
- else
- raise ArgumentError, "Expected a Symbol method name or a Proc, got #{callback_or_method_name.inspect}"
- end
- end
-
- unless every.kind_of?(Numeric) && every > 0
- raise ArgumentError, "Expected every: to be a positive number of seconds, got #{every.inspect}"
- end
-
- self.periodic_timers += [[ callback, every: every ]]
- end
+def periodically(callback_or_method_name = nil, every:, &block)
+ callback =
+ if block_given?
+ raise ArgumentError, "Pass a block or provide a callback arg, not both" if callback_or_method_name
+ block
+ else
+ case callback_or_method_name
+ when Proc
+ callback_or_method_name
+ when Symbol
+ -> { __send__ callback_or_method_name }
+ else
+ raise ArgumentError, "Expected a Symbol method name or a Proc, got #{callback_or_method_name.inspect}"
+ end
+ end
+
+ unless every.kind_of?(Numeric) && every > 0
+ raise ArgumentError, "Expected every: to be a positive number of seconds, got #{every.inspect}"
+ end
+
+ self.periodic_timers += [[ callback, every: every ]]
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Streams.html b/src/classes/ActionCable/Channel/Streams.html
index 0967feb616..a2e686a3e9 100644
--- a/src/classes/ActionCable/Channel/Streams.html
+++ b/src/classes/ActionCable/Channel/Streams.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -167,14 +167,14 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 137
- def stop_all_streams
- streams.each do |broadcasting, callback|
- pubsub.unsubscribe broadcasting, callback
- logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
- end.clear
- end
+def stop_all_streams
+ streams.each do |broadcasting, callback|
+ pubsub.unsubscribe broadcasting, callback
+ logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
+ end.clear
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -205,11 +205,11 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 132
- def stop_stream_for(model)
- stop_stream_from(broadcasting_for(model))
- end
+def stop_stream_for(model)
+ stop_stream_from(broadcasting_for(model))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,15 +240,15 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 123
- def stop_stream_from(broadcasting)
- callback = streams.delete(broadcasting)
- if callback
- pubsub.unsubscribe(broadcasting, callback)
- logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
- end
- end
+def stop_stream_from(broadcasting)
+ callback = streams.delete(broadcasting)
+ if callback
+ pubsub.unsubscribe(broadcasting, callback)
+ logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -281,11 +281,11 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 118
- def stream_for(broadcastables, callback = nil, coder: nil, &block)
- stream_from(broadcasting_for(broadcastables), callback || block, coder: coder)
- end
+def stream_for(broadcastables, callback = nil, coder: nil, &block)
+ stream_from(broadcasting_for(broadcastables), callback || block, coder: coder)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -316,28 +316,28 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 90
- def stream_from(broadcasting, callback = nil, coder: nil, &block)
- return if unsubscribed?
-
- broadcasting = String(broadcasting)
-
- # Don't send the confirmation until pubsub#subscribe is successful
- defer_subscription_confirmation!
-
- # Build a stream handler by wrapping the user-provided callback with a decoder
- # or defaulting to a JSON-decoding retransmitter.
- handler = worker_pool_stream_handler(broadcasting, callback || block, coder: coder)
- streams[broadcasting] = handler
-
- connection.server.event_loop.post do
- pubsub.subscribe(broadcasting, handler, lambda do
- ensure_confirmation_sent
- logger.info "#{self.class.name} is streaming from #{broadcasting}"
- end)
- end
- end
+def stream_from(broadcasting, callback = nil, coder: nil, &block)
+ return if unsubscribed?
+
+ broadcasting = String(broadcasting)
+
+ # Don't send the confirmation until pubsub#subscribe is successful
+ defer_subscription_confirmation!
+
+ # Build a stream handler by wrapping the user-provided callback with a decoder
+ # or defaulting to a JSON-decoding retransmitter.
+ handler = worker_pool_stream_handler(broadcasting, callback || block, coder: coder)
+ streams[broadcasting] = handler
+
+ connection.server.event_loop.post do
+ pubsub.subscribe(broadcasting, handler, lambda do
+ ensure_confirmation_sent
+ logger.info "#{self.class.name} is streaming from #{broadcasting}"
+ end)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -368,15 +368,15 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 146
- def stream_or_reject_for(model)
- if model
- stream_for model
- else
- reject
- end
- end
+def stream_or_reject_for(model)
+ if model
+ stream_for model
+ else
+ reject
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase.html b/src/classes/ActionCable/Channel/TestCase.html
index 08fb28c0cf..6317ff44d0 100644
--- a/src/classes/ActionCable/Channel/TestCase.html
+++ b/src/classes/ActionCable/Channel/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior.html b/src/classes/ActionCable/Channel/TestCase/Behavior.html
index b5f3a5cbb7..5a8ea0fd78 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -196,11 +196,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 282
- def assert_broadcast_on(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcast_on(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -231,11 +231,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 278
- def assert_broadcasts(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcasts(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,11 +272,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 326
- def assert_has_no_stream(stream)
- assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
- end
+def assert_has_no_stream(stream)
+ assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -313,11 +313,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 337
- def assert_has_no_stream_for(object)
- assert_has_no_stream(broadcasting_for(object))
- end
+def assert_has_no_stream_for(object)
+ assert_has_no_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -354,11 +354,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 304
- def assert_has_stream(stream)
- assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
- end
+def assert_has_stream(stream)
+ assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -395,11 +395,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 315
- def assert_has_stream_for(object)
- assert_has_stream(broadcasting_for(object))
- end
+def assert_has_stream_for(object)
+ assert_has_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -436,11 +436,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 293
- def assert_no_streams
- assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
- end
+def assert_no_streams
+ assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -473,12 +473,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 266
- def perform(action, data = {})
- check_subscribed!
- subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
- end
+def perform(action, data = {})
+ check_subscribed!
+ subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -516,11 +516,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 243
- def stub_connection(identifiers = {})
- @connection = ConnectionStub.new(identifiers)
- end
+def stub_connection(identifiers = {})
+ @connection = ConnectionStub.new(identifiers)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -551,15 +551,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 249
- def subscribe(params = {})
- @connection ||= stub_connection
- @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
- @subscription.singleton_class.include(ChannelStub)
- @subscription.subscribe_to_channel
- @subscription
- end
+def subscribe(params = {})
+ @connection ||= stub_connection
+ @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
+ @subscription.singleton_class.include(ChannelStub)
+ @subscription.subscribe_to_channel
+ @subscription
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -590,12 +590,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 272
- def transmissions
- # Return only directly sent message (via #transmit)
- connection.transmissions.filter_map { |data| data["message"] }
- end
+def transmissions
+ # Return only directly sent message (via #transmit)
+ connection.transmissions.filter_map { |data| data["message"] }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -626,12 +626,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 258
- def unsubscribe
- check_subscribed!
- subscription.unsubscribe_from_channel
- end
+def unsubscribe
+ check_subscribed!
+ subscription.unsubscribe_from_channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
index 48ea87f130..57efb4cdac 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 219
- def channel_class
- if channel = self._channel_class
- channel
- else
- tests determine_default_channel(name)
- end
- end
+def channel_class
+ if channel = self._channel_class
+ channel
+ else
+ tests determine_default_channel(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 227
- def determine_default_channel(name)
- channel = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Channel::Base
- end
- raise NonInferrableChannelError.new(name) if channel.nil?
- channel
- end
+def determine_default_channel(name)
+ channel = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Channel::Base
+ end
+ raise NonInferrableChannelError.new(name) if channel.nil?
+ channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 208
- def tests(channel)
- case channel
- when String, Symbol
- self._channel_class = channel.to_s.camelize.constantize
- when Module
- self._channel_class = channel
- else
- raise NonInferrableChannelError.new(channel)
- end
- end
+def tests(channel)
+ case channel
+ when String, Symbol
+ self._channel_class = channel.to_s.camelize.constantize
+ when Module
+ self._channel_class = channel
+ else
+ raise NonInferrableChannelError.new(channel)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection.html b/src/classes/ActionCable/Connection.html
index f832214f0e..7889c75284 100644
--- a/src/classes/ActionCable/Connection.html
+++ b/src/classes/ActionCable/Connection.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Assertions.html b/src/classes/ActionCable/Connection/Assertions.html
index 933ea80e4c..6b10ec5528 100644
--- a/src/classes/ActionCable/Connection/Assertions.html
+++ b/src/classes/ActionCable/Connection/Assertions.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 28
- def assert_reject_connection(&block)
- assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
- end
+def assert_reject_connection(&block)
+ assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization.html b/src/classes/ActionCable/Connection/Authorization.html
index feb855aa9e..baf85a37b3 100644
--- a/src/classes/ActionCable/Connection/Authorization.html
+++ b/src/classes/ActionCable/Connection/Authorization.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -97,12 +97,12 @@
# File actioncable/lib/action_cable/connection/authorization.rb, line 12
- def reject_unauthorized_connection
- logger.error "An unauthorized connection attempt was rejected"
- raise UnauthorizedError
- end
+def reject_unauthorized_connection
+ logger.error "An unauthorized connection attempt was rejected"
+ raise UnauthorizedError
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
index b63b282b0b..ff36299a28 100644
--- a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
+++ b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/Base.html b/src/classes/ActionCable/Connection/Base.html
index 36a2f1e1bb..ea0d62911f 100644
--- a/src/classes/ActionCable/Connection/Base.html
+++ b/src/classes/ActionCable/Connection/Base.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -255,21 +255,21 @@
# File actioncable/lib/action_cable/connection/base.rb, line 67
- def initialize(server, env, coder: ActiveSupport::JSON)
- @server, @env, @coder = server, env, coder
+def initialize(server, env, coder: ActiveSupport::JSON)
+ @server, @env, @coder = server, env, coder
- @worker_pool = server.worker_pool
- @logger = new_tagged_logger
+ @worker_pool = server.worker_pool
+ @logger = new_tagged_logger
- @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
+ @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
- @_internal_subscriptions = nil
- @started_at = Time.now
- end
+ @_internal_subscriptions = nil
+ @started_at = Time.now
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -304,11 +304,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 147
- def beat
- transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
- end
+def beat
+ transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -339,16 +339,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 120
- def close(reason: nil, reconnect: true)
- transmit(
- type: ActionCable::INTERNAL[:message_types][:disconnect],
- reason: reason,
- reconnect: reconnect
- )
- websocket.close
- end
+def close(reason: nil, reconnect: true)
+ transmit(
+ type: ActionCable::INTERNAL[:message_types][:disconnect],
+ reason: reason,
+ reconnect: reconnect
+ )
+ websocket.close
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -379,13 +379,13 @@
# File actioncable/lib/action_cable/connection/base.rb, line 109
- def handle_channel_command(payload)
- run_callbacks :command do
- subscriptions.execute_command payload
- end
- end
+def handle_channel_command(payload)
+ run_callbacks :command do
+ subscriptions.execute_command payload
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -416,11 +416,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 131
- def send_async(method, *arguments)
- worker_pool.async_invoke(self, method, *arguments)
- end
+def send_async(method, *arguments)
+ worker_pool.async_invoke(self, method, *arguments)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -451,16 +451,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 138
- def statistics
- {
- identifier: connection_identifier,
- started_at: @started_at,
- subscriptions: subscriptions.identifiers,
- request_id: @env["action_dispatch.request_id"]
- }
- end
+def statistics
+ {
+ identifier: connection_identifier,
+ started_at: @started_at,
+ subscriptions: subscriptions.identifiers,
+ request_id: @env["action_dispatch.request_id"]
+ }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -494,11 +494,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 187
- def cookies # :doc:
- request.cookie_jar
- end
+def cookies # :doc:
+ request.cookie_jar
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -529,14 +529,14 @@
# File actioncable/lib/action_cable/connection/base.rb, line 178
- def request # :doc:
- @request ||= begin
- environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
- ActionDispatch::Request.new(environment || env)
- end
- end
+def request # :doc:
+ @request ||= begin
+ environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
+ ActionDispatch::Request.new(environment || env)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Callbacks.html b/src/classes/ActionCable/Connection/Callbacks.html
index 818958bf81..d6504ca284 100644
--- a/src/classes/ActionCable/Connection/Callbacks.html
+++ b/src/classes/ActionCable/Connection/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
index 933056a029..6376d7195b 100644
--- a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,11 +90,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 47
- def after_command(*methods, &block)
- set_callback(:command, :after, *methods, &block)
- end
+def after_command(*methods, &block)
+ set_callback(:command, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -125,11 +125,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 51
- def around_command(*methods, &block)
- set_callback(:command, :around, *methods, &block)
- end
+def around_command(*methods, &block)
+ set_callback(:command, :around, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -160,11 +160,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 43
- def before_command(*methods, &block)
- set_callback(:command, :before, *methods, &block)
- end
+def before_command(*methods, &block)
+ set_callback(:command, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification.html b/src/classes/ActionCable/Connection/Identification.html
index f3dcea9bfc..063ca88999 100644
--- a/src/classes/ActionCable/Connection/Identification.html
+++ b/src/classes/ActionCable/Connection/Identification.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,15 +95,15 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 29
- def connection_identifier
- unless defined? @connection_identifier
- @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
- end
+def connection_identifier
+ unless defined? @connection_identifier
+ @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
+ end
- @connection_identifier
- end
+ @connection_identifier
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification/ClassMethods.html b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
index 324ded31f5..a3395ef8a3 100644
--- a/src/classes/ActionCable/Connection/Identification/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -84,12 +84,12 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 21
- def identified_by(*identifiers)
- Array(identifiers).each { |identifier| attr_accessor identifier }
- self.identifiers += identifiers
- end
+def identified_by(*identifiers)
+ Array(identifiers).each { |identifier| attr_accessor identifier }
+ self.identifiers += identifiers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/InternalChannel.html b/src/classes/ActionCable/Connection/InternalChannel.html
index 9b0144f690..cfdccceaf4 100644
--- a/src/classes/ActionCable/Connection/InternalChannel.html
+++ b/src/classes/ActionCable/Connection/InternalChannel.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
index 7167904452..bf0c696d62 100644
--- a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
+++ b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 15
- def initialize(name)
- super "Unable to determine the connection to test from #{name}. " +
- "You'll need to specify it using `tests YourConnection` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the connection to test from #{name}. " +
+ "You'll need to specify it using `tests YourConnection` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/StreamEventLoop.html b/src/classes/ActionCable/Connection/StreamEventLoop.html
index 2b71a213e3..f7c49354ef 100644
--- a/src/classes/ActionCable/Connection/StreamEventLoop.html
+++ b/src/classes/ActionCable/Connection/StreamEventLoop.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -111,16 +111,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 10
- def initialize
- @nio = @executor = @thread = nil
- @map = {}
- @stopping = false
- @todo = Queue.new
-
- @spawn_mutex = Mutex.new
- end
+def initialize
+ @nio = @executor = @thread = nil
+ @map = {}
+ @stopping = false
+ @todo = Queue.new
+
+ @spawn_mutex = Mutex.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -155,15 +155,15 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 30
- def attach(io, stream)
- @todo << lambda do
- @map[io] = @nio.register(io, :r)
- @map[io].value = stream
- end
- wakeup
- end
+def attach(io, stream)
+ @todo << lambda do
+ @map[io] = @nio.register(io, :r)
+ @map[io].value = stream
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -194,16 +194,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 38
- def detach(io, stream)
- @todo << lambda do
- @nio.deregister io
- @map.delete io
- io.close
- end
- wakeup
- end
+def detach(io, stream)
+ @todo << lambda do
+ @nio.deregister io
+ @map.delete io
+ io.close
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -234,14 +234,14 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 23
- def post(task = nil, &block)
- task ||= block
+def post(task = nil, &block)
+ task ||= block
- spawn
- @executor << task
- end
+ spawn
+ @executor << task
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,12 +272,12 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 56
- def stop
- @stopping = true
- wakeup if @nio
- end
+def stop
+ @stopping = true
+ wakeup if @nio
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -308,11 +308,11 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 19
- def timer(interval, &block)
- Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
- end
+def timer(interval, &block)
+ Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -343,16 +343,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 47
- def writes_pending(io)
- @todo << lambda do
- if monitor = @map[io]
- monitor.interests = :rw
- end
- end
- wakeup
- end
+def writes_pending(io)
+ @todo << lambda do
+ if monitor = @map[io]
+ monitor.interests = :rw
+ end
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
index f4d5cacc63..99731855fb 100644
--- a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
+++ b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -121,12 +121,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 16
- def initialize(logger, tags:)
- @logger = logger
- @tags = tags.flatten
- end
+def initialize(logger, tags:)
+ @logger = logger
+ @tags = tags.flatten
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -161,12 +161,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 21
- def add_tags(*tags)
- @tags += tags.flatten
- @tags = @tags.uniq
- end
+def add_tags(*tags)
+ @tags += tags.flatten
+ @tags = @tags.uniq
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -197,16 +197,16 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 26
- def tag(logger, &block)
- if logger.respond_to?(:tagged)
- current_tags = tags - logger.formatter.current_tags
- logger.tagged(*current_tags, &block)
- else
- yield
- end
- end
+def tag(logger, &block)
+ if logger.respond_to?(:tagged)
+ current_tags = tags - logger.formatter.current_tags
+ logger.tagged(*current_tags, &block)
+ else
+ yield
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,11 +240,11 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 42
- def log(type, message, &block) # :doc:
- tag(@logger) { @logger.send type, message, &block }
- end
+def log(type, message, &block) # :doc:
+ tag(@logger) { @logger.send type, message, &block }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase.html b/src/classes/ActionCable/Connection/TestCase.html
index 948378e491..39bc5cb056 100644
--- a/src/classes/ActionCable/Connection/TestCase.html
+++ b/src/classes/ActionCable/Connection/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior.html b/src/classes/ActionCable/Connection/TestCase/Behavior.html
index b87870becd..4ee0debbea 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -163,19 +163,19 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 192
- def connect(path = ActionCable.server.config.mount_path, **request_params)
- path ||= DEFAULT_PATH
+def connect(path = ActionCable.server.config.mount_path, **request_params)
+ path ||= DEFAULT_PATH
- connection = self.class.connection_class.allocate
- connection.singleton_class.include(TestConnection)
- connection.send(:initialize, build_test_request(path, **request_params))
- connection.connect if connection.respond_to?(:connect)
+ connection = self.class.connection_class.allocate
+ connection.singleton_class.include(TestConnection)
+ connection.send(:initialize, build_test_request(path, **request_params))
+ connection.connect if connection.respond_to?(:connect)
- # Only set instance variable if connected successfully
- @connection = connection
- end
+ # Only set instance variable if connected successfully
+ @connection = connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -206,11 +206,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 212
- def cookies
- @cookie_jar ||= TestCookieJar.new
- end
+def cookies
+ @cookie_jar ||= TestCookieJar.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -241,14 +241,14 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 205
- def disconnect
- raise "Must be connected!" if connection.nil?
+def disconnect
+ raise "Must be connected!" if connection.nil?
- connection.disconnect if connection.respond_to?(:disconnect)
- @connection = nil
- end
+ connection.disconnect if connection.respond_to?(:disconnect)
+ @connection = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
index 63444f4b27..99fc0e3f6f 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 167
- def connection_class
- if connection = self._connection_class
- connection
- else
- tests determine_default_connection(name)
- end
- end
+def connection_class
+ if connection = self._connection_class
+ connection
+ else
+ tests determine_default_connection(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 175
- def determine_default_connection(name)
- connection = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Connection::Base
- end
- raise NonInferrableConnectionError.new(name) if connection.nil?
- connection
- end
+def determine_default_connection(name)
+ connection = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Connection::Base
+ end
+ raise NonInferrableConnectionError.new(name) if connection.nil?
+ connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actionpack/lib/abstract_controller/url_for.rb, line 28
- def action_methods
- @action_methods ||= if _routes
- super - _routes.named_routes.helper_names
- else
- super
- end
- end+ Ruby on Rails 8.1.0.rc1
@@ -267,11 +267,11 @@
# File actioncable/lib/action_cable/gem_version.rb, line 7
- def self.gem_version
- Gem::Version.new VERSION::STRING
- end
+def self.gem_version
+ Gem::Version.new VERSION::STRING
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -302,11 +302,11 @@
# File actioncable/lib/action_cable/version.rb, line 9
- def self.version
- gem_version
- end
+def self.version
+ gem_version
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -341,11 +341,11 @@
# File actioncable/lib/action_cable.rb, line 77
- def server
- @server ||= ActionCable::Server::Base.new
- end
+def server
+@server ||= ActionCable::Server::Base.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel.html b/src/classes/ActionCable/Channel.html
index 38c886ddbc..06b36ff362 100644
--- a/src/classes/ActionCable/Channel.html
+++ b/src/classes/ActionCable/Channel.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Channel/Base.html b/src/classes/ActionCable/Channel/Base.html
index bc63a53315..32e2ff9b70 100644
--- a/src/classes/ActionCable/Channel/Base.html
+++ b/src/classes/ActionCable/Channel/Base.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -82,7 +82,7 @@ Action process
end
-
In this example, the subscribed and unsubscribed methods are not callable methods, as they were already declared in ActionCable::Channel::Base, but #appear and #away are. #generate_connection_token is also not callable, since it’s a private method. You’ll see that appear accepts a data parameter, which it then uses as part of its model call. #away does not, since it’s simply a trigger action.
+In this example, the subscribed and unsubscribed methods are not callable methods, as they were already declared in ActionCable::Channel::Base, but appear and away are. generate_connection_token is also not callable, since it’s a private method. You’ll see that appear accepts a data parameter, which it then uses as part of its model call. away does not, since it’s simply a trigger action.
Also note that in this example, current_user is available because it was marked as an identifying attribute on the connection. All such identifiers will automatically create a delegation method of the same name on the channel instance.
@@ -307,19 +307,22 @@ Returns
# File actioncable/lib/action_cable/channel/base.rb, line 128
- def action_methods
- @action_methods ||= begin
- # All public instance methods of this class, including ancestors
- methods = (public_instance_methods(true) -
- # Except for public instance methods of Base and its ancestors
- ActionCable::Channel::Base.public_instance_methods(true) +
- # Be sure to include shadowed public instance methods of this class
- public_instance_methods(false)).uniq.map(&:to_s)
- methods.to_set
- end
- end
-
- 🔎 See on GitHub
+def action_methods
+ @action_methods ||= begin
+ # All public instance methods of this class, including ancestors
+ methods = (public_instance_methods(true) -
+ # Except for public instance methods of Base and its ancestors
+ ActionCable::Channel::Base.public_instance_methods(true) +
+ # Be sure to include shadowed public instance methods of this class
+ public_instance_methods(false)).uniq
+
+ methods.reject! { |m| m.start_with?("_") }
+ methods.map!(&:name)
+ methods.to_set
+ end
+end
+
+ 🔎 See on GitHub
@@ -349,26 +352,26 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 155
- def initialize(connection, identifier, params = {})
- @connection = connection
- @identifier = identifier
- @params = params
+ # File actioncable/lib/action_cable/channel/base.rb, line 158
+def initialize(connection, identifier, params = {})
+ @connection = connection
+ @identifier = identifier
+ @params = params
- # When a channel is streaming via pubsub, we want to delay the confirmation
- # transmission until pubsub subscription is confirmed.
- #
- # The counter starts at 1 because it's awaiting a call to #subscribe_to_channel
- @defer_subscription_confirmation_counter = Concurrent::AtomicFixnum.new(1)
+ # When a channel is streaming via pubsub, we want to delay the confirmation
+ # transmission until pubsub subscription is confirmed.
+ #
+ # The counter starts at 1 because it's awaiting a call to #subscribe_to_channel
+ @defer_subscription_confirmation_counter = Concurrent::AtomicFixnum.new(1)
- @reject_subscription = nil
- @subscription_confirmation_sent = nil
- @unsubscribed = false
+ @reject_subscription = nil
+ @subscription_confirmation_sent = nil
+ @unsubscribed = false
- delegate_connection_identifiers
- end
+ delegate_connection_identifiers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -401,12 +404,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 144
- def clear_action_methods! # :doc:
- @action_methods = nil
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 147
+def clear_action_methods! # :doc:
+ @action_methods = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -436,13 +439,13 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 149
- def method_added(name) # :doc:
- super
- clear_action_methods!
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 152
+def method_added(name) # :doc:
+ super
+ clear_action_methods!
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -476,21 +479,21 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 176
- def perform_action(data)
- action = extract_action(data)
+ # File actioncable/lib/action_cable/channel/base.rb, line 179
+def perform_action(data)
+ action = extract_action(data)
- if processable_action?(action)
- payload = { channel_class: self.class.name, action: action, data: data }
- ActiveSupport::Notifications.instrument("perform_action.action_cable", payload) do
- dispatch_action(action, data)
- end
- else
- logger.error "Unable to process #{action_signature(action, data)}"
- end
- end
+ if processable_action?(action)
+ payload = { channel_class: self.class.name, action: action, data: data }
+ ActiveSupport::Notifications.instrument("perform_action.action_cable", payload) do
+ dispatch_action(action, data)
+ end
+ else
+ logger.error "Unable to process #{action_signature(action, data)}"
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -520,17 +523,17 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 191
- def subscribe_to_channel
- run_callbacks :subscribe do
- subscribed
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 194
+def subscribe_to_channel
+ run_callbacks :subscribe do
+ subscribed
+ end
- reject_subscription if subscription_rejected?
- ensure_confirmation_sent
- end
+ reject_subscription if subscription_rejected?
+ ensure_confirmation_sent
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -563,12 +566,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 250
- def defer_subscription_confirmation! # :doc:
- @defer_subscription_confirmation_counter.increment
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 253
+def defer_subscription_confirmation! # :doc:
+ @defer_subscription_confirmation_counter.increment
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -598,12 +601,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 254
- def defer_subscription_confirmation? # :doc:
- @defer_subscription_confirmation_counter.value > 0
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 257
+def defer_subscription_confirmation? # :doc:
+ @defer_subscription_confirmation_counter.value > 0
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -633,14 +636,14 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 244
- def ensure_confirmation_sent # :doc:
- return if subscription_rejected?
- @defer_subscription_confirmation_counter.decrement
- transmit_subscription_confirmation unless defer_subscription_confirmation?
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 247
+def ensure_confirmation_sent # :doc:
+ return if subscription_rejected?
+ @defer_subscription_confirmation_counter.decrement
+ transmit_subscription_confirmation unless defer_subscription_confirmation?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -670,12 +673,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 262
- def reject # :doc:
- @reject_subscription = true
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 265
+def reject # :doc:
+ @reject_subscription = true
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -705,12 +708,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 218
- def subscribed # :doc:
- # Override in subclasses
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 221
+def subscribed # :doc:
+ # Override in subclasses
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -740,12 +743,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 258
- def subscription_confirmation_sent? # :doc:
- @subscription_confirmation_sent
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 261
+def subscription_confirmation_sent? # :doc:
+ @subscription_confirmation_sent
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -775,12 +778,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 266
- def subscription_rejected? # :doc:
- @reject_subscription
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 269
+def subscription_rejected? # :doc:
+ @reject_subscription
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -810,21 +813,21 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 231
- def transmit(data, via: nil) # :doc:
- logger.debug do
- status = "#{self.class.name} transmitting #{data.inspect.truncate(300)}"
- status += " (via #{via})" if via
- status
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 234
+def transmit(data, via: nil) # :doc:
+ logger.debug do
+ status = "#{self.class.name} transmitting #{data.inspect.truncate(300)}"
+ status += " (via #{via})" if via
+ status
+ end
- payload = { channel_class: self.class.name, data: data, via: via }
- ActiveSupport::Notifications.instrument("transmit.action_cable", payload) do
- connection.transmit identifier: @identifier, message: data
- end
- end
+ payload = { channel_class: self.class.name, data: data, via: via }
+ ActiveSupport::Notifications.instrument("transmit.action_cable", payload) do
+ connection.transmit identifier: @identifier, message: data
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -854,12 +857,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 224
- def unsubscribed # :doc:
- # Override in subclasses
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 227
+def unsubscribed # :doc:
+ # Override in subclasses
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Broadcasting.html b/src/classes/ActionCable/Channel/Broadcasting.html
index bb71b89445..7fecc3f6b8 100644
--- a/src/classes/ActionCable/Channel/Broadcasting.html
+++ b/src/classes/ActionCable/Channel/Broadcasting.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -99,11 +99,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 45
- def broadcast_to(model, message)
- self.class.broadcast_to(model, message)
- end
+def broadcast_to(model, message)
+ self.class.broadcast_to(model, message)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -134,11 +134,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 41
- def broadcasting_for(model)
- self.class.broadcasting_for(model)
- end
+def broadcasting_for(model)
+ self.class.broadcasting_for(model)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html b/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
index 684bccb1ab..432bb5d74f 100644
--- a/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 14
- def broadcast_to(broadcastables, message)
- ActionCable.server.broadcast(broadcasting_for(broadcastables), message)
- end
+def broadcast_to(broadcastables, message)
+ ActionCable.server.broadcast(broadcasting_for(broadcastables), message)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -126,11 +126,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 24
- def broadcasting_for(broadcastables)
- serialize_broadcasting([ channel_name ] + Array(broadcastables))
- end
+def broadcasting_for(broadcastables)
+ serialize_broadcasting([ channel_name ] + Array(broadcastables))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Callbacks.html b/src/classes/ActionCable/Channel/Callbacks.html
index 076bdbc8fa..64985186c3 100644
--- a/src/classes/ActionCable/Channel/Callbacks.html
+++ b/src/classes/ActionCable/Channel/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html b/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
index 6ee4317311..7949b5fdf6 100644
--- a/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -111,11 +111,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 60
- def after_subscribe(*methods, &block)
- set_callback(:subscribe, :after, *methods, &block)
- end
+def after_subscribe(*methods, &block)
+ set_callback(:subscribe, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -150,11 +150,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 69
- def after_unsubscribe(*methods, &block)
- set_callback(:unsubscribe, :after, *methods, &block)
- end
+def after_unsubscribe(*methods, &block)
+ set_callback(:unsubscribe, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -185,11 +185,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 48
- def before_subscribe(*methods, &block)
- set_callback(:subscribe, :before, *methods, &block)
- end
+def before_subscribe(*methods, &block)
+ set_callback(:subscribe, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -220,11 +220,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 65
- def before_unsubscribe(*methods, &block)
- set_callback(:unsubscribe, :before, *methods, &block)
- end
+def before_unsubscribe(*methods, &block)
+ set_callback(:unsubscribe, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/ChannelStub.html b/src/classes/ActionCable/Channel/ChannelStub.html
index 9db98daac2..d004896dc5 100644
--- a/src/classes/ActionCable/Channel/ChannelStub.html
+++ b/src/classes/ActionCable/Channel/ChannelStub.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -25,7 +25,7 @@
Action Cable Channel Stub
-
Stub stream_from to track streams for the channel. Add public aliases for subscription_confirmation_sent? and subscription_rejected?.
+Stub stream_from to track streams for the channel. Add public aliases for subscription_confirmation_sent? and subscription_rejected?.
@@ -114,11 +114,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 25
- def confirmed?
- subscription_confirmation_sent?
- end
+def confirmed?
+ subscription_confirmation_sent?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -149,11 +149,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 29
- def rejected?
- subscription_rejected?
- end
+def rejected?
+ subscription_rejected?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -188,9 +188,9 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 46
- def start_periodic_timers; end
+def start_periodic_timers; end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -221,11 +221,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 37
- def stop_all_streams
- @_streams = []
- end
+def stop_all_streams
+ @_streams = []
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -281,11 +281,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 33
- def stream_from(broadcasting, *)
- streams << broadcasting
- end
+def stream_from(broadcasting, *)
+ streams << broadcasting
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -316,11 +316,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 41
- def streams
- @_streams ||= []
- end
+def streams
+ @_streams ||= []
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/ConnectionStub.html b/src/classes/ActionCable/Channel/ConnectionStub.html
index 62c52b567f..0fdc0d8690 100644
--- a/src/classes/ActionCable/Channel/ConnectionStub.html
+++ b/src/classes/ActionCable/Channel/ConnectionStub.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -141,20 +141,20 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 55
- def initialize(identifiers = {})
- @server = ActionCable.server
- @transmissions = []
-
- identifiers.each do |identifier, val|
- define_singleton_method(identifier) { val }
- end
-
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @identifiers = identifiers.keys
- @logger = ActiveSupport::TaggedLogging.new ActiveSupport::Logger.new(StringIO.new)
- end
+def initialize(identifiers = {})
+ @server = ActionCable.server
+ @transmissions = []
+
+ identifiers.each do |identifier, val|
+ define_singleton_method(identifier) { val }
+ end
+
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @identifiers = identifiers.keys
+ @logger = ActiveSupport::TaggedLogging.new ActiveSupport::Logger.new(StringIO.new)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -189,11 +189,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 72
- def connection_identifier
- @connection_identifier ||= connection_gid(identifiers.filter_map { |id| send(id.to_sym) if id })
- end
+def connection_identifier
+ @connection_identifier ||= connection_gid(identifiers.filter_map { |id| send(id.to_sym) if id })
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -224,11 +224,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 68
- def transmit(cable_message)
- transmissions << cable_message.with_indifferent_access
- end
+def transmit(cable_message)
+ transmissions << cable_message.with_indifferent_access
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Naming.html b/src/classes/ActionCable/Channel/Naming.html
index 84bfc0232c..db2aa18589 100644
--- a/src/classes/ActionCable/Channel/Naming.html
+++ b/src/classes/ActionCable/Channel/Naming.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,11 +95,11 @@
# File actioncable/lib/action_cable/channel/naming.rb, line 23
- def channel_name
- self.class.channel_name
- end
+def channel_name
+ self.class.channel_name
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Naming/ClassMethods.html b/src/classes/ActionCable/Channel/Naming/ClassMethods.html
index b847309f12..e99c0744a7 100644
--- a/src/classes/ActionCable/Channel/Naming/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Naming/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -66,7 +66,7 @@
- Returns the name of the channel, underscored, without the Channel ending. If the channel is in a namespace, then the namespaces are represented by single colon separators in the channel name.
+ Returns the name of the channel, underscored, without the Channel ending. If the channel is in a namespace, then the namespaces are represented by single colon separators in the channel name.
ChatChannel.channel_name # => 'chat'
Chats::AppearancesChannel.channel_name # => 'chats:appearances'
@@ -87,11 +87,11 @@
# File actioncable/lib/action_cable/channel/naming.rb, line 18
- def channel_name
- @channel_name ||= name.delete_suffix("Channel").gsub("::", ":").underscore
- end
+def channel_name
+ @channel_name ||= name.delete_suffix("Channel").gsub("::", ":").underscore
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/NonInferrableChannelError.html b/src/classes/ActionCable/Channel/NonInferrableChannelError.html
index 034c36b135..1eac81cbd2 100644
--- a/src/classes/ActionCable/Channel/NonInferrableChannelError.html
+++ b/src/classes/ActionCable/Channel/NonInferrableChannelError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 13
- def initialize(name)
- super "Unable to determine the channel to test from #{name}. " +
- "You'll need to specify it using `tests YourChannel` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the channel to test from #{name}. " +
+ "You'll need to specify it using `tests YourChannel` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/PeriodicTimers.html b/src/classes/ActionCable/Channel/PeriodicTimers.html
index 88facef675..561da6e0dd 100644
--- a/src/classes/ActionCable/Channel/PeriodicTimers.html
+++ b/src/classes/ActionCable/Channel/PeriodicTimers.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html b/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
index 233865e2e3..a694f6de16 100644
--- a/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -91,30 +91,30 @@
# File actioncable/lib/action_cable/channel/periodic_timers.rb, line 31
- def periodically(callback_or_method_name = nil, every:, &block)
- callback =
- if block_given?
- raise ArgumentError, "Pass a block or provide a callback arg, not both" if callback_or_method_name
- block
- else
- case callback_or_method_name
- when Proc
- callback_or_method_name
- when Symbol
- -> { __send__ callback_or_method_name }
- else
- raise ArgumentError, "Expected a Symbol method name or a Proc, got #{callback_or_method_name.inspect}"
- end
- end
-
- unless every.kind_of?(Numeric) && every > 0
- raise ArgumentError, "Expected every: to be a positive number of seconds, got #{every.inspect}"
- end
-
- self.periodic_timers += [[ callback, every: every ]]
- end
+def periodically(callback_or_method_name = nil, every:, &block)
+ callback =
+ if block_given?
+ raise ArgumentError, "Pass a block or provide a callback arg, not both" if callback_or_method_name
+ block
+ else
+ case callback_or_method_name
+ when Proc
+ callback_or_method_name
+ when Symbol
+ -> { __send__ callback_or_method_name }
+ else
+ raise ArgumentError, "Expected a Symbol method name or a Proc, got #{callback_or_method_name.inspect}"
+ end
+ end
+
+ unless every.kind_of?(Numeric) && every > 0
+ raise ArgumentError, "Expected every: to be a positive number of seconds, got #{every.inspect}"
+ end
+
+ self.periodic_timers += [[ callback, every: every ]]
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Streams.html b/src/classes/ActionCable/Channel/Streams.html
index 0967feb616..a2e686a3e9 100644
--- a/src/classes/ActionCable/Channel/Streams.html
+++ b/src/classes/ActionCable/Channel/Streams.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -167,14 +167,14 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 137
- def stop_all_streams
- streams.each do |broadcasting, callback|
- pubsub.unsubscribe broadcasting, callback
- logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
- end.clear
- end
+def stop_all_streams
+ streams.each do |broadcasting, callback|
+ pubsub.unsubscribe broadcasting, callback
+ logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
+ end.clear
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -205,11 +205,11 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 132
- def stop_stream_for(model)
- stop_stream_from(broadcasting_for(model))
- end
+def stop_stream_for(model)
+ stop_stream_from(broadcasting_for(model))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,15 +240,15 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 123
- def stop_stream_from(broadcasting)
- callback = streams.delete(broadcasting)
- if callback
- pubsub.unsubscribe(broadcasting, callback)
- logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
- end
- end
+def stop_stream_from(broadcasting)
+ callback = streams.delete(broadcasting)
+ if callback
+ pubsub.unsubscribe(broadcasting, callback)
+ logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -281,11 +281,11 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 118
- def stream_for(broadcastables, callback = nil, coder: nil, &block)
- stream_from(broadcasting_for(broadcastables), callback || block, coder: coder)
- end
+def stream_for(broadcastables, callback = nil, coder: nil, &block)
+ stream_from(broadcasting_for(broadcastables), callback || block, coder: coder)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -316,28 +316,28 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 90
- def stream_from(broadcasting, callback = nil, coder: nil, &block)
- return if unsubscribed?
-
- broadcasting = String(broadcasting)
-
- # Don't send the confirmation until pubsub#subscribe is successful
- defer_subscription_confirmation!
-
- # Build a stream handler by wrapping the user-provided callback with a decoder
- # or defaulting to a JSON-decoding retransmitter.
- handler = worker_pool_stream_handler(broadcasting, callback || block, coder: coder)
- streams[broadcasting] = handler
-
- connection.server.event_loop.post do
- pubsub.subscribe(broadcasting, handler, lambda do
- ensure_confirmation_sent
- logger.info "#{self.class.name} is streaming from #{broadcasting}"
- end)
- end
- end
+def stream_from(broadcasting, callback = nil, coder: nil, &block)
+ return if unsubscribed?
+
+ broadcasting = String(broadcasting)
+
+ # Don't send the confirmation until pubsub#subscribe is successful
+ defer_subscription_confirmation!
+
+ # Build a stream handler by wrapping the user-provided callback with a decoder
+ # or defaulting to a JSON-decoding retransmitter.
+ handler = worker_pool_stream_handler(broadcasting, callback || block, coder: coder)
+ streams[broadcasting] = handler
+
+ connection.server.event_loop.post do
+ pubsub.subscribe(broadcasting, handler, lambda do
+ ensure_confirmation_sent
+ logger.info "#{self.class.name} is streaming from #{broadcasting}"
+ end)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -368,15 +368,15 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 146
- def stream_or_reject_for(model)
- if model
- stream_for model
- else
- reject
- end
- end
+def stream_or_reject_for(model)
+ if model
+ stream_for model
+ else
+ reject
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase.html b/src/classes/ActionCable/Channel/TestCase.html
index 08fb28c0cf..6317ff44d0 100644
--- a/src/classes/ActionCable/Channel/TestCase.html
+++ b/src/classes/ActionCable/Channel/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior.html b/src/classes/ActionCable/Channel/TestCase/Behavior.html
index b5f3a5cbb7..5a8ea0fd78 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -196,11 +196,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 282
- def assert_broadcast_on(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcast_on(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -231,11 +231,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 278
- def assert_broadcasts(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcasts(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,11 +272,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 326
- def assert_has_no_stream(stream)
- assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
- end
+def assert_has_no_stream(stream)
+ assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -313,11 +313,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 337
- def assert_has_no_stream_for(object)
- assert_has_no_stream(broadcasting_for(object))
- end
+def assert_has_no_stream_for(object)
+ assert_has_no_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -354,11 +354,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 304
- def assert_has_stream(stream)
- assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
- end
+def assert_has_stream(stream)
+ assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -395,11 +395,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 315
- def assert_has_stream_for(object)
- assert_has_stream(broadcasting_for(object))
- end
+def assert_has_stream_for(object)
+ assert_has_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -436,11 +436,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 293
- def assert_no_streams
- assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
- end
+def assert_no_streams
+ assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -473,12 +473,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 266
- def perform(action, data = {})
- check_subscribed!
- subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
- end
+def perform(action, data = {})
+ check_subscribed!
+ subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -516,11 +516,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 243
- def stub_connection(identifiers = {})
- @connection = ConnectionStub.new(identifiers)
- end
+def stub_connection(identifiers = {})
+ @connection = ConnectionStub.new(identifiers)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -551,15 +551,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 249
- def subscribe(params = {})
- @connection ||= stub_connection
- @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
- @subscription.singleton_class.include(ChannelStub)
- @subscription.subscribe_to_channel
- @subscription
- end
+def subscribe(params = {})
+ @connection ||= stub_connection
+ @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
+ @subscription.singleton_class.include(ChannelStub)
+ @subscription.subscribe_to_channel
+ @subscription
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -590,12 +590,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 272
- def transmissions
- # Return only directly sent message (via #transmit)
- connection.transmissions.filter_map { |data| data["message"] }
- end
+def transmissions
+ # Return only directly sent message (via #transmit)
+ connection.transmissions.filter_map { |data| data["message"] }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -626,12 +626,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 258
- def unsubscribe
- check_subscribed!
- subscription.unsubscribe_from_channel
- end
+def unsubscribe
+ check_subscribed!
+ subscription.unsubscribe_from_channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
index 48ea87f130..57efb4cdac 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 219
- def channel_class
- if channel = self._channel_class
- channel
- else
- tests determine_default_channel(name)
- end
- end
+def channel_class
+ if channel = self._channel_class
+ channel
+ else
+ tests determine_default_channel(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 227
- def determine_default_channel(name)
- channel = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Channel::Base
- end
- raise NonInferrableChannelError.new(name) if channel.nil?
- channel
- end
+def determine_default_channel(name)
+ channel = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Channel::Base
+ end
+ raise NonInferrableChannelError.new(name) if channel.nil?
+ channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 208
- def tests(channel)
- case channel
- when String, Symbol
- self._channel_class = channel.to_s.camelize.constantize
- when Module
- self._channel_class = channel
- else
- raise NonInferrableChannelError.new(channel)
- end
- end
+def tests(channel)
+ case channel
+ when String, Symbol
+ self._channel_class = channel.to_s.camelize.constantize
+ when Module
+ self._channel_class = channel
+ else
+ raise NonInferrableChannelError.new(channel)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection.html b/src/classes/ActionCable/Connection.html
index f832214f0e..7889c75284 100644
--- a/src/classes/ActionCable/Connection.html
+++ b/src/classes/ActionCable/Connection.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Assertions.html b/src/classes/ActionCable/Connection/Assertions.html
index 933ea80e4c..6b10ec5528 100644
--- a/src/classes/ActionCable/Connection/Assertions.html
+++ b/src/classes/ActionCable/Connection/Assertions.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 28
- def assert_reject_connection(&block)
- assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
- end
+def assert_reject_connection(&block)
+ assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization.html b/src/classes/ActionCable/Connection/Authorization.html
index feb855aa9e..baf85a37b3 100644
--- a/src/classes/ActionCable/Connection/Authorization.html
+++ b/src/classes/ActionCable/Connection/Authorization.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -97,12 +97,12 @@
# File actioncable/lib/action_cable/connection/authorization.rb, line 12
- def reject_unauthorized_connection
- logger.error "An unauthorized connection attempt was rejected"
- raise UnauthorizedError
- end
+def reject_unauthorized_connection
+ logger.error "An unauthorized connection attempt was rejected"
+ raise UnauthorizedError
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
index b63b282b0b..ff36299a28 100644
--- a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
+++ b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/Base.html b/src/classes/ActionCable/Connection/Base.html
index 36a2f1e1bb..ea0d62911f 100644
--- a/src/classes/ActionCable/Connection/Base.html
+++ b/src/classes/ActionCable/Connection/Base.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -255,21 +255,21 @@
# File actioncable/lib/action_cable/connection/base.rb, line 67
- def initialize(server, env, coder: ActiveSupport::JSON)
- @server, @env, @coder = server, env, coder
+def initialize(server, env, coder: ActiveSupport::JSON)
+ @server, @env, @coder = server, env, coder
- @worker_pool = server.worker_pool
- @logger = new_tagged_logger
+ @worker_pool = server.worker_pool
+ @logger = new_tagged_logger
- @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
+ @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
- @_internal_subscriptions = nil
- @started_at = Time.now
- end
+ @_internal_subscriptions = nil
+ @started_at = Time.now
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -304,11 +304,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 147
- def beat
- transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
- end
+def beat
+ transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -339,16 +339,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 120
- def close(reason: nil, reconnect: true)
- transmit(
- type: ActionCable::INTERNAL[:message_types][:disconnect],
- reason: reason,
- reconnect: reconnect
- )
- websocket.close
- end
+def close(reason: nil, reconnect: true)
+ transmit(
+ type: ActionCable::INTERNAL[:message_types][:disconnect],
+ reason: reason,
+ reconnect: reconnect
+ )
+ websocket.close
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -379,13 +379,13 @@
# File actioncable/lib/action_cable/connection/base.rb, line 109
- def handle_channel_command(payload)
- run_callbacks :command do
- subscriptions.execute_command payload
- end
- end
+def handle_channel_command(payload)
+ run_callbacks :command do
+ subscriptions.execute_command payload
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -416,11 +416,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 131
- def send_async(method, *arguments)
- worker_pool.async_invoke(self, method, *arguments)
- end
+def send_async(method, *arguments)
+ worker_pool.async_invoke(self, method, *arguments)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -451,16 +451,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 138
- def statistics
- {
- identifier: connection_identifier,
- started_at: @started_at,
- subscriptions: subscriptions.identifiers,
- request_id: @env["action_dispatch.request_id"]
- }
- end
+def statistics
+ {
+ identifier: connection_identifier,
+ started_at: @started_at,
+ subscriptions: subscriptions.identifiers,
+ request_id: @env["action_dispatch.request_id"]
+ }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -494,11 +494,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 187
- def cookies # :doc:
- request.cookie_jar
- end
+def cookies # :doc:
+ request.cookie_jar
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -529,14 +529,14 @@
# File actioncable/lib/action_cable/connection/base.rb, line 178
- def request # :doc:
- @request ||= begin
- environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
- ActionDispatch::Request.new(environment || env)
- end
- end
+def request # :doc:
+ @request ||= begin
+ environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
+ ActionDispatch::Request.new(environment || env)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Callbacks.html b/src/classes/ActionCable/Connection/Callbacks.html
index 818958bf81..d6504ca284 100644
--- a/src/classes/ActionCable/Connection/Callbacks.html
+++ b/src/classes/ActionCable/Connection/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
index 933056a029..6376d7195b 100644
--- a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,11 +90,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 47
- def after_command(*methods, &block)
- set_callback(:command, :after, *methods, &block)
- end
+def after_command(*methods, &block)
+ set_callback(:command, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -125,11 +125,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 51
- def around_command(*methods, &block)
- set_callback(:command, :around, *methods, &block)
- end
+def around_command(*methods, &block)
+ set_callback(:command, :around, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -160,11 +160,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 43
- def before_command(*methods, &block)
- set_callback(:command, :before, *methods, &block)
- end
+def before_command(*methods, &block)
+ set_callback(:command, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification.html b/src/classes/ActionCable/Connection/Identification.html
index f3dcea9bfc..063ca88999 100644
--- a/src/classes/ActionCable/Connection/Identification.html
+++ b/src/classes/ActionCable/Connection/Identification.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,15 +95,15 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 29
- def connection_identifier
- unless defined? @connection_identifier
- @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
- end
+def connection_identifier
+ unless defined? @connection_identifier
+ @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
+ end
- @connection_identifier
- end
+ @connection_identifier
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification/ClassMethods.html b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
index 324ded31f5..a3395ef8a3 100644
--- a/src/classes/ActionCable/Connection/Identification/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -84,12 +84,12 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 21
- def identified_by(*identifiers)
- Array(identifiers).each { |identifier| attr_accessor identifier }
- self.identifiers += identifiers
- end
+def identified_by(*identifiers)
+ Array(identifiers).each { |identifier| attr_accessor identifier }
+ self.identifiers += identifiers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/InternalChannel.html b/src/classes/ActionCable/Connection/InternalChannel.html
index 9b0144f690..cfdccceaf4 100644
--- a/src/classes/ActionCable/Connection/InternalChannel.html
+++ b/src/classes/ActionCable/Connection/InternalChannel.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
index 7167904452..bf0c696d62 100644
--- a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
+++ b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 15
- def initialize(name)
- super "Unable to determine the connection to test from #{name}. " +
- "You'll need to specify it using `tests YourConnection` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the connection to test from #{name}. " +
+ "You'll need to specify it using `tests YourConnection` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/StreamEventLoop.html b/src/classes/ActionCable/Connection/StreamEventLoop.html
index 2b71a213e3..f7c49354ef 100644
--- a/src/classes/ActionCable/Connection/StreamEventLoop.html
+++ b/src/classes/ActionCable/Connection/StreamEventLoop.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -111,16 +111,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 10
- def initialize
- @nio = @executor = @thread = nil
- @map = {}
- @stopping = false
- @todo = Queue.new
-
- @spawn_mutex = Mutex.new
- end
+def initialize
+ @nio = @executor = @thread = nil
+ @map = {}
+ @stopping = false
+ @todo = Queue.new
+
+ @spawn_mutex = Mutex.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -155,15 +155,15 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 30
- def attach(io, stream)
- @todo << lambda do
- @map[io] = @nio.register(io, :r)
- @map[io].value = stream
- end
- wakeup
- end
+def attach(io, stream)
+ @todo << lambda do
+ @map[io] = @nio.register(io, :r)
+ @map[io].value = stream
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -194,16 +194,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 38
- def detach(io, stream)
- @todo << lambda do
- @nio.deregister io
- @map.delete io
- io.close
- end
- wakeup
- end
+def detach(io, stream)
+ @todo << lambda do
+ @nio.deregister io
+ @map.delete io
+ io.close
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -234,14 +234,14 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 23
- def post(task = nil, &block)
- task ||= block
+def post(task = nil, &block)
+ task ||= block
- spawn
- @executor << task
- end
+ spawn
+ @executor << task
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,12 +272,12 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 56
- def stop
- @stopping = true
- wakeup if @nio
- end
+def stop
+ @stopping = true
+ wakeup if @nio
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -308,11 +308,11 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 19
- def timer(interval, &block)
- Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
- end
+def timer(interval, &block)
+ Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -343,16 +343,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 47
- def writes_pending(io)
- @todo << lambda do
- if monitor = @map[io]
- monitor.interests = :rw
- end
- end
- wakeup
- end
+def writes_pending(io)
+ @todo << lambda do
+ if monitor = @map[io]
+ monitor.interests = :rw
+ end
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
index f4d5cacc63..99731855fb 100644
--- a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
+++ b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -121,12 +121,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 16
- def initialize(logger, tags:)
- @logger = logger
- @tags = tags.flatten
- end
+def initialize(logger, tags:)
+ @logger = logger
+ @tags = tags.flatten
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -161,12 +161,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 21
- def add_tags(*tags)
- @tags += tags.flatten
- @tags = @tags.uniq
- end
+def add_tags(*tags)
+ @tags += tags.flatten
+ @tags = @tags.uniq
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -197,16 +197,16 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 26
- def tag(logger, &block)
- if logger.respond_to?(:tagged)
- current_tags = tags - logger.formatter.current_tags
- logger.tagged(*current_tags, &block)
- else
- yield
- end
- end
+def tag(logger, &block)
+ if logger.respond_to?(:tagged)
+ current_tags = tags - logger.formatter.current_tags
+ logger.tagged(*current_tags, &block)
+ else
+ yield
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,11 +240,11 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 42
- def log(type, message, &block) # :doc:
- tag(@logger) { @logger.send type, message, &block }
- end
+def log(type, message, &block) # :doc:
+ tag(@logger) { @logger.send type, message, &block }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase.html b/src/classes/ActionCable/Connection/TestCase.html
index 948378e491..39bc5cb056 100644
--- a/src/classes/ActionCable/Connection/TestCase.html
+++ b/src/classes/ActionCable/Connection/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior.html b/src/classes/ActionCable/Connection/TestCase/Behavior.html
index b87870becd..4ee0debbea 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -163,19 +163,19 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 192
- def connect(path = ActionCable.server.config.mount_path, **request_params)
- path ||= DEFAULT_PATH
+def connect(path = ActionCable.server.config.mount_path, **request_params)
+ path ||= DEFAULT_PATH
- connection = self.class.connection_class.allocate
- connection.singleton_class.include(TestConnection)
- connection.send(:initialize, build_test_request(path, **request_params))
- connection.connect if connection.respond_to?(:connect)
+ connection = self.class.connection_class.allocate
+ connection.singleton_class.include(TestConnection)
+ connection.send(:initialize, build_test_request(path, **request_params))
+ connection.connect if connection.respond_to?(:connect)
- # Only set instance variable if connected successfully
- @connection = connection
- end
+ # Only set instance variable if connected successfully
+ @connection = connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -206,11 +206,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 212
- def cookies
- @cookie_jar ||= TestCookieJar.new
- end
+def cookies
+ @cookie_jar ||= TestCookieJar.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -241,14 +241,14 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 205
- def disconnect
- raise "Must be connected!" if connection.nil?
+def disconnect
+ raise "Must be connected!" if connection.nil?
- connection.disconnect if connection.respond_to?(:disconnect)
- @connection = nil
- end
+ connection.disconnect if connection.respond_to?(:disconnect)
+ @connection = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
index 63444f4b27..99fc0e3f6f 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 167
- def connection_class
- if connection = self._connection_class
- connection
- else
- tests determine_default_connection(name)
- end
- end
+def connection_class
+ if connection = self._connection_class
+ connection
+ else
+ tests determine_default_connection(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 175
- def determine_default_connection(name)
- connection = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Connection::Base
- end
- raise NonInferrableConnectionError.new(name) if connection.nil?
- connection
- end
+def determine_default_connection(name)
+ connection = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Connection::Base
+ end
+ raise NonInferrableConnectionError.new(name) if connection.nil?
+ connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/gem_version.rb, line 7
- def self.gem_version
- Gem::Version.new VERSION::STRING
- end
+def self.gem_version
+ Gem::Version.new VERSION::STRING
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -302,11 +302,11 @@
# File actioncable/lib/action_cable/version.rb, line 9
- def self.version
- gem_version
- end
+def self.version
+ gem_version
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -341,11 +341,11 @@
# File actioncable/lib/action_cable.rb, line 77
- def server
- @server ||= ActionCable::Server::Base.new
- end
+def server
+@server ||= ActionCable::Server::Base.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel.html b/src/classes/ActionCable/Channel.html
index 38c886ddbc..06b36ff362 100644
--- a/src/classes/ActionCable/Channel.html
+++ b/src/classes/ActionCable/Channel.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Channel/Base.html b/src/classes/ActionCable/Channel/Base.html
index bc63a53315..32e2ff9b70 100644
--- a/src/classes/ActionCable/Channel/Base.html
+++ b/src/classes/ActionCable/Channel/Base.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -82,7 +82,7 @@ Action process
end
-
In this example, the subscribed and unsubscribed methods are not callable methods, as they were already declared in ActionCable::Channel::Base, but #appear and #away are. #generate_connection_token is also not callable, since it’s a private method. You’ll see that appear accepts a data parameter, which it then uses as part of its model call. #away does not, since it’s simply a trigger action.
+In this example, the subscribed and unsubscribed methods are not callable methods, as they were already declared in ActionCable::Channel::Base, but appear and away are. generate_connection_token is also not callable, since it’s a private method. You’ll see that appear accepts a data parameter, which it then uses as part of its model call. away does not, since it’s simply a trigger action.
Also note that in this example, current_user is available because it was marked as an identifying attribute on the connection. All such identifiers will automatically create a delegation method of the same name on the channel instance.
@@ -307,19 +307,22 @@ Returns
# File actioncable/lib/action_cable/channel/base.rb, line 128
- def action_methods
- @action_methods ||= begin
- # All public instance methods of this class, including ancestors
- methods = (public_instance_methods(true) -
- # Except for public instance methods of Base and its ancestors
- ActionCable::Channel::Base.public_instance_methods(true) +
- # Be sure to include shadowed public instance methods of this class
- public_instance_methods(false)).uniq.map(&:to_s)
- methods.to_set
- end
- end
-
- 🔎 See on GitHub
+def action_methods
+ @action_methods ||= begin
+ # All public instance methods of this class, including ancestors
+ methods = (public_instance_methods(true) -
+ # Except for public instance methods of Base and its ancestors
+ ActionCable::Channel::Base.public_instance_methods(true) +
+ # Be sure to include shadowed public instance methods of this class
+ public_instance_methods(false)).uniq
+
+ methods.reject! { |m| m.start_with?("_") }
+ methods.map!(&:name)
+ methods.to_set
+ end
+end
+
+ 🔎 See on GitHub
@@ -349,26 +352,26 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 155
- def initialize(connection, identifier, params = {})
- @connection = connection
- @identifier = identifier
- @params = params
+ # File actioncable/lib/action_cable/channel/base.rb, line 158
+def initialize(connection, identifier, params = {})
+ @connection = connection
+ @identifier = identifier
+ @params = params
- # When a channel is streaming via pubsub, we want to delay the confirmation
- # transmission until pubsub subscription is confirmed.
- #
- # The counter starts at 1 because it's awaiting a call to #subscribe_to_channel
- @defer_subscription_confirmation_counter = Concurrent::AtomicFixnum.new(1)
+ # When a channel is streaming via pubsub, we want to delay the confirmation
+ # transmission until pubsub subscription is confirmed.
+ #
+ # The counter starts at 1 because it's awaiting a call to #subscribe_to_channel
+ @defer_subscription_confirmation_counter = Concurrent::AtomicFixnum.new(1)
- @reject_subscription = nil
- @subscription_confirmation_sent = nil
- @unsubscribed = false
+ @reject_subscription = nil
+ @subscription_confirmation_sent = nil
+ @unsubscribed = false
- delegate_connection_identifiers
- end
+ delegate_connection_identifiers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -401,12 +404,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 144
- def clear_action_methods! # :doc:
- @action_methods = nil
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 147
+def clear_action_methods! # :doc:
+ @action_methods = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -436,13 +439,13 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 149
- def method_added(name) # :doc:
- super
- clear_action_methods!
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 152
+def method_added(name) # :doc:
+ super
+ clear_action_methods!
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -476,21 +479,21 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 176
- def perform_action(data)
- action = extract_action(data)
+ # File actioncable/lib/action_cable/channel/base.rb, line 179
+def perform_action(data)
+ action = extract_action(data)
- if processable_action?(action)
- payload = { channel_class: self.class.name, action: action, data: data }
- ActiveSupport::Notifications.instrument("perform_action.action_cable", payload) do
- dispatch_action(action, data)
- end
- else
- logger.error "Unable to process #{action_signature(action, data)}"
- end
- end
+ if processable_action?(action)
+ payload = { channel_class: self.class.name, action: action, data: data }
+ ActiveSupport::Notifications.instrument("perform_action.action_cable", payload) do
+ dispatch_action(action, data)
+ end
+ else
+ logger.error "Unable to process #{action_signature(action, data)}"
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -520,17 +523,17 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 191
- def subscribe_to_channel
- run_callbacks :subscribe do
- subscribed
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 194
+def subscribe_to_channel
+ run_callbacks :subscribe do
+ subscribed
+ end
- reject_subscription if subscription_rejected?
- ensure_confirmation_sent
- end
+ reject_subscription if subscription_rejected?
+ ensure_confirmation_sent
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -563,12 +566,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 250
- def defer_subscription_confirmation! # :doc:
- @defer_subscription_confirmation_counter.increment
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 253
+def defer_subscription_confirmation! # :doc:
+ @defer_subscription_confirmation_counter.increment
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -598,12 +601,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 254
- def defer_subscription_confirmation? # :doc:
- @defer_subscription_confirmation_counter.value > 0
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 257
+def defer_subscription_confirmation? # :doc:
+ @defer_subscription_confirmation_counter.value > 0
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -633,14 +636,14 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 244
- def ensure_confirmation_sent # :doc:
- return if subscription_rejected?
- @defer_subscription_confirmation_counter.decrement
- transmit_subscription_confirmation unless defer_subscription_confirmation?
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 247
+def ensure_confirmation_sent # :doc:
+ return if subscription_rejected?
+ @defer_subscription_confirmation_counter.decrement
+ transmit_subscription_confirmation unless defer_subscription_confirmation?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -670,12 +673,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 262
- def reject # :doc:
- @reject_subscription = true
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 265
+def reject # :doc:
+ @reject_subscription = true
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -705,12 +708,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 218
- def subscribed # :doc:
- # Override in subclasses
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 221
+def subscribed # :doc:
+ # Override in subclasses
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -740,12 +743,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 258
- def subscription_confirmation_sent? # :doc:
- @subscription_confirmation_sent
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 261
+def subscription_confirmation_sent? # :doc:
+ @subscription_confirmation_sent
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -775,12 +778,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 266
- def subscription_rejected? # :doc:
- @reject_subscription
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 269
+def subscription_rejected? # :doc:
+ @reject_subscription
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -810,21 +813,21 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 231
- def transmit(data, via: nil) # :doc:
- logger.debug do
- status = "#{self.class.name} transmitting #{data.inspect.truncate(300)}"
- status += " (via #{via})" if via
- status
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 234
+def transmit(data, via: nil) # :doc:
+ logger.debug do
+ status = "#{self.class.name} transmitting #{data.inspect.truncate(300)}"
+ status += " (via #{via})" if via
+ status
+ end
- payload = { channel_class: self.class.name, data: data, via: via }
- ActiveSupport::Notifications.instrument("transmit.action_cable", payload) do
- connection.transmit identifier: @identifier, message: data
- end
- end
+ payload = { channel_class: self.class.name, data: data, via: via }
+ ActiveSupport::Notifications.instrument("transmit.action_cable", payload) do
+ connection.transmit identifier: @identifier, message: data
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -854,12 +857,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 224
- def unsubscribed # :doc:
- # Override in subclasses
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 227
+def unsubscribed # :doc:
+ # Override in subclasses
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Broadcasting.html b/src/classes/ActionCable/Channel/Broadcasting.html
index bb71b89445..7fecc3f6b8 100644
--- a/src/classes/ActionCable/Channel/Broadcasting.html
+++ b/src/classes/ActionCable/Channel/Broadcasting.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -99,11 +99,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 45
- def broadcast_to(model, message)
- self.class.broadcast_to(model, message)
- end
+def broadcast_to(model, message)
+ self.class.broadcast_to(model, message)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -134,11 +134,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 41
- def broadcasting_for(model)
- self.class.broadcasting_for(model)
- end
+def broadcasting_for(model)
+ self.class.broadcasting_for(model)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html b/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
index 684bccb1ab..432bb5d74f 100644
--- a/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 14
- def broadcast_to(broadcastables, message)
- ActionCable.server.broadcast(broadcasting_for(broadcastables), message)
- end
+def broadcast_to(broadcastables, message)
+ ActionCable.server.broadcast(broadcasting_for(broadcastables), message)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -126,11 +126,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 24
- def broadcasting_for(broadcastables)
- serialize_broadcasting([ channel_name ] + Array(broadcastables))
- end
+def broadcasting_for(broadcastables)
+ serialize_broadcasting([ channel_name ] + Array(broadcastables))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Callbacks.html b/src/classes/ActionCable/Channel/Callbacks.html
index 076bdbc8fa..64985186c3 100644
--- a/src/classes/ActionCable/Channel/Callbacks.html
+++ b/src/classes/ActionCable/Channel/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html b/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
index 6ee4317311..7949b5fdf6 100644
--- a/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -111,11 +111,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 60
- def after_subscribe(*methods, &block)
- set_callback(:subscribe, :after, *methods, &block)
- end
+def after_subscribe(*methods, &block)
+ set_callback(:subscribe, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -150,11 +150,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 69
- def after_unsubscribe(*methods, &block)
- set_callback(:unsubscribe, :after, *methods, &block)
- end
+def after_unsubscribe(*methods, &block)
+ set_callback(:unsubscribe, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -185,11 +185,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 48
- def before_subscribe(*methods, &block)
- set_callback(:subscribe, :before, *methods, &block)
- end
+def before_subscribe(*methods, &block)
+ set_callback(:subscribe, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -220,11 +220,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 65
- def before_unsubscribe(*methods, &block)
- set_callback(:unsubscribe, :before, *methods, &block)
- end
+def before_unsubscribe(*methods, &block)
+ set_callback(:unsubscribe, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/ChannelStub.html b/src/classes/ActionCable/Channel/ChannelStub.html
index 9db98daac2..d004896dc5 100644
--- a/src/classes/ActionCable/Channel/ChannelStub.html
+++ b/src/classes/ActionCable/Channel/ChannelStub.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -25,7 +25,7 @@
Action Cable Channel Stub
-
Stub stream_from to track streams for the channel. Add public aliases for subscription_confirmation_sent? and subscription_rejected?.
+Stub stream_from to track streams for the channel. Add public aliases for subscription_confirmation_sent? and subscription_rejected?.
@@ -114,11 +114,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 25
- def confirmed?
- subscription_confirmation_sent?
- end
+def confirmed?
+ subscription_confirmation_sent?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -149,11 +149,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 29
- def rejected?
- subscription_rejected?
- end
+def rejected?
+ subscription_rejected?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -188,9 +188,9 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 46
- def start_periodic_timers; end
+def start_periodic_timers; end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -221,11 +221,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 37
- def stop_all_streams
- @_streams = []
- end
+def stop_all_streams
+ @_streams = []
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -281,11 +281,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 33
- def stream_from(broadcasting, *)
- streams << broadcasting
- end
+def stream_from(broadcasting, *)
+ streams << broadcasting
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -316,11 +316,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 41
- def streams
- @_streams ||= []
- end
+def streams
+ @_streams ||= []
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/ConnectionStub.html b/src/classes/ActionCable/Channel/ConnectionStub.html
index 62c52b567f..0fdc0d8690 100644
--- a/src/classes/ActionCable/Channel/ConnectionStub.html
+++ b/src/classes/ActionCable/Channel/ConnectionStub.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -141,20 +141,20 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 55
- def initialize(identifiers = {})
- @server = ActionCable.server
- @transmissions = []
-
- identifiers.each do |identifier, val|
- define_singleton_method(identifier) { val }
- end
-
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @identifiers = identifiers.keys
- @logger = ActiveSupport::TaggedLogging.new ActiveSupport::Logger.new(StringIO.new)
- end
+def initialize(identifiers = {})
+ @server = ActionCable.server
+ @transmissions = []
+
+ identifiers.each do |identifier, val|
+ define_singleton_method(identifier) { val }
+ end
+
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @identifiers = identifiers.keys
+ @logger = ActiveSupport::TaggedLogging.new ActiveSupport::Logger.new(StringIO.new)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -189,11 +189,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 72
- def connection_identifier
- @connection_identifier ||= connection_gid(identifiers.filter_map { |id| send(id.to_sym) if id })
- end
+def connection_identifier
+ @connection_identifier ||= connection_gid(identifiers.filter_map { |id| send(id.to_sym) if id })
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -224,11 +224,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 68
- def transmit(cable_message)
- transmissions << cable_message.with_indifferent_access
- end
+def transmit(cable_message)
+ transmissions << cable_message.with_indifferent_access
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Naming.html b/src/classes/ActionCable/Channel/Naming.html
index 84bfc0232c..db2aa18589 100644
--- a/src/classes/ActionCable/Channel/Naming.html
+++ b/src/classes/ActionCable/Channel/Naming.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,11 +95,11 @@
# File actioncable/lib/action_cable/channel/naming.rb, line 23
- def channel_name
- self.class.channel_name
- end
+def channel_name
+ self.class.channel_name
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Naming/ClassMethods.html b/src/classes/ActionCable/Channel/Naming/ClassMethods.html
index b847309f12..e99c0744a7 100644
--- a/src/classes/ActionCable/Channel/Naming/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Naming/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -66,7 +66,7 @@
- Returns the name of the channel, underscored, without the Channel ending. If the channel is in a namespace, then the namespaces are represented by single colon separators in the channel name.
+ Returns the name of the channel, underscored, without the Channel ending. If the channel is in a namespace, then the namespaces are represented by single colon separators in the channel name.
ChatChannel.channel_name # => 'chat'
Chats::AppearancesChannel.channel_name # => 'chats:appearances'
@@ -87,11 +87,11 @@
# File actioncable/lib/action_cable/channel/naming.rb, line 18
- def channel_name
- @channel_name ||= name.delete_suffix("Channel").gsub("::", ":").underscore
- end
+def channel_name
+ @channel_name ||= name.delete_suffix("Channel").gsub("::", ":").underscore
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/NonInferrableChannelError.html b/src/classes/ActionCable/Channel/NonInferrableChannelError.html
index 034c36b135..1eac81cbd2 100644
--- a/src/classes/ActionCable/Channel/NonInferrableChannelError.html
+++ b/src/classes/ActionCable/Channel/NonInferrableChannelError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 13
- def initialize(name)
- super "Unable to determine the channel to test from #{name}. " +
- "You'll need to specify it using `tests YourChannel` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the channel to test from #{name}. " +
+ "You'll need to specify it using `tests YourChannel` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/PeriodicTimers.html b/src/classes/ActionCable/Channel/PeriodicTimers.html
index 88facef675..561da6e0dd 100644
--- a/src/classes/ActionCable/Channel/PeriodicTimers.html
+++ b/src/classes/ActionCable/Channel/PeriodicTimers.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html b/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
index 233865e2e3..a694f6de16 100644
--- a/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -91,30 +91,30 @@
# File actioncable/lib/action_cable/channel/periodic_timers.rb, line 31
- def periodically(callback_or_method_name = nil, every:, &block)
- callback =
- if block_given?
- raise ArgumentError, "Pass a block or provide a callback arg, not both" if callback_or_method_name
- block
- else
- case callback_or_method_name
- when Proc
- callback_or_method_name
- when Symbol
- -> { __send__ callback_or_method_name }
- else
- raise ArgumentError, "Expected a Symbol method name or a Proc, got #{callback_or_method_name.inspect}"
- end
- end
-
- unless every.kind_of?(Numeric) && every > 0
- raise ArgumentError, "Expected every: to be a positive number of seconds, got #{every.inspect}"
- end
-
- self.periodic_timers += [[ callback, every: every ]]
- end
+def periodically(callback_or_method_name = nil, every:, &block)
+ callback =
+ if block_given?
+ raise ArgumentError, "Pass a block or provide a callback arg, not both" if callback_or_method_name
+ block
+ else
+ case callback_or_method_name
+ when Proc
+ callback_or_method_name
+ when Symbol
+ -> { __send__ callback_or_method_name }
+ else
+ raise ArgumentError, "Expected a Symbol method name or a Proc, got #{callback_or_method_name.inspect}"
+ end
+ end
+
+ unless every.kind_of?(Numeric) && every > 0
+ raise ArgumentError, "Expected every: to be a positive number of seconds, got #{every.inspect}"
+ end
+
+ self.periodic_timers += [[ callback, every: every ]]
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Streams.html b/src/classes/ActionCable/Channel/Streams.html
index 0967feb616..a2e686a3e9 100644
--- a/src/classes/ActionCable/Channel/Streams.html
+++ b/src/classes/ActionCable/Channel/Streams.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -167,14 +167,14 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 137
- def stop_all_streams
- streams.each do |broadcasting, callback|
- pubsub.unsubscribe broadcasting, callback
- logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
- end.clear
- end
+def stop_all_streams
+ streams.each do |broadcasting, callback|
+ pubsub.unsubscribe broadcasting, callback
+ logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
+ end.clear
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -205,11 +205,11 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 132
- def stop_stream_for(model)
- stop_stream_from(broadcasting_for(model))
- end
+def stop_stream_for(model)
+ stop_stream_from(broadcasting_for(model))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,15 +240,15 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 123
- def stop_stream_from(broadcasting)
- callback = streams.delete(broadcasting)
- if callback
- pubsub.unsubscribe(broadcasting, callback)
- logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
- end
- end
+def stop_stream_from(broadcasting)
+ callback = streams.delete(broadcasting)
+ if callback
+ pubsub.unsubscribe(broadcasting, callback)
+ logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -281,11 +281,11 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 118
- def stream_for(broadcastables, callback = nil, coder: nil, &block)
- stream_from(broadcasting_for(broadcastables), callback || block, coder: coder)
- end
+def stream_for(broadcastables, callback = nil, coder: nil, &block)
+ stream_from(broadcasting_for(broadcastables), callback || block, coder: coder)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -316,28 +316,28 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 90
- def stream_from(broadcasting, callback = nil, coder: nil, &block)
- return if unsubscribed?
-
- broadcasting = String(broadcasting)
-
- # Don't send the confirmation until pubsub#subscribe is successful
- defer_subscription_confirmation!
-
- # Build a stream handler by wrapping the user-provided callback with a decoder
- # or defaulting to a JSON-decoding retransmitter.
- handler = worker_pool_stream_handler(broadcasting, callback || block, coder: coder)
- streams[broadcasting] = handler
-
- connection.server.event_loop.post do
- pubsub.subscribe(broadcasting, handler, lambda do
- ensure_confirmation_sent
- logger.info "#{self.class.name} is streaming from #{broadcasting}"
- end)
- end
- end
+def stream_from(broadcasting, callback = nil, coder: nil, &block)
+ return if unsubscribed?
+
+ broadcasting = String(broadcasting)
+
+ # Don't send the confirmation until pubsub#subscribe is successful
+ defer_subscription_confirmation!
+
+ # Build a stream handler by wrapping the user-provided callback with a decoder
+ # or defaulting to a JSON-decoding retransmitter.
+ handler = worker_pool_stream_handler(broadcasting, callback || block, coder: coder)
+ streams[broadcasting] = handler
+
+ connection.server.event_loop.post do
+ pubsub.subscribe(broadcasting, handler, lambda do
+ ensure_confirmation_sent
+ logger.info "#{self.class.name} is streaming from #{broadcasting}"
+ end)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -368,15 +368,15 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 146
- def stream_or_reject_for(model)
- if model
- stream_for model
- else
- reject
- end
- end
+def stream_or_reject_for(model)
+ if model
+ stream_for model
+ else
+ reject
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase.html b/src/classes/ActionCable/Channel/TestCase.html
index 08fb28c0cf..6317ff44d0 100644
--- a/src/classes/ActionCable/Channel/TestCase.html
+++ b/src/classes/ActionCable/Channel/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior.html b/src/classes/ActionCable/Channel/TestCase/Behavior.html
index b5f3a5cbb7..5a8ea0fd78 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -196,11 +196,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 282
- def assert_broadcast_on(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcast_on(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -231,11 +231,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 278
- def assert_broadcasts(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcasts(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,11 +272,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 326
- def assert_has_no_stream(stream)
- assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
- end
+def assert_has_no_stream(stream)
+ assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -313,11 +313,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 337
- def assert_has_no_stream_for(object)
- assert_has_no_stream(broadcasting_for(object))
- end
+def assert_has_no_stream_for(object)
+ assert_has_no_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -354,11 +354,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 304
- def assert_has_stream(stream)
- assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
- end
+def assert_has_stream(stream)
+ assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -395,11 +395,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 315
- def assert_has_stream_for(object)
- assert_has_stream(broadcasting_for(object))
- end
+def assert_has_stream_for(object)
+ assert_has_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -436,11 +436,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 293
- def assert_no_streams
- assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
- end
+def assert_no_streams
+ assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -473,12 +473,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 266
- def perform(action, data = {})
- check_subscribed!
- subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
- end
+def perform(action, data = {})
+ check_subscribed!
+ subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -516,11 +516,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 243
- def stub_connection(identifiers = {})
- @connection = ConnectionStub.new(identifiers)
- end
+def stub_connection(identifiers = {})
+ @connection = ConnectionStub.new(identifiers)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -551,15 +551,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 249
- def subscribe(params = {})
- @connection ||= stub_connection
- @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
- @subscription.singleton_class.include(ChannelStub)
- @subscription.subscribe_to_channel
- @subscription
- end
+def subscribe(params = {})
+ @connection ||= stub_connection
+ @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
+ @subscription.singleton_class.include(ChannelStub)
+ @subscription.subscribe_to_channel
+ @subscription
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -590,12 +590,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 272
- def transmissions
- # Return only directly sent message (via #transmit)
- connection.transmissions.filter_map { |data| data["message"] }
- end
+def transmissions
+ # Return only directly sent message (via #transmit)
+ connection.transmissions.filter_map { |data| data["message"] }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -626,12 +626,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 258
- def unsubscribe
- check_subscribed!
- subscription.unsubscribe_from_channel
- end
+def unsubscribe
+ check_subscribed!
+ subscription.unsubscribe_from_channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
index 48ea87f130..57efb4cdac 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 219
- def channel_class
- if channel = self._channel_class
- channel
- else
- tests determine_default_channel(name)
- end
- end
+def channel_class
+ if channel = self._channel_class
+ channel
+ else
+ tests determine_default_channel(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 227
- def determine_default_channel(name)
- channel = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Channel::Base
- end
- raise NonInferrableChannelError.new(name) if channel.nil?
- channel
- end
+def determine_default_channel(name)
+ channel = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Channel::Base
+ end
+ raise NonInferrableChannelError.new(name) if channel.nil?
+ channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 208
- def tests(channel)
- case channel
- when String, Symbol
- self._channel_class = channel.to_s.camelize.constantize
- when Module
- self._channel_class = channel
- else
- raise NonInferrableChannelError.new(channel)
- end
- end
+def tests(channel)
+ case channel
+ when String, Symbol
+ self._channel_class = channel.to_s.camelize.constantize
+ when Module
+ self._channel_class = channel
+ else
+ raise NonInferrableChannelError.new(channel)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection.html b/src/classes/ActionCable/Connection.html
index f832214f0e..7889c75284 100644
--- a/src/classes/ActionCable/Connection.html
+++ b/src/classes/ActionCable/Connection.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Assertions.html b/src/classes/ActionCable/Connection/Assertions.html
index 933ea80e4c..6b10ec5528 100644
--- a/src/classes/ActionCable/Connection/Assertions.html
+++ b/src/classes/ActionCable/Connection/Assertions.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 28
- def assert_reject_connection(&block)
- assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
- end
+def assert_reject_connection(&block)
+ assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization.html b/src/classes/ActionCable/Connection/Authorization.html
index feb855aa9e..baf85a37b3 100644
--- a/src/classes/ActionCable/Connection/Authorization.html
+++ b/src/classes/ActionCable/Connection/Authorization.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -97,12 +97,12 @@
# File actioncable/lib/action_cable/connection/authorization.rb, line 12
- def reject_unauthorized_connection
- logger.error "An unauthorized connection attempt was rejected"
- raise UnauthorizedError
- end
+def reject_unauthorized_connection
+ logger.error "An unauthorized connection attempt was rejected"
+ raise UnauthorizedError
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
index b63b282b0b..ff36299a28 100644
--- a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
+++ b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/Base.html b/src/classes/ActionCable/Connection/Base.html
index 36a2f1e1bb..ea0d62911f 100644
--- a/src/classes/ActionCable/Connection/Base.html
+++ b/src/classes/ActionCable/Connection/Base.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -255,21 +255,21 @@
# File actioncable/lib/action_cable/connection/base.rb, line 67
- def initialize(server, env, coder: ActiveSupport::JSON)
- @server, @env, @coder = server, env, coder
+def initialize(server, env, coder: ActiveSupport::JSON)
+ @server, @env, @coder = server, env, coder
- @worker_pool = server.worker_pool
- @logger = new_tagged_logger
+ @worker_pool = server.worker_pool
+ @logger = new_tagged_logger
- @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
+ @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
- @_internal_subscriptions = nil
- @started_at = Time.now
- end
+ @_internal_subscriptions = nil
+ @started_at = Time.now
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -304,11 +304,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 147
- def beat
- transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
- end
+def beat
+ transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -339,16 +339,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 120
- def close(reason: nil, reconnect: true)
- transmit(
- type: ActionCable::INTERNAL[:message_types][:disconnect],
- reason: reason,
- reconnect: reconnect
- )
- websocket.close
- end
+def close(reason: nil, reconnect: true)
+ transmit(
+ type: ActionCable::INTERNAL[:message_types][:disconnect],
+ reason: reason,
+ reconnect: reconnect
+ )
+ websocket.close
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -379,13 +379,13 @@
# File actioncable/lib/action_cable/connection/base.rb, line 109
- def handle_channel_command(payload)
- run_callbacks :command do
- subscriptions.execute_command payload
- end
- end
+def handle_channel_command(payload)
+ run_callbacks :command do
+ subscriptions.execute_command payload
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -416,11 +416,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 131
- def send_async(method, *arguments)
- worker_pool.async_invoke(self, method, *arguments)
- end
+def send_async(method, *arguments)
+ worker_pool.async_invoke(self, method, *arguments)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -451,16 +451,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 138
- def statistics
- {
- identifier: connection_identifier,
- started_at: @started_at,
- subscriptions: subscriptions.identifiers,
- request_id: @env["action_dispatch.request_id"]
- }
- end
+def statistics
+ {
+ identifier: connection_identifier,
+ started_at: @started_at,
+ subscriptions: subscriptions.identifiers,
+ request_id: @env["action_dispatch.request_id"]
+ }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -494,11 +494,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 187
- def cookies # :doc:
- request.cookie_jar
- end
+def cookies # :doc:
+ request.cookie_jar
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -529,14 +529,14 @@
# File actioncable/lib/action_cable/connection/base.rb, line 178
- def request # :doc:
- @request ||= begin
- environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
- ActionDispatch::Request.new(environment || env)
- end
- end
+def request # :doc:
+ @request ||= begin
+ environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
+ ActionDispatch::Request.new(environment || env)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Callbacks.html b/src/classes/ActionCable/Connection/Callbacks.html
index 818958bf81..d6504ca284 100644
--- a/src/classes/ActionCable/Connection/Callbacks.html
+++ b/src/classes/ActionCable/Connection/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
index 933056a029..6376d7195b 100644
--- a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,11 +90,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 47
- def after_command(*methods, &block)
- set_callback(:command, :after, *methods, &block)
- end
+def after_command(*methods, &block)
+ set_callback(:command, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -125,11 +125,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 51
- def around_command(*methods, &block)
- set_callback(:command, :around, *methods, &block)
- end
+def around_command(*methods, &block)
+ set_callback(:command, :around, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -160,11 +160,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 43
- def before_command(*methods, &block)
- set_callback(:command, :before, *methods, &block)
- end
+def before_command(*methods, &block)
+ set_callback(:command, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification.html b/src/classes/ActionCable/Connection/Identification.html
index f3dcea9bfc..063ca88999 100644
--- a/src/classes/ActionCable/Connection/Identification.html
+++ b/src/classes/ActionCable/Connection/Identification.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,15 +95,15 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 29
- def connection_identifier
- unless defined? @connection_identifier
- @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
- end
+def connection_identifier
+ unless defined? @connection_identifier
+ @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
+ end
- @connection_identifier
- end
+ @connection_identifier
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification/ClassMethods.html b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
index 324ded31f5..a3395ef8a3 100644
--- a/src/classes/ActionCable/Connection/Identification/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -84,12 +84,12 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 21
- def identified_by(*identifiers)
- Array(identifiers).each { |identifier| attr_accessor identifier }
- self.identifiers += identifiers
- end
+def identified_by(*identifiers)
+ Array(identifiers).each { |identifier| attr_accessor identifier }
+ self.identifiers += identifiers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/InternalChannel.html b/src/classes/ActionCable/Connection/InternalChannel.html
index 9b0144f690..cfdccceaf4 100644
--- a/src/classes/ActionCable/Connection/InternalChannel.html
+++ b/src/classes/ActionCable/Connection/InternalChannel.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
index 7167904452..bf0c696d62 100644
--- a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
+++ b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 15
- def initialize(name)
- super "Unable to determine the connection to test from #{name}. " +
- "You'll need to specify it using `tests YourConnection` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the connection to test from #{name}. " +
+ "You'll need to specify it using `tests YourConnection` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/StreamEventLoop.html b/src/classes/ActionCable/Connection/StreamEventLoop.html
index 2b71a213e3..f7c49354ef 100644
--- a/src/classes/ActionCable/Connection/StreamEventLoop.html
+++ b/src/classes/ActionCable/Connection/StreamEventLoop.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -111,16 +111,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 10
- def initialize
- @nio = @executor = @thread = nil
- @map = {}
- @stopping = false
- @todo = Queue.new
-
- @spawn_mutex = Mutex.new
- end
+def initialize
+ @nio = @executor = @thread = nil
+ @map = {}
+ @stopping = false
+ @todo = Queue.new
+
+ @spawn_mutex = Mutex.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -155,15 +155,15 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 30
- def attach(io, stream)
- @todo << lambda do
- @map[io] = @nio.register(io, :r)
- @map[io].value = stream
- end
- wakeup
- end
+def attach(io, stream)
+ @todo << lambda do
+ @map[io] = @nio.register(io, :r)
+ @map[io].value = stream
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -194,16 +194,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 38
- def detach(io, stream)
- @todo << lambda do
- @nio.deregister io
- @map.delete io
- io.close
- end
- wakeup
- end
+def detach(io, stream)
+ @todo << lambda do
+ @nio.deregister io
+ @map.delete io
+ io.close
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -234,14 +234,14 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 23
- def post(task = nil, &block)
- task ||= block
+def post(task = nil, &block)
+ task ||= block
- spawn
- @executor << task
- end
+ spawn
+ @executor << task
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,12 +272,12 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 56
- def stop
- @stopping = true
- wakeup if @nio
- end
+def stop
+ @stopping = true
+ wakeup if @nio
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -308,11 +308,11 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 19
- def timer(interval, &block)
- Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
- end
+def timer(interval, &block)
+ Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -343,16 +343,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 47
- def writes_pending(io)
- @todo << lambda do
- if monitor = @map[io]
- monitor.interests = :rw
- end
- end
- wakeup
- end
+def writes_pending(io)
+ @todo << lambda do
+ if monitor = @map[io]
+ monitor.interests = :rw
+ end
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
index f4d5cacc63..99731855fb 100644
--- a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
+++ b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -121,12 +121,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 16
- def initialize(logger, tags:)
- @logger = logger
- @tags = tags.flatten
- end
+def initialize(logger, tags:)
+ @logger = logger
+ @tags = tags.flatten
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -161,12 +161,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 21
- def add_tags(*tags)
- @tags += tags.flatten
- @tags = @tags.uniq
- end
+def add_tags(*tags)
+ @tags += tags.flatten
+ @tags = @tags.uniq
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -197,16 +197,16 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 26
- def tag(logger, &block)
- if logger.respond_to?(:tagged)
- current_tags = tags - logger.formatter.current_tags
- logger.tagged(*current_tags, &block)
- else
- yield
- end
- end
+def tag(logger, &block)
+ if logger.respond_to?(:tagged)
+ current_tags = tags - logger.formatter.current_tags
+ logger.tagged(*current_tags, &block)
+ else
+ yield
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,11 +240,11 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 42
- def log(type, message, &block) # :doc:
- tag(@logger) { @logger.send type, message, &block }
- end
+def log(type, message, &block) # :doc:
+ tag(@logger) { @logger.send type, message, &block }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase.html b/src/classes/ActionCable/Connection/TestCase.html
index 948378e491..39bc5cb056 100644
--- a/src/classes/ActionCable/Connection/TestCase.html
+++ b/src/classes/ActionCable/Connection/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior.html b/src/classes/ActionCable/Connection/TestCase/Behavior.html
index b87870becd..4ee0debbea 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -163,19 +163,19 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 192
- def connect(path = ActionCable.server.config.mount_path, **request_params)
- path ||= DEFAULT_PATH
+def connect(path = ActionCable.server.config.mount_path, **request_params)
+ path ||= DEFAULT_PATH
- connection = self.class.connection_class.allocate
- connection.singleton_class.include(TestConnection)
- connection.send(:initialize, build_test_request(path, **request_params))
- connection.connect if connection.respond_to?(:connect)
+ connection = self.class.connection_class.allocate
+ connection.singleton_class.include(TestConnection)
+ connection.send(:initialize, build_test_request(path, **request_params))
+ connection.connect if connection.respond_to?(:connect)
- # Only set instance variable if connected successfully
- @connection = connection
- end
+ # Only set instance variable if connected successfully
+ @connection = connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -206,11 +206,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 212
- def cookies
- @cookie_jar ||= TestCookieJar.new
- end
+def cookies
+ @cookie_jar ||= TestCookieJar.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -241,14 +241,14 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 205
- def disconnect
- raise "Must be connected!" if connection.nil?
+def disconnect
+ raise "Must be connected!" if connection.nil?
- connection.disconnect if connection.respond_to?(:disconnect)
- @connection = nil
- end
+ connection.disconnect if connection.respond_to?(:disconnect)
+ @connection = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
index 63444f4b27..99fc0e3f6f 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 167
- def connection_class
- if connection = self._connection_class
- connection
- else
- tests determine_default_connection(name)
- end
- end
+def connection_class
+ if connection = self._connection_class
+ connection
+ else
+ tests determine_default_connection(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 175
- def determine_default_connection(name)
- connection = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Connection::Base
- end
- raise NonInferrableConnectionError.new(name) if connection.nil?
- connection
- end
+def determine_default_connection(name)
+ connection = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Connection::Base
+ end
+ raise NonInferrableConnectionError.new(name) if connection.nil?
+ connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/version.rb, line 9
- def self.version
- gem_version
- end# File actioncable/lib/action_cable.rb, line 77
- def server
- @server ||= ActionCable::Server::Base.new
- end
+def server
+@server ||= ActionCable::Server::Base.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel.html b/src/classes/ActionCable/Channel.html
index 38c886ddbc..06b36ff362 100644
--- a/src/classes/ActionCable/Channel.html
+++ b/src/classes/ActionCable/Channel.html
@@ -5,7 +5,7 @@
+ Ruby on Rails 8.1.0.rc1
diff --git a/src/classes/ActionCable/Channel/Base.html b/src/classes/ActionCable/Channel/Base.html
index bc63a53315..32e2ff9b70 100644
--- a/src/classes/ActionCable/Channel/Base.html
+++ b/src/classes/ActionCable/Channel/Base.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -82,7 +82,7 @@ Action process
end
-
In this example, the subscribed and unsubscribed methods are not callable methods, as they were already declared in ActionCable::Channel::Base, but #appear and #away are. #generate_connection_token is also not callable, since it’s a private method. You’ll see that appear accepts a data parameter, which it then uses as part of its model call. #away does not, since it’s simply a trigger action.
+In this example, the subscribed and unsubscribed methods are not callable methods, as they were already declared in ActionCable::Channel::Base, but appear and away are. generate_connection_token is also not callable, since it’s a private method. You’ll see that appear accepts a data parameter, which it then uses as part of its model call. away does not, since it’s simply a trigger action.
Also note that in this example, current_user is available because it was marked as an identifying attribute on the connection. All such identifiers will automatically create a delegation method of the same name on the channel instance.
@@ -307,19 +307,22 @@ Returns
# File actioncable/lib/action_cable/channel/base.rb, line 128
- def action_methods
- @action_methods ||= begin
- # All public instance methods of this class, including ancestors
- methods = (public_instance_methods(true) -
- # Except for public instance methods of Base and its ancestors
- ActionCable::Channel::Base.public_instance_methods(true) +
- # Be sure to include shadowed public instance methods of this class
- public_instance_methods(false)).uniq.map(&:to_s)
- methods.to_set
- end
- end
-
- 🔎 See on GitHub
+def action_methods
+ @action_methods ||= begin
+ # All public instance methods of this class, including ancestors
+ methods = (public_instance_methods(true) -
+ # Except for public instance methods of Base and its ancestors
+ ActionCable::Channel::Base.public_instance_methods(true) +
+ # Be sure to include shadowed public instance methods of this class
+ public_instance_methods(false)).uniq
+
+ methods.reject! { |m| m.start_with?("_") }
+ methods.map!(&:name)
+ methods.to_set
+ end
+end
+
+ 🔎 See on GitHub
@@ -349,26 +352,26 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 155
- def initialize(connection, identifier, params = {})
- @connection = connection
- @identifier = identifier
- @params = params
+ # File actioncable/lib/action_cable/channel/base.rb, line 158
+def initialize(connection, identifier, params = {})
+ @connection = connection
+ @identifier = identifier
+ @params = params
- # When a channel is streaming via pubsub, we want to delay the confirmation
- # transmission until pubsub subscription is confirmed.
- #
- # The counter starts at 1 because it's awaiting a call to #subscribe_to_channel
- @defer_subscription_confirmation_counter = Concurrent::AtomicFixnum.new(1)
+ # When a channel is streaming via pubsub, we want to delay the confirmation
+ # transmission until pubsub subscription is confirmed.
+ #
+ # The counter starts at 1 because it's awaiting a call to #subscribe_to_channel
+ @defer_subscription_confirmation_counter = Concurrent::AtomicFixnum.new(1)
- @reject_subscription = nil
- @subscription_confirmation_sent = nil
- @unsubscribed = false
+ @reject_subscription = nil
+ @subscription_confirmation_sent = nil
+ @unsubscribed = false
- delegate_connection_identifiers
- end
+ delegate_connection_identifiers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -401,12 +404,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 144
- def clear_action_methods! # :doc:
- @action_methods = nil
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 147
+def clear_action_methods! # :doc:
+ @action_methods = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -436,13 +439,13 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 149
- def method_added(name) # :doc:
- super
- clear_action_methods!
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 152
+def method_added(name) # :doc:
+ super
+ clear_action_methods!
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -476,21 +479,21 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 176
- def perform_action(data)
- action = extract_action(data)
+ # File actioncable/lib/action_cable/channel/base.rb, line 179
+def perform_action(data)
+ action = extract_action(data)
- if processable_action?(action)
- payload = { channel_class: self.class.name, action: action, data: data }
- ActiveSupport::Notifications.instrument("perform_action.action_cable", payload) do
- dispatch_action(action, data)
- end
- else
- logger.error "Unable to process #{action_signature(action, data)}"
- end
- end
+ if processable_action?(action)
+ payload = { channel_class: self.class.name, action: action, data: data }
+ ActiveSupport::Notifications.instrument("perform_action.action_cable", payload) do
+ dispatch_action(action, data)
+ end
+ else
+ logger.error "Unable to process #{action_signature(action, data)}"
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -520,17 +523,17 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 191
- def subscribe_to_channel
- run_callbacks :subscribe do
- subscribed
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 194
+def subscribe_to_channel
+ run_callbacks :subscribe do
+ subscribed
+ end
- reject_subscription if subscription_rejected?
- ensure_confirmation_sent
- end
+ reject_subscription if subscription_rejected?
+ ensure_confirmation_sent
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -563,12 +566,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 250
- def defer_subscription_confirmation! # :doc:
- @defer_subscription_confirmation_counter.increment
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 253
+def defer_subscription_confirmation! # :doc:
+ @defer_subscription_confirmation_counter.increment
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -598,12 +601,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 254
- def defer_subscription_confirmation? # :doc:
- @defer_subscription_confirmation_counter.value > 0
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 257
+def defer_subscription_confirmation? # :doc:
+ @defer_subscription_confirmation_counter.value > 0
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -633,14 +636,14 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 244
- def ensure_confirmation_sent # :doc:
- return if subscription_rejected?
- @defer_subscription_confirmation_counter.decrement
- transmit_subscription_confirmation unless defer_subscription_confirmation?
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 247
+def ensure_confirmation_sent # :doc:
+ return if subscription_rejected?
+ @defer_subscription_confirmation_counter.decrement
+ transmit_subscription_confirmation unless defer_subscription_confirmation?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -670,12 +673,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 262
- def reject # :doc:
- @reject_subscription = true
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 265
+def reject # :doc:
+ @reject_subscription = true
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -705,12 +708,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 218
- def subscribed # :doc:
- # Override in subclasses
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 221
+def subscribed # :doc:
+ # Override in subclasses
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -740,12 +743,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 258
- def subscription_confirmation_sent? # :doc:
- @subscription_confirmation_sent
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 261
+def subscription_confirmation_sent? # :doc:
+ @subscription_confirmation_sent
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -775,12 +778,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 266
- def subscription_rejected? # :doc:
- @reject_subscription
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 269
+def subscription_rejected? # :doc:
+ @reject_subscription
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -810,21 +813,21 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 231
- def transmit(data, via: nil) # :doc:
- logger.debug do
- status = "#{self.class.name} transmitting #{data.inspect.truncate(300)}"
- status += " (via #{via})" if via
- status
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 234
+def transmit(data, via: nil) # :doc:
+ logger.debug do
+ status = "#{self.class.name} transmitting #{data.inspect.truncate(300)}"
+ status += " (via #{via})" if via
+ status
+ end
- payload = { channel_class: self.class.name, data: data, via: via }
- ActiveSupport::Notifications.instrument("transmit.action_cable", payload) do
- connection.transmit identifier: @identifier, message: data
- end
- end
+ payload = { channel_class: self.class.name, data: data, via: via }
+ ActiveSupport::Notifications.instrument("transmit.action_cable", payload) do
+ connection.transmit identifier: @identifier, message: data
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -854,12 +857,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 224
- def unsubscribed # :doc:
- # Override in subclasses
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 227
+def unsubscribed # :doc:
+ # Override in subclasses
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Broadcasting.html b/src/classes/ActionCable/Channel/Broadcasting.html
index bb71b89445..7fecc3f6b8 100644
--- a/src/classes/ActionCable/Channel/Broadcasting.html
+++ b/src/classes/ActionCable/Channel/Broadcasting.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -99,11 +99,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 45
- def broadcast_to(model, message)
- self.class.broadcast_to(model, message)
- end
+def broadcast_to(model, message)
+ self.class.broadcast_to(model, message)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -134,11 +134,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 41
- def broadcasting_for(model)
- self.class.broadcasting_for(model)
- end
+def broadcasting_for(model)
+ self.class.broadcasting_for(model)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html b/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
index 684bccb1ab..432bb5d74f 100644
--- a/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 14
- def broadcast_to(broadcastables, message)
- ActionCable.server.broadcast(broadcasting_for(broadcastables), message)
- end
+def broadcast_to(broadcastables, message)
+ ActionCable.server.broadcast(broadcasting_for(broadcastables), message)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -126,11 +126,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 24
- def broadcasting_for(broadcastables)
- serialize_broadcasting([ channel_name ] + Array(broadcastables))
- end
+def broadcasting_for(broadcastables)
+ serialize_broadcasting([ channel_name ] + Array(broadcastables))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Callbacks.html b/src/classes/ActionCable/Channel/Callbacks.html
index 076bdbc8fa..64985186c3 100644
--- a/src/classes/ActionCable/Channel/Callbacks.html
+++ b/src/classes/ActionCable/Channel/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html b/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
index 6ee4317311..7949b5fdf6 100644
--- a/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -111,11 +111,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 60
- def after_subscribe(*methods, &block)
- set_callback(:subscribe, :after, *methods, &block)
- end
+def after_subscribe(*methods, &block)
+ set_callback(:subscribe, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -150,11 +150,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 69
- def after_unsubscribe(*methods, &block)
- set_callback(:unsubscribe, :after, *methods, &block)
- end
+def after_unsubscribe(*methods, &block)
+ set_callback(:unsubscribe, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -185,11 +185,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 48
- def before_subscribe(*methods, &block)
- set_callback(:subscribe, :before, *methods, &block)
- end
+def before_subscribe(*methods, &block)
+ set_callback(:subscribe, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -220,11 +220,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 65
- def before_unsubscribe(*methods, &block)
- set_callback(:unsubscribe, :before, *methods, &block)
- end
+def before_unsubscribe(*methods, &block)
+ set_callback(:unsubscribe, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/ChannelStub.html b/src/classes/ActionCable/Channel/ChannelStub.html
index 9db98daac2..d004896dc5 100644
--- a/src/classes/ActionCable/Channel/ChannelStub.html
+++ b/src/classes/ActionCable/Channel/ChannelStub.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -25,7 +25,7 @@
Action Cable Channel Stub
-
Stub stream_from to track streams for the channel. Add public aliases for subscription_confirmation_sent? and subscription_rejected?.
+Stub stream_from to track streams for the channel. Add public aliases for subscription_confirmation_sent? and subscription_rejected?.
@@ -114,11 +114,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 25
- def confirmed?
- subscription_confirmation_sent?
- end
+def confirmed?
+ subscription_confirmation_sent?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -149,11 +149,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 29
- def rejected?
- subscription_rejected?
- end
+def rejected?
+ subscription_rejected?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -188,9 +188,9 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 46
- def start_periodic_timers; end
+def start_periodic_timers; end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -221,11 +221,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 37
- def stop_all_streams
- @_streams = []
- end
+def stop_all_streams
+ @_streams = []
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -281,11 +281,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 33
- def stream_from(broadcasting, *)
- streams << broadcasting
- end
+def stream_from(broadcasting, *)
+ streams << broadcasting
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -316,11 +316,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 41
- def streams
- @_streams ||= []
- end
+def streams
+ @_streams ||= []
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/ConnectionStub.html b/src/classes/ActionCable/Channel/ConnectionStub.html
index 62c52b567f..0fdc0d8690 100644
--- a/src/classes/ActionCable/Channel/ConnectionStub.html
+++ b/src/classes/ActionCable/Channel/ConnectionStub.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -141,20 +141,20 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 55
- def initialize(identifiers = {})
- @server = ActionCable.server
- @transmissions = []
-
- identifiers.each do |identifier, val|
- define_singleton_method(identifier) { val }
- end
-
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @identifiers = identifiers.keys
- @logger = ActiveSupport::TaggedLogging.new ActiveSupport::Logger.new(StringIO.new)
- end
+def initialize(identifiers = {})
+ @server = ActionCable.server
+ @transmissions = []
+
+ identifiers.each do |identifier, val|
+ define_singleton_method(identifier) { val }
+ end
+
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @identifiers = identifiers.keys
+ @logger = ActiveSupport::TaggedLogging.new ActiveSupport::Logger.new(StringIO.new)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -189,11 +189,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 72
- def connection_identifier
- @connection_identifier ||= connection_gid(identifiers.filter_map { |id| send(id.to_sym) if id })
- end
+def connection_identifier
+ @connection_identifier ||= connection_gid(identifiers.filter_map { |id| send(id.to_sym) if id })
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -224,11 +224,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 68
- def transmit(cable_message)
- transmissions << cable_message.with_indifferent_access
- end
+def transmit(cable_message)
+ transmissions << cable_message.with_indifferent_access
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Naming.html b/src/classes/ActionCable/Channel/Naming.html
index 84bfc0232c..db2aa18589 100644
--- a/src/classes/ActionCable/Channel/Naming.html
+++ b/src/classes/ActionCable/Channel/Naming.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,11 +95,11 @@
# File actioncable/lib/action_cable/channel/naming.rb, line 23
- def channel_name
- self.class.channel_name
- end
+def channel_name
+ self.class.channel_name
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Naming/ClassMethods.html b/src/classes/ActionCable/Channel/Naming/ClassMethods.html
index b847309f12..e99c0744a7 100644
--- a/src/classes/ActionCable/Channel/Naming/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Naming/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -66,7 +66,7 @@
- Returns the name of the channel, underscored, without the Channel ending. If the channel is in a namespace, then the namespaces are represented by single colon separators in the channel name.
+ Returns the name of the channel, underscored, without the Channel ending. If the channel is in a namespace, then the namespaces are represented by single colon separators in the channel name.
ChatChannel.channel_name # => 'chat'
Chats::AppearancesChannel.channel_name # => 'chats:appearances'
@@ -87,11 +87,11 @@
# File actioncable/lib/action_cable/channel/naming.rb, line 18
- def channel_name
- @channel_name ||= name.delete_suffix("Channel").gsub("::", ":").underscore
- end
+def channel_name
+ @channel_name ||= name.delete_suffix("Channel").gsub("::", ":").underscore
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/NonInferrableChannelError.html b/src/classes/ActionCable/Channel/NonInferrableChannelError.html
index 034c36b135..1eac81cbd2 100644
--- a/src/classes/ActionCable/Channel/NonInferrableChannelError.html
+++ b/src/classes/ActionCable/Channel/NonInferrableChannelError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 13
- def initialize(name)
- super "Unable to determine the channel to test from #{name}. " +
- "You'll need to specify it using `tests YourChannel` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the channel to test from #{name}. " +
+ "You'll need to specify it using `tests YourChannel` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/PeriodicTimers.html b/src/classes/ActionCable/Channel/PeriodicTimers.html
index 88facef675..561da6e0dd 100644
--- a/src/classes/ActionCable/Channel/PeriodicTimers.html
+++ b/src/classes/ActionCable/Channel/PeriodicTimers.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html b/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
index 233865e2e3..a694f6de16 100644
--- a/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -91,30 +91,30 @@
# File actioncable/lib/action_cable/channel/periodic_timers.rb, line 31
- def periodically(callback_or_method_name = nil, every:, &block)
- callback =
- if block_given?
- raise ArgumentError, "Pass a block or provide a callback arg, not both" if callback_or_method_name
- block
- else
- case callback_or_method_name
- when Proc
- callback_or_method_name
- when Symbol
- -> { __send__ callback_or_method_name }
- else
- raise ArgumentError, "Expected a Symbol method name or a Proc, got #{callback_or_method_name.inspect}"
- end
- end
-
- unless every.kind_of?(Numeric) && every > 0
- raise ArgumentError, "Expected every: to be a positive number of seconds, got #{every.inspect}"
- end
-
- self.periodic_timers += [[ callback, every: every ]]
- end
+def periodically(callback_or_method_name = nil, every:, &block)
+ callback =
+ if block_given?
+ raise ArgumentError, "Pass a block or provide a callback arg, not both" if callback_or_method_name
+ block
+ else
+ case callback_or_method_name
+ when Proc
+ callback_or_method_name
+ when Symbol
+ -> { __send__ callback_or_method_name }
+ else
+ raise ArgumentError, "Expected a Symbol method name or a Proc, got #{callback_or_method_name.inspect}"
+ end
+ end
+
+ unless every.kind_of?(Numeric) && every > 0
+ raise ArgumentError, "Expected every: to be a positive number of seconds, got #{every.inspect}"
+ end
+
+ self.periodic_timers += [[ callback, every: every ]]
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Streams.html b/src/classes/ActionCable/Channel/Streams.html
index 0967feb616..a2e686a3e9 100644
--- a/src/classes/ActionCable/Channel/Streams.html
+++ b/src/classes/ActionCable/Channel/Streams.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -167,14 +167,14 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 137
- def stop_all_streams
- streams.each do |broadcasting, callback|
- pubsub.unsubscribe broadcasting, callback
- logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
- end.clear
- end
+def stop_all_streams
+ streams.each do |broadcasting, callback|
+ pubsub.unsubscribe broadcasting, callback
+ logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
+ end.clear
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -205,11 +205,11 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 132
- def stop_stream_for(model)
- stop_stream_from(broadcasting_for(model))
- end
+def stop_stream_for(model)
+ stop_stream_from(broadcasting_for(model))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,15 +240,15 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 123
- def stop_stream_from(broadcasting)
- callback = streams.delete(broadcasting)
- if callback
- pubsub.unsubscribe(broadcasting, callback)
- logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
- end
- end
+def stop_stream_from(broadcasting)
+ callback = streams.delete(broadcasting)
+ if callback
+ pubsub.unsubscribe(broadcasting, callback)
+ logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -281,11 +281,11 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 118
- def stream_for(broadcastables, callback = nil, coder: nil, &block)
- stream_from(broadcasting_for(broadcastables), callback || block, coder: coder)
- end
+def stream_for(broadcastables, callback = nil, coder: nil, &block)
+ stream_from(broadcasting_for(broadcastables), callback || block, coder: coder)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -316,28 +316,28 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 90
- def stream_from(broadcasting, callback = nil, coder: nil, &block)
- return if unsubscribed?
-
- broadcasting = String(broadcasting)
-
- # Don't send the confirmation until pubsub#subscribe is successful
- defer_subscription_confirmation!
-
- # Build a stream handler by wrapping the user-provided callback with a decoder
- # or defaulting to a JSON-decoding retransmitter.
- handler = worker_pool_stream_handler(broadcasting, callback || block, coder: coder)
- streams[broadcasting] = handler
-
- connection.server.event_loop.post do
- pubsub.subscribe(broadcasting, handler, lambda do
- ensure_confirmation_sent
- logger.info "#{self.class.name} is streaming from #{broadcasting}"
- end)
- end
- end
+def stream_from(broadcasting, callback = nil, coder: nil, &block)
+ return if unsubscribed?
+
+ broadcasting = String(broadcasting)
+
+ # Don't send the confirmation until pubsub#subscribe is successful
+ defer_subscription_confirmation!
+
+ # Build a stream handler by wrapping the user-provided callback with a decoder
+ # or defaulting to a JSON-decoding retransmitter.
+ handler = worker_pool_stream_handler(broadcasting, callback || block, coder: coder)
+ streams[broadcasting] = handler
+
+ connection.server.event_loop.post do
+ pubsub.subscribe(broadcasting, handler, lambda do
+ ensure_confirmation_sent
+ logger.info "#{self.class.name} is streaming from #{broadcasting}"
+ end)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -368,15 +368,15 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 146
- def stream_or_reject_for(model)
- if model
- stream_for model
- else
- reject
- end
- end
+def stream_or_reject_for(model)
+ if model
+ stream_for model
+ else
+ reject
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase.html b/src/classes/ActionCable/Channel/TestCase.html
index 08fb28c0cf..6317ff44d0 100644
--- a/src/classes/ActionCable/Channel/TestCase.html
+++ b/src/classes/ActionCable/Channel/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior.html b/src/classes/ActionCable/Channel/TestCase/Behavior.html
index b5f3a5cbb7..5a8ea0fd78 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -196,11 +196,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 282
- def assert_broadcast_on(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcast_on(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -231,11 +231,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 278
- def assert_broadcasts(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcasts(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,11 +272,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 326
- def assert_has_no_stream(stream)
- assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
- end
+def assert_has_no_stream(stream)
+ assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -313,11 +313,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 337
- def assert_has_no_stream_for(object)
- assert_has_no_stream(broadcasting_for(object))
- end
+def assert_has_no_stream_for(object)
+ assert_has_no_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -354,11 +354,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 304
- def assert_has_stream(stream)
- assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
- end
+def assert_has_stream(stream)
+ assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -395,11 +395,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 315
- def assert_has_stream_for(object)
- assert_has_stream(broadcasting_for(object))
- end
+def assert_has_stream_for(object)
+ assert_has_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -436,11 +436,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 293
- def assert_no_streams
- assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
- end
+def assert_no_streams
+ assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -473,12 +473,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 266
- def perform(action, data = {})
- check_subscribed!
- subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
- end
+def perform(action, data = {})
+ check_subscribed!
+ subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -516,11 +516,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 243
- def stub_connection(identifiers = {})
- @connection = ConnectionStub.new(identifiers)
- end
+def stub_connection(identifiers = {})
+ @connection = ConnectionStub.new(identifiers)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -551,15 +551,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 249
- def subscribe(params = {})
- @connection ||= stub_connection
- @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
- @subscription.singleton_class.include(ChannelStub)
- @subscription.subscribe_to_channel
- @subscription
- end
+def subscribe(params = {})
+ @connection ||= stub_connection
+ @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
+ @subscription.singleton_class.include(ChannelStub)
+ @subscription.subscribe_to_channel
+ @subscription
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -590,12 +590,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 272
- def transmissions
- # Return only directly sent message (via #transmit)
- connection.transmissions.filter_map { |data| data["message"] }
- end
+def transmissions
+ # Return only directly sent message (via #transmit)
+ connection.transmissions.filter_map { |data| data["message"] }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -626,12 +626,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 258
- def unsubscribe
- check_subscribed!
- subscription.unsubscribe_from_channel
- end
+def unsubscribe
+ check_subscribed!
+ subscription.unsubscribe_from_channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
index 48ea87f130..57efb4cdac 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 219
- def channel_class
- if channel = self._channel_class
- channel
- else
- tests determine_default_channel(name)
- end
- end
+def channel_class
+ if channel = self._channel_class
+ channel
+ else
+ tests determine_default_channel(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 227
- def determine_default_channel(name)
- channel = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Channel::Base
- end
- raise NonInferrableChannelError.new(name) if channel.nil?
- channel
- end
+def determine_default_channel(name)
+ channel = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Channel::Base
+ end
+ raise NonInferrableChannelError.new(name) if channel.nil?
+ channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 208
- def tests(channel)
- case channel
- when String, Symbol
- self._channel_class = channel.to_s.camelize.constantize
- when Module
- self._channel_class = channel
- else
- raise NonInferrableChannelError.new(channel)
- end
- end
+def tests(channel)
+ case channel
+ when String, Symbol
+ self._channel_class = channel.to_s.camelize.constantize
+ when Module
+ self._channel_class = channel
+ else
+ raise NonInferrableChannelError.new(channel)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection.html b/src/classes/ActionCable/Connection.html
index f832214f0e..7889c75284 100644
--- a/src/classes/ActionCable/Connection.html
+++ b/src/classes/ActionCable/Connection.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Assertions.html b/src/classes/ActionCable/Connection/Assertions.html
index 933ea80e4c..6b10ec5528 100644
--- a/src/classes/ActionCable/Connection/Assertions.html
+++ b/src/classes/ActionCable/Connection/Assertions.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 28
- def assert_reject_connection(&block)
- assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
- end
+def assert_reject_connection(&block)
+ assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization.html b/src/classes/ActionCable/Connection/Authorization.html
index feb855aa9e..baf85a37b3 100644
--- a/src/classes/ActionCable/Connection/Authorization.html
+++ b/src/classes/ActionCable/Connection/Authorization.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -97,12 +97,12 @@
# File actioncable/lib/action_cable/connection/authorization.rb, line 12
- def reject_unauthorized_connection
- logger.error "An unauthorized connection attempt was rejected"
- raise UnauthorizedError
- end
+def reject_unauthorized_connection
+ logger.error "An unauthorized connection attempt was rejected"
+ raise UnauthorizedError
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
index b63b282b0b..ff36299a28 100644
--- a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
+++ b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/Base.html b/src/classes/ActionCable/Connection/Base.html
index 36a2f1e1bb..ea0d62911f 100644
--- a/src/classes/ActionCable/Connection/Base.html
+++ b/src/classes/ActionCable/Connection/Base.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -255,21 +255,21 @@
# File actioncable/lib/action_cable/connection/base.rb, line 67
- def initialize(server, env, coder: ActiveSupport::JSON)
- @server, @env, @coder = server, env, coder
+def initialize(server, env, coder: ActiveSupport::JSON)
+ @server, @env, @coder = server, env, coder
- @worker_pool = server.worker_pool
- @logger = new_tagged_logger
+ @worker_pool = server.worker_pool
+ @logger = new_tagged_logger
- @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
+ @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
- @_internal_subscriptions = nil
- @started_at = Time.now
- end
+ @_internal_subscriptions = nil
+ @started_at = Time.now
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -304,11 +304,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 147
- def beat
- transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
- end
+def beat
+ transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -339,16 +339,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 120
- def close(reason: nil, reconnect: true)
- transmit(
- type: ActionCable::INTERNAL[:message_types][:disconnect],
- reason: reason,
- reconnect: reconnect
- )
- websocket.close
- end
+def close(reason: nil, reconnect: true)
+ transmit(
+ type: ActionCable::INTERNAL[:message_types][:disconnect],
+ reason: reason,
+ reconnect: reconnect
+ )
+ websocket.close
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -379,13 +379,13 @@
# File actioncable/lib/action_cable/connection/base.rb, line 109
- def handle_channel_command(payload)
- run_callbacks :command do
- subscriptions.execute_command payload
- end
- end
+def handle_channel_command(payload)
+ run_callbacks :command do
+ subscriptions.execute_command payload
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -416,11 +416,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 131
- def send_async(method, *arguments)
- worker_pool.async_invoke(self, method, *arguments)
- end
+def send_async(method, *arguments)
+ worker_pool.async_invoke(self, method, *arguments)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -451,16 +451,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 138
- def statistics
- {
- identifier: connection_identifier,
- started_at: @started_at,
- subscriptions: subscriptions.identifiers,
- request_id: @env["action_dispatch.request_id"]
- }
- end
+def statistics
+ {
+ identifier: connection_identifier,
+ started_at: @started_at,
+ subscriptions: subscriptions.identifiers,
+ request_id: @env["action_dispatch.request_id"]
+ }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -494,11 +494,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 187
- def cookies # :doc:
- request.cookie_jar
- end
+def cookies # :doc:
+ request.cookie_jar
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -529,14 +529,14 @@
# File actioncable/lib/action_cable/connection/base.rb, line 178
- def request # :doc:
- @request ||= begin
- environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
- ActionDispatch::Request.new(environment || env)
- end
- end
+def request # :doc:
+ @request ||= begin
+ environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
+ ActionDispatch::Request.new(environment || env)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Callbacks.html b/src/classes/ActionCable/Connection/Callbacks.html
index 818958bf81..d6504ca284 100644
--- a/src/classes/ActionCable/Connection/Callbacks.html
+++ b/src/classes/ActionCable/Connection/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
index 933056a029..6376d7195b 100644
--- a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,11 +90,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 47
- def after_command(*methods, &block)
- set_callback(:command, :after, *methods, &block)
- end
+def after_command(*methods, &block)
+ set_callback(:command, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -125,11 +125,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 51
- def around_command(*methods, &block)
- set_callback(:command, :around, *methods, &block)
- end
+def around_command(*methods, &block)
+ set_callback(:command, :around, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -160,11 +160,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 43
- def before_command(*methods, &block)
- set_callback(:command, :before, *methods, &block)
- end
+def before_command(*methods, &block)
+ set_callback(:command, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification.html b/src/classes/ActionCable/Connection/Identification.html
index f3dcea9bfc..063ca88999 100644
--- a/src/classes/ActionCable/Connection/Identification.html
+++ b/src/classes/ActionCable/Connection/Identification.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,15 +95,15 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 29
- def connection_identifier
- unless defined? @connection_identifier
- @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
- end
+def connection_identifier
+ unless defined? @connection_identifier
+ @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
+ end
- @connection_identifier
- end
+ @connection_identifier
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification/ClassMethods.html b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
index 324ded31f5..a3395ef8a3 100644
--- a/src/classes/ActionCable/Connection/Identification/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -84,12 +84,12 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 21
- def identified_by(*identifiers)
- Array(identifiers).each { |identifier| attr_accessor identifier }
- self.identifiers += identifiers
- end
+def identified_by(*identifiers)
+ Array(identifiers).each { |identifier| attr_accessor identifier }
+ self.identifiers += identifiers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/InternalChannel.html b/src/classes/ActionCable/Connection/InternalChannel.html
index 9b0144f690..cfdccceaf4 100644
--- a/src/classes/ActionCable/Connection/InternalChannel.html
+++ b/src/classes/ActionCable/Connection/InternalChannel.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
index 7167904452..bf0c696d62 100644
--- a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
+++ b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 15
- def initialize(name)
- super "Unable to determine the connection to test from #{name}. " +
- "You'll need to specify it using `tests YourConnection` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the connection to test from #{name}. " +
+ "You'll need to specify it using `tests YourConnection` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/StreamEventLoop.html b/src/classes/ActionCable/Connection/StreamEventLoop.html
index 2b71a213e3..f7c49354ef 100644
--- a/src/classes/ActionCable/Connection/StreamEventLoop.html
+++ b/src/classes/ActionCable/Connection/StreamEventLoop.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -111,16 +111,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 10
- def initialize
- @nio = @executor = @thread = nil
- @map = {}
- @stopping = false
- @todo = Queue.new
-
- @spawn_mutex = Mutex.new
- end
+def initialize
+ @nio = @executor = @thread = nil
+ @map = {}
+ @stopping = false
+ @todo = Queue.new
+
+ @spawn_mutex = Mutex.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -155,15 +155,15 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 30
- def attach(io, stream)
- @todo << lambda do
- @map[io] = @nio.register(io, :r)
- @map[io].value = stream
- end
- wakeup
- end
+def attach(io, stream)
+ @todo << lambda do
+ @map[io] = @nio.register(io, :r)
+ @map[io].value = stream
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -194,16 +194,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 38
- def detach(io, stream)
- @todo << lambda do
- @nio.deregister io
- @map.delete io
- io.close
- end
- wakeup
- end
+def detach(io, stream)
+ @todo << lambda do
+ @nio.deregister io
+ @map.delete io
+ io.close
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -234,14 +234,14 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 23
- def post(task = nil, &block)
- task ||= block
+def post(task = nil, &block)
+ task ||= block
- spawn
- @executor << task
- end
+ spawn
+ @executor << task
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,12 +272,12 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 56
- def stop
- @stopping = true
- wakeup if @nio
- end
+def stop
+ @stopping = true
+ wakeup if @nio
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -308,11 +308,11 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 19
- def timer(interval, &block)
- Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
- end
+def timer(interval, &block)
+ Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -343,16 +343,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 47
- def writes_pending(io)
- @todo << lambda do
- if monitor = @map[io]
- monitor.interests = :rw
- end
- end
- wakeup
- end
+def writes_pending(io)
+ @todo << lambda do
+ if monitor = @map[io]
+ monitor.interests = :rw
+ end
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
index f4d5cacc63..99731855fb 100644
--- a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
+++ b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -121,12 +121,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 16
- def initialize(logger, tags:)
- @logger = logger
- @tags = tags.flatten
- end
+def initialize(logger, tags:)
+ @logger = logger
+ @tags = tags.flatten
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -161,12 +161,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 21
- def add_tags(*tags)
- @tags += tags.flatten
- @tags = @tags.uniq
- end
+def add_tags(*tags)
+ @tags += tags.flatten
+ @tags = @tags.uniq
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -197,16 +197,16 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 26
- def tag(logger, &block)
- if logger.respond_to?(:tagged)
- current_tags = tags - logger.formatter.current_tags
- logger.tagged(*current_tags, &block)
- else
- yield
- end
- end
+def tag(logger, &block)
+ if logger.respond_to?(:tagged)
+ current_tags = tags - logger.formatter.current_tags
+ logger.tagged(*current_tags, &block)
+ else
+ yield
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,11 +240,11 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 42
- def log(type, message, &block) # :doc:
- tag(@logger) { @logger.send type, message, &block }
- end
+def log(type, message, &block) # :doc:
+ tag(@logger) { @logger.send type, message, &block }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase.html b/src/classes/ActionCable/Connection/TestCase.html
index 948378e491..39bc5cb056 100644
--- a/src/classes/ActionCable/Connection/TestCase.html
+++ b/src/classes/ActionCable/Connection/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior.html b/src/classes/ActionCable/Connection/TestCase/Behavior.html
index b87870becd..4ee0debbea 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -163,19 +163,19 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 192
- def connect(path = ActionCable.server.config.mount_path, **request_params)
- path ||= DEFAULT_PATH
+def connect(path = ActionCable.server.config.mount_path, **request_params)
+ path ||= DEFAULT_PATH
- connection = self.class.connection_class.allocate
- connection.singleton_class.include(TestConnection)
- connection.send(:initialize, build_test_request(path, **request_params))
- connection.connect if connection.respond_to?(:connect)
+ connection = self.class.connection_class.allocate
+ connection.singleton_class.include(TestConnection)
+ connection.send(:initialize, build_test_request(path, **request_params))
+ connection.connect if connection.respond_to?(:connect)
- # Only set instance variable if connected successfully
- @connection = connection
- end
+ # Only set instance variable if connected successfully
+ @connection = connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -206,11 +206,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 212
- def cookies
- @cookie_jar ||= TestCookieJar.new
- end
+def cookies
+ @cookie_jar ||= TestCookieJar.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -241,14 +241,14 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 205
- def disconnect
- raise "Must be connected!" if connection.nil?
+def disconnect
+ raise "Must be connected!" if connection.nil?
- connection.disconnect if connection.respond_to?(:disconnect)
- @connection = nil
- end
+ connection.disconnect if connection.respond_to?(:disconnect)
+ @connection = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
index 63444f4b27..99fc0e3f6f 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 167
- def connection_class
- if connection = self._connection_class
- connection
- else
- tests determine_default_connection(name)
- end
- end
+def connection_class
+ if connection = self._connection_class
+ connection
+ else
+ tests determine_default_connection(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 175
- def determine_default_connection(name)
- connection = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Connection::Base
- end
- raise NonInferrableConnectionError.new(name) if connection.nil?
- connection
- end
+def determine_default_connection(name)
+ connection = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Connection::Base
+ end
+ raise NonInferrableConnectionError.new(name) if connection.nil?
+ connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
+ Ruby on Rails 8.1.0.rc1
@@ -82,7 +82,7 @@ Action process
end
-
In this example, the subscribed and unsubscribed methods are not callable methods, as they were already declared in ActionCable::Channel::Base, but #appear and #away are. #generate_connection_token is also not callable, since it’s a private method. You’ll see that appear accepts a data parameter, which it then uses as part of its model call. #away does not, since it’s simply a trigger action.
In this example, the subscribed and unsubscribed methods are not callable methods, as they were already declared in ActionCable::Channel::Base, but appear and away are. generate_connection_token is also not callable, since it’s a private method. You’ll see that appear accepts a data parameter, which it then uses as part of its model call. away does not, since it’s simply a trigger action.
Also note that in this example, current_user is available because it was marked as an identifying attribute on the connection. All such identifiers will automatically create a delegation method of the same name on the channel instance.
Returns
# File actioncable/lib/action_cable/channel/base.rb, line 128
- def action_methods
- @action_methods ||= begin
- # All public instance methods of this class, including ancestors
- methods = (public_instance_methods(true) -
- # Except for public instance methods of Base and its ancestors
- ActionCable::Channel::Base.public_instance_methods(true) +
- # Be sure to include shadowed public instance methods of this class
- public_instance_methods(false)).uniq.map(&:to_s)
- methods.to_set
- end
- end
-
- 🔎 See on GitHub
+def action_methods
+ @action_methods ||= begin
+ # All public instance methods of this class, including ancestors
+ methods = (public_instance_methods(true) -
+ # Except for public instance methods of Base and its ancestors
+ ActionCable::Channel::Base.public_instance_methods(true) +
+ # Be sure to include shadowed public instance methods of this class
+ public_instance_methods(false)).uniq
+
+ methods.reject! { |m| m.start_with?("_") }
+ methods.map!(&:name)
+ methods.to_set
+ end
+end
+
+ 🔎 See on GitHub
@@ -349,26 +352,26 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 155
- def initialize(connection, identifier, params = {})
- @connection = connection
- @identifier = identifier
- @params = params
+ # File actioncable/lib/action_cable/channel/base.rb, line 158
+def initialize(connection, identifier, params = {})
+ @connection = connection
+ @identifier = identifier
+ @params = params
- # When a channel is streaming via pubsub, we want to delay the confirmation
- # transmission until pubsub subscription is confirmed.
- #
- # The counter starts at 1 because it's awaiting a call to #subscribe_to_channel
- @defer_subscription_confirmation_counter = Concurrent::AtomicFixnum.new(1)
+ # When a channel is streaming via pubsub, we want to delay the confirmation
+ # transmission until pubsub subscription is confirmed.
+ #
+ # The counter starts at 1 because it's awaiting a call to #subscribe_to_channel
+ @defer_subscription_confirmation_counter = Concurrent::AtomicFixnum.new(1)
- @reject_subscription = nil
- @subscription_confirmation_sent = nil
- @unsubscribed = false
+ @reject_subscription = nil
+ @subscription_confirmation_sent = nil
+ @unsubscribed = false
- delegate_connection_identifiers
- end
+ delegate_connection_identifiers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -401,12 +404,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 144
- def clear_action_methods! # :doc:
- @action_methods = nil
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 147
+def clear_action_methods! # :doc:
+ @action_methods = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -436,13 +439,13 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 149
- def method_added(name) # :doc:
- super
- clear_action_methods!
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 152
+def method_added(name) # :doc:
+ super
+ clear_action_methods!
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -476,21 +479,21 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 176
- def perform_action(data)
- action = extract_action(data)
+ # File actioncable/lib/action_cable/channel/base.rb, line 179
+def perform_action(data)
+ action = extract_action(data)
- if processable_action?(action)
- payload = { channel_class: self.class.name, action: action, data: data }
- ActiveSupport::Notifications.instrument("perform_action.action_cable", payload) do
- dispatch_action(action, data)
- end
- else
- logger.error "Unable to process #{action_signature(action, data)}"
- end
- end
+ if processable_action?(action)
+ payload = { channel_class: self.class.name, action: action, data: data }
+ ActiveSupport::Notifications.instrument("perform_action.action_cable", payload) do
+ dispatch_action(action, data)
+ end
+ else
+ logger.error "Unable to process #{action_signature(action, data)}"
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -520,17 +523,17 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 191
- def subscribe_to_channel
- run_callbacks :subscribe do
- subscribed
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 194
+def subscribe_to_channel
+ run_callbacks :subscribe do
+ subscribed
+ end
- reject_subscription if subscription_rejected?
- ensure_confirmation_sent
- end
+ reject_subscription if subscription_rejected?
+ ensure_confirmation_sent
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -563,12 +566,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 250
- def defer_subscription_confirmation! # :doc:
- @defer_subscription_confirmation_counter.increment
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 253
+def defer_subscription_confirmation! # :doc:
+ @defer_subscription_confirmation_counter.increment
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -598,12 +601,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 254
- def defer_subscription_confirmation? # :doc:
- @defer_subscription_confirmation_counter.value > 0
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 257
+def defer_subscription_confirmation? # :doc:
+ @defer_subscription_confirmation_counter.value > 0
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -633,14 +636,14 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 244
- def ensure_confirmation_sent # :doc:
- return if subscription_rejected?
- @defer_subscription_confirmation_counter.decrement
- transmit_subscription_confirmation unless defer_subscription_confirmation?
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 247
+def ensure_confirmation_sent # :doc:
+ return if subscription_rejected?
+ @defer_subscription_confirmation_counter.decrement
+ transmit_subscription_confirmation unless defer_subscription_confirmation?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -670,12 +673,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 262
- def reject # :doc:
- @reject_subscription = true
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 265
+def reject # :doc:
+ @reject_subscription = true
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -705,12 +708,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 218
- def subscribed # :doc:
- # Override in subclasses
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 221
+def subscribed # :doc:
+ # Override in subclasses
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -740,12 +743,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 258
- def subscription_confirmation_sent? # :doc:
- @subscription_confirmation_sent
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 261
+def subscription_confirmation_sent? # :doc:
+ @subscription_confirmation_sent
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -775,12 +778,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 266
- def subscription_rejected? # :doc:
- @reject_subscription
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 269
+def subscription_rejected? # :doc:
+ @reject_subscription
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -810,21 +813,21 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 231
- def transmit(data, via: nil) # :doc:
- logger.debug do
- status = "#{self.class.name} transmitting #{data.inspect.truncate(300)}"
- status += " (via #{via})" if via
- status
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 234
+def transmit(data, via: nil) # :doc:
+ logger.debug do
+ status = "#{self.class.name} transmitting #{data.inspect.truncate(300)}"
+ status += " (via #{via})" if via
+ status
+ end
- payload = { channel_class: self.class.name, data: data, via: via }
- ActiveSupport::Notifications.instrument("transmit.action_cable", payload) do
- connection.transmit identifier: @identifier, message: data
- end
- end
+ payload = { channel_class: self.class.name, data: data, via: via }
+ ActiveSupport::Notifications.instrument("transmit.action_cable", payload) do
+ connection.transmit identifier: @identifier, message: data
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -854,12 +857,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 224
- def unsubscribed # :doc:
- # Override in subclasses
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 227
+def unsubscribed # :doc:
+ # Override in subclasses
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Broadcasting.html b/src/classes/ActionCable/Channel/Broadcasting.html
index bb71b89445..7fecc3f6b8 100644
--- a/src/classes/ActionCable/Channel/Broadcasting.html
+++ b/src/classes/ActionCable/Channel/Broadcasting.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -99,11 +99,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 45
- def broadcast_to(model, message)
- self.class.broadcast_to(model, message)
- end
+def broadcast_to(model, message)
+ self.class.broadcast_to(model, message)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -134,11 +134,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 41
- def broadcasting_for(model)
- self.class.broadcasting_for(model)
- end
+def broadcasting_for(model)
+ self.class.broadcasting_for(model)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html b/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
index 684bccb1ab..432bb5d74f 100644
--- a/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 14
- def broadcast_to(broadcastables, message)
- ActionCable.server.broadcast(broadcasting_for(broadcastables), message)
- end
+def broadcast_to(broadcastables, message)
+ ActionCable.server.broadcast(broadcasting_for(broadcastables), message)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -126,11 +126,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 24
- def broadcasting_for(broadcastables)
- serialize_broadcasting([ channel_name ] + Array(broadcastables))
- end
+def broadcasting_for(broadcastables)
+ serialize_broadcasting([ channel_name ] + Array(broadcastables))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Callbacks.html b/src/classes/ActionCable/Channel/Callbacks.html
index 076bdbc8fa..64985186c3 100644
--- a/src/classes/ActionCable/Channel/Callbacks.html
+++ b/src/classes/ActionCable/Channel/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html b/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
index 6ee4317311..7949b5fdf6 100644
--- a/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -111,11 +111,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 60
- def after_subscribe(*methods, &block)
- set_callback(:subscribe, :after, *methods, &block)
- end
+def after_subscribe(*methods, &block)
+ set_callback(:subscribe, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -150,11 +150,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 69
- def after_unsubscribe(*methods, &block)
- set_callback(:unsubscribe, :after, *methods, &block)
- end
+def after_unsubscribe(*methods, &block)
+ set_callback(:unsubscribe, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -185,11 +185,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 48
- def before_subscribe(*methods, &block)
- set_callback(:subscribe, :before, *methods, &block)
- end
+def before_subscribe(*methods, &block)
+ set_callback(:subscribe, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -220,11 +220,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 65
- def before_unsubscribe(*methods, &block)
- set_callback(:unsubscribe, :before, *methods, &block)
- end
+def before_unsubscribe(*methods, &block)
+ set_callback(:unsubscribe, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/ChannelStub.html b/src/classes/ActionCable/Channel/ChannelStub.html
index 9db98daac2..d004896dc5 100644
--- a/src/classes/ActionCable/Channel/ChannelStub.html
+++ b/src/classes/ActionCable/Channel/ChannelStub.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -25,7 +25,7 @@
Action Cable Channel Stub
-
Stub stream_from to track streams for the channel. Add public aliases for subscription_confirmation_sent? and subscription_rejected?.
+Stub stream_from to track streams for the channel. Add public aliases for subscription_confirmation_sent? and subscription_rejected?.
@@ -114,11 +114,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 25
- def confirmed?
- subscription_confirmation_sent?
- end
+def confirmed?
+ subscription_confirmation_sent?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -149,11 +149,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 29
- def rejected?
- subscription_rejected?
- end
+def rejected?
+ subscription_rejected?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -188,9 +188,9 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 46
- def start_periodic_timers; end
+def start_periodic_timers; end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -221,11 +221,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 37
- def stop_all_streams
- @_streams = []
- end
+def stop_all_streams
+ @_streams = []
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -281,11 +281,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 33
- def stream_from(broadcasting, *)
- streams << broadcasting
- end
+def stream_from(broadcasting, *)
+ streams << broadcasting
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -316,11 +316,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 41
- def streams
- @_streams ||= []
- end
+def streams
+ @_streams ||= []
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/ConnectionStub.html b/src/classes/ActionCable/Channel/ConnectionStub.html
index 62c52b567f..0fdc0d8690 100644
--- a/src/classes/ActionCable/Channel/ConnectionStub.html
+++ b/src/classes/ActionCable/Channel/ConnectionStub.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -141,20 +141,20 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 55
- def initialize(identifiers = {})
- @server = ActionCable.server
- @transmissions = []
-
- identifiers.each do |identifier, val|
- define_singleton_method(identifier) { val }
- end
-
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @identifiers = identifiers.keys
- @logger = ActiveSupport::TaggedLogging.new ActiveSupport::Logger.new(StringIO.new)
- end
+def initialize(identifiers = {})
+ @server = ActionCable.server
+ @transmissions = []
+
+ identifiers.each do |identifier, val|
+ define_singleton_method(identifier) { val }
+ end
+
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @identifiers = identifiers.keys
+ @logger = ActiveSupport::TaggedLogging.new ActiveSupport::Logger.new(StringIO.new)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -189,11 +189,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 72
- def connection_identifier
- @connection_identifier ||= connection_gid(identifiers.filter_map { |id| send(id.to_sym) if id })
- end
+def connection_identifier
+ @connection_identifier ||= connection_gid(identifiers.filter_map { |id| send(id.to_sym) if id })
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -224,11 +224,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 68
- def transmit(cable_message)
- transmissions << cable_message.with_indifferent_access
- end
+def transmit(cable_message)
+ transmissions << cable_message.with_indifferent_access
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Naming.html b/src/classes/ActionCable/Channel/Naming.html
index 84bfc0232c..db2aa18589 100644
--- a/src/classes/ActionCable/Channel/Naming.html
+++ b/src/classes/ActionCable/Channel/Naming.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,11 +95,11 @@
# File actioncable/lib/action_cable/channel/naming.rb, line 23
- def channel_name
- self.class.channel_name
- end
+def channel_name
+ self.class.channel_name
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Naming/ClassMethods.html b/src/classes/ActionCable/Channel/Naming/ClassMethods.html
index b847309f12..e99c0744a7 100644
--- a/src/classes/ActionCable/Channel/Naming/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Naming/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -66,7 +66,7 @@
- Returns the name of the channel, underscored, without the Channel ending. If the channel is in a namespace, then the namespaces are represented by single colon separators in the channel name.
+ Returns the name of the channel, underscored, without the Channel ending. If the channel is in a namespace, then the namespaces are represented by single colon separators in the channel name.
ChatChannel.channel_name # => 'chat'
Chats::AppearancesChannel.channel_name # => 'chats:appearances'
@@ -87,11 +87,11 @@
# File actioncable/lib/action_cable/channel/naming.rb, line 18
- def channel_name
- @channel_name ||= name.delete_suffix("Channel").gsub("::", ":").underscore
- end
+def channel_name
+ @channel_name ||= name.delete_suffix("Channel").gsub("::", ":").underscore
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/NonInferrableChannelError.html b/src/classes/ActionCable/Channel/NonInferrableChannelError.html
index 034c36b135..1eac81cbd2 100644
--- a/src/classes/ActionCable/Channel/NonInferrableChannelError.html
+++ b/src/classes/ActionCable/Channel/NonInferrableChannelError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 13
- def initialize(name)
- super "Unable to determine the channel to test from #{name}. " +
- "You'll need to specify it using `tests YourChannel` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the channel to test from #{name}. " +
+ "You'll need to specify it using `tests YourChannel` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/PeriodicTimers.html b/src/classes/ActionCable/Channel/PeriodicTimers.html
index 88facef675..561da6e0dd 100644
--- a/src/classes/ActionCable/Channel/PeriodicTimers.html
+++ b/src/classes/ActionCable/Channel/PeriodicTimers.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html b/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
index 233865e2e3..a694f6de16 100644
--- a/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -91,30 +91,30 @@
# File actioncable/lib/action_cable/channel/periodic_timers.rb, line 31
- def periodically(callback_or_method_name = nil, every:, &block)
- callback =
- if block_given?
- raise ArgumentError, "Pass a block or provide a callback arg, not both" if callback_or_method_name
- block
- else
- case callback_or_method_name
- when Proc
- callback_or_method_name
- when Symbol
- -> { __send__ callback_or_method_name }
- else
- raise ArgumentError, "Expected a Symbol method name or a Proc, got #{callback_or_method_name.inspect}"
- end
- end
-
- unless every.kind_of?(Numeric) && every > 0
- raise ArgumentError, "Expected every: to be a positive number of seconds, got #{every.inspect}"
- end
-
- self.periodic_timers += [[ callback, every: every ]]
- end
+def periodically(callback_or_method_name = nil, every:, &block)
+ callback =
+ if block_given?
+ raise ArgumentError, "Pass a block or provide a callback arg, not both" if callback_or_method_name
+ block
+ else
+ case callback_or_method_name
+ when Proc
+ callback_or_method_name
+ when Symbol
+ -> { __send__ callback_or_method_name }
+ else
+ raise ArgumentError, "Expected a Symbol method name or a Proc, got #{callback_or_method_name.inspect}"
+ end
+ end
+
+ unless every.kind_of?(Numeric) && every > 0
+ raise ArgumentError, "Expected every: to be a positive number of seconds, got #{every.inspect}"
+ end
+
+ self.periodic_timers += [[ callback, every: every ]]
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Streams.html b/src/classes/ActionCable/Channel/Streams.html
index 0967feb616..a2e686a3e9 100644
--- a/src/classes/ActionCable/Channel/Streams.html
+++ b/src/classes/ActionCable/Channel/Streams.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -167,14 +167,14 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 137
- def stop_all_streams
- streams.each do |broadcasting, callback|
- pubsub.unsubscribe broadcasting, callback
- logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
- end.clear
- end
+def stop_all_streams
+ streams.each do |broadcasting, callback|
+ pubsub.unsubscribe broadcasting, callback
+ logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
+ end.clear
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -205,11 +205,11 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 132
- def stop_stream_for(model)
- stop_stream_from(broadcasting_for(model))
- end
+def stop_stream_for(model)
+ stop_stream_from(broadcasting_for(model))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,15 +240,15 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 123
- def stop_stream_from(broadcasting)
- callback = streams.delete(broadcasting)
- if callback
- pubsub.unsubscribe(broadcasting, callback)
- logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
- end
- end
+def stop_stream_from(broadcasting)
+ callback = streams.delete(broadcasting)
+ if callback
+ pubsub.unsubscribe(broadcasting, callback)
+ logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -281,11 +281,11 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 118
- def stream_for(broadcastables, callback = nil, coder: nil, &block)
- stream_from(broadcasting_for(broadcastables), callback || block, coder: coder)
- end
+def stream_for(broadcastables, callback = nil, coder: nil, &block)
+ stream_from(broadcasting_for(broadcastables), callback || block, coder: coder)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -316,28 +316,28 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 90
- def stream_from(broadcasting, callback = nil, coder: nil, &block)
- return if unsubscribed?
-
- broadcasting = String(broadcasting)
-
- # Don't send the confirmation until pubsub#subscribe is successful
- defer_subscription_confirmation!
-
- # Build a stream handler by wrapping the user-provided callback with a decoder
- # or defaulting to a JSON-decoding retransmitter.
- handler = worker_pool_stream_handler(broadcasting, callback || block, coder: coder)
- streams[broadcasting] = handler
-
- connection.server.event_loop.post do
- pubsub.subscribe(broadcasting, handler, lambda do
- ensure_confirmation_sent
- logger.info "#{self.class.name} is streaming from #{broadcasting}"
- end)
- end
- end
+def stream_from(broadcasting, callback = nil, coder: nil, &block)
+ return if unsubscribed?
+
+ broadcasting = String(broadcasting)
+
+ # Don't send the confirmation until pubsub#subscribe is successful
+ defer_subscription_confirmation!
+
+ # Build a stream handler by wrapping the user-provided callback with a decoder
+ # or defaulting to a JSON-decoding retransmitter.
+ handler = worker_pool_stream_handler(broadcasting, callback || block, coder: coder)
+ streams[broadcasting] = handler
+
+ connection.server.event_loop.post do
+ pubsub.subscribe(broadcasting, handler, lambda do
+ ensure_confirmation_sent
+ logger.info "#{self.class.name} is streaming from #{broadcasting}"
+ end)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -368,15 +368,15 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 146
- def stream_or_reject_for(model)
- if model
- stream_for model
- else
- reject
- end
- end
+def stream_or_reject_for(model)
+ if model
+ stream_for model
+ else
+ reject
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase.html b/src/classes/ActionCable/Channel/TestCase.html
index 08fb28c0cf..6317ff44d0 100644
--- a/src/classes/ActionCable/Channel/TestCase.html
+++ b/src/classes/ActionCable/Channel/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior.html b/src/classes/ActionCable/Channel/TestCase/Behavior.html
index b5f3a5cbb7..5a8ea0fd78 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -196,11 +196,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 282
- def assert_broadcast_on(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcast_on(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -231,11 +231,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 278
- def assert_broadcasts(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcasts(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,11 +272,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 326
- def assert_has_no_stream(stream)
- assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
- end
+def assert_has_no_stream(stream)
+ assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -313,11 +313,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 337
- def assert_has_no_stream_for(object)
- assert_has_no_stream(broadcasting_for(object))
- end
+def assert_has_no_stream_for(object)
+ assert_has_no_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -354,11 +354,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 304
- def assert_has_stream(stream)
- assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
- end
+def assert_has_stream(stream)
+ assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -395,11 +395,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 315
- def assert_has_stream_for(object)
- assert_has_stream(broadcasting_for(object))
- end
+def assert_has_stream_for(object)
+ assert_has_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -436,11 +436,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 293
- def assert_no_streams
- assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
- end
+def assert_no_streams
+ assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -473,12 +473,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 266
- def perform(action, data = {})
- check_subscribed!
- subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
- end
+def perform(action, data = {})
+ check_subscribed!
+ subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -516,11 +516,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 243
- def stub_connection(identifiers = {})
- @connection = ConnectionStub.new(identifiers)
- end
+def stub_connection(identifiers = {})
+ @connection = ConnectionStub.new(identifiers)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -551,15 +551,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 249
- def subscribe(params = {})
- @connection ||= stub_connection
- @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
- @subscription.singleton_class.include(ChannelStub)
- @subscription.subscribe_to_channel
- @subscription
- end
+def subscribe(params = {})
+ @connection ||= stub_connection
+ @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
+ @subscription.singleton_class.include(ChannelStub)
+ @subscription.subscribe_to_channel
+ @subscription
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -590,12 +590,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 272
- def transmissions
- # Return only directly sent message (via #transmit)
- connection.transmissions.filter_map { |data| data["message"] }
- end
+def transmissions
+ # Return only directly sent message (via #transmit)
+ connection.transmissions.filter_map { |data| data["message"] }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -626,12 +626,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 258
- def unsubscribe
- check_subscribed!
- subscription.unsubscribe_from_channel
- end
+def unsubscribe
+ check_subscribed!
+ subscription.unsubscribe_from_channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
index 48ea87f130..57efb4cdac 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 219
- def channel_class
- if channel = self._channel_class
- channel
- else
- tests determine_default_channel(name)
- end
- end
+def channel_class
+ if channel = self._channel_class
+ channel
+ else
+ tests determine_default_channel(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 227
- def determine_default_channel(name)
- channel = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Channel::Base
- end
- raise NonInferrableChannelError.new(name) if channel.nil?
- channel
- end
+def determine_default_channel(name)
+ channel = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Channel::Base
+ end
+ raise NonInferrableChannelError.new(name) if channel.nil?
+ channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 208
- def tests(channel)
- case channel
- when String, Symbol
- self._channel_class = channel.to_s.camelize.constantize
- when Module
- self._channel_class = channel
- else
- raise NonInferrableChannelError.new(channel)
- end
- end
+def tests(channel)
+ case channel
+ when String, Symbol
+ self._channel_class = channel.to_s.camelize.constantize
+ when Module
+ self._channel_class = channel
+ else
+ raise NonInferrableChannelError.new(channel)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection.html b/src/classes/ActionCable/Connection.html
index f832214f0e..7889c75284 100644
--- a/src/classes/ActionCable/Connection.html
+++ b/src/classes/ActionCable/Connection.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Assertions.html b/src/classes/ActionCable/Connection/Assertions.html
index 933ea80e4c..6b10ec5528 100644
--- a/src/classes/ActionCable/Connection/Assertions.html
+++ b/src/classes/ActionCable/Connection/Assertions.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 28
- def assert_reject_connection(&block)
- assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
- end
+def assert_reject_connection(&block)
+ assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization.html b/src/classes/ActionCable/Connection/Authorization.html
index feb855aa9e..baf85a37b3 100644
--- a/src/classes/ActionCable/Connection/Authorization.html
+++ b/src/classes/ActionCable/Connection/Authorization.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -97,12 +97,12 @@
# File actioncable/lib/action_cable/connection/authorization.rb, line 12
- def reject_unauthorized_connection
- logger.error "An unauthorized connection attempt was rejected"
- raise UnauthorizedError
- end
+def reject_unauthorized_connection
+ logger.error "An unauthorized connection attempt was rejected"
+ raise UnauthorizedError
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
index b63b282b0b..ff36299a28 100644
--- a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
+++ b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/Base.html b/src/classes/ActionCable/Connection/Base.html
index 36a2f1e1bb..ea0d62911f 100644
--- a/src/classes/ActionCable/Connection/Base.html
+++ b/src/classes/ActionCable/Connection/Base.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -255,21 +255,21 @@
# File actioncable/lib/action_cable/connection/base.rb, line 67
- def initialize(server, env, coder: ActiveSupport::JSON)
- @server, @env, @coder = server, env, coder
+def initialize(server, env, coder: ActiveSupport::JSON)
+ @server, @env, @coder = server, env, coder
- @worker_pool = server.worker_pool
- @logger = new_tagged_logger
+ @worker_pool = server.worker_pool
+ @logger = new_tagged_logger
- @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
+ @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
- @_internal_subscriptions = nil
- @started_at = Time.now
- end
+ @_internal_subscriptions = nil
+ @started_at = Time.now
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -304,11 +304,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 147
- def beat
- transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
- end
+def beat
+ transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -339,16 +339,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 120
- def close(reason: nil, reconnect: true)
- transmit(
- type: ActionCable::INTERNAL[:message_types][:disconnect],
- reason: reason,
- reconnect: reconnect
- )
- websocket.close
- end
+def close(reason: nil, reconnect: true)
+ transmit(
+ type: ActionCable::INTERNAL[:message_types][:disconnect],
+ reason: reason,
+ reconnect: reconnect
+ )
+ websocket.close
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -379,13 +379,13 @@
# File actioncable/lib/action_cable/connection/base.rb, line 109
- def handle_channel_command(payload)
- run_callbacks :command do
- subscriptions.execute_command payload
- end
- end
+def handle_channel_command(payload)
+ run_callbacks :command do
+ subscriptions.execute_command payload
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -416,11 +416,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 131
- def send_async(method, *arguments)
- worker_pool.async_invoke(self, method, *arguments)
- end
+def send_async(method, *arguments)
+ worker_pool.async_invoke(self, method, *arguments)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -451,16 +451,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 138
- def statistics
- {
- identifier: connection_identifier,
- started_at: @started_at,
- subscriptions: subscriptions.identifiers,
- request_id: @env["action_dispatch.request_id"]
- }
- end
+def statistics
+ {
+ identifier: connection_identifier,
+ started_at: @started_at,
+ subscriptions: subscriptions.identifiers,
+ request_id: @env["action_dispatch.request_id"]
+ }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -494,11 +494,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 187
- def cookies # :doc:
- request.cookie_jar
- end
+def cookies # :doc:
+ request.cookie_jar
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -529,14 +529,14 @@
# File actioncable/lib/action_cable/connection/base.rb, line 178
- def request # :doc:
- @request ||= begin
- environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
- ActionDispatch::Request.new(environment || env)
- end
- end
+def request # :doc:
+ @request ||= begin
+ environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
+ ActionDispatch::Request.new(environment || env)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Callbacks.html b/src/classes/ActionCable/Connection/Callbacks.html
index 818958bf81..d6504ca284 100644
--- a/src/classes/ActionCable/Connection/Callbacks.html
+++ b/src/classes/ActionCable/Connection/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
index 933056a029..6376d7195b 100644
--- a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,11 +90,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 47
- def after_command(*methods, &block)
- set_callback(:command, :after, *methods, &block)
- end
+def after_command(*methods, &block)
+ set_callback(:command, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -125,11 +125,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 51
- def around_command(*methods, &block)
- set_callback(:command, :around, *methods, &block)
- end
+def around_command(*methods, &block)
+ set_callback(:command, :around, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -160,11 +160,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 43
- def before_command(*methods, &block)
- set_callback(:command, :before, *methods, &block)
- end
+def before_command(*methods, &block)
+ set_callback(:command, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification.html b/src/classes/ActionCable/Connection/Identification.html
index f3dcea9bfc..063ca88999 100644
--- a/src/classes/ActionCable/Connection/Identification.html
+++ b/src/classes/ActionCable/Connection/Identification.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,15 +95,15 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 29
- def connection_identifier
- unless defined? @connection_identifier
- @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
- end
+def connection_identifier
+ unless defined? @connection_identifier
+ @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
+ end
- @connection_identifier
- end
+ @connection_identifier
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification/ClassMethods.html b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
index 324ded31f5..a3395ef8a3 100644
--- a/src/classes/ActionCable/Connection/Identification/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -84,12 +84,12 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 21
- def identified_by(*identifiers)
- Array(identifiers).each { |identifier| attr_accessor identifier }
- self.identifiers += identifiers
- end
+def identified_by(*identifiers)
+ Array(identifiers).each { |identifier| attr_accessor identifier }
+ self.identifiers += identifiers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/InternalChannel.html b/src/classes/ActionCable/Connection/InternalChannel.html
index 9b0144f690..cfdccceaf4 100644
--- a/src/classes/ActionCable/Connection/InternalChannel.html
+++ b/src/classes/ActionCable/Connection/InternalChannel.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
index 7167904452..bf0c696d62 100644
--- a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
+++ b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 15
- def initialize(name)
- super "Unable to determine the connection to test from #{name}. " +
- "You'll need to specify it using `tests YourConnection` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the connection to test from #{name}. " +
+ "You'll need to specify it using `tests YourConnection` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/StreamEventLoop.html b/src/classes/ActionCable/Connection/StreamEventLoop.html
index 2b71a213e3..f7c49354ef 100644
--- a/src/classes/ActionCable/Connection/StreamEventLoop.html
+++ b/src/classes/ActionCable/Connection/StreamEventLoop.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -111,16 +111,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 10
- def initialize
- @nio = @executor = @thread = nil
- @map = {}
- @stopping = false
- @todo = Queue.new
-
- @spawn_mutex = Mutex.new
- end
+def initialize
+ @nio = @executor = @thread = nil
+ @map = {}
+ @stopping = false
+ @todo = Queue.new
+
+ @spawn_mutex = Mutex.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -155,15 +155,15 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 30
- def attach(io, stream)
- @todo << lambda do
- @map[io] = @nio.register(io, :r)
- @map[io].value = stream
- end
- wakeup
- end
+def attach(io, stream)
+ @todo << lambda do
+ @map[io] = @nio.register(io, :r)
+ @map[io].value = stream
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -194,16 +194,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 38
- def detach(io, stream)
- @todo << lambda do
- @nio.deregister io
- @map.delete io
- io.close
- end
- wakeup
- end
+def detach(io, stream)
+ @todo << lambda do
+ @nio.deregister io
+ @map.delete io
+ io.close
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -234,14 +234,14 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 23
- def post(task = nil, &block)
- task ||= block
+def post(task = nil, &block)
+ task ||= block
- spawn
- @executor << task
- end
+ spawn
+ @executor << task
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,12 +272,12 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 56
- def stop
- @stopping = true
- wakeup if @nio
- end
+def stop
+ @stopping = true
+ wakeup if @nio
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -308,11 +308,11 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 19
- def timer(interval, &block)
- Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
- end
+def timer(interval, &block)
+ Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -343,16 +343,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 47
- def writes_pending(io)
- @todo << lambda do
- if monitor = @map[io]
- monitor.interests = :rw
- end
- end
- wakeup
- end
+def writes_pending(io)
+ @todo << lambda do
+ if monitor = @map[io]
+ monitor.interests = :rw
+ end
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
index f4d5cacc63..99731855fb 100644
--- a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
+++ b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -121,12 +121,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 16
- def initialize(logger, tags:)
- @logger = logger
- @tags = tags.flatten
- end
+def initialize(logger, tags:)
+ @logger = logger
+ @tags = tags.flatten
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -161,12 +161,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 21
- def add_tags(*tags)
- @tags += tags.flatten
- @tags = @tags.uniq
- end
+def add_tags(*tags)
+ @tags += tags.flatten
+ @tags = @tags.uniq
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -197,16 +197,16 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 26
- def tag(logger, &block)
- if logger.respond_to?(:tagged)
- current_tags = tags - logger.formatter.current_tags
- logger.tagged(*current_tags, &block)
- else
- yield
- end
- end
+def tag(logger, &block)
+ if logger.respond_to?(:tagged)
+ current_tags = tags - logger.formatter.current_tags
+ logger.tagged(*current_tags, &block)
+ else
+ yield
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,11 +240,11 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 42
- def log(type, message, &block) # :doc:
- tag(@logger) { @logger.send type, message, &block }
- end
+def log(type, message, &block) # :doc:
+ tag(@logger) { @logger.send type, message, &block }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase.html b/src/classes/ActionCable/Connection/TestCase.html
index 948378e491..39bc5cb056 100644
--- a/src/classes/ActionCable/Connection/TestCase.html
+++ b/src/classes/ActionCable/Connection/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior.html b/src/classes/ActionCable/Connection/TestCase/Behavior.html
index b87870becd..4ee0debbea 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -163,19 +163,19 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 192
- def connect(path = ActionCable.server.config.mount_path, **request_params)
- path ||= DEFAULT_PATH
+def connect(path = ActionCable.server.config.mount_path, **request_params)
+ path ||= DEFAULT_PATH
- connection = self.class.connection_class.allocate
- connection.singleton_class.include(TestConnection)
- connection.send(:initialize, build_test_request(path, **request_params))
- connection.connect if connection.respond_to?(:connect)
+ connection = self.class.connection_class.allocate
+ connection.singleton_class.include(TestConnection)
+ connection.send(:initialize, build_test_request(path, **request_params))
+ connection.connect if connection.respond_to?(:connect)
- # Only set instance variable if connected successfully
- @connection = connection
- end
+ # Only set instance variable if connected successfully
+ @connection = connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -206,11 +206,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 212
- def cookies
- @cookie_jar ||= TestCookieJar.new
- end
+def cookies
+ @cookie_jar ||= TestCookieJar.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -241,14 +241,14 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 205
- def disconnect
- raise "Must be connected!" if connection.nil?
+def disconnect
+ raise "Must be connected!" if connection.nil?
- connection.disconnect if connection.respond_to?(:disconnect)
- @connection = nil
- end
+ connection.disconnect if connection.respond_to?(:disconnect)
+ @connection = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
index 63444f4b27..99fc0e3f6f 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 167
- def connection_class
- if connection = self._connection_class
- connection
- else
- tests determine_default_connection(name)
- end
- end
+def connection_class
+ if connection = self._connection_class
+ connection
+ else
+ tests determine_default_connection(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 175
- def determine_default_connection(name)
- connection = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Connection::Base
- end
- raise NonInferrableConnectionError.new(name) if connection.nil?
- connection
- end
+def determine_default_connection(name)
+ connection = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Connection::Base
+ end
+ raise NonInferrableConnectionError.new(name) if connection.nil?
+ connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/channel/base.rb, line 155
- def initialize(connection, identifier, params = {})
- @connection = connection
- @identifier = identifier
- @params = params
+ # File actioncable/lib/action_cable/channel/base.rb, line 158
+def initialize(connection, identifier, params = {})
+ @connection = connection
+ @identifier = identifier
+ @params = params
- # When a channel is streaming via pubsub, we want to delay the confirmation
- # transmission until pubsub subscription is confirmed.
- #
- # The counter starts at 1 because it's awaiting a call to #subscribe_to_channel
- @defer_subscription_confirmation_counter = Concurrent::AtomicFixnum.new(1)
+ # When a channel is streaming via pubsub, we want to delay the confirmation
+ # transmission until pubsub subscription is confirmed.
+ #
+ # The counter starts at 1 because it's awaiting a call to #subscribe_to_channel
+ @defer_subscription_confirmation_counter = Concurrent::AtomicFixnum.new(1)
- @reject_subscription = nil
- @subscription_confirmation_sent = nil
- @unsubscribed = false
+ @reject_subscription = nil
+ @subscription_confirmation_sent = nil
+ @unsubscribed = false
- delegate_connection_identifiers
- end
+ delegate_connection_identifiers
+end# File actioncable/lib/action_cable/channel/base.rb, line 144
- def clear_action_methods! # :doc:
- @action_methods = nil
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 147
+def clear_action_methods! # :doc:
+ @action_methods = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -436,13 +439,13 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 149
- def method_added(name) # :doc:
- super
- clear_action_methods!
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 152
+def method_added(name) # :doc:
+ super
+ clear_action_methods!
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -476,21 +479,21 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 176
- def perform_action(data)
- action = extract_action(data)
+ # File actioncable/lib/action_cable/channel/base.rb, line 179
+def perform_action(data)
+ action = extract_action(data)
- if processable_action?(action)
- payload = { channel_class: self.class.name, action: action, data: data }
- ActiveSupport::Notifications.instrument("perform_action.action_cable", payload) do
- dispatch_action(action, data)
- end
- else
- logger.error "Unable to process #{action_signature(action, data)}"
- end
- end
+ if processable_action?(action)
+ payload = { channel_class: self.class.name, action: action, data: data }
+ ActiveSupport::Notifications.instrument("perform_action.action_cable", payload) do
+ dispatch_action(action, data)
+ end
+ else
+ logger.error "Unable to process #{action_signature(action, data)}"
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -520,17 +523,17 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 191
- def subscribe_to_channel
- run_callbacks :subscribe do
- subscribed
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 194
+def subscribe_to_channel
+ run_callbacks :subscribe do
+ subscribed
+ end
- reject_subscription if subscription_rejected?
- ensure_confirmation_sent
- end
+ reject_subscription if subscription_rejected?
+ ensure_confirmation_sent
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -563,12 +566,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 250
- def defer_subscription_confirmation! # :doc:
- @defer_subscription_confirmation_counter.increment
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 253
+def defer_subscription_confirmation! # :doc:
+ @defer_subscription_confirmation_counter.increment
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -598,12 +601,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 254
- def defer_subscription_confirmation? # :doc:
- @defer_subscription_confirmation_counter.value > 0
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 257
+def defer_subscription_confirmation? # :doc:
+ @defer_subscription_confirmation_counter.value > 0
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -633,14 +636,14 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 244
- def ensure_confirmation_sent # :doc:
- return if subscription_rejected?
- @defer_subscription_confirmation_counter.decrement
- transmit_subscription_confirmation unless defer_subscription_confirmation?
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 247
+def ensure_confirmation_sent # :doc:
+ return if subscription_rejected?
+ @defer_subscription_confirmation_counter.decrement
+ transmit_subscription_confirmation unless defer_subscription_confirmation?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -670,12 +673,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 262
- def reject # :doc:
- @reject_subscription = true
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 265
+def reject # :doc:
+ @reject_subscription = true
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -705,12 +708,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 218
- def subscribed # :doc:
- # Override in subclasses
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 221
+def subscribed # :doc:
+ # Override in subclasses
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -740,12 +743,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 258
- def subscription_confirmation_sent? # :doc:
- @subscription_confirmation_sent
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 261
+def subscription_confirmation_sent? # :doc:
+ @subscription_confirmation_sent
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -775,12 +778,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 266
- def subscription_rejected? # :doc:
- @reject_subscription
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 269
+def subscription_rejected? # :doc:
+ @reject_subscription
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -810,21 +813,21 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 231
- def transmit(data, via: nil) # :doc:
- logger.debug do
- status = "#{self.class.name} transmitting #{data.inspect.truncate(300)}"
- status += " (via #{via})" if via
- status
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 234
+def transmit(data, via: nil) # :doc:
+ logger.debug do
+ status = "#{self.class.name} transmitting #{data.inspect.truncate(300)}"
+ status += " (via #{via})" if via
+ status
+ end
- payload = { channel_class: self.class.name, data: data, via: via }
- ActiveSupport::Notifications.instrument("transmit.action_cable", payload) do
- connection.transmit identifier: @identifier, message: data
- end
- end
+ payload = { channel_class: self.class.name, data: data, via: via }
+ ActiveSupport::Notifications.instrument("transmit.action_cable", payload) do
+ connection.transmit identifier: @identifier, message: data
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -854,12 +857,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 224
- def unsubscribed # :doc:
- # Override in subclasses
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 227
+def unsubscribed # :doc:
+ # Override in subclasses
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Broadcasting.html b/src/classes/ActionCable/Channel/Broadcasting.html
index bb71b89445..7fecc3f6b8 100644
--- a/src/classes/ActionCable/Channel/Broadcasting.html
+++ b/src/classes/ActionCable/Channel/Broadcasting.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -99,11 +99,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 45
- def broadcast_to(model, message)
- self.class.broadcast_to(model, message)
- end
+def broadcast_to(model, message)
+ self.class.broadcast_to(model, message)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -134,11 +134,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 41
- def broadcasting_for(model)
- self.class.broadcasting_for(model)
- end
+def broadcasting_for(model)
+ self.class.broadcasting_for(model)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html b/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
index 684bccb1ab..432bb5d74f 100644
--- a/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 14
- def broadcast_to(broadcastables, message)
- ActionCable.server.broadcast(broadcasting_for(broadcastables), message)
- end
+def broadcast_to(broadcastables, message)
+ ActionCable.server.broadcast(broadcasting_for(broadcastables), message)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -126,11 +126,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 24
- def broadcasting_for(broadcastables)
- serialize_broadcasting([ channel_name ] + Array(broadcastables))
- end
+def broadcasting_for(broadcastables)
+ serialize_broadcasting([ channel_name ] + Array(broadcastables))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Callbacks.html b/src/classes/ActionCable/Channel/Callbacks.html
index 076bdbc8fa..64985186c3 100644
--- a/src/classes/ActionCable/Channel/Callbacks.html
+++ b/src/classes/ActionCable/Channel/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html b/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
index 6ee4317311..7949b5fdf6 100644
--- a/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -111,11 +111,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 60
- def after_subscribe(*methods, &block)
- set_callback(:subscribe, :after, *methods, &block)
- end
+def after_subscribe(*methods, &block)
+ set_callback(:subscribe, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -150,11 +150,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 69
- def after_unsubscribe(*methods, &block)
- set_callback(:unsubscribe, :after, *methods, &block)
- end
+def after_unsubscribe(*methods, &block)
+ set_callback(:unsubscribe, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -185,11 +185,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 48
- def before_subscribe(*methods, &block)
- set_callback(:subscribe, :before, *methods, &block)
- end
+def before_subscribe(*methods, &block)
+ set_callback(:subscribe, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -220,11 +220,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 65
- def before_unsubscribe(*methods, &block)
- set_callback(:unsubscribe, :before, *methods, &block)
- end
+def before_unsubscribe(*methods, &block)
+ set_callback(:unsubscribe, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/ChannelStub.html b/src/classes/ActionCable/Channel/ChannelStub.html
index 9db98daac2..d004896dc5 100644
--- a/src/classes/ActionCable/Channel/ChannelStub.html
+++ b/src/classes/ActionCable/Channel/ChannelStub.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -25,7 +25,7 @@
Action Cable Channel Stub
-
Stub stream_from to track streams for the channel. Add public aliases for subscription_confirmation_sent? and subscription_rejected?.
+Stub stream_from to track streams for the channel. Add public aliases for subscription_confirmation_sent? and subscription_rejected?.
@@ -114,11 +114,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 25
- def confirmed?
- subscription_confirmation_sent?
- end
+def confirmed?
+ subscription_confirmation_sent?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -149,11 +149,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 29
- def rejected?
- subscription_rejected?
- end
+def rejected?
+ subscription_rejected?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -188,9 +188,9 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 46
- def start_periodic_timers; end
+def start_periodic_timers; end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -221,11 +221,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 37
- def stop_all_streams
- @_streams = []
- end
+def stop_all_streams
+ @_streams = []
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -281,11 +281,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 33
- def stream_from(broadcasting, *)
- streams << broadcasting
- end
+def stream_from(broadcasting, *)
+ streams << broadcasting
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -316,11 +316,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 41
- def streams
- @_streams ||= []
- end
+def streams
+ @_streams ||= []
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/ConnectionStub.html b/src/classes/ActionCable/Channel/ConnectionStub.html
index 62c52b567f..0fdc0d8690 100644
--- a/src/classes/ActionCable/Channel/ConnectionStub.html
+++ b/src/classes/ActionCable/Channel/ConnectionStub.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -141,20 +141,20 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 55
- def initialize(identifiers = {})
- @server = ActionCable.server
- @transmissions = []
-
- identifiers.each do |identifier, val|
- define_singleton_method(identifier) { val }
- end
-
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @identifiers = identifiers.keys
- @logger = ActiveSupport::TaggedLogging.new ActiveSupport::Logger.new(StringIO.new)
- end
+def initialize(identifiers = {})
+ @server = ActionCable.server
+ @transmissions = []
+
+ identifiers.each do |identifier, val|
+ define_singleton_method(identifier) { val }
+ end
+
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @identifiers = identifiers.keys
+ @logger = ActiveSupport::TaggedLogging.new ActiveSupport::Logger.new(StringIO.new)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -189,11 +189,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 72
- def connection_identifier
- @connection_identifier ||= connection_gid(identifiers.filter_map { |id| send(id.to_sym) if id })
- end
+def connection_identifier
+ @connection_identifier ||= connection_gid(identifiers.filter_map { |id| send(id.to_sym) if id })
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -224,11 +224,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 68
- def transmit(cable_message)
- transmissions << cable_message.with_indifferent_access
- end
+def transmit(cable_message)
+ transmissions << cable_message.with_indifferent_access
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Naming.html b/src/classes/ActionCable/Channel/Naming.html
index 84bfc0232c..db2aa18589 100644
--- a/src/classes/ActionCable/Channel/Naming.html
+++ b/src/classes/ActionCable/Channel/Naming.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,11 +95,11 @@
# File actioncable/lib/action_cable/channel/naming.rb, line 23
- def channel_name
- self.class.channel_name
- end
+def channel_name
+ self.class.channel_name
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Naming/ClassMethods.html b/src/classes/ActionCable/Channel/Naming/ClassMethods.html
index b847309f12..e99c0744a7 100644
--- a/src/classes/ActionCable/Channel/Naming/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Naming/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -66,7 +66,7 @@
- Returns the name of the channel, underscored, without the Channel ending. If the channel is in a namespace, then the namespaces are represented by single colon separators in the channel name.
+ Returns the name of the channel, underscored, without the Channel ending. If the channel is in a namespace, then the namespaces are represented by single colon separators in the channel name.
ChatChannel.channel_name # => 'chat'
Chats::AppearancesChannel.channel_name # => 'chats:appearances'
@@ -87,11 +87,11 @@
# File actioncable/lib/action_cable/channel/naming.rb, line 18
- def channel_name
- @channel_name ||= name.delete_suffix("Channel").gsub("::", ":").underscore
- end
+def channel_name
+ @channel_name ||= name.delete_suffix("Channel").gsub("::", ":").underscore
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/NonInferrableChannelError.html b/src/classes/ActionCable/Channel/NonInferrableChannelError.html
index 034c36b135..1eac81cbd2 100644
--- a/src/classes/ActionCable/Channel/NonInferrableChannelError.html
+++ b/src/classes/ActionCable/Channel/NonInferrableChannelError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 13
- def initialize(name)
- super "Unable to determine the channel to test from #{name}. " +
- "You'll need to specify it using `tests YourChannel` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the channel to test from #{name}. " +
+ "You'll need to specify it using `tests YourChannel` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/PeriodicTimers.html b/src/classes/ActionCable/Channel/PeriodicTimers.html
index 88facef675..561da6e0dd 100644
--- a/src/classes/ActionCable/Channel/PeriodicTimers.html
+++ b/src/classes/ActionCable/Channel/PeriodicTimers.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html b/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
index 233865e2e3..a694f6de16 100644
--- a/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -91,30 +91,30 @@
# File actioncable/lib/action_cable/channel/periodic_timers.rb, line 31
- def periodically(callback_or_method_name = nil, every:, &block)
- callback =
- if block_given?
- raise ArgumentError, "Pass a block or provide a callback arg, not both" if callback_or_method_name
- block
- else
- case callback_or_method_name
- when Proc
- callback_or_method_name
- when Symbol
- -> { __send__ callback_or_method_name }
- else
- raise ArgumentError, "Expected a Symbol method name or a Proc, got #{callback_or_method_name.inspect}"
- end
- end
-
- unless every.kind_of?(Numeric) && every > 0
- raise ArgumentError, "Expected every: to be a positive number of seconds, got #{every.inspect}"
- end
-
- self.periodic_timers += [[ callback, every: every ]]
- end
+def periodically(callback_or_method_name = nil, every:, &block)
+ callback =
+ if block_given?
+ raise ArgumentError, "Pass a block or provide a callback arg, not both" if callback_or_method_name
+ block
+ else
+ case callback_or_method_name
+ when Proc
+ callback_or_method_name
+ when Symbol
+ -> { __send__ callback_or_method_name }
+ else
+ raise ArgumentError, "Expected a Symbol method name or a Proc, got #{callback_or_method_name.inspect}"
+ end
+ end
+
+ unless every.kind_of?(Numeric) && every > 0
+ raise ArgumentError, "Expected every: to be a positive number of seconds, got #{every.inspect}"
+ end
+
+ self.periodic_timers += [[ callback, every: every ]]
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Streams.html b/src/classes/ActionCable/Channel/Streams.html
index 0967feb616..a2e686a3e9 100644
--- a/src/classes/ActionCable/Channel/Streams.html
+++ b/src/classes/ActionCable/Channel/Streams.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -167,14 +167,14 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 137
- def stop_all_streams
- streams.each do |broadcasting, callback|
- pubsub.unsubscribe broadcasting, callback
- logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
- end.clear
- end
+def stop_all_streams
+ streams.each do |broadcasting, callback|
+ pubsub.unsubscribe broadcasting, callback
+ logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
+ end.clear
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -205,11 +205,11 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 132
- def stop_stream_for(model)
- stop_stream_from(broadcasting_for(model))
- end
+def stop_stream_for(model)
+ stop_stream_from(broadcasting_for(model))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,15 +240,15 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 123
- def stop_stream_from(broadcasting)
- callback = streams.delete(broadcasting)
- if callback
- pubsub.unsubscribe(broadcasting, callback)
- logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
- end
- end
+def stop_stream_from(broadcasting)
+ callback = streams.delete(broadcasting)
+ if callback
+ pubsub.unsubscribe(broadcasting, callback)
+ logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -281,11 +281,11 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 118
- def stream_for(broadcastables, callback = nil, coder: nil, &block)
- stream_from(broadcasting_for(broadcastables), callback || block, coder: coder)
- end
+def stream_for(broadcastables, callback = nil, coder: nil, &block)
+ stream_from(broadcasting_for(broadcastables), callback || block, coder: coder)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -316,28 +316,28 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 90
- def stream_from(broadcasting, callback = nil, coder: nil, &block)
- return if unsubscribed?
-
- broadcasting = String(broadcasting)
-
- # Don't send the confirmation until pubsub#subscribe is successful
- defer_subscription_confirmation!
-
- # Build a stream handler by wrapping the user-provided callback with a decoder
- # or defaulting to a JSON-decoding retransmitter.
- handler = worker_pool_stream_handler(broadcasting, callback || block, coder: coder)
- streams[broadcasting] = handler
-
- connection.server.event_loop.post do
- pubsub.subscribe(broadcasting, handler, lambda do
- ensure_confirmation_sent
- logger.info "#{self.class.name} is streaming from #{broadcasting}"
- end)
- end
- end
+def stream_from(broadcasting, callback = nil, coder: nil, &block)
+ return if unsubscribed?
+
+ broadcasting = String(broadcasting)
+
+ # Don't send the confirmation until pubsub#subscribe is successful
+ defer_subscription_confirmation!
+
+ # Build a stream handler by wrapping the user-provided callback with a decoder
+ # or defaulting to a JSON-decoding retransmitter.
+ handler = worker_pool_stream_handler(broadcasting, callback || block, coder: coder)
+ streams[broadcasting] = handler
+
+ connection.server.event_loop.post do
+ pubsub.subscribe(broadcasting, handler, lambda do
+ ensure_confirmation_sent
+ logger.info "#{self.class.name} is streaming from #{broadcasting}"
+ end)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -368,15 +368,15 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 146
- def stream_or_reject_for(model)
- if model
- stream_for model
- else
- reject
- end
- end
+def stream_or_reject_for(model)
+ if model
+ stream_for model
+ else
+ reject
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase.html b/src/classes/ActionCable/Channel/TestCase.html
index 08fb28c0cf..6317ff44d0 100644
--- a/src/classes/ActionCable/Channel/TestCase.html
+++ b/src/classes/ActionCable/Channel/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior.html b/src/classes/ActionCable/Channel/TestCase/Behavior.html
index b5f3a5cbb7..5a8ea0fd78 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -196,11 +196,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 282
- def assert_broadcast_on(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcast_on(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -231,11 +231,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 278
- def assert_broadcasts(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcasts(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,11 +272,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 326
- def assert_has_no_stream(stream)
- assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
- end
+def assert_has_no_stream(stream)
+ assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -313,11 +313,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 337
- def assert_has_no_stream_for(object)
- assert_has_no_stream(broadcasting_for(object))
- end
+def assert_has_no_stream_for(object)
+ assert_has_no_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -354,11 +354,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 304
- def assert_has_stream(stream)
- assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
- end
+def assert_has_stream(stream)
+ assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -395,11 +395,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 315
- def assert_has_stream_for(object)
- assert_has_stream(broadcasting_for(object))
- end
+def assert_has_stream_for(object)
+ assert_has_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -436,11 +436,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 293
- def assert_no_streams
- assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
- end
+def assert_no_streams
+ assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -473,12 +473,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 266
- def perform(action, data = {})
- check_subscribed!
- subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
- end
+def perform(action, data = {})
+ check_subscribed!
+ subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -516,11 +516,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 243
- def stub_connection(identifiers = {})
- @connection = ConnectionStub.new(identifiers)
- end
+def stub_connection(identifiers = {})
+ @connection = ConnectionStub.new(identifiers)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -551,15 +551,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 249
- def subscribe(params = {})
- @connection ||= stub_connection
- @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
- @subscription.singleton_class.include(ChannelStub)
- @subscription.subscribe_to_channel
- @subscription
- end
+def subscribe(params = {})
+ @connection ||= stub_connection
+ @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
+ @subscription.singleton_class.include(ChannelStub)
+ @subscription.subscribe_to_channel
+ @subscription
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -590,12 +590,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 272
- def transmissions
- # Return only directly sent message (via #transmit)
- connection.transmissions.filter_map { |data| data["message"] }
- end
+def transmissions
+ # Return only directly sent message (via #transmit)
+ connection.transmissions.filter_map { |data| data["message"] }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -626,12 +626,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 258
- def unsubscribe
- check_subscribed!
- subscription.unsubscribe_from_channel
- end
+def unsubscribe
+ check_subscribed!
+ subscription.unsubscribe_from_channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
index 48ea87f130..57efb4cdac 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 219
- def channel_class
- if channel = self._channel_class
- channel
- else
- tests determine_default_channel(name)
- end
- end
+def channel_class
+ if channel = self._channel_class
+ channel
+ else
+ tests determine_default_channel(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 227
- def determine_default_channel(name)
- channel = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Channel::Base
- end
- raise NonInferrableChannelError.new(name) if channel.nil?
- channel
- end
+def determine_default_channel(name)
+ channel = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Channel::Base
+ end
+ raise NonInferrableChannelError.new(name) if channel.nil?
+ channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 208
- def tests(channel)
- case channel
- when String, Symbol
- self._channel_class = channel.to_s.camelize.constantize
- when Module
- self._channel_class = channel
- else
- raise NonInferrableChannelError.new(channel)
- end
- end
+def tests(channel)
+ case channel
+ when String, Symbol
+ self._channel_class = channel.to_s.camelize.constantize
+ when Module
+ self._channel_class = channel
+ else
+ raise NonInferrableChannelError.new(channel)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection.html b/src/classes/ActionCable/Connection.html
index f832214f0e..7889c75284 100644
--- a/src/classes/ActionCable/Connection.html
+++ b/src/classes/ActionCable/Connection.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Assertions.html b/src/classes/ActionCable/Connection/Assertions.html
index 933ea80e4c..6b10ec5528 100644
--- a/src/classes/ActionCable/Connection/Assertions.html
+++ b/src/classes/ActionCable/Connection/Assertions.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 28
- def assert_reject_connection(&block)
- assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
- end
+def assert_reject_connection(&block)
+ assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization.html b/src/classes/ActionCable/Connection/Authorization.html
index feb855aa9e..baf85a37b3 100644
--- a/src/classes/ActionCable/Connection/Authorization.html
+++ b/src/classes/ActionCable/Connection/Authorization.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -97,12 +97,12 @@
# File actioncable/lib/action_cable/connection/authorization.rb, line 12
- def reject_unauthorized_connection
- logger.error "An unauthorized connection attempt was rejected"
- raise UnauthorizedError
- end
+def reject_unauthorized_connection
+ logger.error "An unauthorized connection attempt was rejected"
+ raise UnauthorizedError
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
index b63b282b0b..ff36299a28 100644
--- a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
+++ b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/Base.html b/src/classes/ActionCable/Connection/Base.html
index 36a2f1e1bb..ea0d62911f 100644
--- a/src/classes/ActionCable/Connection/Base.html
+++ b/src/classes/ActionCable/Connection/Base.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -255,21 +255,21 @@
# File actioncable/lib/action_cable/connection/base.rb, line 67
- def initialize(server, env, coder: ActiveSupport::JSON)
- @server, @env, @coder = server, env, coder
+def initialize(server, env, coder: ActiveSupport::JSON)
+ @server, @env, @coder = server, env, coder
- @worker_pool = server.worker_pool
- @logger = new_tagged_logger
+ @worker_pool = server.worker_pool
+ @logger = new_tagged_logger
- @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
+ @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
- @_internal_subscriptions = nil
- @started_at = Time.now
- end
+ @_internal_subscriptions = nil
+ @started_at = Time.now
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -304,11 +304,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 147
- def beat
- transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
- end
+def beat
+ transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -339,16 +339,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 120
- def close(reason: nil, reconnect: true)
- transmit(
- type: ActionCable::INTERNAL[:message_types][:disconnect],
- reason: reason,
- reconnect: reconnect
- )
- websocket.close
- end
+def close(reason: nil, reconnect: true)
+ transmit(
+ type: ActionCable::INTERNAL[:message_types][:disconnect],
+ reason: reason,
+ reconnect: reconnect
+ )
+ websocket.close
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -379,13 +379,13 @@
# File actioncable/lib/action_cable/connection/base.rb, line 109
- def handle_channel_command(payload)
- run_callbacks :command do
- subscriptions.execute_command payload
- end
- end
+def handle_channel_command(payload)
+ run_callbacks :command do
+ subscriptions.execute_command payload
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -416,11 +416,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 131
- def send_async(method, *arguments)
- worker_pool.async_invoke(self, method, *arguments)
- end
+def send_async(method, *arguments)
+ worker_pool.async_invoke(self, method, *arguments)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -451,16 +451,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 138
- def statistics
- {
- identifier: connection_identifier,
- started_at: @started_at,
- subscriptions: subscriptions.identifiers,
- request_id: @env["action_dispatch.request_id"]
- }
- end
+def statistics
+ {
+ identifier: connection_identifier,
+ started_at: @started_at,
+ subscriptions: subscriptions.identifiers,
+ request_id: @env["action_dispatch.request_id"]
+ }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -494,11 +494,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 187
- def cookies # :doc:
- request.cookie_jar
- end
+def cookies # :doc:
+ request.cookie_jar
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -529,14 +529,14 @@
# File actioncable/lib/action_cable/connection/base.rb, line 178
- def request # :doc:
- @request ||= begin
- environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
- ActionDispatch::Request.new(environment || env)
- end
- end
+def request # :doc:
+ @request ||= begin
+ environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
+ ActionDispatch::Request.new(environment || env)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Callbacks.html b/src/classes/ActionCable/Connection/Callbacks.html
index 818958bf81..d6504ca284 100644
--- a/src/classes/ActionCable/Connection/Callbacks.html
+++ b/src/classes/ActionCable/Connection/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
index 933056a029..6376d7195b 100644
--- a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,11 +90,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 47
- def after_command(*methods, &block)
- set_callback(:command, :after, *methods, &block)
- end
+def after_command(*methods, &block)
+ set_callback(:command, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -125,11 +125,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 51
- def around_command(*methods, &block)
- set_callback(:command, :around, *methods, &block)
- end
+def around_command(*methods, &block)
+ set_callback(:command, :around, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -160,11 +160,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 43
- def before_command(*methods, &block)
- set_callback(:command, :before, *methods, &block)
- end
+def before_command(*methods, &block)
+ set_callback(:command, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification.html b/src/classes/ActionCable/Connection/Identification.html
index f3dcea9bfc..063ca88999 100644
--- a/src/classes/ActionCable/Connection/Identification.html
+++ b/src/classes/ActionCable/Connection/Identification.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,15 +95,15 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 29
- def connection_identifier
- unless defined? @connection_identifier
- @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
- end
+def connection_identifier
+ unless defined? @connection_identifier
+ @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
+ end
- @connection_identifier
- end
+ @connection_identifier
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification/ClassMethods.html b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
index 324ded31f5..a3395ef8a3 100644
--- a/src/classes/ActionCable/Connection/Identification/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -84,12 +84,12 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 21
- def identified_by(*identifiers)
- Array(identifiers).each { |identifier| attr_accessor identifier }
- self.identifiers += identifiers
- end
+def identified_by(*identifiers)
+ Array(identifiers).each { |identifier| attr_accessor identifier }
+ self.identifiers += identifiers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/InternalChannel.html b/src/classes/ActionCable/Connection/InternalChannel.html
index 9b0144f690..cfdccceaf4 100644
--- a/src/classes/ActionCable/Connection/InternalChannel.html
+++ b/src/classes/ActionCable/Connection/InternalChannel.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
index 7167904452..bf0c696d62 100644
--- a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
+++ b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 15
- def initialize(name)
- super "Unable to determine the connection to test from #{name}. " +
- "You'll need to specify it using `tests YourConnection` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the connection to test from #{name}. " +
+ "You'll need to specify it using `tests YourConnection` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/StreamEventLoop.html b/src/classes/ActionCable/Connection/StreamEventLoop.html
index 2b71a213e3..f7c49354ef 100644
--- a/src/classes/ActionCable/Connection/StreamEventLoop.html
+++ b/src/classes/ActionCable/Connection/StreamEventLoop.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -111,16 +111,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 10
- def initialize
- @nio = @executor = @thread = nil
- @map = {}
- @stopping = false
- @todo = Queue.new
-
- @spawn_mutex = Mutex.new
- end
+def initialize
+ @nio = @executor = @thread = nil
+ @map = {}
+ @stopping = false
+ @todo = Queue.new
+
+ @spawn_mutex = Mutex.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -155,15 +155,15 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 30
- def attach(io, stream)
- @todo << lambda do
- @map[io] = @nio.register(io, :r)
- @map[io].value = stream
- end
- wakeup
- end
+def attach(io, stream)
+ @todo << lambda do
+ @map[io] = @nio.register(io, :r)
+ @map[io].value = stream
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -194,16 +194,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 38
- def detach(io, stream)
- @todo << lambda do
- @nio.deregister io
- @map.delete io
- io.close
- end
- wakeup
- end
+def detach(io, stream)
+ @todo << lambda do
+ @nio.deregister io
+ @map.delete io
+ io.close
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -234,14 +234,14 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 23
- def post(task = nil, &block)
- task ||= block
+def post(task = nil, &block)
+ task ||= block
- spawn
- @executor << task
- end
+ spawn
+ @executor << task
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,12 +272,12 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 56
- def stop
- @stopping = true
- wakeup if @nio
- end
+def stop
+ @stopping = true
+ wakeup if @nio
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -308,11 +308,11 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 19
- def timer(interval, &block)
- Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
- end
+def timer(interval, &block)
+ Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -343,16 +343,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 47
- def writes_pending(io)
- @todo << lambda do
- if monitor = @map[io]
- monitor.interests = :rw
- end
- end
- wakeup
- end
+def writes_pending(io)
+ @todo << lambda do
+ if monitor = @map[io]
+ monitor.interests = :rw
+ end
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
index f4d5cacc63..99731855fb 100644
--- a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
+++ b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -121,12 +121,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 16
- def initialize(logger, tags:)
- @logger = logger
- @tags = tags.flatten
- end
+def initialize(logger, tags:)
+ @logger = logger
+ @tags = tags.flatten
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -161,12 +161,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 21
- def add_tags(*tags)
- @tags += tags.flatten
- @tags = @tags.uniq
- end
+def add_tags(*tags)
+ @tags += tags.flatten
+ @tags = @tags.uniq
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -197,16 +197,16 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 26
- def tag(logger, &block)
- if logger.respond_to?(:tagged)
- current_tags = tags - logger.formatter.current_tags
- logger.tagged(*current_tags, &block)
- else
- yield
- end
- end
+def tag(logger, &block)
+ if logger.respond_to?(:tagged)
+ current_tags = tags - logger.formatter.current_tags
+ logger.tagged(*current_tags, &block)
+ else
+ yield
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,11 +240,11 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 42
- def log(type, message, &block) # :doc:
- tag(@logger) { @logger.send type, message, &block }
- end
+def log(type, message, &block) # :doc:
+ tag(@logger) { @logger.send type, message, &block }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase.html b/src/classes/ActionCable/Connection/TestCase.html
index 948378e491..39bc5cb056 100644
--- a/src/classes/ActionCable/Connection/TestCase.html
+++ b/src/classes/ActionCable/Connection/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior.html b/src/classes/ActionCable/Connection/TestCase/Behavior.html
index b87870becd..4ee0debbea 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -163,19 +163,19 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 192
- def connect(path = ActionCable.server.config.mount_path, **request_params)
- path ||= DEFAULT_PATH
+def connect(path = ActionCable.server.config.mount_path, **request_params)
+ path ||= DEFAULT_PATH
- connection = self.class.connection_class.allocate
- connection.singleton_class.include(TestConnection)
- connection.send(:initialize, build_test_request(path, **request_params))
- connection.connect if connection.respond_to?(:connect)
+ connection = self.class.connection_class.allocate
+ connection.singleton_class.include(TestConnection)
+ connection.send(:initialize, build_test_request(path, **request_params))
+ connection.connect if connection.respond_to?(:connect)
- # Only set instance variable if connected successfully
- @connection = connection
- end
+ # Only set instance variable if connected successfully
+ @connection = connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -206,11 +206,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 212
- def cookies
- @cookie_jar ||= TestCookieJar.new
- end
+def cookies
+ @cookie_jar ||= TestCookieJar.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -241,14 +241,14 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 205
- def disconnect
- raise "Must be connected!" if connection.nil?
+def disconnect
+ raise "Must be connected!" if connection.nil?
- connection.disconnect if connection.respond_to?(:disconnect)
- @connection = nil
- end
+ connection.disconnect if connection.respond_to?(:disconnect)
+ @connection = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
index 63444f4b27..99fc0e3f6f 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 167
- def connection_class
- if connection = self._connection_class
- connection
- else
- tests determine_default_connection(name)
- end
- end
+def connection_class
+ if connection = self._connection_class
+ connection
+ else
+ tests determine_default_connection(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 175
- def determine_default_connection(name)
- connection = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Connection::Base
- end
- raise NonInferrableConnectionError.new(name) if connection.nil?
- connection
- end
+def determine_default_connection(name)
+ connection = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Connection::Base
+ end
+ raise NonInferrableConnectionError.new(name) if connection.nil?
+ connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/channel/base.rb, line 149
- def method_added(name) # :doc:
- super
- clear_action_methods!
- end# File actioncable/lib/action_cable/channel/base.rb, line 152
+def method_added(name) # :doc:
+ super
+ clear_action_methods!
+end# File actioncable/lib/action_cable/channel/base.rb, line 176
- def perform_action(data)
- action = extract_action(data)
+ # File actioncable/lib/action_cable/channel/base.rb, line 179
+def perform_action(data)
+ action = extract_action(data)
- if processable_action?(action)
- payload = { channel_class: self.class.name, action: action, data: data }
- ActiveSupport::Notifications.instrument("perform_action.action_cable", payload) do
- dispatch_action(action, data)
- end
- else
- logger.error "Unable to process #{action_signature(action, data)}"
- end
- end
+ if processable_action?(action)
+ payload = { channel_class: self.class.name, action: action, data: data }
+ ActiveSupport::Notifications.instrument("perform_action.action_cable", payload) do
+ dispatch_action(action, data)
+ end
+ else
+ logger.error "Unable to process #{action_signature(action, data)}"
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -520,17 +523,17 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 191
- def subscribe_to_channel
- run_callbacks :subscribe do
- subscribed
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 194
+def subscribe_to_channel
+ run_callbacks :subscribe do
+ subscribed
+ end
- reject_subscription if subscription_rejected?
- ensure_confirmation_sent
- end
+ reject_subscription if subscription_rejected?
+ ensure_confirmation_sent
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -563,12 +566,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 250
- def defer_subscription_confirmation! # :doc:
- @defer_subscription_confirmation_counter.increment
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 253
+def defer_subscription_confirmation! # :doc:
+ @defer_subscription_confirmation_counter.increment
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -598,12 +601,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 254
- def defer_subscription_confirmation? # :doc:
- @defer_subscription_confirmation_counter.value > 0
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 257
+def defer_subscription_confirmation? # :doc:
+ @defer_subscription_confirmation_counter.value > 0
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -633,14 +636,14 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 244
- def ensure_confirmation_sent # :doc:
- return if subscription_rejected?
- @defer_subscription_confirmation_counter.decrement
- transmit_subscription_confirmation unless defer_subscription_confirmation?
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 247
+def ensure_confirmation_sent # :doc:
+ return if subscription_rejected?
+ @defer_subscription_confirmation_counter.decrement
+ transmit_subscription_confirmation unless defer_subscription_confirmation?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -670,12 +673,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 262
- def reject # :doc:
- @reject_subscription = true
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 265
+def reject # :doc:
+ @reject_subscription = true
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -705,12 +708,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 218
- def subscribed # :doc:
- # Override in subclasses
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 221
+def subscribed # :doc:
+ # Override in subclasses
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -740,12 +743,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 258
- def subscription_confirmation_sent? # :doc:
- @subscription_confirmation_sent
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 261
+def subscription_confirmation_sent? # :doc:
+ @subscription_confirmation_sent
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -775,12 +778,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 266
- def subscription_rejected? # :doc:
- @reject_subscription
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 269
+def subscription_rejected? # :doc:
+ @reject_subscription
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -810,21 +813,21 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 231
- def transmit(data, via: nil) # :doc:
- logger.debug do
- status = "#{self.class.name} transmitting #{data.inspect.truncate(300)}"
- status += " (via #{via})" if via
- status
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 234
+def transmit(data, via: nil) # :doc:
+ logger.debug do
+ status = "#{self.class.name} transmitting #{data.inspect.truncate(300)}"
+ status += " (via #{via})" if via
+ status
+ end
- payload = { channel_class: self.class.name, data: data, via: via }
- ActiveSupport::Notifications.instrument("transmit.action_cable", payload) do
- connection.transmit identifier: @identifier, message: data
- end
- end
+ payload = { channel_class: self.class.name, data: data, via: via }
+ ActiveSupport::Notifications.instrument("transmit.action_cable", payload) do
+ connection.transmit identifier: @identifier, message: data
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -854,12 +857,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 224
- def unsubscribed # :doc:
- # Override in subclasses
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 227
+def unsubscribed # :doc:
+ # Override in subclasses
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Broadcasting.html b/src/classes/ActionCable/Channel/Broadcasting.html
index bb71b89445..7fecc3f6b8 100644
--- a/src/classes/ActionCable/Channel/Broadcasting.html
+++ b/src/classes/ActionCable/Channel/Broadcasting.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -99,11 +99,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 45
- def broadcast_to(model, message)
- self.class.broadcast_to(model, message)
- end
+def broadcast_to(model, message)
+ self.class.broadcast_to(model, message)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -134,11 +134,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 41
- def broadcasting_for(model)
- self.class.broadcasting_for(model)
- end
+def broadcasting_for(model)
+ self.class.broadcasting_for(model)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html b/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
index 684bccb1ab..432bb5d74f 100644
--- a/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 14
- def broadcast_to(broadcastables, message)
- ActionCable.server.broadcast(broadcasting_for(broadcastables), message)
- end
+def broadcast_to(broadcastables, message)
+ ActionCable.server.broadcast(broadcasting_for(broadcastables), message)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -126,11 +126,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 24
- def broadcasting_for(broadcastables)
- serialize_broadcasting([ channel_name ] + Array(broadcastables))
- end
+def broadcasting_for(broadcastables)
+ serialize_broadcasting([ channel_name ] + Array(broadcastables))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Callbacks.html b/src/classes/ActionCable/Channel/Callbacks.html
index 076bdbc8fa..64985186c3 100644
--- a/src/classes/ActionCable/Channel/Callbacks.html
+++ b/src/classes/ActionCable/Channel/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html b/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
index 6ee4317311..7949b5fdf6 100644
--- a/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -111,11 +111,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 60
- def after_subscribe(*methods, &block)
- set_callback(:subscribe, :after, *methods, &block)
- end
+def after_subscribe(*methods, &block)
+ set_callback(:subscribe, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -150,11 +150,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 69
- def after_unsubscribe(*methods, &block)
- set_callback(:unsubscribe, :after, *methods, &block)
- end
+def after_unsubscribe(*methods, &block)
+ set_callback(:unsubscribe, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -185,11 +185,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 48
- def before_subscribe(*methods, &block)
- set_callback(:subscribe, :before, *methods, &block)
- end
+def before_subscribe(*methods, &block)
+ set_callback(:subscribe, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -220,11 +220,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 65
- def before_unsubscribe(*methods, &block)
- set_callback(:unsubscribe, :before, *methods, &block)
- end
+def before_unsubscribe(*methods, &block)
+ set_callback(:unsubscribe, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/ChannelStub.html b/src/classes/ActionCable/Channel/ChannelStub.html
index 9db98daac2..d004896dc5 100644
--- a/src/classes/ActionCable/Channel/ChannelStub.html
+++ b/src/classes/ActionCable/Channel/ChannelStub.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -25,7 +25,7 @@
Action Cable Channel Stub
-
Stub stream_from to track streams for the channel. Add public aliases for subscription_confirmation_sent? and subscription_rejected?.
+Stub stream_from to track streams for the channel. Add public aliases for subscription_confirmation_sent? and subscription_rejected?.
@@ -114,11 +114,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 25
- def confirmed?
- subscription_confirmation_sent?
- end
+def confirmed?
+ subscription_confirmation_sent?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -149,11 +149,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 29
- def rejected?
- subscription_rejected?
- end
+def rejected?
+ subscription_rejected?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -188,9 +188,9 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 46
- def start_periodic_timers; end
+def start_periodic_timers; end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -221,11 +221,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 37
- def stop_all_streams
- @_streams = []
- end
+def stop_all_streams
+ @_streams = []
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -281,11 +281,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 33
- def stream_from(broadcasting, *)
- streams << broadcasting
- end
+def stream_from(broadcasting, *)
+ streams << broadcasting
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -316,11 +316,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 41
- def streams
- @_streams ||= []
- end
+def streams
+ @_streams ||= []
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/ConnectionStub.html b/src/classes/ActionCable/Channel/ConnectionStub.html
index 62c52b567f..0fdc0d8690 100644
--- a/src/classes/ActionCable/Channel/ConnectionStub.html
+++ b/src/classes/ActionCable/Channel/ConnectionStub.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -141,20 +141,20 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 55
- def initialize(identifiers = {})
- @server = ActionCable.server
- @transmissions = []
-
- identifiers.each do |identifier, val|
- define_singleton_method(identifier) { val }
- end
-
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @identifiers = identifiers.keys
- @logger = ActiveSupport::TaggedLogging.new ActiveSupport::Logger.new(StringIO.new)
- end
+def initialize(identifiers = {})
+ @server = ActionCable.server
+ @transmissions = []
+
+ identifiers.each do |identifier, val|
+ define_singleton_method(identifier) { val }
+ end
+
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @identifiers = identifiers.keys
+ @logger = ActiveSupport::TaggedLogging.new ActiveSupport::Logger.new(StringIO.new)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -189,11 +189,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 72
- def connection_identifier
- @connection_identifier ||= connection_gid(identifiers.filter_map { |id| send(id.to_sym) if id })
- end
+def connection_identifier
+ @connection_identifier ||= connection_gid(identifiers.filter_map { |id| send(id.to_sym) if id })
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -224,11 +224,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 68
- def transmit(cable_message)
- transmissions << cable_message.with_indifferent_access
- end
+def transmit(cable_message)
+ transmissions << cable_message.with_indifferent_access
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Naming.html b/src/classes/ActionCable/Channel/Naming.html
index 84bfc0232c..db2aa18589 100644
--- a/src/classes/ActionCable/Channel/Naming.html
+++ b/src/classes/ActionCable/Channel/Naming.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,11 +95,11 @@
# File actioncable/lib/action_cable/channel/naming.rb, line 23
- def channel_name
- self.class.channel_name
- end
+def channel_name
+ self.class.channel_name
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Naming/ClassMethods.html b/src/classes/ActionCable/Channel/Naming/ClassMethods.html
index b847309f12..e99c0744a7 100644
--- a/src/classes/ActionCable/Channel/Naming/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Naming/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -66,7 +66,7 @@
- Returns the name of the channel, underscored, without the Channel ending. If the channel is in a namespace, then the namespaces are represented by single colon separators in the channel name.
+ Returns the name of the channel, underscored, without the Channel ending. If the channel is in a namespace, then the namespaces are represented by single colon separators in the channel name.
ChatChannel.channel_name # => 'chat'
Chats::AppearancesChannel.channel_name # => 'chats:appearances'
@@ -87,11 +87,11 @@
# File actioncable/lib/action_cable/channel/naming.rb, line 18
- def channel_name
- @channel_name ||= name.delete_suffix("Channel").gsub("::", ":").underscore
- end
+def channel_name
+ @channel_name ||= name.delete_suffix("Channel").gsub("::", ":").underscore
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/NonInferrableChannelError.html b/src/classes/ActionCable/Channel/NonInferrableChannelError.html
index 034c36b135..1eac81cbd2 100644
--- a/src/classes/ActionCable/Channel/NonInferrableChannelError.html
+++ b/src/classes/ActionCable/Channel/NonInferrableChannelError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 13
- def initialize(name)
- super "Unable to determine the channel to test from #{name}. " +
- "You'll need to specify it using `tests YourChannel` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the channel to test from #{name}. " +
+ "You'll need to specify it using `tests YourChannel` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/PeriodicTimers.html b/src/classes/ActionCable/Channel/PeriodicTimers.html
index 88facef675..561da6e0dd 100644
--- a/src/classes/ActionCable/Channel/PeriodicTimers.html
+++ b/src/classes/ActionCable/Channel/PeriodicTimers.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html b/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
index 233865e2e3..a694f6de16 100644
--- a/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -91,30 +91,30 @@
# File actioncable/lib/action_cable/channel/periodic_timers.rb, line 31
- def periodically(callback_or_method_name = nil, every:, &block)
- callback =
- if block_given?
- raise ArgumentError, "Pass a block or provide a callback arg, not both" if callback_or_method_name
- block
- else
- case callback_or_method_name
- when Proc
- callback_or_method_name
- when Symbol
- -> { __send__ callback_or_method_name }
- else
- raise ArgumentError, "Expected a Symbol method name or a Proc, got #{callback_or_method_name.inspect}"
- end
- end
-
- unless every.kind_of?(Numeric) && every > 0
- raise ArgumentError, "Expected every: to be a positive number of seconds, got #{every.inspect}"
- end
-
- self.periodic_timers += [[ callback, every: every ]]
- end
+def periodically(callback_or_method_name = nil, every:, &block)
+ callback =
+ if block_given?
+ raise ArgumentError, "Pass a block or provide a callback arg, not both" if callback_or_method_name
+ block
+ else
+ case callback_or_method_name
+ when Proc
+ callback_or_method_name
+ when Symbol
+ -> { __send__ callback_or_method_name }
+ else
+ raise ArgumentError, "Expected a Symbol method name or a Proc, got #{callback_or_method_name.inspect}"
+ end
+ end
+
+ unless every.kind_of?(Numeric) && every > 0
+ raise ArgumentError, "Expected every: to be a positive number of seconds, got #{every.inspect}"
+ end
+
+ self.periodic_timers += [[ callback, every: every ]]
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Streams.html b/src/classes/ActionCable/Channel/Streams.html
index 0967feb616..a2e686a3e9 100644
--- a/src/classes/ActionCable/Channel/Streams.html
+++ b/src/classes/ActionCable/Channel/Streams.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -167,14 +167,14 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 137
- def stop_all_streams
- streams.each do |broadcasting, callback|
- pubsub.unsubscribe broadcasting, callback
- logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
- end.clear
- end
+def stop_all_streams
+ streams.each do |broadcasting, callback|
+ pubsub.unsubscribe broadcasting, callback
+ logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
+ end.clear
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -205,11 +205,11 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 132
- def stop_stream_for(model)
- stop_stream_from(broadcasting_for(model))
- end
+def stop_stream_for(model)
+ stop_stream_from(broadcasting_for(model))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,15 +240,15 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 123
- def stop_stream_from(broadcasting)
- callback = streams.delete(broadcasting)
- if callback
- pubsub.unsubscribe(broadcasting, callback)
- logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
- end
- end
+def stop_stream_from(broadcasting)
+ callback = streams.delete(broadcasting)
+ if callback
+ pubsub.unsubscribe(broadcasting, callback)
+ logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -281,11 +281,11 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 118
- def stream_for(broadcastables, callback = nil, coder: nil, &block)
- stream_from(broadcasting_for(broadcastables), callback || block, coder: coder)
- end
+def stream_for(broadcastables, callback = nil, coder: nil, &block)
+ stream_from(broadcasting_for(broadcastables), callback || block, coder: coder)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -316,28 +316,28 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 90
- def stream_from(broadcasting, callback = nil, coder: nil, &block)
- return if unsubscribed?
-
- broadcasting = String(broadcasting)
-
- # Don't send the confirmation until pubsub#subscribe is successful
- defer_subscription_confirmation!
-
- # Build a stream handler by wrapping the user-provided callback with a decoder
- # or defaulting to a JSON-decoding retransmitter.
- handler = worker_pool_stream_handler(broadcasting, callback || block, coder: coder)
- streams[broadcasting] = handler
-
- connection.server.event_loop.post do
- pubsub.subscribe(broadcasting, handler, lambda do
- ensure_confirmation_sent
- logger.info "#{self.class.name} is streaming from #{broadcasting}"
- end)
- end
- end
+def stream_from(broadcasting, callback = nil, coder: nil, &block)
+ return if unsubscribed?
+
+ broadcasting = String(broadcasting)
+
+ # Don't send the confirmation until pubsub#subscribe is successful
+ defer_subscription_confirmation!
+
+ # Build a stream handler by wrapping the user-provided callback with a decoder
+ # or defaulting to a JSON-decoding retransmitter.
+ handler = worker_pool_stream_handler(broadcasting, callback || block, coder: coder)
+ streams[broadcasting] = handler
+
+ connection.server.event_loop.post do
+ pubsub.subscribe(broadcasting, handler, lambda do
+ ensure_confirmation_sent
+ logger.info "#{self.class.name} is streaming from #{broadcasting}"
+ end)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -368,15 +368,15 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 146
- def stream_or_reject_for(model)
- if model
- stream_for model
- else
- reject
- end
- end
+def stream_or_reject_for(model)
+ if model
+ stream_for model
+ else
+ reject
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase.html b/src/classes/ActionCable/Channel/TestCase.html
index 08fb28c0cf..6317ff44d0 100644
--- a/src/classes/ActionCable/Channel/TestCase.html
+++ b/src/classes/ActionCable/Channel/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior.html b/src/classes/ActionCable/Channel/TestCase/Behavior.html
index b5f3a5cbb7..5a8ea0fd78 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -196,11 +196,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 282
- def assert_broadcast_on(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcast_on(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -231,11 +231,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 278
- def assert_broadcasts(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcasts(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,11 +272,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 326
- def assert_has_no_stream(stream)
- assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
- end
+def assert_has_no_stream(stream)
+ assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -313,11 +313,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 337
- def assert_has_no_stream_for(object)
- assert_has_no_stream(broadcasting_for(object))
- end
+def assert_has_no_stream_for(object)
+ assert_has_no_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -354,11 +354,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 304
- def assert_has_stream(stream)
- assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
- end
+def assert_has_stream(stream)
+ assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -395,11 +395,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 315
- def assert_has_stream_for(object)
- assert_has_stream(broadcasting_for(object))
- end
+def assert_has_stream_for(object)
+ assert_has_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -436,11 +436,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 293
- def assert_no_streams
- assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
- end
+def assert_no_streams
+ assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -473,12 +473,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 266
- def perform(action, data = {})
- check_subscribed!
- subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
- end
+def perform(action, data = {})
+ check_subscribed!
+ subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -516,11 +516,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 243
- def stub_connection(identifiers = {})
- @connection = ConnectionStub.new(identifiers)
- end
+def stub_connection(identifiers = {})
+ @connection = ConnectionStub.new(identifiers)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -551,15 +551,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 249
- def subscribe(params = {})
- @connection ||= stub_connection
- @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
- @subscription.singleton_class.include(ChannelStub)
- @subscription.subscribe_to_channel
- @subscription
- end
+def subscribe(params = {})
+ @connection ||= stub_connection
+ @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
+ @subscription.singleton_class.include(ChannelStub)
+ @subscription.subscribe_to_channel
+ @subscription
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -590,12 +590,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 272
- def transmissions
- # Return only directly sent message (via #transmit)
- connection.transmissions.filter_map { |data| data["message"] }
- end
+def transmissions
+ # Return only directly sent message (via #transmit)
+ connection.transmissions.filter_map { |data| data["message"] }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -626,12 +626,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 258
- def unsubscribe
- check_subscribed!
- subscription.unsubscribe_from_channel
- end
+def unsubscribe
+ check_subscribed!
+ subscription.unsubscribe_from_channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
index 48ea87f130..57efb4cdac 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 219
- def channel_class
- if channel = self._channel_class
- channel
- else
- tests determine_default_channel(name)
- end
- end
+def channel_class
+ if channel = self._channel_class
+ channel
+ else
+ tests determine_default_channel(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 227
- def determine_default_channel(name)
- channel = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Channel::Base
- end
- raise NonInferrableChannelError.new(name) if channel.nil?
- channel
- end
+def determine_default_channel(name)
+ channel = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Channel::Base
+ end
+ raise NonInferrableChannelError.new(name) if channel.nil?
+ channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 208
- def tests(channel)
- case channel
- when String, Symbol
- self._channel_class = channel.to_s.camelize.constantize
- when Module
- self._channel_class = channel
- else
- raise NonInferrableChannelError.new(channel)
- end
- end
+def tests(channel)
+ case channel
+ when String, Symbol
+ self._channel_class = channel.to_s.camelize.constantize
+ when Module
+ self._channel_class = channel
+ else
+ raise NonInferrableChannelError.new(channel)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection.html b/src/classes/ActionCable/Connection.html
index f832214f0e..7889c75284 100644
--- a/src/classes/ActionCable/Connection.html
+++ b/src/classes/ActionCable/Connection.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Assertions.html b/src/classes/ActionCable/Connection/Assertions.html
index 933ea80e4c..6b10ec5528 100644
--- a/src/classes/ActionCable/Connection/Assertions.html
+++ b/src/classes/ActionCable/Connection/Assertions.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 28
- def assert_reject_connection(&block)
- assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
- end
+def assert_reject_connection(&block)
+ assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization.html b/src/classes/ActionCable/Connection/Authorization.html
index feb855aa9e..baf85a37b3 100644
--- a/src/classes/ActionCable/Connection/Authorization.html
+++ b/src/classes/ActionCable/Connection/Authorization.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -97,12 +97,12 @@
# File actioncable/lib/action_cable/connection/authorization.rb, line 12
- def reject_unauthorized_connection
- logger.error "An unauthorized connection attempt was rejected"
- raise UnauthorizedError
- end
+def reject_unauthorized_connection
+ logger.error "An unauthorized connection attempt was rejected"
+ raise UnauthorizedError
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
index b63b282b0b..ff36299a28 100644
--- a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
+++ b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/Base.html b/src/classes/ActionCable/Connection/Base.html
index 36a2f1e1bb..ea0d62911f 100644
--- a/src/classes/ActionCable/Connection/Base.html
+++ b/src/classes/ActionCable/Connection/Base.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -255,21 +255,21 @@
# File actioncable/lib/action_cable/connection/base.rb, line 67
- def initialize(server, env, coder: ActiveSupport::JSON)
- @server, @env, @coder = server, env, coder
+def initialize(server, env, coder: ActiveSupport::JSON)
+ @server, @env, @coder = server, env, coder
- @worker_pool = server.worker_pool
- @logger = new_tagged_logger
+ @worker_pool = server.worker_pool
+ @logger = new_tagged_logger
- @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
+ @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
- @_internal_subscriptions = nil
- @started_at = Time.now
- end
+ @_internal_subscriptions = nil
+ @started_at = Time.now
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -304,11 +304,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 147
- def beat
- transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
- end
+def beat
+ transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -339,16 +339,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 120
- def close(reason: nil, reconnect: true)
- transmit(
- type: ActionCable::INTERNAL[:message_types][:disconnect],
- reason: reason,
- reconnect: reconnect
- )
- websocket.close
- end
+def close(reason: nil, reconnect: true)
+ transmit(
+ type: ActionCable::INTERNAL[:message_types][:disconnect],
+ reason: reason,
+ reconnect: reconnect
+ )
+ websocket.close
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -379,13 +379,13 @@
# File actioncable/lib/action_cable/connection/base.rb, line 109
- def handle_channel_command(payload)
- run_callbacks :command do
- subscriptions.execute_command payload
- end
- end
+def handle_channel_command(payload)
+ run_callbacks :command do
+ subscriptions.execute_command payload
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -416,11 +416,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 131
- def send_async(method, *arguments)
- worker_pool.async_invoke(self, method, *arguments)
- end
+def send_async(method, *arguments)
+ worker_pool.async_invoke(self, method, *arguments)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -451,16 +451,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 138
- def statistics
- {
- identifier: connection_identifier,
- started_at: @started_at,
- subscriptions: subscriptions.identifiers,
- request_id: @env["action_dispatch.request_id"]
- }
- end
+def statistics
+ {
+ identifier: connection_identifier,
+ started_at: @started_at,
+ subscriptions: subscriptions.identifiers,
+ request_id: @env["action_dispatch.request_id"]
+ }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -494,11 +494,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 187
- def cookies # :doc:
- request.cookie_jar
- end
+def cookies # :doc:
+ request.cookie_jar
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -529,14 +529,14 @@
# File actioncable/lib/action_cable/connection/base.rb, line 178
- def request # :doc:
- @request ||= begin
- environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
- ActionDispatch::Request.new(environment || env)
- end
- end
+def request # :doc:
+ @request ||= begin
+ environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
+ ActionDispatch::Request.new(environment || env)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Callbacks.html b/src/classes/ActionCable/Connection/Callbacks.html
index 818958bf81..d6504ca284 100644
--- a/src/classes/ActionCable/Connection/Callbacks.html
+++ b/src/classes/ActionCable/Connection/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
index 933056a029..6376d7195b 100644
--- a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,11 +90,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 47
- def after_command(*methods, &block)
- set_callback(:command, :after, *methods, &block)
- end
+def after_command(*methods, &block)
+ set_callback(:command, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -125,11 +125,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 51
- def around_command(*methods, &block)
- set_callback(:command, :around, *methods, &block)
- end
+def around_command(*methods, &block)
+ set_callback(:command, :around, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -160,11 +160,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 43
- def before_command(*methods, &block)
- set_callback(:command, :before, *methods, &block)
- end
+def before_command(*methods, &block)
+ set_callback(:command, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification.html b/src/classes/ActionCable/Connection/Identification.html
index f3dcea9bfc..063ca88999 100644
--- a/src/classes/ActionCable/Connection/Identification.html
+++ b/src/classes/ActionCable/Connection/Identification.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,15 +95,15 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 29
- def connection_identifier
- unless defined? @connection_identifier
- @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
- end
+def connection_identifier
+ unless defined? @connection_identifier
+ @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
+ end
- @connection_identifier
- end
+ @connection_identifier
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification/ClassMethods.html b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
index 324ded31f5..a3395ef8a3 100644
--- a/src/classes/ActionCable/Connection/Identification/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -84,12 +84,12 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 21
- def identified_by(*identifiers)
- Array(identifiers).each { |identifier| attr_accessor identifier }
- self.identifiers += identifiers
- end
+def identified_by(*identifiers)
+ Array(identifiers).each { |identifier| attr_accessor identifier }
+ self.identifiers += identifiers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/InternalChannel.html b/src/classes/ActionCable/Connection/InternalChannel.html
index 9b0144f690..cfdccceaf4 100644
--- a/src/classes/ActionCable/Connection/InternalChannel.html
+++ b/src/classes/ActionCable/Connection/InternalChannel.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
index 7167904452..bf0c696d62 100644
--- a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
+++ b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 15
- def initialize(name)
- super "Unable to determine the connection to test from #{name}. " +
- "You'll need to specify it using `tests YourConnection` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the connection to test from #{name}. " +
+ "You'll need to specify it using `tests YourConnection` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/StreamEventLoop.html b/src/classes/ActionCable/Connection/StreamEventLoop.html
index 2b71a213e3..f7c49354ef 100644
--- a/src/classes/ActionCable/Connection/StreamEventLoop.html
+++ b/src/classes/ActionCable/Connection/StreamEventLoop.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -111,16 +111,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 10
- def initialize
- @nio = @executor = @thread = nil
- @map = {}
- @stopping = false
- @todo = Queue.new
-
- @spawn_mutex = Mutex.new
- end
+def initialize
+ @nio = @executor = @thread = nil
+ @map = {}
+ @stopping = false
+ @todo = Queue.new
+
+ @spawn_mutex = Mutex.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -155,15 +155,15 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 30
- def attach(io, stream)
- @todo << lambda do
- @map[io] = @nio.register(io, :r)
- @map[io].value = stream
- end
- wakeup
- end
+def attach(io, stream)
+ @todo << lambda do
+ @map[io] = @nio.register(io, :r)
+ @map[io].value = stream
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -194,16 +194,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 38
- def detach(io, stream)
- @todo << lambda do
- @nio.deregister io
- @map.delete io
- io.close
- end
- wakeup
- end
+def detach(io, stream)
+ @todo << lambda do
+ @nio.deregister io
+ @map.delete io
+ io.close
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -234,14 +234,14 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 23
- def post(task = nil, &block)
- task ||= block
+def post(task = nil, &block)
+ task ||= block
- spawn
- @executor << task
- end
+ spawn
+ @executor << task
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,12 +272,12 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 56
- def stop
- @stopping = true
- wakeup if @nio
- end
+def stop
+ @stopping = true
+ wakeup if @nio
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -308,11 +308,11 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 19
- def timer(interval, &block)
- Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
- end
+def timer(interval, &block)
+ Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -343,16 +343,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 47
- def writes_pending(io)
- @todo << lambda do
- if monitor = @map[io]
- monitor.interests = :rw
- end
- end
- wakeup
- end
+def writes_pending(io)
+ @todo << lambda do
+ if monitor = @map[io]
+ monitor.interests = :rw
+ end
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
index f4d5cacc63..99731855fb 100644
--- a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
+++ b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -121,12 +121,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 16
- def initialize(logger, tags:)
- @logger = logger
- @tags = tags.flatten
- end
+def initialize(logger, tags:)
+ @logger = logger
+ @tags = tags.flatten
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -161,12 +161,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 21
- def add_tags(*tags)
- @tags += tags.flatten
- @tags = @tags.uniq
- end
+def add_tags(*tags)
+ @tags += tags.flatten
+ @tags = @tags.uniq
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -197,16 +197,16 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 26
- def tag(logger, &block)
- if logger.respond_to?(:tagged)
- current_tags = tags - logger.formatter.current_tags
- logger.tagged(*current_tags, &block)
- else
- yield
- end
- end
+def tag(logger, &block)
+ if logger.respond_to?(:tagged)
+ current_tags = tags - logger.formatter.current_tags
+ logger.tagged(*current_tags, &block)
+ else
+ yield
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,11 +240,11 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 42
- def log(type, message, &block) # :doc:
- tag(@logger) { @logger.send type, message, &block }
- end
+def log(type, message, &block) # :doc:
+ tag(@logger) { @logger.send type, message, &block }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase.html b/src/classes/ActionCable/Connection/TestCase.html
index 948378e491..39bc5cb056 100644
--- a/src/classes/ActionCable/Connection/TestCase.html
+++ b/src/classes/ActionCable/Connection/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior.html b/src/classes/ActionCable/Connection/TestCase/Behavior.html
index b87870becd..4ee0debbea 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -163,19 +163,19 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 192
- def connect(path = ActionCable.server.config.mount_path, **request_params)
- path ||= DEFAULT_PATH
+def connect(path = ActionCable.server.config.mount_path, **request_params)
+ path ||= DEFAULT_PATH
- connection = self.class.connection_class.allocate
- connection.singleton_class.include(TestConnection)
- connection.send(:initialize, build_test_request(path, **request_params))
- connection.connect if connection.respond_to?(:connect)
+ connection = self.class.connection_class.allocate
+ connection.singleton_class.include(TestConnection)
+ connection.send(:initialize, build_test_request(path, **request_params))
+ connection.connect if connection.respond_to?(:connect)
- # Only set instance variable if connected successfully
- @connection = connection
- end
+ # Only set instance variable if connected successfully
+ @connection = connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -206,11 +206,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 212
- def cookies
- @cookie_jar ||= TestCookieJar.new
- end
+def cookies
+ @cookie_jar ||= TestCookieJar.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -241,14 +241,14 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 205
- def disconnect
- raise "Must be connected!" if connection.nil?
+def disconnect
+ raise "Must be connected!" if connection.nil?
- connection.disconnect if connection.respond_to?(:disconnect)
- @connection = nil
- end
+ connection.disconnect if connection.respond_to?(:disconnect)
+ @connection = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
index 63444f4b27..99fc0e3f6f 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 167
- def connection_class
- if connection = self._connection_class
- connection
- else
- tests determine_default_connection(name)
- end
- end
+def connection_class
+ if connection = self._connection_class
+ connection
+ else
+ tests determine_default_connection(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 175
- def determine_default_connection(name)
- connection = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Connection::Base
- end
- raise NonInferrableConnectionError.new(name) if connection.nil?
- connection
- end
+def determine_default_connection(name)
+ connection = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Connection::Base
+ end
+ raise NonInferrableConnectionError.new(name) if connection.nil?
+ connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/channel/base.rb, line 191
- def subscribe_to_channel
- run_callbacks :subscribe do
- subscribed
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 194
+def subscribe_to_channel
+ run_callbacks :subscribe do
+ subscribed
+ end
- reject_subscription if subscription_rejected?
- ensure_confirmation_sent
- end
+ reject_subscription if subscription_rejected?
+ ensure_confirmation_sent
+end# File actioncable/lib/action_cable/channel/base.rb, line 250
- def defer_subscription_confirmation! # :doc:
- @defer_subscription_confirmation_counter.increment
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 253
+def defer_subscription_confirmation! # :doc:
+ @defer_subscription_confirmation_counter.increment
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -598,12 +601,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 254
- def defer_subscription_confirmation? # :doc:
- @defer_subscription_confirmation_counter.value > 0
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 257
+def defer_subscription_confirmation? # :doc:
+ @defer_subscription_confirmation_counter.value > 0
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -633,14 +636,14 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 244
- def ensure_confirmation_sent # :doc:
- return if subscription_rejected?
- @defer_subscription_confirmation_counter.decrement
- transmit_subscription_confirmation unless defer_subscription_confirmation?
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 247
+def ensure_confirmation_sent # :doc:
+ return if subscription_rejected?
+ @defer_subscription_confirmation_counter.decrement
+ transmit_subscription_confirmation unless defer_subscription_confirmation?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -670,12 +673,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 262
- def reject # :doc:
- @reject_subscription = true
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 265
+def reject # :doc:
+ @reject_subscription = true
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -705,12 +708,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 218
- def subscribed # :doc:
- # Override in subclasses
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 221
+def subscribed # :doc:
+ # Override in subclasses
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -740,12 +743,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 258
- def subscription_confirmation_sent? # :doc:
- @subscription_confirmation_sent
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 261
+def subscription_confirmation_sent? # :doc:
+ @subscription_confirmation_sent
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -775,12 +778,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 266
- def subscription_rejected? # :doc:
- @reject_subscription
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 269
+def subscription_rejected? # :doc:
+ @reject_subscription
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -810,21 +813,21 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 231
- def transmit(data, via: nil) # :doc:
- logger.debug do
- status = "#{self.class.name} transmitting #{data.inspect.truncate(300)}"
- status += " (via #{via})" if via
- status
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 234
+def transmit(data, via: nil) # :doc:
+ logger.debug do
+ status = "#{self.class.name} transmitting #{data.inspect.truncate(300)}"
+ status += " (via #{via})" if via
+ status
+ end
- payload = { channel_class: self.class.name, data: data, via: via }
- ActiveSupport::Notifications.instrument("transmit.action_cable", payload) do
- connection.transmit identifier: @identifier, message: data
- end
- end
+ payload = { channel_class: self.class.name, data: data, via: via }
+ ActiveSupport::Notifications.instrument("transmit.action_cable", payload) do
+ connection.transmit identifier: @identifier, message: data
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -854,12 +857,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 224
- def unsubscribed # :doc:
- # Override in subclasses
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 227
+def unsubscribed # :doc:
+ # Override in subclasses
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Broadcasting.html b/src/classes/ActionCable/Channel/Broadcasting.html
index bb71b89445..7fecc3f6b8 100644
--- a/src/classes/ActionCable/Channel/Broadcasting.html
+++ b/src/classes/ActionCable/Channel/Broadcasting.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -99,11 +99,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 45
- def broadcast_to(model, message)
- self.class.broadcast_to(model, message)
- end
+def broadcast_to(model, message)
+ self.class.broadcast_to(model, message)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -134,11 +134,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 41
- def broadcasting_for(model)
- self.class.broadcasting_for(model)
- end
+def broadcasting_for(model)
+ self.class.broadcasting_for(model)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html b/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
index 684bccb1ab..432bb5d74f 100644
--- a/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 14
- def broadcast_to(broadcastables, message)
- ActionCable.server.broadcast(broadcasting_for(broadcastables), message)
- end
+def broadcast_to(broadcastables, message)
+ ActionCable.server.broadcast(broadcasting_for(broadcastables), message)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -126,11 +126,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 24
- def broadcasting_for(broadcastables)
- serialize_broadcasting([ channel_name ] + Array(broadcastables))
- end
+def broadcasting_for(broadcastables)
+ serialize_broadcasting([ channel_name ] + Array(broadcastables))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Callbacks.html b/src/classes/ActionCable/Channel/Callbacks.html
index 076bdbc8fa..64985186c3 100644
--- a/src/classes/ActionCable/Channel/Callbacks.html
+++ b/src/classes/ActionCable/Channel/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html b/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
index 6ee4317311..7949b5fdf6 100644
--- a/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -111,11 +111,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 60
- def after_subscribe(*methods, &block)
- set_callback(:subscribe, :after, *methods, &block)
- end
+def after_subscribe(*methods, &block)
+ set_callback(:subscribe, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -150,11 +150,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 69
- def after_unsubscribe(*methods, &block)
- set_callback(:unsubscribe, :after, *methods, &block)
- end
+def after_unsubscribe(*methods, &block)
+ set_callback(:unsubscribe, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -185,11 +185,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 48
- def before_subscribe(*methods, &block)
- set_callback(:subscribe, :before, *methods, &block)
- end
+def before_subscribe(*methods, &block)
+ set_callback(:subscribe, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -220,11 +220,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 65
- def before_unsubscribe(*methods, &block)
- set_callback(:unsubscribe, :before, *methods, &block)
- end
+def before_unsubscribe(*methods, &block)
+ set_callback(:unsubscribe, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/ChannelStub.html b/src/classes/ActionCable/Channel/ChannelStub.html
index 9db98daac2..d004896dc5 100644
--- a/src/classes/ActionCable/Channel/ChannelStub.html
+++ b/src/classes/ActionCable/Channel/ChannelStub.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -25,7 +25,7 @@
Action Cable Channel Stub
-
Stub stream_from to track streams for the channel. Add public aliases for subscription_confirmation_sent? and subscription_rejected?.
+Stub stream_from to track streams for the channel. Add public aliases for subscription_confirmation_sent? and subscription_rejected?.
@@ -114,11 +114,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 25
- def confirmed?
- subscription_confirmation_sent?
- end
+def confirmed?
+ subscription_confirmation_sent?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -149,11 +149,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 29
- def rejected?
- subscription_rejected?
- end
+def rejected?
+ subscription_rejected?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -188,9 +188,9 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 46
- def start_periodic_timers; end
+def start_periodic_timers; end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -221,11 +221,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 37
- def stop_all_streams
- @_streams = []
- end
+def stop_all_streams
+ @_streams = []
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -281,11 +281,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 33
- def stream_from(broadcasting, *)
- streams << broadcasting
- end
+def stream_from(broadcasting, *)
+ streams << broadcasting
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -316,11 +316,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 41
- def streams
- @_streams ||= []
- end
+def streams
+ @_streams ||= []
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/ConnectionStub.html b/src/classes/ActionCable/Channel/ConnectionStub.html
index 62c52b567f..0fdc0d8690 100644
--- a/src/classes/ActionCable/Channel/ConnectionStub.html
+++ b/src/classes/ActionCable/Channel/ConnectionStub.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -141,20 +141,20 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 55
- def initialize(identifiers = {})
- @server = ActionCable.server
- @transmissions = []
-
- identifiers.each do |identifier, val|
- define_singleton_method(identifier) { val }
- end
-
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @identifiers = identifiers.keys
- @logger = ActiveSupport::TaggedLogging.new ActiveSupport::Logger.new(StringIO.new)
- end
+def initialize(identifiers = {})
+ @server = ActionCable.server
+ @transmissions = []
+
+ identifiers.each do |identifier, val|
+ define_singleton_method(identifier) { val }
+ end
+
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @identifiers = identifiers.keys
+ @logger = ActiveSupport::TaggedLogging.new ActiveSupport::Logger.new(StringIO.new)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -189,11 +189,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 72
- def connection_identifier
- @connection_identifier ||= connection_gid(identifiers.filter_map { |id| send(id.to_sym) if id })
- end
+def connection_identifier
+ @connection_identifier ||= connection_gid(identifiers.filter_map { |id| send(id.to_sym) if id })
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -224,11 +224,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 68
- def transmit(cable_message)
- transmissions << cable_message.with_indifferent_access
- end
+def transmit(cable_message)
+ transmissions << cable_message.with_indifferent_access
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Naming.html b/src/classes/ActionCable/Channel/Naming.html
index 84bfc0232c..db2aa18589 100644
--- a/src/classes/ActionCable/Channel/Naming.html
+++ b/src/classes/ActionCable/Channel/Naming.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,11 +95,11 @@
# File actioncable/lib/action_cable/channel/naming.rb, line 23
- def channel_name
- self.class.channel_name
- end
+def channel_name
+ self.class.channel_name
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Naming/ClassMethods.html b/src/classes/ActionCable/Channel/Naming/ClassMethods.html
index b847309f12..e99c0744a7 100644
--- a/src/classes/ActionCable/Channel/Naming/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Naming/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -66,7 +66,7 @@
- Returns the name of the channel, underscored, without the Channel ending. If the channel is in a namespace, then the namespaces are represented by single colon separators in the channel name.
+ Returns the name of the channel, underscored, without the Channel ending. If the channel is in a namespace, then the namespaces are represented by single colon separators in the channel name.
ChatChannel.channel_name # => 'chat'
Chats::AppearancesChannel.channel_name # => 'chats:appearances'
@@ -87,11 +87,11 @@
# File actioncable/lib/action_cable/channel/naming.rb, line 18
- def channel_name
- @channel_name ||= name.delete_suffix("Channel").gsub("::", ":").underscore
- end
+def channel_name
+ @channel_name ||= name.delete_suffix("Channel").gsub("::", ":").underscore
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/NonInferrableChannelError.html b/src/classes/ActionCable/Channel/NonInferrableChannelError.html
index 034c36b135..1eac81cbd2 100644
--- a/src/classes/ActionCable/Channel/NonInferrableChannelError.html
+++ b/src/classes/ActionCable/Channel/NonInferrableChannelError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 13
- def initialize(name)
- super "Unable to determine the channel to test from #{name}. " +
- "You'll need to specify it using `tests YourChannel` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the channel to test from #{name}. " +
+ "You'll need to specify it using `tests YourChannel` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/PeriodicTimers.html b/src/classes/ActionCable/Channel/PeriodicTimers.html
index 88facef675..561da6e0dd 100644
--- a/src/classes/ActionCable/Channel/PeriodicTimers.html
+++ b/src/classes/ActionCable/Channel/PeriodicTimers.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html b/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
index 233865e2e3..a694f6de16 100644
--- a/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -91,30 +91,30 @@
# File actioncable/lib/action_cable/channel/periodic_timers.rb, line 31
- def periodically(callback_or_method_name = nil, every:, &block)
- callback =
- if block_given?
- raise ArgumentError, "Pass a block or provide a callback arg, not both" if callback_or_method_name
- block
- else
- case callback_or_method_name
- when Proc
- callback_or_method_name
- when Symbol
- -> { __send__ callback_or_method_name }
- else
- raise ArgumentError, "Expected a Symbol method name or a Proc, got #{callback_or_method_name.inspect}"
- end
- end
-
- unless every.kind_of?(Numeric) && every > 0
- raise ArgumentError, "Expected every: to be a positive number of seconds, got #{every.inspect}"
- end
-
- self.periodic_timers += [[ callback, every: every ]]
- end
+def periodically(callback_or_method_name = nil, every:, &block)
+ callback =
+ if block_given?
+ raise ArgumentError, "Pass a block or provide a callback arg, not both" if callback_or_method_name
+ block
+ else
+ case callback_or_method_name
+ when Proc
+ callback_or_method_name
+ when Symbol
+ -> { __send__ callback_or_method_name }
+ else
+ raise ArgumentError, "Expected a Symbol method name or a Proc, got #{callback_or_method_name.inspect}"
+ end
+ end
+
+ unless every.kind_of?(Numeric) && every > 0
+ raise ArgumentError, "Expected every: to be a positive number of seconds, got #{every.inspect}"
+ end
+
+ self.periodic_timers += [[ callback, every: every ]]
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Streams.html b/src/classes/ActionCable/Channel/Streams.html
index 0967feb616..a2e686a3e9 100644
--- a/src/classes/ActionCable/Channel/Streams.html
+++ b/src/classes/ActionCable/Channel/Streams.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -167,14 +167,14 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 137
- def stop_all_streams
- streams.each do |broadcasting, callback|
- pubsub.unsubscribe broadcasting, callback
- logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
- end.clear
- end
+def stop_all_streams
+ streams.each do |broadcasting, callback|
+ pubsub.unsubscribe broadcasting, callback
+ logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
+ end.clear
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -205,11 +205,11 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 132
- def stop_stream_for(model)
- stop_stream_from(broadcasting_for(model))
- end
+def stop_stream_for(model)
+ stop_stream_from(broadcasting_for(model))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,15 +240,15 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 123
- def stop_stream_from(broadcasting)
- callback = streams.delete(broadcasting)
- if callback
- pubsub.unsubscribe(broadcasting, callback)
- logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
- end
- end
+def stop_stream_from(broadcasting)
+ callback = streams.delete(broadcasting)
+ if callback
+ pubsub.unsubscribe(broadcasting, callback)
+ logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -281,11 +281,11 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 118
- def stream_for(broadcastables, callback = nil, coder: nil, &block)
- stream_from(broadcasting_for(broadcastables), callback || block, coder: coder)
- end
+def stream_for(broadcastables, callback = nil, coder: nil, &block)
+ stream_from(broadcasting_for(broadcastables), callback || block, coder: coder)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -316,28 +316,28 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 90
- def stream_from(broadcasting, callback = nil, coder: nil, &block)
- return if unsubscribed?
-
- broadcasting = String(broadcasting)
-
- # Don't send the confirmation until pubsub#subscribe is successful
- defer_subscription_confirmation!
-
- # Build a stream handler by wrapping the user-provided callback with a decoder
- # or defaulting to a JSON-decoding retransmitter.
- handler = worker_pool_stream_handler(broadcasting, callback || block, coder: coder)
- streams[broadcasting] = handler
-
- connection.server.event_loop.post do
- pubsub.subscribe(broadcasting, handler, lambda do
- ensure_confirmation_sent
- logger.info "#{self.class.name} is streaming from #{broadcasting}"
- end)
- end
- end
+def stream_from(broadcasting, callback = nil, coder: nil, &block)
+ return if unsubscribed?
+
+ broadcasting = String(broadcasting)
+
+ # Don't send the confirmation until pubsub#subscribe is successful
+ defer_subscription_confirmation!
+
+ # Build a stream handler by wrapping the user-provided callback with a decoder
+ # or defaulting to a JSON-decoding retransmitter.
+ handler = worker_pool_stream_handler(broadcasting, callback || block, coder: coder)
+ streams[broadcasting] = handler
+
+ connection.server.event_loop.post do
+ pubsub.subscribe(broadcasting, handler, lambda do
+ ensure_confirmation_sent
+ logger.info "#{self.class.name} is streaming from #{broadcasting}"
+ end)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -368,15 +368,15 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 146
- def stream_or_reject_for(model)
- if model
- stream_for model
- else
- reject
- end
- end
+def stream_or_reject_for(model)
+ if model
+ stream_for model
+ else
+ reject
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase.html b/src/classes/ActionCable/Channel/TestCase.html
index 08fb28c0cf..6317ff44d0 100644
--- a/src/classes/ActionCable/Channel/TestCase.html
+++ b/src/classes/ActionCable/Channel/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior.html b/src/classes/ActionCable/Channel/TestCase/Behavior.html
index b5f3a5cbb7..5a8ea0fd78 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -196,11 +196,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 282
- def assert_broadcast_on(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcast_on(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -231,11 +231,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 278
- def assert_broadcasts(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcasts(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,11 +272,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 326
- def assert_has_no_stream(stream)
- assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
- end
+def assert_has_no_stream(stream)
+ assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -313,11 +313,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 337
- def assert_has_no_stream_for(object)
- assert_has_no_stream(broadcasting_for(object))
- end
+def assert_has_no_stream_for(object)
+ assert_has_no_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -354,11 +354,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 304
- def assert_has_stream(stream)
- assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
- end
+def assert_has_stream(stream)
+ assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -395,11 +395,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 315
- def assert_has_stream_for(object)
- assert_has_stream(broadcasting_for(object))
- end
+def assert_has_stream_for(object)
+ assert_has_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -436,11 +436,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 293
- def assert_no_streams
- assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
- end
+def assert_no_streams
+ assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -473,12 +473,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 266
- def perform(action, data = {})
- check_subscribed!
- subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
- end
+def perform(action, data = {})
+ check_subscribed!
+ subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -516,11 +516,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 243
- def stub_connection(identifiers = {})
- @connection = ConnectionStub.new(identifiers)
- end
+def stub_connection(identifiers = {})
+ @connection = ConnectionStub.new(identifiers)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -551,15 +551,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 249
- def subscribe(params = {})
- @connection ||= stub_connection
- @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
- @subscription.singleton_class.include(ChannelStub)
- @subscription.subscribe_to_channel
- @subscription
- end
+def subscribe(params = {})
+ @connection ||= stub_connection
+ @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
+ @subscription.singleton_class.include(ChannelStub)
+ @subscription.subscribe_to_channel
+ @subscription
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -590,12 +590,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 272
- def transmissions
- # Return only directly sent message (via #transmit)
- connection.transmissions.filter_map { |data| data["message"] }
- end
+def transmissions
+ # Return only directly sent message (via #transmit)
+ connection.transmissions.filter_map { |data| data["message"] }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -626,12 +626,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 258
- def unsubscribe
- check_subscribed!
- subscription.unsubscribe_from_channel
- end
+def unsubscribe
+ check_subscribed!
+ subscription.unsubscribe_from_channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
index 48ea87f130..57efb4cdac 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 219
- def channel_class
- if channel = self._channel_class
- channel
- else
- tests determine_default_channel(name)
- end
- end
+def channel_class
+ if channel = self._channel_class
+ channel
+ else
+ tests determine_default_channel(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 227
- def determine_default_channel(name)
- channel = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Channel::Base
- end
- raise NonInferrableChannelError.new(name) if channel.nil?
- channel
- end
+def determine_default_channel(name)
+ channel = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Channel::Base
+ end
+ raise NonInferrableChannelError.new(name) if channel.nil?
+ channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 208
- def tests(channel)
- case channel
- when String, Symbol
- self._channel_class = channel.to_s.camelize.constantize
- when Module
- self._channel_class = channel
- else
- raise NonInferrableChannelError.new(channel)
- end
- end
+def tests(channel)
+ case channel
+ when String, Symbol
+ self._channel_class = channel.to_s.camelize.constantize
+ when Module
+ self._channel_class = channel
+ else
+ raise NonInferrableChannelError.new(channel)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection.html b/src/classes/ActionCable/Connection.html
index f832214f0e..7889c75284 100644
--- a/src/classes/ActionCable/Connection.html
+++ b/src/classes/ActionCable/Connection.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Assertions.html b/src/classes/ActionCable/Connection/Assertions.html
index 933ea80e4c..6b10ec5528 100644
--- a/src/classes/ActionCable/Connection/Assertions.html
+++ b/src/classes/ActionCable/Connection/Assertions.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 28
- def assert_reject_connection(&block)
- assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
- end
+def assert_reject_connection(&block)
+ assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization.html b/src/classes/ActionCable/Connection/Authorization.html
index feb855aa9e..baf85a37b3 100644
--- a/src/classes/ActionCable/Connection/Authorization.html
+++ b/src/classes/ActionCable/Connection/Authorization.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -97,12 +97,12 @@
# File actioncable/lib/action_cable/connection/authorization.rb, line 12
- def reject_unauthorized_connection
- logger.error "An unauthorized connection attempt was rejected"
- raise UnauthorizedError
- end
+def reject_unauthorized_connection
+ logger.error "An unauthorized connection attempt was rejected"
+ raise UnauthorizedError
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
index b63b282b0b..ff36299a28 100644
--- a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
+++ b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/Base.html b/src/classes/ActionCable/Connection/Base.html
index 36a2f1e1bb..ea0d62911f 100644
--- a/src/classes/ActionCable/Connection/Base.html
+++ b/src/classes/ActionCable/Connection/Base.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -255,21 +255,21 @@
# File actioncable/lib/action_cable/connection/base.rb, line 67
- def initialize(server, env, coder: ActiveSupport::JSON)
- @server, @env, @coder = server, env, coder
+def initialize(server, env, coder: ActiveSupport::JSON)
+ @server, @env, @coder = server, env, coder
- @worker_pool = server.worker_pool
- @logger = new_tagged_logger
+ @worker_pool = server.worker_pool
+ @logger = new_tagged_logger
- @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
+ @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
- @_internal_subscriptions = nil
- @started_at = Time.now
- end
+ @_internal_subscriptions = nil
+ @started_at = Time.now
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -304,11 +304,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 147
- def beat
- transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
- end
+def beat
+ transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -339,16 +339,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 120
- def close(reason: nil, reconnect: true)
- transmit(
- type: ActionCable::INTERNAL[:message_types][:disconnect],
- reason: reason,
- reconnect: reconnect
- )
- websocket.close
- end
+def close(reason: nil, reconnect: true)
+ transmit(
+ type: ActionCable::INTERNAL[:message_types][:disconnect],
+ reason: reason,
+ reconnect: reconnect
+ )
+ websocket.close
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -379,13 +379,13 @@
# File actioncable/lib/action_cable/connection/base.rb, line 109
- def handle_channel_command(payload)
- run_callbacks :command do
- subscriptions.execute_command payload
- end
- end
+def handle_channel_command(payload)
+ run_callbacks :command do
+ subscriptions.execute_command payload
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -416,11 +416,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 131
- def send_async(method, *arguments)
- worker_pool.async_invoke(self, method, *arguments)
- end
+def send_async(method, *arguments)
+ worker_pool.async_invoke(self, method, *arguments)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -451,16 +451,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 138
- def statistics
- {
- identifier: connection_identifier,
- started_at: @started_at,
- subscriptions: subscriptions.identifiers,
- request_id: @env["action_dispatch.request_id"]
- }
- end
+def statistics
+ {
+ identifier: connection_identifier,
+ started_at: @started_at,
+ subscriptions: subscriptions.identifiers,
+ request_id: @env["action_dispatch.request_id"]
+ }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -494,11 +494,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 187
- def cookies # :doc:
- request.cookie_jar
- end
+def cookies # :doc:
+ request.cookie_jar
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -529,14 +529,14 @@
# File actioncable/lib/action_cable/connection/base.rb, line 178
- def request # :doc:
- @request ||= begin
- environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
- ActionDispatch::Request.new(environment || env)
- end
- end
+def request # :doc:
+ @request ||= begin
+ environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
+ ActionDispatch::Request.new(environment || env)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Callbacks.html b/src/classes/ActionCable/Connection/Callbacks.html
index 818958bf81..d6504ca284 100644
--- a/src/classes/ActionCable/Connection/Callbacks.html
+++ b/src/classes/ActionCable/Connection/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
index 933056a029..6376d7195b 100644
--- a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,11 +90,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 47
- def after_command(*methods, &block)
- set_callback(:command, :after, *methods, &block)
- end
+def after_command(*methods, &block)
+ set_callback(:command, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -125,11 +125,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 51
- def around_command(*methods, &block)
- set_callback(:command, :around, *methods, &block)
- end
+def around_command(*methods, &block)
+ set_callback(:command, :around, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -160,11 +160,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 43
- def before_command(*methods, &block)
- set_callback(:command, :before, *methods, &block)
- end
+def before_command(*methods, &block)
+ set_callback(:command, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification.html b/src/classes/ActionCable/Connection/Identification.html
index f3dcea9bfc..063ca88999 100644
--- a/src/classes/ActionCable/Connection/Identification.html
+++ b/src/classes/ActionCable/Connection/Identification.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,15 +95,15 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 29
- def connection_identifier
- unless defined? @connection_identifier
- @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
- end
+def connection_identifier
+ unless defined? @connection_identifier
+ @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
+ end
- @connection_identifier
- end
+ @connection_identifier
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification/ClassMethods.html b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
index 324ded31f5..a3395ef8a3 100644
--- a/src/classes/ActionCable/Connection/Identification/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -84,12 +84,12 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 21
- def identified_by(*identifiers)
- Array(identifiers).each { |identifier| attr_accessor identifier }
- self.identifiers += identifiers
- end
+def identified_by(*identifiers)
+ Array(identifiers).each { |identifier| attr_accessor identifier }
+ self.identifiers += identifiers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/InternalChannel.html b/src/classes/ActionCable/Connection/InternalChannel.html
index 9b0144f690..cfdccceaf4 100644
--- a/src/classes/ActionCable/Connection/InternalChannel.html
+++ b/src/classes/ActionCable/Connection/InternalChannel.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
index 7167904452..bf0c696d62 100644
--- a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
+++ b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 15
- def initialize(name)
- super "Unable to determine the connection to test from #{name}. " +
- "You'll need to specify it using `tests YourConnection` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the connection to test from #{name}. " +
+ "You'll need to specify it using `tests YourConnection` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/StreamEventLoop.html b/src/classes/ActionCable/Connection/StreamEventLoop.html
index 2b71a213e3..f7c49354ef 100644
--- a/src/classes/ActionCable/Connection/StreamEventLoop.html
+++ b/src/classes/ActionCable/Connection/StreamEventLoop.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -111,16 +111,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 10
- def initialize
- @nio = @executor = @thread = nil
- @map = {}
- @stopping = false
- @todo = Queue.new
-
- @spawn_mutex = Mutex.new
- end
+def initialize
+ @nio = @executor = @thread = nil
+ @map = {}
+ @stopping = false
+ @todo = Queue.new
+
+ @spawn_mutex = Mutex.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -155,15 +155,15 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 30
- def attach(io, stream)
- @todo << lambda do
- @map[io] = @nio.register(io, :r)
- @map[io].value = stream
- end
- wakeup
- end
+def attach(io, stream)
+ @todo << lambda do
+ @map[io] = @nio.register(io, :r)
+ @map[io].value = stream
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -194,16 +194,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 38
- def detach(io, stream)
- @todo << lambda do
- @nio.deregister io
- @map.delete io
- io.close
- end
- wakeup
- end
+def detach(io, stream)
+ @todo << lambda do
+ @nio.deregister io
+ @map.delete io
+ io.close
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -234,14 +234,14 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 23
- def post(task = nil, &block)
- task ||= block
+def post(task = nil, &block)
+ task ||= block
- spawn
- @executor << task
- end
+ spawn
+ @executor << task
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,12 +272,12 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 56
- def stop
- @stopping = true
- wakeup if @nio
- end
+def stop
+ @stopping = true
+ wakeup if @nio
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -308,11 +308,11 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 19
- def timer(interval, &block)
- Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
- end
+def timer(interval, &block)
+ Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -343,16 +343,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 47
- def writes_pending(io)
- @todo << lambda do
- if monitor = @map[io]
- monitor.interests = :rw
- end
- end
- wakeup
- end
+def writes_pending(io)
+ @todo << lambda do
+ if monitor = @map[io]
+ monitor.interests = :rw
+ end
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
index f4d5cacc63..99731855fb 100644
--- a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
+++ b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -121,12 +121,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 16
- def initialize(logger, tags:)
- @logger = logger
- @tags = tags.flatten
- end
+def initialize(logger, tags:)
+ @logger = logger
+ @tags = tags.flatten
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -161,12 +161,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 21
- def add_tags(*tags)
- @tags += tags.flatten
- @tags = @tags.uniq
- end
+def add_tags(*tags)
+ @tags += tags.flatten
+ @tags = @tags.uniq
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -197,16 +197,16 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 26
- def tag(logger, &block)
- if logger.respond_to?(:tagged)
- current_tags = tags - logger.formatter.current_tags
- logger.tagged(*current_tags, &block)
- else
- yield
- end
- end
+def tag(logger, &block)
+ if logger.respond_to?(:tagged)
+ current_tags = tags - logger.formatter.current_tags
+ logger.tagged(*current_tags, &block)
+ else
+ yield
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,11 +240,11 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 42
- def log(type, message, &block) # :doc:
- tag(@logger) { @logger.send type, message, &block }
- end
+def log(type, message, &block) # :doc:
+ tag(@logger) { @logger.send type, message, &block }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase.html b/src/classes/ActionCable/Connection/TestCase.html
index 948378e491..39bc5cb056 100644
--- a/src/classes/ActionCable/Connection/TestCase.html
+++ b/src/classes/ActionCable/Connection/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior.html b/src/classes/ActionCable/Connection/TestCase/Behavior.html
index b87870becd..4ee0debbea 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -163,19 +163,19 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 192
- def connect(path = ActionCable.server.config.mount_path, **request_params)
- path ||= DEFAULT_PATH
+def connect(path = ActionCable.server.config.mount_path, **request_params)
+ path ||= DEFAULT_PATH
- connection = self.class.connection_class.allocate
- connection.singleton_class.include(TestConnection)
- connection.send(:initialize, build_test_request(path, **request_params))
- connection.connect if connection.respond_to?(:connect)
+ connection = self.class.connection_class.allocate
+ connection.singleton_class.include(TestConnection)
+ connection.send(:initialize, build_test_request(path, **request_params))
+ connection.connect if connection.respond_to?(:connect)
- # Only set instance variable if connected successfully
- @connection = connection
- end
+ # Only set instance variable if connected successfully
+ @connection = connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -206,11 +206,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 212
- def cookies
- @cookie_jar ||= TestCookieJar.new
- end
+def cookies
+ @cookie_jar ||= TestCookieJar.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -241,14 +241,14 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 205
- def disconnect
- raise "Must be connected!" if connection.nil?
+def disconnect
+ raise "Must be connected!" if connection.nil?
- connection.disconnect if connection.respond_to?(:disconnect)
- @connection = nil
- end
+ connection.disconnect if connection.respond_to?(:disconnect)
+ @connection = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
index 63444f4b27..99fc0e3f6f 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 167
- def connection_class
- if connection = self._connection_class
- connection
- else
- tests determine_default_connection(name)
- end
- end
+def connection_class
+ if connection = self._connection_class
+ connection
+ else
+ tests determine_default_connection(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 175
- def determine_default_connection(name)
- connection = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Connection::Base
- end
- raise NonInferrableConnectionError.new(name) if connection.nil?
- connection
- end
+def determine_default_connection(name)
+ connection = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Connection::Base
+ end
+ raise NonInferrableConnectionError.new(name) if connection.nil?
+ connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/channel/base.rb, line 254
- def defer_subscription_confirmation? # :doc:
- @defer_subscription_confirmation_counter.value > 0
- end# File actioncable/lib/action_cable/channel/base.rb, line 257
+def defer_subscription_confirmation? # :doc:
+ @defer_subscription_confirmation_counter.value > 0
+end# File actioncable/lib/action_cable/channel/base.rb, line 244
- def ensure_confirmation_sent # :doc:
- return if subscription_rejected?
- @defer_subscription_confirmation_counter.decrement
- transmit_subscription_confirmation unless defer_subscription_confirmation?
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 247
+def ensure_confirmation_sent # :doc:
+ return if subscription_rejected?
+ @defer_subscription_confirmation_counter.decrement
+ transmit_subscription_confirmation unless defer_subscription_confirmation?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -670,12 +673,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 262
- def reject # :doc:
- @reject_subscription = true
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 265
+def reject # :doc:
+ @reject_subscription = true
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -705,12 +708,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 218
- def subscribed # :doc:
- # Override in subclasses
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 221
+def subscribed # :doc:
+ # Override in subclasses
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -740,12 +743,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 258
- def subscription_confirmation_sent? # :doc:
- @subscription_confirmation_sent
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 261
+def subscription_confirmation_sent? # :doc:
+ @subscription_confirmation_sent
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -775,12 +778,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 266
- def subscription_rejected? # :doc:
- @reject_subscription
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 269
+def subscription_rejected? # :doc:
+ @reject_subscription
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -810,21 +813,21 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 231
- def transmit(data, via: nil) # :doc:
- logger.debug do
- status = "#{self.class.name} transmitting #{data.inspect.truncate(300)}"
- status += " (via #{via})" if via
- status
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 234
+def transmit(data, via: nil) # :doc:
+ logger.debug do
+ status = "#{self.class.name} transmitting #{data.inspect.truncate(300)}"
+ status += " (via #{via})" if via
+ status
+ end
- payload = { channel_class: self.class.name, data: data, via: via }
- ActiveSupport::Notifications.instrument("transmit.action_cable", payload) do
- connection.transmit identifier: @identifier, message: data
- end
- end
+ payload = { channel_class: self.class.name, data: data, via: via }
+ ActiveSupport::Notifications.instrument("transmit.action_cable", payload) do
+ connection.transmit identifier: @identifier, message: data
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -854,12 +857,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 224
- def unsubscribed # :doc:
- # Override in subclasses
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 227
+def unsubscribed # :doc:
+ # Override in subclasses
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Broadcasting.html b/src/classes/ActionCable/Channel/Broadcasting.html
index bb71b89445..7fecc3f6b8 100644
--- a/src/classes/ActionCable/Channel/Broadcasting.html
+++ b/src/classes/ActionCable/Channel/Broadcasting.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -99,11 +99,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 45
- def broadcast_to(model, message)
- self.class.broadcast_to(model, message)
- end
+def broadcast_to(model, message)
+ self.class.broadcast_to(model, message)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -134,11 +134,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 41
- def broadcasting_for(model)
- self.class.broadcasting_for(model)
- end
+def broadcasting_for(model)
+ self.class.broadcasting_for(model)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html b/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
index 684bccb1ab..432bb5d74f 100644
--- a/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 14
- def broadcast_to(broadcastables, message)
- ActionCable.server.broadcast(broadcasting_for(broadcastables), message)
- end
+def broadcast_to(broadcastables, message)
+ ActionCable.server.broadcast(broadcasting_for(broadcastables), message)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -126,11 +126,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 24
- def broadcasting_for(broadcastables)
- serialize_broadcasting([ channel_name ] + Array(broadcastables))
- end
+def broadcasting_for(broadcastables)
+ serialize_broadcasting([ channel_name ] + Array(broadcastables))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Callbacks.html b/src/classes/ActionCable/Channel/Callbacks.html
index 076bdbc8fa..64985186c3 100644
--- a/src/classes/ActionCable/Channel/Callbacks.html
+++ b/src/classes/ActionCable/Channel/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html b/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
index 6ee4317311..7949b5fdf6 100644
--- a/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -111,11 +111,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 60
- def after_subscribe(*methods, &block)
- set_callback(:subscribe, :after, *methods, &block)
- end
+def after_subscribe(*methods, &block)
+ set_callback(:subscribe, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -150,11 +150,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 69
- def after_unsubscribe(*methods, &block)
- set_callback(:unsubscribe, :after, *methods, &block)
- end
+def after_unsubscribe(*methods, &block)
+ set_callback(:unsubscribe, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -185,11 +185,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 48
- def before_subscribe(*methods, &block)
- set_callback(:subscribe, :before, *methods, &block)
- end
+def before_subscribe(*methods, &block)
+ set_callback(:subscribe, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -220,11 +220,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 65
- def before_unsubscribe(*methods, &block)
- set_callback(:unsubscribe, :before, *methods, &block)
- end
+def before_unsubscribe(*methods, &block)
+ set_callback(:unsubscribe, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/ChannelStub.html b/src/classes/ActionCable/Channel/ChannelStub.html
index 9db98daac2..d004896dc5 100644
--- a/src/classes/ActionCable/Channel/ChannelStub.html
+++ b/src/classes/ActionCable/Channel/ChannelStub.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -25,7 +25,7 @@
Action Cable Channel Stub
-
Stub stream_from to track streams for the channel. Add public aliases for subscription_confirmation_sent? and subscription_rejected?.
+Stub stream_from to track streams for the channel. Add public aliases for subscription_confirmation_sent? and subscription_rejected?.
@@ -114,11 +114,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 25
- def confirmed?
- subscription_confirmation_sent?
- end
+def confirmed?
+ subscription_confirmation_sent?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -149,11 +149,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 29
- def rejected?
- subscription_rejected?
- end
+def rejected?
+ subscription_rejected?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -188,9 +188,9 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 46
- def start_periodic_timers; end
+def start_periodic_timers; end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -221,11 +221,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 37
- def stop_all_streams
- @_streams = []
- end
+def stop_all_streams
+ @_streams = []
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -281,11 +281,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 33
- def stream_from(broadcasting, *)
- streams << broadcasting
- end
+def stream_from(broadcasting, *)
+ streams << broadcasting
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -316,11 +316,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 41
- def streams
- @_streams ||= []
- end
+def streams
+ @_streams ||= []
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/ConnectionStub.html b/src/classes/ActionCable/Channel/ConnectionStub.html
index 62c52b567f..0fdc0d8690 100644
--- a/src/classes/ActionCable/Channel/ConnectionStub.html
+++ b/src/classes/ActionCable/Channel/ConnectionStub.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -141,20 +141,20 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 55
- def initialize(identifiers = {})
- @server = ActionCable.server
- @transmissions = []
-
- identifiers.each do |identifier, val|
- define_singleton_method(identifier) { val }
- end
-
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @identifiers = identifiers.keys
- @logger = ActiveSupport::TaggedLogging.new ActiveSupport::Logger.new(StringIO.new)
- end
+def initialize(identifiers = {})
+ @server = ActionCable.server
+ @transmissions = []
+
+ identifiers.each do |identifier, val|
+ define_singleton_method(identifier) { val }
+ end
+
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @identifiers = identifiers.keys
+ @logger = ActiveSupport::TaggedLogging.new ActiveSupport::Logger.new(StringIO.new)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -189,11 +189,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 72
- def connection_identifier
- @connection_identifier ||= connection_gid(identifiers.filter_map { |id| send(id.to_sym) if id })
- end
+def connection_identifier
+ @connection_identifier ||= connection_gid(identifiers.filter_map { |id| send(id.to_sym) if id })
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -224,11 +224,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 68
- def transmit(cable_message)
- transmissions << cable_message.with_indifferent_access
- end
+def transmit(cable_message)
+ transmissions << cable_message.with_indifferent_access
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Naming.html b/src/classes/ActionCable/Channel/Naming.html
index 84bfc0232c..db2aa18589 100644
--- a/src/classes/ActionCable/Channel/Naming.html
+++ b/src/classes/ActionCable/Channel/Naming.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,11 +95,11 @@
# File actioncable/lib/action_cable/channel/naming.rb, line 23
- def channel_name
- self.class.channel_name
- end
+def channel_name
+ self.class.channel_name
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Naming/ClassMethods.html b/src/classes/ActionCable/Channel/Naming/ClassMethods.html
index b847309f12..e99c0744a7 100644
--- a/src/classes/ActionCable/Channel/Naming/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Naming/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -66,7 +66,7 @@
- Returns the name of the channel, underscored, without the Channel ending. If the channel is in a namespace, then the namespaces are represented by single colon separators in the channel name.
+ Returns the name of the channel, underscored, without the Channel ending. If the channel is in a namespace, then the namespaces are represented by single colon separators in the channel name.
ChatChannel.channel_name # => 'chat'
Chats::AppearancesChannel.channel_name # => 'chats:appearances'
@@ -87,11 +87,11 @@
# File actioncable/lib/action_cable/channel/naming.rb, line 18
- def channel_name
- @channel_name ||= name.delete_suffix("Channel").gsub("::", ":").underscore
- end
+def channel_name
+ @channel_name ||= name.delete_suffix("Channel").gsub("::", ":").underscore
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/NonInferrableChannelError.html b/src/classes/ActionCable/Channel/NonInferrableChannelError.html
index 034c36b135..1eac81cbd2 100644
--- a/src/classes/ActionCable/Channel/NonInferrableChannelError.html
+++ b/src/classes/ActionCable/Channel/NonInferrableChannelError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 13
- def initialize(name)
- super "Unable to determine the channel to test from #{name}. " +
- "You'll need to specify it using `tests YourChannel` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the channel to test from #{name}. " +
+ "You'll need to specify it using `tests YourChannel` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/PeriodicTimers.html b/src/classes/ActionCable/Channel/PeriodicTimers.html
index 88facef675..561da6e0dd 100644
--- a/src/classes/ActionCable/Channel/PeriodicTimers.html
+++ b/src/classes/ActionCable/Channel/PeriodicTimers.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html b/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
index 233865e2e3..a694f6de16 100644
--- a/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -91,30 +91,30 @@
# File actioncable/lib/action_cable/channel/periodic_timers.rb, line 31
- def periodically(callback_or_method_name = nil, every:, &block)
- callback =
- if block_given?
- raise ArgumentError, "Pass a block or provide a callback arg, not both" if callback_or_method_name
- block
- else
- case callback_or_method_name
- when Proc
- callback_or_method_name
- when Symbol
- -> { __send__ callback_or_method_name }
- else
- raise ArgumentError, "Expected a Symbol method name or a Proc, got #{callback_or_method_name.inspect}"
- end
- end
-
- unless every.kind_of?(Numeric) && every > 0
- raise ArgumentError, "Expected every: to be a positive number of seconds, got #{every.inspect}"
- end
-
- self.periodic_timers += [[ callback, every: every ]]
- end
+def periodically(callback_or_method_name = nil, every:, &block)
+ callback =
+ if block_given?
+ raise ArgumentError, "Pass a block or provide a callback arg, not both" if callback_or_method_name
+ block
+ else
+ case callback_or_method_name
+ when Proc
+ callback_or_method_name
+ when Symbol
+ -> { __send__ callback_or_method_name }
+ else
+ raise ArgumentError, "Expected a Symbol method name or a Proc, got #{callback_or_method_name.inspect}"
+ end
+ end
+
+ unless every.kind_of?(Numeric) && every > 0
+ raise ArgumentError, "Expected every: to be a positive number of seconds, got #{every.inspect}"
+ end
+
+ self.periodic_timers += [[ callback, every: every ]]
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Streams.html b/src/classes/ActionCable/Channel/Streams.html
index 0967feb616..a2e686a3e9 100644
--- a/src/classes/ActionCable/Channel/Streams.html
+++ b/src/classes/ActionCable/Channel/Streams.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -167,14 +167,14 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 137
- def stop_all_streams
- streams.each do |broadcasting, callback|
- pubsub.unsubscribe broadcasting, callback
- logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
- end.clear
- end
+def stop_all_streams
+ streams.each do |broadcasting, callback|
+ pubsub.unsubscribe broadcasting, callback
+ logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
+ end.clear
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -205,11 +205,11 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 132
- def stop_stream_for(model)
- stop_stream_from(broadcasting_for(model))
- end
+def stop_stream_for(model)
+ stop_stream_from(broadcasting_for(model))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,15 +240,15 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 123
- def stop_stream_from(broadcasting)
- callback = streams.delete(broadcasting)
- if callback
- pubsub.unsubscribe(broadcasting, callback)
- logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
- end
- end
+def stop_stream_from(broadcasting)
+ callback = streams.delete(broadcasting)
+ if callback
+ pubsub.unsubscribe(broadcasting, callback)
+ logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -281,11 +281,11 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 118
- def stream_for(broadcastables, callback = nil, coder: nil, &block)
- stream_from(broadcasting_for(broadcastables), callback || block, coder: coder)
- end
+def stream_for(broadcastables, callback = nil, coder: nil, &block)
+ stream_from(broadcasting_for(broadcastables), callback || block, coder: coder)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -316,28 +316,28 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 90
- def stream_from(broadcasting, callback = nil, coder: nil, &block)
- return if unsubscribed?
-
- broadcasting = String(broadcasting)
-
- # Don't send the confirmation until pubsub#subscribe is successful
- defer_subscription_confirmation!
-
- # Build a stream handler by wrapping the user-provided callback with a decoder
- # or defaulting to a JSON-decoding retransmitter.
- handler = worker_pool_stream_handler(broadcasting, callback || block, coder: coder)
- streams[broadcasting] = handler
-
- connection.server.event_loop.post do
- pubsub.subscribe(broadcasting, handler, lambda do
- ensure_confirmation_sent
- logger.info "#{self.class.name} is streaming from #{broadcasting}"
- end)
- end
- end
+def stream_from(broadcasting, callback = nil, coder: nil, &block)
+ return if unsubscribed?
+
+ broadcasting = String(broadcasting)
+
+ # Don't send the confirmation until pubsub#subscribe is successful
+ defer_subscription_confirmation!
+
+ # Build a stream handler by wrapping the user-provided callback with a decoder
+ # or defaulting to a JSON-decoding retransmitter.
+ handler = worker_pool_stream_handler(broadcasting, callback || block, coder: coder)
+ streams[broadcasting] = handler
+
+ connection.server.event_loop.post do
+ pubsub.subscribe(broadcasting, handler, lambda do
+ ensure_confirmation_sent
+ logger.info "#{self.class.name} is streaming from #{broadcasting}"
+ end)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -368,15 +368,15 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 146
- def stream_or_reject_for(model)
- if model
- stream_for model
- else
- reject
- end
- end
+def stream_or_reject_for(model)
+ if model
+ stream_for model
+ else
+ reject
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase.html b/src/classes/ActionCable/Channel/TestCase.html
index 08fb28c0cf..6317ff44d0 100644
--- a/src/classes/ActionCable/Channel/TestCase.html
+++ b/src/classes/ActionCable/Channel/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior.html b/src/classes/ActionCable/Channel/TestCase/Behavior.html
index b5f3a5cbb7..5a8ea0fd78 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -196,11 +196,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 282
- def assert_broadcast_on(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcast_on(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -231,11 +231,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 278
- def assert_broadcasts(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcasts(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,11 +272,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 326
- def assert_has_no_stream(stream)
- assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
- end
+def assert_has_no_stream(stream)
+ assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -313,11 +313,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 337
- def assert_has_no_stream_for(object)
- assert_has_no_stream(broadcasting_for(object))
- end
+def assert_has_no_stream_for(object)
+ assert_has_no_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -354,11 +354,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 304
- def assert_has_stream(stream)
- assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
- end
+def assert_has_stream(stream)
+ assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -395,11 +395,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 315
- def assert_has_stream_for(object)
- assert_has_stream(broadcasting_for(object))
- end
+def assert_has_stream_for(object)
+ assert_has_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -436,11 +436,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 293
- def assert_no_streams
- assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
- end
+def assert_no_streams
+ assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -473,12 +473,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 266
- def perform(action, data = {})
- check_subscribed!
- subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
- end
+def perform(action, data = {})
+ check_subscribed!
+ subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -516,11 +516,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 243
- def stub_connection(identifiers = {})
- @connection = ConnectionStub.new(identifiers)
- end
+def stub_connection(identifiers = {})
+ @connection = ConnectionStub.new(identifiers)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -551,15 +551,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 249
- def subscribe(params = {})
- @connection ||= stub_connection
- @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
- @subscription.singleton_class.include(ChannelStub)
- @subscription.subscribe_to_channel
- @subscription
- end
+def subscribe(params = {})
+ @connection ||= stub_connection
+ @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
+ @subscription.singleton_class.include(ChannelStub)
+ @subscription.subscribe_to_channel
+ @subscription
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -590,12 +590,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 272
- def transmissions
- # Return only directly sent message (via #transmit)
- connection.transmissions.filter_map { |data| data["message"] }
- end
+def transmissions
+ # Return only directly sent message (via #transmit)
+ connection.transmissions.filter_map { |data| data["message"] }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -626,12 +626,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 258
- def unsubscribe
- check_subscribed!
- subscription.unsubscribe_from_channel
- end
+def unsubscribe
+ check_subscribed!
+ subscription.unsubscribe_from_channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
index 48ea87f130..57efb4cdac 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 219
- def channel_class
- if channel = self._channel_class
- channel
- else
- tests determine_default_channel(name)
- end
- end
+def channel_class
+ if channel = self._channel_class
+ channel
+ else
+ tests determine_default_channel(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 227
- def determine_default_channel(name)
- channel = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Channel::Base
- end
- raise NonInferrableChannelError.new(name) if channel.nil?
- channel
- end
+def determine_default_channel(name)
+ channel = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Channel::Base
+ end
+ raise NonInferrableChannelError.new(name) if channel.nil?
+ channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 208
- def tests(channel)
- case channel
- when String, Symbol
- self._channel_class = channel.to_s.camelize.constantize
- when Module
- self._channel_class = channel
- else
- raise NonInferrableChannelError.new(channel)
- end
- end
+def tests(channel)
+ case channel
+ when String, Symbol
+ self._channel_class = channel.to_s.camelize.constantize
+ when Module
+ self._channel_class = channel
+ else
+ raise NonInferrableChannelError.new(channel)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection.html b/src/classes/ActionCable/Connection.html
index f832214f0e..7889c75284 100644
--- a/src/classes/ActionCable/Connection.html
+++ b/src/classes/ActionCable/Connection.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Assertions.html b/src/classes/ActionCable/Connection/Assertions.html
index 933ea80e4c..6b10ec5528 100644
--- a/src/classes/ActionCable/Connection/Assertions.html
+++ b/src/classes/ActionCable/Connection/Assertions.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 28
- def assert_reject_connection(&block)
- assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
- end
+def assert_reject_connection(&block)
+ assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization.html b/src/classes/ActionCable/Connection/Authorization.html
index feb855aa9e..baf85a37b3 100644
--- a/src/classes/ActionCable/Connection/Authorization.html
+++ b/src/classes/ActionCable/Connection/Authorization.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -97,12 +97,12 @@
# File actioncable/lib/action_cable/connection/authorization.rb, line 12
- def reject_unauthorized_connection
- logger.error "An unauthorized connection attempt was rejected"
- raise UnauthorizedError
- end
+def reject_unauthorized_connection
+ logger.error "An unauthorized connection attempt was rejected"
+ raise UnauthorizedError
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
index b63b282b0b..ff36299a28 100644
--- a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
+++ b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/Base.html b/src/classes/ActionCable/Connection/Base.html
index 36a2f1e1bb..ea0d62911f 100644
--- a/src/classes/ActionCable/Connection/Base.html
+++ b/src/classes/ActionCable/Connection/Base.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -255,21 +255,21 @@
# File actioncable/lib/action_cable/connection/base.rb, line 67
- def initialize(server, env, coder: ActiveSupport::JSON)
- @server, @env, @coder = server, env, coder
+def initialize(server, env, coder: ActiveSupport::JSON)
+ @server, @env, @coder = server, env, coder
- @worker_pool = server.worker_pool
- @logger = new_tagged_logger
+ @worker_pool = server.worker_pool
+ @logger = new_tagged_logger
- @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
+ @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
- @_internal_subscriptions = nil
- @started_at = Time.now
- end
+ @_internal_subscriptions = nil
+ @started_at = Time.now
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -304,11 +304,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 147
- def beat
- transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
- end
+def beat
+ transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -339,16 +339,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 120
- def close(reason: nil, reconnect: true)
- transmit(
- type: ActionCable::INTERNAL[:message_types][:disconnect],
- reason: reason,
- reconnect: reconnect
- )
- websocket.close
- end
+def close(reason: nil, reconnect: true)
+ transmit(
+ type: ActionCable::INTERNAL[:message_types][:disconnect],
+ reason: reason,
+ reconnect: reconnect
+ )
+ websocket.close
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -379,13 +379,13 @@
# File actioncable/lib/action_cable/connection/base.rb, line 109
- def handle_channel_command(payload)
- run_callbacks :command do
- subscriptions.execute_command payload
- end
- end
+def handle_channel_command(payload)
+ run_callbacks :command do
+ subscriptions.execute_command payload
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -416,11 +416,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 131
- def send_async(method, *arguments)
- worker_pool.async_invoke(self, method, *arguments)
- end
+def send_async(method, *arguments)
+ worker_pool.async_invoke(self, method, *arguments)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -451,16 +451,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 138
- def statistics
- {
- identifier: connection_identifier,
- started_at: @started_at,
- subscriptions: subscriptions.identifiers,
- request_id: @env["action_dispatch.request_id"]
- }
- end
+def statistics
+ {
+ identifier: connection_identifier,
+ started_at: @started_at,
+ subscriptions: subscriptions.identifiers,
+ request_id: @env["action_dispatch.request_id"]
+ }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -494,11 +494,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 187
- def cookies # :doc:
- request.cookie_jar
- end
+def cookies # :doc:
+ request.cookie_jar
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -529,14 +529,14 @@
# File actioncable/lib/action_cable/connection/base.rb, line 178
- def request # :doc:
- @request ||= begin
- environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
- ActionDispatch::Request.new(environment || env)
- end
- end
+def request # :doc:
+ @request ||= begin
+ environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
+ ActionDispatch::Request.new(environment || env)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Callbacks.html b/src/classes/ActionCable/Connection/Callbacks.html
index 818958bf81..d6504ca284 100644
--- a/src/classes/ActionCable/Connection/Callbacks.html
+++ b/src/classes/ActionCable/Connection/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
index 933056a029..6376d7195b 100644
--- a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,11 +90,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 47
- def after_command(*methods, &block)
- set_callback(:command, :after, *methods, &block)
- end
+def after_command(*methods, &block)
+ set_callback(:command, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -125,11 +125,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 51
- def around_command(*methods, &block)
- set_callback(:command, :around, *methods, &block)
- end
+def around_command(*methods, &block)
+ set_callback(:command, :around, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -160,11 +160,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 43
- def before_command(*methods, &block)
- set_callback(:command, :before, *methods, &block)
- end
+def before_command(*methods, &block)
+ set_callback(:command, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification.html b/src/classes/ActionCable/Connection/Identification.html
index f3dcea9bfc..063ca88999 100644
--- a/src/classes/ActionCable/Connection/Identification.html
+++ b/src/classes/ActionCable/Connection/Identification.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,15 +95,15 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 29
- def connection_identifier
- unless defined? @connection_identifier
- @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
- end
+def connection_identifier
+ unless defined? @connection_identifier
+ @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
+ end
- @connection_identifier
- end
+ @connection_identifier
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification/ClassMethods.html b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
index 324ded31f5..a3395ef8a3 100644
--- a/src/classes/ActionCable/Connection/Identification/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -84,12 +84,12 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 21
- def identified_by(*identifiers)
- Array(identifiers).each { |identifier| attr_accessor identifier }
- self.identifiers += identifiers
- end
+def identified_by(*identifiers)
+ Array(identifiers).each { |identifier| attr_accessor identifier }
+ self.identifiers += identifiers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/InternalChannel.html b/src/classes/ActionCable/Connection/InternalChannel.html
index 9b0144f690..cfdccceaf4 100644
--- a/src/classes/ActionCable/Connection/InternalChannel.html
+++ b/src/classes/ActionCable/Connection/InternalChannel.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
index 7167904452..bf0c696d62 100644
--- a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
+++ b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 15
- def initialize(name)
- super "Unable to determine the connection to test from #{name}. " +
- "You'll need to specify it using `tests YourConnection` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the connection to test from #{name}. " +
+ "You'll need to specify it using `tests YourConnection` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/StreamEventLoop.html b/src/classes/ActionCable/Connection/StreamEventLoop.html
index 2b71a213e3..f7c49354ef 100644
--- a/src/classes/ActionCable/Connection/StreamEventLoop.html
+++ b/src/classes/ActionCable/Connection/StreamEventLoop.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -111,16 +111,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 10
- def initialize
- @nio = @executor = @thread = nil
- @map = {}
- @stopping = false
- @todo = Queue.new
-
- @spawn_mutex = Mutex.new
- end
+def initialize
+ @nio = @executor = @thread = nil
+ @map = {}
+ @stopping = false
+ @todo = Queue.new
+
+ @spawn_mutex = Mutex.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -155,15 +155,15 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 30
- def attach(io, stream)
- @todo << lambda do
- @map[io] = @nio.register(io, :r)
- @map[io].value = stream
- end
- wakeup
- end
+def attach(io, stream)
+ @todo << lambda do
+ @map[io] = @nio.register(io, :r)
+ @map[io].value = stream
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -194,16 +194,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 38
- def detach(io, stream)
- @todo << lambda do
- @nio.deregister io
- @map.delete io
- io.close
- end
- wakeup
- end
+def detach(io, stream)
+ @todo << lambda do
+ @nio.deregister io
+ @map.delete io
+ io.close
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -234,14 +234,14 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 23
- def post(task = nil, &block)
- task ||= block
+def post(task = nil, &block)
+ task ||= block
- spawn
- @executor << task
- end
+ spawn
+ @executor << task
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,12 +272,12 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 56
- def stop
- @stopping = true
- wakeup if @nio
- end
+def stop
+ @stopping = true
+ wakeup if @nio
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -308,11 +308,11 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 19
- def timer(interval, &block)
- Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
- end
+def timer(interval, &block)
+ Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -343,16 +343,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 47
- def writes_pending(io)
- @todo << lambda do
- if monitor = @map[io]
- monitor.interests = :rw
- end
- end
- wakeup
- end
+def writes_pending(io)
+ @todo << lambda do
+ if monitor = @map[io]
+ monitor.interests = :rw
+ end
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
index f4d5cacc63..99731855fb 100644
--- a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
+++ b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -121,12 +121,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 16
- def initialize(logger, tags:)
- @logger = logger
- @tags = tags.flatten
- end
+def initialize(logger, tags:)
+ @logger = logger
+ @tags = tags.flatten
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -161,12 +161,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 21
- def add_tags(*tags)
- @tags += tags.flatten
- @tags = @tags.uniq
- end
+def add_tags(*tags)
+ @tags += tags.flatten
+ @tags = @tags.uniq
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -197,16 +197,16 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 26
- def tag(logger, &block)
- if logger.respond_to?(:tagged)
- current_tags = tags - logger.formatter.current_tags
- logger.tagged(*current_tags, &block)
- else
- yield
- end
- end
+def tag(logger, &block)
+ if logger.respond_to?(:tagged)
+ current_tags = tags - logger.formatter.current_tags
+ logger.tagged(*current_tags, &block)
+ else
+ yield
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,11 +240,11 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 42
- def log(type, message, &block) # :doc:
- tag(@logger) { @logger.send type, message, &block }
- end
+def log(type, message, &block) # :doc:
+ tag(@logger) { @logger.send type, message, &block }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase.html b/src/classes/ActionCable/Connection/TestCase.html
index 948378e491..39bc5cb056 100644
--- a/src/classes/ActionCable/Connection/TestCase.html
+++ b/src/classes/ActionCable/Connection/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior.html b/src/classes/ActionCable/Connection/TestCase/Behavior.html
index b87870becd..4ee0debbea 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -163,19 +163,19 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 192
- def connect(path = ActionCable.server.config.mount_path, **request_params)
- path ||= DEFAULT_PATH
+def connect(path = ActionCable.server.config.mount_path, **request_params)
+ path ||= DEFAULT_PATH
- connection = self.class.connection_class.allocate
- connection.singleton_class.include(TestConnection)
- connection.send(:initialize, build_test_request(path, **request_params))
- connection.connect if connection.respond_to?(:connect)
+ connection = self.class.connection_class.allocate
+ connection.singleton_class.include(TestConnection)
+ connection.send(:initialize, build_test_request(path, **request_params))
+ connection.connect if connection.respond_to?(:connect)
- # Only set instance variable if connected successfully
- @connection = connection
- end
+ # Only set instance variable if connected successfully
+ @connection = connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -206,11 +206,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 212
- def cookies
- @cookie_jar ||= TestCookieJar.new
- end
+def cookies
+ @cookie_jar ||= TestCookieJar.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -241,14 +241,14 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 205
- def disconnect
- raise "Must be connected!" if connection.nil?
+def disconnect
+ raise "Must be connected!" if connection.nil?
- connection.disconnect if connection.respond_to?(:disconnect)
- @connection = nil
- end
+ connection.disconnect if connection.respond_to?(:disconnect)
+ @connection = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
index 63444f4b27..99fc0e3f6f 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 167
- def connection_class
- if connection = self._connection_class
- connection
- else
- tests determine_default_connection(name)
- end
- end
+def connection_class
+ if connection = self._connection_class
+ connection
+ else
+ tests determine_default_connection(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 175
- def determine_default_connection(name)
- connection = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Connection::Base
- end
- raise NonInferrableConnectionError.new(name) if connection.nil?
- connection
- end
+def determine_default_connection(name)
+ connection = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Connection::Base
+ end
+ raise NonInferrableConnectionError.new(name) if connection.nil?
+ connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/channel/base.rb, line 262
- def reject # :doc:
- @reject_subscription = true
- end# File actioncable/lib/action_cable/channel/base.rb, line 265
+def reject # :doc:
+ @reject_subscription = true
+end# File actioncable/lib/action_cable/channel/base.rb, line 218
- def subscribed # :doc:
- # Override in subclasses
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 221
+def subscribed # :doc:
+ # Override in subclasses
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -740,12 +743,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 258
- def subscription_confirmation_sent? # :doc:
- @subscription_confirmation_sent
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 261
+def subscription_confirmation_sent? # :doc:
+ @subscription_confirmation_sent
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -775,12 +778,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 266
- def subscription_rejected? # :doc:
- @reject_subscription
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 269
+def subscription_rejected? # :doc:
+ @reject_subscription
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -810,21 +813,21 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 231
- def transmit(data, via: nil) # :doc:
- logger.debug do
- status = "#{self.class.name} transmitting #{data.inspect.truncate(300)}"
- status += " (via #{via})" if via
- status
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 234
+def transmit(data, via: nil) # :doc:
+ logger.debug do
+ status = "#{self.class.name} transmitting #{data.inspect.truncate(300)}"
+ status += " (via #{via})" if via
+ status
+ end
- payload = { channel_class: self.class.name, data: data, via: via }
- ActiveSupport::Notifications.instrument("transmit.action_cable", payload) do
- connection.transmit identifier: @identifier, message: data
- end
- end
+ payload = { channel_class: self.class.name, data: data, via: via }
+ ActiveSupport::Notifications.instrument("transmit.action_cable", payload) do
+ connection.transmit identifier: @identifier, message: data
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -854,12 +857,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 224
- def unsubscribed # :doc:
- # Override in subclasses
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 227
+def unsubscribed # :doc:
+ # Override in subclasses
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Broadcasting.html b/src/classes/ActionCable/Channel/Broadcasting.html
index bb71b89445..7fecc3f6b8 100644
--- a/src/classes/ActionCable/Channel/Broadcasting.html
+++ b/src/classes/ActionCable/Channel/Broadcasting.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -99,11 +99,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 45
- def broadcast_to(model, message)
- self.class.broadcast_to(model, message)
- end
+def broadcast_to(model, message)
+ self.class.broadcast_to(model, message)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -134,11 +134,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 41
- def broadcasting_for(model)
- self.class.broadcasting_for(model)
- end
+def broadcasting_for(model)
+ self.class.broadcasting_for(model)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html b/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
index 684bccb1ab..432bb5d74f 100644
--- a/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 14
- def broadcast_to(broadcastables, message)
- ActionCable.server.broadcast(broadcasting_for(broadcastables), message)
- end
+def broadcast_to(broadcastables, message)
+ ActionCable.server.broadcast(broadcasting_for(broadcastables), message)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -126,11 +126,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 24
- def broadcasting_for(broadcastables)
- serialize_broadcasting([ channel_name ] + Array(broadcastables))
- end
+def broadcasting_for(broadcastables)
+ serialize_broadcasting([ channel_name ] + Array(broadcastables))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Callbacks.html b/src/classes/ActionCable/Channel/Callbacks.html
index 076bdbc8fa..64985186c3 100644
--- a/src/classes/ActionCable/Channel/Callbacks.html
+++ b/src/classes/ActionCable/Channel/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html b/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
index 6ee4317311..7949b5fdf6 100644
--- a/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -111,11 +111,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 60
- def after_subscribe(*methods, &block)
- set_callback(:subscribe, :after, *methods, &block)
- end
+def after_subscribe(*methods, &block)
+ set_callback(:subscribe, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -150,11 +150,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 69
- def after_unsubscribe(*methods, &block)
- set_callback(:unsubscribe, :after, *methods, &block)
- end
+def after_unsubscribe(*methods, &block)
+ set_callback(:unsubscribe, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -185,11 +185,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 48
- def before_subscribe(*methods, &block)
- set_callback(:subscribe, :before, *methods, &block)
- end
+def before_subscribe(*methods, &block)
+ set_callback(:subscribe, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -220,11 +220,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 65
- def before_unsubscribe(*methods, &block)
- set_callback(:unsubscribe, :before, *methods, &block)
- end
+def before_unsubscribe(*methods, &block)
+ set_callback(:unsubscribe, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/ChannelStub.html b/src/classes/ActionCable/Channel/ChannelStub.html
index 9db98daac2..d004896dc5 100644
--- a/src/classes/ActionCable/Channel/ChannelStub.html
+++ b/src/classes/ActionCable/Channel/ChannelStub.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -25,7 +25,7 @@
Action Cable Channel Stub
-
Stub stream_from to track streams for the channel. Add public aliases for subscription_confirmation_sent? and subscription_rejected?.
+Stub stream_from to track streams for the channel. Add public aliases for subscription_confirmation_sent? and subscription_rejected?.
@@ -114,11 +114,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 25
- def confirmed?
- subscription_confirmation_sent?
- end
+def confirmed?
+ subscription_confirmation_sent?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -149,11 +149,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 29
- def rejected?
- subscription_rejected?
- end
+def rejected?
+ subscription_rejected?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -188,9 +188,9 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 46
- def start_periodic_timers; end
+def start_periodic_timers; end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -221,11 +221,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 37
- def stop_all_streams
- @_streams = []
- end
+def stop_all_streams
+ @_streams = []
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -281,11 +281,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 33
- def stream_from(broadcasting, *)
- streams << broadcasting
- end
+def stream_from(broadcasting, *)
+ streams << broadcasting
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -316,11 +316,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 41
- def streams
- @_streams ||= []
- end
+def streams
+ @_streams ||= []
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/ConnectionStub.html b/src/classes/ActionCable/Channel/ConnectionStub.html
index 62c52b567f..0fdc0d8690 100644
--- a/src/classes/ActionCable/Channel/ConnectionStub.html
+++ b/src/classes/ActionCable/Channel/ConnectionStub.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -141,20 +141,20 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 55
- def initialize(identifiers = {})
- @server = ActionCable.server
- @transmissions = []
-
- identifiers.each do |identifier, val|
- define_singleton_method(identifier) { val }
- end
-
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @identifiers = identifiers.keys
- @logger = ActiveSupport::TaggedLogging.new ActiveSupport::Logger.new(StringIO.new)
- end
+def initialize(identifiers = {})
+ @server = ActionCable.server
+ @transmissions = []
+
+ identifiers.each do |identifier, val|
+ define_singleton_method(identifier) { val }
+ end
+
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @identifiers = identifiers.keys
+ @logger = ActiveSupport::TaggedLogging.new ActiveSupport::Logger.new(StringIO.new)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -189,11 +189,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 72
- def connection_identifier
- @connection_identifier ||= connection_gid(identifiers.filter_map { |id| send(id.to_sym) if id })
- end
+def connection_identifier
+ @connection_identifier ||= connection_gid(identifiers.filter_map { |id| send(id.to_sym) if id })
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -224,11 +224,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 68
- def transmit(cable_message)
- transmissions << cable_message.with_indifferent_access
- end
+def transmit(cable_message)
+ transmissions << cable_message.with_indifferent_access
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Naming.html b/src/classes/ActionCable/Channel/Naming.html
index 84bfc0232c..db2aa18589 100644
--- a/src/classes/ActionCable/Channel/Naming.html
+++ b/src/classes/ActionCable/Channel/Naming.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,11 +95,11 @@
# File actioncable/lib/action_cable/channel/naming.rb, line 23
- def channel_name
- self.class.channel_name
- end
+def channel_name
+ self.class.channel_name
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Naming/ClassMethods.html b/src/classes/ActionCable/Channel/Naming/ClassMethods.html
index b847309f12..e99c0744a7 100644
--- a/src/classes/ActionCable/Channel/Naming/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Naming/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -66,7 +66,7 @@
- Returns the name of the channel, underscored, without the Channel ending. If the channel is in a namespace, then the namespaces are represented by single colon separators in the channel name.
+ Returns the name of the channel, underscored, without the Channel ending. If the channel is in a namespace, then the namespaces are represented by single colon separators in the channel name.
ChatChannel.channel_name # => 'chat'
Chats::AppearancesChannel.channel_name # => 'chats:appearances'
@@ -87,11 +87,11 @@
# File actioncable/lib/action_cable/channel/naming.rb, line 18
- def channel_name
- @channel_name ||= name.delete_suffix("Channel").gsub("::", ":").underscore
- end
+def channel_name
+ @channel_name ||= name.delete_suffix("Channel").gsub("::", ":").underscore
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/NonInferrableChannelError.html b/src/classes/ActionCable/Channel/NonInferrableChannelError.html
index 034c36b135..1eac81cbd2 100644
--- a/src/classes/ActionCable/Channel/NonInferrableChannelError.html
+++ b/src/classes/ActionCable/Channel/NonInferrableChannelError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 13
- def initialize(name)
- super "Unable to determine the channel to test from #{name}. " +
- "You'll need to specify it using `tests YourChannel` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the channel to test from #{name}. " +
+ "You'll need to specify it using `tests YourChannel` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/PeriodicTimers.html b/src/classes/ActionCable/Channel/PeriodicTimers.html
index 88facef675..561da6e0dd 100644
--- a/src/classes/ActionCable/Channel/PeriodicTimers.html
+++ b/src/classes/ActionCable/Channel/PeriodicTimers.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html b/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
index 233865e2e3..a694f6de16 100644
--- a/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -91,30 +91,30 @@
# File actioncable/lib/action_cable/channel/periodic_timers.rb, line 31
- def periodically(callback_or_method_name = nil, every:, &block)
- callback =
- if block_given?
- raise ArgumentError, "Pass a block or provide a callback arg, not both" if callback_or_method_name
- block
- else
- case callback_or_method_name
- when Proc
- callback_or_method_name
- when Symbol
- -> { __send__ callback_or_method_name }
- else
- raise ArgumentError, "Expected a Symbol method name or a Proc, got #{callback_or_method_name.inspect}"
- end
- end
-
- unless every.kind_of?(Numeric) && every > 0
- raise ArgumentError, "Expected every: to be a positive number of seconds, got #{every.inspect}"
- end
-
- self.periodic_timers += [[ callback, every: every ]]
- end
+def periodically(callback_or_method_name = nil, every:, &block)
+ callback =
+ if block_given?
+ raise ArgumentError, "Pass a block or provide a callback arg, not both" if callback_or_method_name
+ block
+ else
+ case callback_or_method_name
+ when Proc
+ callback_or_method_name
+ when Symbol
+ -> { __send__ callback_or_method_name }
+ else
+ raise ArgumentError, "Expected a Symbol method name or a Proc, got #{callback_or_method_name.inspect}"
+ end
+ end
+
+ unless every.kind_of?(Numeric) && every > 0
+ raise ArgumentError, "Expected every: to be a positive number of seconds, got #{every.inspect}"
+ end
+
+ self.periodic_timers += [[ callback, every: every ]]
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Streams.html b/src/classes/ActionCable/Channel/Streams.html
index 0967feb616..a2e686a3e9 100644
--- a/src/classes/ActionCable/Channel/Streams.html
+++ b/src/classes/ActionCable/Channel/Streams.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -167,14 +167,14 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 137
- def stop_all_streams
- streams.each do |broadcasting, callback|
- pubsub.unsubscribe broadcasting, callback
- logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
- end.clear
- end
+def stop_all_streams
+ streams.each do |broadcasting, callback|
+ pubsub.unsubscribe broadcasting, callback
+ logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
+ end.clear
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -205,11 +205,11 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 132
- def stop_stream_for(model)
- stop_stream_from(broadcasting_for(model))
- end
+def stop_stream_for(model)
+ stop_stream_from(broadcasting_for(model))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,15 +240,15 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 123
- def stop_stream_from(broadcasting)
- callback = streams.delete(broadcasting)
- if callback
- pubsub.unsubscribe(broadcasting, callback)
- logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
- end
- end
+def stop_stream_from(broadcasting)
+ callback = streams.delete(broadcasting)
+ if callback
+ pubsub.unsubscribe(broadcasting, callback)
+ logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -281,11 +281,11 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 118
- def stream_for(broadcastables, callback = nil, coder: nil, &block)
- stream_from(broadcasting_for(broadcastables), callback || block, coder: coder)
- end
+def stream_for(broadcastables, callback = nil, coder: nil, &block)
+ stream_from(broadcasting_for(broadcastables), callback || block, coder: coder)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -316,28 +316,28 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 90
- def stream_from(broadcasting, callback = nil, coder: nil, &block)
- return if unsubscribed?
-
- broadcasting = String(broadcasting)
-
- # Don't send the confirmation until pubsub#subscribe is successful
- defer_subscription_confirmation!
-
- # Build a stream handler by wrapping the user-provided callback with a decoder
- # or defaulting to a JSON-decoding retransmitter.
- handler = worker_pool_stream_handler(broadcasting, callback || block, coder: coder)
- streams[broadcasting] = handler
-
- connection.server.event_loop.post do
- pubsub.subscribe(broadcasting, handler, lambda do
- ensure_confirmation_sent
- logger.info "#{self.class.name} is streaming from #{broadcasting}"
- end)
- end
- end
+def stream_from(broadcasting, callback = nil, coder: nil, &block)
+ return if unsubscribed?
+
+ broadcasting = String(broadcasting)
+
+ # Don't send the confirmation until pubsub#subscribe is successful
+ defer_subscription_confirmation!
+
+ # Build a stream handler by wrapping the user-provided callback with a decoder
+ # or defaulting to a JSON-decoding retransmitter.
+ handler = worker_pool_stream_handler(broadcasting, callback || block, coder: coder)
+ streams[broadcasting] = handler
+
+ connection.server.event_loop.post do
+ pubsub.subscribe(broadcasting, handler, lambda do
+ ensure_confirmation_sent
+ logger.info "#{self.class.name} is streaming from #{broadcasting}"
+ end)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -368,15 +368,15 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 146
- def stream_or_reject_for(model)
- if model
- stream_for model
- else
- reject
- end
- end
+def stream_or_reject_for(model)
+ if model
+ stream_for model
+ else
+ reject
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase.html b/src/classes/ActionCable/Channel/TestCase.html
index 08fb28c0cf..6317ff44d0 100644
--- a/src/classes/ActionCable/Channel/TestCase.html
+++ b/src/classes/ActionCable/Channel/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior.html b/src/classes/ActionCable/Channel/TestCase/Behavior.html
index b5f3a5cbb7..5a8ea0fd78 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -196,11 +196,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 282
- def assert_broadcast_on(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcast_on(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -231,11 +231,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 278
- def assert_broadcasts(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcasts(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,11 +272,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 326
- def assert_has_no_stream(stream)
- assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
- end
+def assert_has_no_stream(stream)
+ assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -313,11 +313,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 337
- def assert_has_no_stream_for(object)
- assert_has_no_stream(broadcasting_for(object))
- end
+def assert_has_no_stream_for(object)
+ assert_has_no_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -354,11 +354,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 304
- def assert_has_stream(stream)
- assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
- end
+def assert_has_stream(stream)
+ assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -395,11 +395,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 315
- def assert_has_stream_for(object)
- assert_has_stream(broadcasting_for(object))
- end
+def assert_has_stream_for(object)
+ assert_has_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -436,11 +436,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 293
- def assert_no_streams
- assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
- end
+def assert_no_streams
+ assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -473,12 +473,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 266
- def perform(action, data = {})
- check_subscribed!
- subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
- end
+def perform(action, data = {})
+ check_subscribed!
+ subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -516,11 +516,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 243
- def stub_connection(identifiers = {})
- @connection = ConnectionStub.new(identifiers)
- end
+def stub_connection(identifiers = {})
+ @connection = ConnectionStub.new(identifiers)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -551,15 +551,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 249
- def subscribe(params = {})
- @connection ||= stub_connection
- @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
- @subscription.singleton_class.include(ChannelStub)
- @subscription.subscribe_to_channel
- @subscription
- end
+def subscribe(params = {})
+ @connection ||= stub_connection
+ @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
+ @subscription.singleton_class.include(ChannelStub)
+ @subscription.subscribe_to_channel
+ @subscription
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -590,12 +590,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 272
- def transmissions
- # Return only directly sent message (via #transmit)
- connection.transmissions.filter_map { |data| data["message"] }
- end
+def transmissions
+ # Return only directly sent message (via #transmit)
+ connection.transmissions.filter_map { |data| data["message"] }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -626,12 +626,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 258
- def unsubscribe
- check_subscribed!
- subscription.unsubscribe_from_channel
- end
+def unsubscribe
+ check_subscribed!
+ subscription.unsubscribe_from_channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
index 48ea87f130..57efb4cdac 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 219
- def channel_class
- if channel = self._channel_class
- channel
- else
- tests determine_default_channel(name)
- end
- end
+def channel_class
+ if channel = self._channel_class
+ channel
+ else
+ tests determine_default_channel(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 227
- def determine_default_channel(name)
- channel = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Channel::Base
- end
- raise NonInferrableChannelError.new(name) if channel.nil?
- channel
- end
+def determine_default_channel(name)
+ channel = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Channel::Base
+ end
+ raise NonInferrableChannelError.new(name) if channel.nil?
+ channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 208
- def tests(channel)
- case channel
- when String, Symbol
- self._channel_class = channel.to_s.camelize.constantize
- when Module
- self._channel_class = channel
- else
- raise NonInferrableChannelError.new(channel)
- end
- end
+def tests(channel)
+ case channel
+ when String, Symbol
+ self._channel_class = channel.to_s.camelize.constantize
+ when Module
+ self._channel_class = channel
+ else
+ raise NonInferrableChannelError.new(channel)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection.html b/src/classes/ActionCable/Connection.html
index f832214f0e..7889c75284 100644
--- a/src/classes/ActionCable/Connection.html
+++ b/src/classes/ActionCable/Connection.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Assertions.html b/src/classes/ActionCable/Connection/Assertions.html
index 933ea80e4c..6b10ec5528 100644
--- a/src/classes/ActionCable/Connection/Assertions.html
+++ b/src/classes/ActionCable/Connection/Assertions.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 28
- def assert_reject_connection(&block)
- assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
- end
+def assert_reject_connection(&block)
+ assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization.html b/src/classes/ActionCable/Connection/Authorization.html
index feb855aa9e..baf85a37b3 100644
--- a/src/classes/ActionCable/Connection/Authorization.html
+++ b/src/classes/ActionCable/Connection/Authorization.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -97,12 +97,12 @@
# File actioncable/lib/action_cable/connection/authorization.rb, line 12
- def reject_unauthorized_connection
- logger.error "An unauthorized connection attempt was rejected"
- raise UnauthorizedError
- end
+def reject_unauthorized_connection
+ logger.error "An unauthorized connection attempt was rejected"
+ raise UnauthorizedError
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
index b63b282b0b..ff36299a28 100644
--- a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
+++ b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/Base.html b/src/classes/ActionCable/Connection/Base.html
index 36a2f1e1bb..ea0d62911f 100644
--- a/src/classes/ActionCable/Connection/Base.html
+++ b/src/classes/ActionCable/Connection/Base.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -255,21 +255,21 @@
# File actioncable/lib/action_cable/connection/base.rb, line 67
- def initialize(server, env, coder: ActiveSupport::JSON)
- @server, @env, @coder = server, env, coder
+def initialize(server, env, coder: ActiveSupport::JSON)
+ @server, @env, @coder = server, env, coder
- @worker_pool = server.worker_pool
- @logger = new_tagged_logger
+ @worker_pool = server.worker_pool
+ @logger = new_tagged_logger
- @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
+ @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
- @_internal_subscriptions = nil
- @started_at = Time.now
- end
+ @_internal_subscriptions = nil
+ @started_at = Time.now
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -304,11 +304,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 147
- def beat
- transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
- end
+def beat
+ transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -339,16 +339,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 120
- def close(reason: nil, reconnect: true)
- transmit(
- type: ActionCable::INTERNAL[:message_types][:disconnect],
- reason: reason,
- reconnect: reconnect
- )
- websocket.close
- end
+def close(reason: nil, reconnect: true)
+ transmit(
+ type: ActionCable::INTERNAL[:message_types][:disconnect],
+ reason: reason,
+ reconnect: reconnect
+ )
+ websocket.close
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -379,13 +379,13 @@
# File actioncable/lib/action_cable/connection/base.rb, line 109
- def handle_channel_command(payload)
- run_callbacks :command do
- subscriptions.execute_command payload
- end
- end
+def handle_channel_command(payload)
+ run_callbacks :command do
+ subscriptions.execute_command payload
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -416,11 +416,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 131
- def send_async(method, *arguments)
- worker_pool.async_invoke(self, method, *arguments)
- end
+def send_async(method, *arguments)
+ worker_pool.async_invoke(self, method, *arguments)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -451,16 +451,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 138
- def statistics
- {
- identifier: connection_identifier,
- started_at: @started_at,
- subscriptions: subscriptions.identifiers,
- request_id: @env["action_dispatch.request_id"]
- }
- end
+def statistics
+ {
+ identifier: connection_identifier,
+ started_at: @started_at,
+ subscriptions: subscriptions.identifiers,
+ request_id: @env["action_dispatch.request_id"]
+ }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -494,11 +494,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 187
- def cookies # :doc:
- request.cookie_jar
- end
+def cookies # :doc:
+ request.cookie_jar
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -529,14 +529,14 @@
# File actioncable/lib/action_cable/connection/base.rb, line 178
- def request # :doc:
- @request ||= begin
- environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
- ActionDispatch::Request.new(environment || env)
- end
- end
+def request # :doc:
+ @request ||= begin
+ environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
+ ActionDispatch::Request.new(environment || env)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Callbacks.html b/src/classes/ActionCable/Connection/Callbacks.html
index 818958bf81..d6504ca284 100644
--- a/src/classes/ActionCable/Connection/Callbacks.html
+++ b/src/classes/ActionCable/Connection/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
index 933056a029..6376d7195b 100644
--- a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,11 +90,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 47
- def after_command(*methods, &block)
- set_callback(:command, :after, *methods, &block)
- end
+def after_command(*methods, &block)
+ set_callback(:command, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -125,11 +125,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 51
- def around_command(*methods, &block)
- set_callback(:command, :around, *methods, &block)
- end
+def around_command(*methods, &block)
+ set_callback(:command, :around, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -160,11 +160,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 43
- def before_command(*methods, &block)
- set_callback(:command, :before, *methods, &block)
- end
+def before_command(*methods, &block)
+ set_callback(:command, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification.html b/src/classes/ActionCable/Connection/Identification.html
index f3dcea9bfc..063ca88999 100644
--- a/src/classes/ActionCable/Connection/Identification.html
+++ b/src/classes/ActionCable/Connection/Identification.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,15 +95,15 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 29
- def connection_identifier
- unless defined? @connection_identifier
- @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
- end
+def connection_identifier
+ unless defined? @connection_identifier
+ @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
+ end
- @connection_identifier
- end
+ @connection_identifier
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification/ClassMethods.html b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
index 324ded31f5..a3395ef8a3 100644
--- a/src/classes/ActionCable/Connection/Identification/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -84,12 +84,12 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 21
- def identified_by(*identifiers)
- Array(identifiers).each { |identifier| attr_accessor identifier }
- self.identifiers += identifiers
- end
+def identified_by(*identifiers)
+ Array(identifiers).each { |identifier| attr_accessor identifier }
+ self.identifiers += identifiers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/InternalChannel.html b/src/classes/ActionCable/Connection/InternalChannel.html
index 9b0144f690..cfdccceaf4 100644
--- a/src/classes/ActionCable/Connection/InternalChannel.html
+++ b/src/classes/ActionCable/Connection/InternalChannel.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
index 7167904452..bf0c696d62 100644
--- a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
+++ b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 15
- def initialize(name)
- super "Unable to determine the connection to test from #{name}. " +
- "You'll need to specify it using `tests YourConnection` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the connection to test from #{name}. " +
+ "You'll need to specify it using `tests YourConnection` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/StreamEventLoop.html b/src/classes/ActionCable/Connection/StreamEventLoop.html
index 2b71a213e3..f7c49354ef 100644
--- a/src/classes/ActionCable/Connection/StreamEventLoop.html
+++ b/src/classes/ActionCable/Connection/StreamEventLoop.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -111,16 +111,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 10
- def initialize
- @nio = @executor = @thread = nil
- @map = {}
- @stopping = false
- @todo = Queue.new
-
- @spawn_mutex = Mutex.new
- end
+def initialize
+ @nio = @executor = @thread = nil
+ @map = {}
+ @stopping = false
+ @todo = Queue.new
+
+ @spawn_mutex = Mutex.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -155,15 +155,15 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 30
- def attach(io, stream)
- @todo << lambda do
- @map[io] = @nio.register(io, :r)
- @map[io].value = stream
- end
- wakeup
- end
+def attach(io, stream)
+ @todo << lambda do
+ @map[io] = @nio.register(io, :r)
+ @map[io].value = stream
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -194,16 +194,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 38
- def detach(io, stream)
- @todo << lambda do
- @nio.deregister io
- @map.delete io
- io.close
- end
- wakeup
- end
+def detach(io, stream)
+ @todo << lambda do
+ @nio.deregister io
+ @map.delete io
+ io.close
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -234,14 +234,14 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 23
- def post(task = nil, &block)
- task ||= block
+def post(task = nil, &block)
+ task ||= block
- spawn
- @executor << task
- end
+ spawn
+ @executor << task
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,12 +272,12 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 56
- def stop
- @stopping = true
- wakeup if @nio
- end
+def stop
+ @stopping = true
+ wakeup if @nio
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -308,11 +308,11 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 19
- def timer(interval, &block)
- Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
- end
+def timer(interval, &block)
+ Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -343,16 +343,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 47
- def writes_pending(io)
- @todo << lambda do
- if monitor = @map[io]
- monitor.interests = :rw
- end
- end
- wakeup
- end
+def writes_pending(io)
+ @todo << lambda do
+ if monitor = @map[io]
+ monitor.interests = :rw
+ end
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
index f4d5cacc63..99731855fb 100644
--- a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
+++ b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -121,12 +121,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 16
- def initialize(logger, tags:)
- @logger = logger
- @tags = tags.flatten
- end
+def initialize(logger, tags:)
+ @logger = logger
+ @tags = tags.flatten
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -161,12 +161,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 21
- def add_tags(*tags)
- @tags += tags.flatten
- @tags = @tags.uniq
- end
+def add_tags(*tags)
+ @tags += tags.flatten
+ @tags = @tags.uniq
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -197,16 +197,16 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 26
- def tag(logger, &block)
- if logger.respond_to?(:tagged)
- current_tags = tags - logger.formatter.current_tags
- logger.tagged(*current_tags, &block)
- else
- yield
- end
- end
+def tag(logger, &block)
+ if logger.respond_to?(:tagged)
+ current_tags = tags - logger.formatter.current_tags
+ logger.tagged(*current_tags, &block)
+ else
+ yield
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,11 +240,11 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 42
- def log(type, message, &block) # :doc:
- tag(@logger) { @logger.send type, message, &block }
- end
+def log(type, message, &block) # :doc:
+ tag(@logger) { @logger.send type, message, &block }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase.html b/src/classes/ActionCable/Connection/TestCase.html
index 948378e491..39bc5cb056 100644
--- a/src/classes/ActionCable/Connection/TestCase.html
+++ b/src/classes/ActionCable/Connection/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior.html b/src/classes/ActionCable/Connection/TestCase/Behavior.html
index b87870becd..4ee0debbea 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -163,19 +163,19 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 192
- def connect(path = ActionCable.server.config.mount_path, **request_params)
- path ||= DEFAULT_PATH
+def connect(path = ActionCable.server.config.mount_path, **request_params)
+ path ||= DEFAULT_PATH
- connection = self.class.connection_class.allocate
- connection.singleton_class.include(TestConnection)
- connection.send(:initialize, build_test_request(path, **request_params))
- connection.connect if connection.respond_to?(:connect)
+ connection = self.class.connection_class.allocate
+ connection.singleton_class.include(TestConnection)
+ connection.send(:initialize, build_test_request(path, **request_params))
+ connection.connect if connection.respond_to?(:connect)
- # Only set instance variable if connected successfully
- @connection = connection
- end
+ # Only set instance variable if connected successfully
+ @connection = connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -206,11 +206,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 212
- def cookies
- @cookie_jar ||= TestCookieJar.new
- end
+def cookies
+ @cookie_jar ||= TestCookieJar.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -241,14 +241,14 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 205
- def disconnect
- raise "Must be connected!" if connection.nil?
+def disconnect
+ raise "Must be connected!" if connection.nil?
- connection.disconnect if connection.respond_to?(:disconnect)
- @connection = nil
- end
+ connection.disconnect if connection.respond_to?(:disconnect)
+ @connection = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
index 63444f4b27..99fc0e3f6f 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 167
- def connection_class
- if connection = self._connection_class
- connection
- else
- tests determine_default_connection(name)
- end
- end
+def connection_class
+ if connection = self._connection_class
+ connection
+ else
+ tests determine_default_connection(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 175
- def determine_default_connection(name)
- connection = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Connection::Base
- end
- raise NonInferrableConnectionError.new(name) if connection.nil?
- connection
- end
+def determine_default_connection(name)
+ connection = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Connection::Base
+ end
+ raise NonInferrableConnectionError.new(name) if connection.nil?
+ connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/channel/base.rb, line 258
- def subscription_confirmation_sent? # :doc:
- @subscription_confirmation_sent
- end# File actioncable/lib/action_cable/channel/base.rb, line 261
+def subscription_confirmation_sent? # :doc:
+ @subscription_confirmation_sent
+end# File actioncable/lib/action_cable/channel/base.rb, line 266
- def subscription_rejected? # :doc:
- @reject_subscription
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 269
+def subscription_rejected? # :doc:
+ @reject_subscription
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -810,21 +813,21 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 231
- def transmit(data, via: nil) # :doc:
- logger.debug do
- status = "#{self.class.name} transmitting #{data.inspect.truncate(300)}"
- status += " (via #{via})" if via
- status
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 234
+def transmit(data, via: nil) # :doc:
+ logger.debug do
+ status = "#{self.class.name} transmitting #{data.inspect.truncate(300)}"
+ status += " (via #{via})" if via
+ status
+ end
- payload = { channel_class: self.class.name, data: data, via: via }
- ActiveSupport::Notifications.instrument("transmit.action_cable", payload) do
- connection.transmit identifier: @identifier, message: data
- end
- end
+ payload = { channel_class: self.class.name, data: data, via: via }
+ ActiveSupport::Notifications.instrument("transmit.action_cable", payload) do
+ connection.transmit identifier: @identifier, message: data
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -854,12 +857,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 224
- def unsubscribed # :doc:
- # Override in subclasses
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 227
+def unsubscribed # :doc:
+ # Override in subclasses
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Broadcasting.html b/src/classes/ActionCable/Channel/Broadcasting.html
index bb71b89445..7fecc3f6b8 100644
--- a/src/classes/ActionCable/Channel/Broadcasting.html
+++ b/src/classes/ActionCable/Channel/Broadcasting.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -99,11 +99,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 45
- def broadcast_to(model, message)
- self.class.broadcast_to(model, message)
- end
+def broadcast_to(model, message)
+ self.class.broadcast_to(model, message)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -134,11 +134,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 41
- def broadcasting_for(model)
- self.class.broadcasting_for(model)
- end
+def broadcasting_for(model)
+ self.class.broadcasting_for(model)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html b/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
index 684bccb1ab..432bb5d74f 100644
--- a/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 14
- def broadcast_to(broadcastables, message)
- ActionCable.server.broadcast(broadcasting_for(broadcastables), message)
- end
+def broadcast_to(broadcastables, message)
+ ActionCable.server.broadcast(broadcasting_for(broadcastables), message)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -126,11 +126,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 24
- def broadcasting_for(broadcastables)
- serialize_broadcasting([ channel_name ] + Array(broadcastables))
- end
+def broadcasting_for(broadcastables)
+ serialize_broadcasting([ channel_name ] + Array(broadcastables))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Callbacks.html b/src/classes/ActionCable/Channel/Callbacks.html
index 076bdbc8fa..64985186c3 100644
--- a/src/classes/ActionCable/Channel/Callbacks.html
+++ b/src/classes/ActionCable/Channel/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html b/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
index 6ee4317311..7949b5fdf6 100644
--- a/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -111,11 +111,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 60
- def after_subscribe(*methods, &block)
- set_callback(:subscribe, :after, *methods, &block)
- end
+def after_subscribe(*methods, &block)
+ set_callback(:subscribe, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -150,11 +150,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 69
- def after_unsubscribe(*methods, &block)
- set_callback(:unsubscribe, :after, *methods, &block)
- end
+def after_unsubscribe(*methods, &block)
+ set_callback(:unsubscribe, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -185,11 +185,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 48
- def before_subscribe(*methods, &block)
- set_callback(:subscribe, :before, *methods, &block)
- end
+def before_subscribe(*methods, &block)
+ set_callback(:subscribe, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -220,11 +220,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 65
- def before_unsubscribe(*methods, &block)
- set_callback(:unsubscribe, :before, *methods, &block)
- end
+def before_unsubscribe(*methods, &block)
+ set_callback(:unsubscribe, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/ChannelStub.html b/src/classes/ActionCable/Channel/ChannelStub.html
index 9db98daac2..d004896dc5 100644
--- a/src/classes/ActionCable/Channel/ChannelStub.html
+++ b/src/classes/ActionCable/Channel/ChannelStub.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -25,7 +25,7 @@
Action Cable Channel Stub
-
Stub stream_from to track streams for the channel. Add public aliases for subscription_confirmation_sent? and subscription_rejected?.
+Stub stream_from to track streams for the channel. Add public aliases for subscription_confirmation_sent? and subscription_rejected?.
@@ -114,11 +114,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 25
- def confirmed?
- subscription_confirmation_sent?
- end
+def confirmed?
+ subscription_confirmation_sent?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -149,11 +149,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 29
- def rejected?
- subscription_rejected?
- end
+def rejected?
+ subscription_rejected?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -188,9 +188,9 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 46
- def start_periodic_timers; end
+def start_periodic_timers; end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -221,11 +221,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 37
- def stop_all_streams
- @_streams = []
- end
+def stop_all_streams
+ @_streams = []
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -281,11 +281,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 33
- def stream_from(broadcasting, *)
- streams << broadcasting
- end
+def stream_from(broadcasting, *)
+ streams << broadcasting
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -316,11 +316,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 41
- def streams
- @_streams ||= []
- end
+def streams
+ @_streams ||= []
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/ConnectionStub.html b/src/classes/ActionCable/Channel/ConnectionStub.html
index 62c52b567f..0fdc0d8690 100644
--- a/src/classes/ActionCable/Channel/ConnectionStub.html
+++ b/src/classes/ActionCable/Channel/ConnectionStub.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -141,20 +141,20 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 55
- def initialize(identifiers = {})
- @server = ActionCable.server
- @transmissions = []
-
- identifiers.each do |identifier, val|
- define_singleton_method(identifier) { val }
- end
-
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @identifiers = identifiers.keys
- @logger = ActiveSupport::TaggedLogging.new ActiveSupport::Logger.new(StringIO.new)
- end
+def initialize(identifiers = {})
+ @server = ActionCable.server
+ @transmissions = []
+
+ identifiers.each do |identifier, val|
+ define_singleton_method(identifier) { val }
+ end
+
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @identifiers = identifiers.keys
+ @logger = ActiveSupport::TaggedLogging.new ActiveSupport::Logger.new(StringIO.new)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -189,11 +189,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 72
- def connection_identifier
- @connection_identifier ||= connection_gid(identifiers.filter_map { |id| send(id.to_sym) if id })
- end
+def connection_identifier
+ @connection_identifier ||= connection_gid(identifiers.filter_map { |id| send(id.to_sym) if id })
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -224,11 +224,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 68
- def transmit(cable_message)
- transmissions << cable_message.with_indifferent_access
- end
+def transmit(cable_message)
+ transmissions << cable_message.with_indifferent_access
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Naming.html b/src/classes/ActionCable/Channel/Naming.html
index 84bfc0232c..db2aa18589 100644
--- a/src/classes/ActionCable/Channel/Naming.html
+++ b/src/classes/ActionCable/Channel/Naming.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,11 +95,11 @@
# File actioncable/lib/action_cable/channel/naming.rb, line 23
- def channel_name
- self.class.channel_name
- end
+def channel_name
+ self.class.channel_name
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Naming/ClassMethods.html b/src/classes/ActionCable/Channel/Naming/ClassMethods.html
index b847309f12..e99c0744a7 100644
--- a/src/classes/ActionCable/Channel/Naming/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Naming/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -66,7 +66,7 @@
- Returns the name of the channel, underscored, without the Channel ending. If the channel is in a namespace, then the namespaces are represented by single colon separators in the channel name.
+ Returns the name of the channel, underscored, without the Channel ending. If the channel is in a namespace, then the namespaces are represented by single colon separators in the channel name.
ChatChannel.channel_name # => 'chat'
Chats::AppearancesChannel.channel_name # => 'chats:appearances'
@@ -87,11 +87,11 @@
# File actioncable/lib/action_cable/channel/naming.rb, line 18
- def channel_name
- @channel_name ||= name.delete_suffix("Channel").gsub("::", ":").underscore
- end
+def channel_name
+ @channel_name ||= name.delete_suffix("Channel").gsub("::", ":").underscore
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/NonInferrableChannelError.html b/src/classes/ActionCable/Channel/NonInferrableChannelError.html
index 034c36b135..1eac81cbd2 100644
--- a/src/classes/ActionCable/Channel/NonInferrableChannelError.html
+++ b/src/classes/ActionCable/Channel/NonInferrableChannelError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 13
- def initialize(name)
- super "Unable to determine the channel to test from #{name}. " +
- "You'll need to specify it using `tests YourChannel` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the channel to test from #{name}. " +
+ "You'll need to specify it using `tests YourChannel` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/PeriodicTimers.html b/src/classes/ActionCable/Channel/PeriodicTimers.html
index 88facef675..561da6e0dd 100644
--- a/src/classes/ActionCable/Channel/PeriodicTimers.html
+++ b/src/classes/ActionCable/Channel/PeriodicTimers.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html b/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
index 233865e2e3..a694f6de16 100644
--- a/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -91,30 +91,30 @@
# File actioncable/lib/action_cable/channel/periodic_timers.rb, line 31
- def periodically(callback_or_method_name = nil, every:, &block)
- callback =
- if block_given?
- raise ArgumentError, "Pass a block or provide a callback arg, not both" if callback_or_method_name
- block
- else
- case callback_or_method_name
- when Proc
- callback_or_method_name
- when Symbol
- -> { __send__ callback_or_method_name }
- else
- raise ArgumentError, "Expected a Symbol method name or a Proc, got #{callback_or_method_name.inspect}"
- end
- end
-
- unless every.kind_of?(Numeric) && every > 0
- raise ArgumentError, "Expected every: to be a positive number of seconds, got #{every.inspect}"
- end
-
- self.periodic_timers += [[ callback, every: every ]]
- end
+def periodically(callback_or_method_name = nil, every:, &block)
+ callback =
+ if block_given?
+ raise ArgumentError, "Pass a block or provide a callback arg, not both" if callback_or_method_name
+ block
+ else
+ case callback_or_method_name
+ when Proc
+ callback_or_method_name
+ when Symbol
+ -> { __send__ callback_or_method_name }
+ else
+ raise ArgumentError, "Expected a Symbol method name or a Proc, got #{callback_or_method_name.inspect}"
+ end
+ end
+
+ unless every.kind_of?(Numeric) && every > 0
+ raise ArgumentError, "Expected every: to be a positive number of seconds, got #{every.inspect}"
+ end
+
+ self.periodic_timers += [[ callback, every: every ]]
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Streams.html b/src/classes/ActionCable/Channel/Streams.html
index 0967feb616..a2e686a3e9 100644
--- a/src/classes/ActionCable/Channel/Streams.html
+++ b/src/classes/ActionCable/Channel/Streams.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -167,14 +167,14 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 137
- def stop_all_streams
- streams.each do |broadcasting, callback|
- pubsub.unsubscribe broadcasting, callback
- logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
- end.clear
- end
+def stop_all_streams
+ streams.each do |broadcasting, callback|
+ pubsub.unsubscribe broadcasting, callback
+ logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
+ end.clear
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -205,11 +205,11 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 132
- def stop_stream_for(model)
- stop_stream_from(broadcasting_for(model))
- end
+def stop_stream_for(model)
+ stop_stream_from(broadcasting_for(model))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,15 +240,15 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 123
- def stop_stream_from(broadcasting)
- callback = streams.delete(broadcasting)
- if callback
- pubsub.unsubscribe(broadcasting, callback)
- logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
- end
- end
+def stop_stream_from(broadcasting)
+ callback = streams.delete(broadcasting)
+ if callback
+ pubsub.unsubscribe(broadcasting, callback)
+ logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -281,11 +281,11 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 118
- def stream_for(broadcastables, callback = nil, coder: nil, &block)
- stream_from(broadcasting_for(broadcastables), callback || block, coder: coder)
- end
+def stream_for(broadcastables, callback = nil, coder: nil, &block)
+ stream_from(broadcasting_for(broadcastables), callback || block, coder: coder)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -316,28 +316,28 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 90
- def stream_from(broadcasting, callback = nil, coder: nil, &block)
- return if unsubscribed?
-
- broadcasting = String(broadcasting)
-
- # Don't send the confirmation until pubsub#subscribe is successful
- defer_subscription_confirmation!
-
- # Build a stream handler by wrapping the user-provided callback with a decoder
- # or defaulting to a JSON-decoding retransmitter.
- handler = worker_pool_stream_handler(broadcasting, callback || block, coder: coder)
- streams[broadcasting] = handler
-
- connection.server.event_loop.post do
- pubsub.subscribe(broadcasting, handler, lambda do
- ensure_confirmation_sent
- logger.info "#{self.class.name} is streaming from #{broadcasting}"
- end)
- end
- end
+def stream_from(broadcasting, callback = nil, coder: nil, &block)
+ return if unsubscribed?
+
+ broadcasting = String(broadcasting)
+
+ # Don't send the confirmation until pubsub#subscribe is successful
+ defer_subscription_confirmation!
+
+ # Build a stream handler by wrapping the user-provided callback with a decoder
+ # or defaulting to a JSON-decoding retransmitter.
+ handler = worker_pool_stream_handler(broadcasting, callback || block, coder: coder)
+ streams[broadcasting] = handler
+
+ connection.server.event_loop.post do
+ pubsub.subscribe(broadcasting, handler, lambda do
+ ensure_confirmation_sent
+ logger.info "#{self.class.name} is streaming from #{broadcasting}"
+ end)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -368,15 +368,15 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 146
- def stream_or_reject_for(model)
- if model
- stream_for model
- else
- reject
- end
- end
+def stream_or_reject_for(model)
+ if model
+ stream_for model
+ else
+ reject
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase.html b/src/classes/ActionCable/Channel/TestCase.html
index 08fb28c0cf..6317ff44d0 100644
--- a/src/classes/ActionCable/Channel/TestCase.html
+++ b/src/classes/ActionCable/Channel/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior.html b/src/classes/ActionCable/Channel/TestCase/Behavior.html
index b5f3a5cbb7..5a8ea0fd78 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -196,11 +196,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 282
- def assert_broadcast_on(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcast_on(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -231,11 +231,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 278
- def assert_broadcasts(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcasts(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,11 +272,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 326
- def assert_has_no_stream(stream)
- assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
- end
+def assert_has_no_stream(stream)
+ assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -313,11 +313,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 337
- def assert_has_no_stream_for(object)
- assert_has_no_stream(broadcasting_for(object))
- end
+def assert_has_no_stream_for(object)
+ assert_has_no_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -354,11 +354,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 304
- def assert_has_stream(stream)
- assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
- end
+def assert_has_stream(stream)
+ assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -395,11 +395,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 315
- def assert_has_stream_for(object)
- assert_has_stream(broadcasting_for(object))
- end
+def assert_has_stream_for(object)
+ assert_has_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -436,11 +436,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 293
- def assert_no_streams
- assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
- end
+def assert_no_streams
+ assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -473,12 +473,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 266
- def perform(action, data = {})
- check_subscribed!
- subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
- end
+def perform(action, data = {})
+ check_subscribed!
+ subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -516,11 +516,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 243
- def stub_connection(identifiers = {})
- @connection = ConnectionStub.new(identifiers)
- end
+def stub_connection(identifiers = {})
+ @connection = ConnectionStub.new(identifiers)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -551,15 +551,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 249
- def subscribe(params = {})
- @connection ||= stub_connection
- @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
- @subscription.singleton_class.include(ChannelStub)
- @subscription.subscribe_to_channel
- @subscription
- end
+def subscribe(params = {})
+ @connection ||= stub_connection
+ @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
+ @subscription.singleton_class.include(ChannelStub)
+ @subscription.subscribe_to_channel
+ @subscription
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -590,12 +590,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 272
- def transmissions
- # Return only directly sent message (via #transmit)
- connection.transmissions.filter_map { |data| data["message"] }
- end
+def transmissions
+ # Return only directly sent message (via #transmit)
+ connection.transmissions.filter_map { |data| data["message"] }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -626,12 +626,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 258
- def unsubscribe
- check_subscribed!
- subscription.unsubscribe_from_channel
- end
+def unsubscribe
+ check_subscribed!
+ subscription.unsubscribe_from_channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
index 48ea87f130..57efb4cdac 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 219
- def channel_class
- if channel = self._channel_class
- channel
- else
- tests determine_default_channel(name)
- end
- end
+def channel_class
+ if channel = self._channel_class
+ channel
+ else
+ tests determine_default_channel(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 227
- def determine_default_channel(name)
- channel = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Channel::Base
- end
- raise NonInferrableChannelError.new(name) if channel.nil?
- channel
- end
+def determine_default_channel(name)
+ channel = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Channel::Base
+ end
+ raise NonInferrableChannelError.new(name) if channel.nil?
+ channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 208
- def tests(channel)
- case channel
- when String, Symbol
- self._channel_class = channel.to_s.camelize.constantize
- when Module
- self._channel_class = channel
- else
- raise NonInferrableChannelError.new(channel)
- end
- end
+def tests(channel)
+ case channel
+ when String, Symbol
+ self._channel_class = channel.to_s.camelize.constantize
+ when Module
+ self._channel_class = channel
+ else
+ raise NonInferrableChannelError.new(channel)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection.html b/src/classes/ActionCable/Connection.html
index f832214f0e..7889c75284 100644
--- a/src/classes/ActionCable/Connection.html
+++ b/src/classes/ActionCable/Connection.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Assertions.html b/src/classes/ActionCable/Connection/Assertions.html
index 933ea80e4c..6b10ec5528 100644
--- a/src/classes/ActionCable/Connection/Assertions.html
+++ b/src/classes/ActionCable/Connection/Assertions.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 28
- def assert_reject_connection(&block)
- assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
- end
+def assert_reject_connection(&block)
+ assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization.html b/src/classes/ActionCable/Connection/Authorization.html
index feb855aa9e..baf85a37b3 100644
--- a/src/classes/ActionCable/Connection/Authorization.html
+++ b/src/classes/ActionCable/Connection/Authorization.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -97,12 +97,12 @@
# File actioncable/lib/action_cable/connection/authorization.rb, line 12
- def reject_unauthorized_connection
- logger.error "An unauthorized connection attempt was rejected"
- raise UnauthorizedError
- end
+def reject_unauthorized_connection
+ logger.error "An unauthorized connection attempt was rejected"
+ raise UnauthorizedError
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
index b63b282b0b..ff36299a28 100644
--- a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
+++ b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/Base.html b/src/classes/ActionCable/Connection/Base.html
index 36a2f1e1bb..ea0d62911f 100644
--- a/src/classes/ActionCable/Connection/Base.html
+++ b/src/classes/ActionCable/Connection/Base.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -255,21 +255,21 @@
# File actioncable/lib/action_cable/connection/base.rb, line 67
- def initialize(server, env, coder: ActiveSupport::JSON)
- @server, @env, @coder = server, env, coder
+def initialize(server, env, coder: ActiveSupport::JSON)
+ @server, @env, @coder = server, env, coder
- @worker_pool = server.worker_pool
- @logger = new_tagged_logger
+ @worker_pool = server.worker_pool
+ @logger = new_tagged_logger
- @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
+ @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
- @_internal_subscriptions = nil
- @started_at = Time.now
- end
+ @_internal_subscriptions = nil
+ @started_at = Time.now
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -304,11 +304,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 147
- def beat
- transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
- end
+def beat
+ transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -339,16 +339,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 120
- def close(reason: nil, reconnect: true)
- transmit(
- type: ActionCable::INTERNAL[:message_types][:disconnect],
- reason: reason,
- reconnect: reconnect
- )
- websocket.close
- end
+def close(reason: nil, reconnect: true)
+ transmit(
+ type: ActionCable::INTERNAL[:message_types][:disconnect],
+ reason: reason,
+ reconnect: reconnect
+ )
+ websocket.close
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -379,13 +379,13 @@
# File actioncable/lib/action_cable/connection/base.rb, line 109
- def handle_channel_command(payload)
- run_callbacks :command do
- subscriptions.execute_command payload
- end
- end
+def handle_channel_command(payload)
+ run_callbacks :command do
+ subscriptions.execute_command payload
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -416,11 +416,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 131
- def send_async(method, *arguments)
- worker_pool.async_invoke(self, method, *arguments)
- end
+def send_async(method, *arguments)
+ worker_pool.async_invoke(self, method, *arguments)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -451,16 +451,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 138
- def statistics
- {
- identifier: connection_identifier,
- started_at: @started_at,
- subscriptions: subscriptions.identifiers,
- request_id: @env["action_dispatch.request_id"]
- }
- end
+def statistics
+ {
+ identifier: connection_identifier,
+ started_at: @started_at,
+ subscriptions: subscriptions.identifiers,
+ request_id: @env["action_dispatch.request_id"]
+ }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -494,11 +494,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 187
- def cookies # :doc:
- request.cookie_jar
- end
+def cookies # :doc:
+ request.cookie_jar
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -529,14 +529,14 @@
# File actioncable/lib/action_cable/connection/base.rb, line 178
- def request # :doc:
- @request ||= begin
- environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
- ActionDispatch::Request.new(environment || env)
- end
- end
+def request # :doc:
+ @request ||= begin
+ environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
+ ActionDispatch::Request.new(environment || env)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Callbacks.html b/src/classes/ActionCable/Connection/Callbacks.html
index 818958bf81..d6504ca284 100644
--- a/src/classes/ActionCable/Connection/Callbacks.html
+++ b/src/classes/ActionCable/Connection/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
index 933056a029..6376d7195b 100644
--- a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,11 +90,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 47
- def after_command(*methods, &block)
- set_callback(:command, :after, *methods, &block)
- end
+def after_command(*methods, &block)
+ set_callback(:command, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -125,11 +125,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 51
- def around_command(*methods, &block)
- set_callback(:command, :around, *methods, &block)
- end
+def around_command(*methods, &block)
+ set_callback(:command, :around, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -160,11 +160,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 43
- def before_command(*methods, &block)
- set_callback(:command, :before, *methods, &block)
- end
+def before_command(*methods, &block)
+ set_callback(:command, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification.html b/src/classes/ActionCable/Connection/Identification.html
index f3dcea9bfc..063ca88999 100644
--- a/src/classes/ActionCable/Connection/Identification.html
+++ b/src/classes/ActionCable/Connection/Identification.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,15 +95,15 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 29
- def connection_identifier
- unless defined? @connection_identifier
- @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
- end
+def connection_identifier
+ unless defined? @connection_identifier
+ @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
+ end
- @connection_identifier
- end
+ @connection_identifier
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification/ClassMethods.html b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
index 324ded31f5..a3395ef8a3 100644
--- a/src/classes/ActionCable/Connection/Identification/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -84,12 +84,12 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 21
- def identified_by(*identifiers)
- Array(identifiers).each { |identifier| attr_accessor identifier }
- self.identifiers += identifiers
- end
+def identified_by(*identifiers)
+ Array(identifiers).each { |identifier| attr_accessor identifier }
+ self.identifiers += identifiers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/InternalChannel.html b/src/classes/ActionCable/Connection/InternalChannel.html
index 9b0144f690..cfdccceaf4 100644
--- a/src/classes/ActionCable/Connection/InternalChannel.html
+++ b/src/classes/ActionCable/Connection/InternalChannel.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
index 7167904452..bf0c696d62 100644
--- a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
+++ b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 15
- def initialize(name)
- super "Unable to determine the connection to test from #{name}. " +
- "You'll need to specify it using `tests YourConnection` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the connection to test from #{name}. " +
+ "You'll need to specify it using `tests YourConnection` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/StreamEventLoop.html b/src/classes/ActionCable/Connection/StreamEventLoop.html
index 2b71a213e3..f7c49354ef 100644
--- a/src/classes/ActionCable/Connection/StreamEventLoop.html
+++ b/src/classes/ActionCable/Connection/StreamEventLoop.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -111,16 +111,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 10
- def initialize
- @nio = @executor = @thread = nil
- @map = {}
- @stopping = false
- @todo = Queue.new
-
- @spawn_mutex = Mutex.new
- end
+def initialize
+ @nio = @executor = @thread = nil
+ @map = {}
+ @stopping = false
+ @todo = Queue.new
+
+ @spawn_mutex = Mutex.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -155,15 +155,15 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 30
- def attach(io, stream)
- @todo << lambda do
- @map[io] = @nio.register(io, :r)
- @map[io].value = stream
- end
- wakeup
- end
+def attach(io, stream)
+ @todo << lambda do
+ @map[io] = @nio.register(io, :r)
+ @map[io].value = stream
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -194,16 +194,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 38
- def detach(io, stream)
- @todo << lambda do
- @nio.deregister io
- @map.delete io
- io.close
- end
- wakeup
- end
+def detach(io, stream)
+ @todo << lambda do
+ @nio.deregister io
+ @map.delete io
+ io.close
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -234,14 +234,14 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 23
- def post(task = nil, &block)
- task ||= block
+def post(task = nil, &block)
+ task ||= block
- spawn
- @executor << task
- end
+ spawn
+ @executor << task
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,12 +272,12 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 56
- def stop
- @stopping = true
- wakeup if @nio
- end
+def stop
+ @stopping = true
+ wakeup if @nio
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -308,11 +308,11 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 19
- def timer(interval, &block)
- Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
- end
+def timer(interval, &block)
+ Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -343,16 +343,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 47
- def writes_pending(io)
- @todo << lambda do
- if monitor = @map[io]
- monitor.interests = :rw
- end
- end
- wakeup
- end
+def writes_pending(io)
+ @todo << lambda do
+ if monitor = @map[io]
+ monitor.interests = :rw
+ end
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
index f4d5cacc63..99731855fb 100644
--- a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
+++ b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -121,12 +121,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 16
- def initialize(logger, tags:)
- @logger = logger
- @tags = tags.flatten
- end
+def initialize(logger, tags:)
+ @logger = logger
+ @tags = tags.flatten
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -161,12 +161,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 21
- def add_tags(*tags)
- @tags += tags.flatten
- @tags = @tags.uniq
- end
+def add_tags(*tags)
+ @tags += tags.flatten
+ @tags = @tags.uniq
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -197,16 +197,16 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 26
- def tag(logger, &block)
- if logger.respond_to?(:tagged)
- current_tags = tags - logger.formatter.current_tags
- logger.tagged(*current_tags, &block)
- else
- yield
- end
- end
+def tag(logger, &block)
+ if logger.respond_to?(:tagged)
+ current_tags = tags - logger.formatter.current_tags
+ logger.tagged(*current_tags, &block)
+ else
+ yield
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,11 +240,11 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 42
- def log(type, message, &block) # :doc:
- tag(@logger) { @logger.send type, message, &block }
- end
+def log(type, message, &block) # :doc:
+ tag(@logger) { @logger.send type, message, &block }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase.html b/src/classes/ActionCable/Connection/TestCase.html
index 948378e491..39bc5cb056 100644
--- a/src/classes/ActionCable/Connection/TestCase.html
+++ b/src/classes/ActionCable/Connection/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior.html b/src/classes/ActionCable/Connection/TestCase/Behavior.html
index b87870becd..4ee0debbea 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -163,19 +163,19 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 192
- def connect(path = ActionCable.server.config.mount_path, **request_params)
- path ||= DEFAULT_PATH
+def connect(path = ActionCable.server.config.mount_path, **request_params)
+ path ||= DEFAULT_PATH
- connection = self.class.connection_class.allocate
- connection.singleton_class.include(TestConnection)
- connection.send(:initialize, build_test_request(path, **request_params))
- connection.connect if connection.respond_to?(:connect)
+ connection = self.class.connection_class.allocate
+ connection.singleton_class.include(TestConnection)
+ connection.send(:initialize, build_test_request(path, **request_params))
+ connection.connect if connection.respond_to?(:connect)
- # Only set instance variable if connected successfully
- @connection = connection
- end
+ # Only set instance variable if connected successfully
+ @connection = connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -206,11 +206,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 212
- def cookies
- @cookie_jar ||= TestCookieJar.new
- end
+def cookies
+ @cookie_jar ||= TestCookieJar.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -241,14 +241,14 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 205
- def disconnect
- raise "Must be connected!" if connection.nil?
+def disconnect
+ raise "Must be connected!" if connection.nil?
- connection.disconnect if connection.respond_to?(:disconnect)
- @connection = nil
- end
+ connection.disconnect if connection.respond_to?(:disconnect)
+ @connection = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
index 63444f4b27..99fc0e3f6f 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 167
- def connection_class
- if connection = self._connection_class
- connection
- else
- tests determine_default_connection(name)
- end
- end
+def connection_class
+ if connection = self._connection_class
+ connection
+ else
+ tests determine_default_connection(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 175
- def determine_default_connection(name)
- connection = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Connection::Base
- end
- raise NonInferrableConnectionError.new(name) if connection.nil?
- connection
- end
+def determine_default_connection(name)
+ connection = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Connection::Base
+ end
+ raise NonInferrableConnectionError.new(name) if connection.nil?
+ connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/channel/base.rb, line 231
- def transmit(data, via: nil) # :doc:
- logger.debug do
- status = "#{self.class.name} transmitting #{data.inspect.truncate(300)}"
- status += " (via #{via})" if via
- status
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 234
+def transmit(data, via: nil) # :doc:
+ logger.debug do
+ status = "#{self.class.name} transmitting #{data.inspect.truncate(300)}"
+ status += " (via #{via})" if via
+ status
+ end
- payload = { channel_class: self.class.name, data: data, via: via }
- ActiveSupport::Notifications.instrument("transmit.action_cable", payload) do
- connection.transmit identifier: @identifier, message: data
- end
- end
+ payload = { channel_class: self.class.name, data: data, via: via }
+ ActiveSupport::Notifications.instrument("transmit.action_cable", payload) do
+ connection.transmit identifier: @identifier, message: data
+ end
+end# File actioncable/lib/action_cable/channel/base.rb, line 224
- def unsubscribed # :doc:
- # Override in subclasses
- end
+ # File actioncable/lib/action_cable/channel/base.rb, line 227
+def unsubscribed # :doc:
+ # Override in subclasses
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Broadcasting.html b/src/classes/ActionCable/Channel/Broadcasting.html
index bb71b89445..7fecc3f6b8 100644
--- a/src/classes/ActionCable/Channel/Broadcasting.html
+++ b/src/classes/ActionCable/Channel/Broadcasting.html
@@ -5,7 +5,7 @@
+ Ruby on Rails 8.1.0.rc1
@@ -99,11 +99,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 45
- def broadcast_to(model, message)
- self.class.broadcast_to(model, message)
- end
+def broadcast_to(model, message)
+ self.class.broadcast_to(model, message)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -134,11 +134,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 41
- def broadcasting_for(model)
- self.class.broadcasting_for(model)
- end
+def broadcasting_for(model)
+ self.class.broadcasting_for(model)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html b/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
index 684bccb1ab..432bb5d74f 100644
--- a/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 14
- def broadcast_to(broadcastables, message)
- ActionCable.server.broadcast(broadcasting_for(broadcastables), message)
- end
+def broadcast_to(broadcastables, message)
+ ActionCable.server.broadcast(broadcasting_for(broadcastables), message)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -126,11 +126,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 24
- def broadcasting_for(broadcastables)
- serialize_broadcasting([ channel_name ] + Array(broadcastables))
- end
+def broadcasting_for(broadcastables)
+ serialize_broadcasting([ channel_name ] + Array(broadcastables))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Callbacks.html b/src/classes/ActionCable/Channel/Callbacks.html
index 076bdbc8fa..64985186c3 100644
--- a/src/classes/ActionCable/Channel/Callbacks.html
+++ b/src/classes/ActionCable/Channel/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html b/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
index 6ee4317311..7949b5fdf6 100644
--- a/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -111,11 +111,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 60
- def after_subscribe(*methods, &block)
- set_callback(:subscribe, :after, *methods, &block)
- end
+def after_subscribe(*methods, &block)
+ set_callback(:subscribe, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -150,11 +150,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 69
- def after_unsubscribe(*methods, &block)
- set_callback(:unsubscribe, :after, *methods, &block)
- end
+def after_unsubscribe(*methods, &block)
+ set_callback(:unsubscribe, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -185,11 +185,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 48
- def before_subscribe(*methods, &block)
- set_callback(:subscribe, :before, *methods, &block)
- end
+def before_subscribe(*methods, &block)
+ set_callback(:subscribe, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -220,11 +220,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 65
- def before_unsubscribe(*methods, &block)
- set_callback(:unsubscribe, :before, *methods, &block)
- end
+def before_unsubscribe(*methods, &block)
+ set_callback(:unsubscribe, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/ChannelStub.html b/src/classes/ActionCable/Channel/ChannelStub.html
index 9db98daac2..d004896dc5 100644
--- a/src/classes/ActionCable/Channel/ChannelStub.html
+++ b/src/classes/ActionCable/Channel/ChannelStub.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -25,7 +25,7 @@
Action Cable Channel Stub
-
Stub stream_from to track streams for the channel. Add public aliases for subscription_confirmation_sent? and subscription_rejected?.
+Stub stream_from to track streams for the channel. Add public aliases for subscription_confirmation_sent? and subscription_rejected?.
@@ -114,11 +114,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 25
- def confirmed?
- subscription_confirmation_sent?
- end
+def confirmed?
+ subscription_confirmation_sent?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -149,11 +149,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 29
- def rejected?
- subscription_rejected?
- end
+def rejected?
+ subscription_rejected?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -188,9 +188,9 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 46
- def start_periodic_timers; end
+def start_periodic_timers; end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -221,11 +221,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 37
- def stop_all_streams
- @_streams = []
- end
+def stop_all_streams
+ @_streams = []
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -281,11 +281,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 33
- def stream_from(broadcasting, *)
- streams << broadcasting
- end
+def stream_from(broadcasting, *)
+ streams << broadcasting
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -316,11 +316,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 41
- def streams
- @_streams ||= []
- end
+def streams
+ @_streams ||= []
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/ConnectionStub.html b/src/classes/ActionCable/Channel/ConnectionStub.html
index 62c52b567f..0fdc0d8690 100644
--- a/src/classes/ActionCable/Channel/ConnectionStub.html
+++ b/src/classes/ActionCable/Channel/ConnectionStub.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -141,20 +141,20 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 55
- def initialize(identifiers = {})
- @server = ActionCable.server
- @transmissions = []
-
- identifiers.each do |identifier, val|
- define_singleton_method(identifier) { val }
- end
-
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @identifiers = identifiers.keys
- @logger = ActiveSupport::TaggedLogging.new ActiveSupport::Logger.new(StringIO.new)
- end
+def initialize(identifiers = {})
+ @server = ActionCable.server
+ @transmissions = []
+
+ identifiers.each do |identifier, val|
+ define_singleton_method(identifier) { val }
+ end
+
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @identifiers = identifiers.keys
+ @logger = ActiveSupport::TaggedLogging.new ActiveSupport::Logger.new(StringIO.new)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -189,11 +189,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 72
- def connection_identifier
- @connection_identifier ||= connection_gid(identifiers.filter_map { |id| send(id.to_sym) if id })
- end
+def connection_identifier
+ @connection_identifier ||= connection_gid(identifiers.filter_map { |id| send(id.to_sym) if id })
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -224,11 +224,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 68
- def transmit(cable_message)
- transmissions << cable_message.with_indifferent_access
- end
+def transmit(cable_message)
+ transmissions << cable_message.with_indifferent_access
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Naming.html b/src/classes/ActionCable/Channel/Naming.html
index 84bfc0232c..db2aa18589 100644
--- a/src/classes/ActionCable/Channel/Naming.html
+++ b/src/classes/ActionCable/Channel/Naming.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,11 +95,11 @@
# File actioncable/lib/action_cable/channel/naming.rb, line 23
- def channel_name
- self.class.channel_name
- end
+def channel_name
+ self.class.channel_name
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Naming/ClassMethods.html b/src/classes/ActionCable/Channel/Naming/ClassMethods.html
index b847309f12..e99c0744a7 100644
--- a/src/classes/ActionCable/Channel/Naming/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Naming/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -66,7 +66,7 @@
- Returns the name of the channel, underscored, without the Channel ending. If the channel is in a namespace, then the namespaces are represented by single colon separators in the channel name.
+ Returns the name of the channel, underscored, without the Channel ending. If the channel is in a namespace, then the namespaces are represented by single colon separators in the channel name.
ChatChannel.channel_name # => 'chat'
Chats::AppearancesChannel.channel_name # => 'chats:appearances'
@@ -87,11 +87,11 @@
# File actioncable/lib/action_cable/channel/naming.rb, line 18
- def channel_name
- @channel_name ||= name.delete_suffix("Channel").gsub("::", ":").underscore
- end
+def channel_name
+ @channel_name ||= name.delete_suffix("Channel").gsub("::", ":").underscore
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/NonInferrableChannelError.html b/src/classes/ActionCable/Channel/NonInferrableChannelError.html
index 034c36b135..1eac81cbd2 100644
--- a/src/classes/ActionCable/Channel/NonInferrableChannelError.html
+++ b/src/classes/ActionCable/Channel/NonInferrableChannelError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 13
- def initialize(name)
- super "Unable to determine the channel to test from #{name}. " +
- "You'll need to specify it using `tests YourChannel` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the channel to test from #{name}. " +
+ "You'll need to specify it using `tests YourChannel` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/PeriodicTimers.html b/src/classes/ActionCable/Channel/PeriodicTimers.html
index 88facef675..561da6e0dd 100644
--- a/src/classes/ActionCable/Channel/PeriodicTimers.html
+++ b/src/classes/ActionCable/Channel/PeriodicTimers.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html b/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
index 233865e2e3..a694f6de16 100644
--- a/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -91,30 +91,30 @@
# File actioncable/lib/action_cable/channel/periodic_timers.rb, line 31
- def periodically(callback_or_method_name = nil, every:, &block)
- callback =
- if block_given?
- raise ArgumentError, "Pass a block or provide a callback arg, not both" if callback_or_method_name
- block
- else
- case callback_or_method_name
- when Proc
- callback_or_method_name
- when Symbol
- -> { __send__ callback_or_method_name }
- else
- raise ArgumentError, "Expected a Symbol method name or a Proc, got #{callback_or_method_name.inspect}"
- end
- end
-
- unless every.kind_of?(Numeric) && every > 0
- raise ArgumentError, "Expected every: to be a positive number of seconds, got #{every.inspect}"
- end
-
- self.periodic_timers += [[ callback, every: every ]]
- end
+def periodically(callback_or_method_name = nil, every:, &block)
+ callback =
+ if block_given?
+ raise ArgumentError, "Pass a block or provide a callback arg, not both" if callback_or_method_name
+ block
+ else
+ case callback_or_method_name
+ when Proc
+ callback_or_method_name
+ when Symbol
+ -> { __send__ callback_or_method_name }
+ else
+ raise ArgumentError, "Expected a Symbol method name or a Proc, got #{callback_or_method_name.inspect}"
+ end
+ end
+
+ unless every.kind_of?(Numeric) && every > 0
+ raise ArgumentError, "Expected every: to be a positive number of seconds, got #{every.inspect}"
+ end
+
+ self.periodic_timers += [[ callback, every: every ]]
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Streams.html b/src/classes/ActionCable/Channel/Streams.html
index 0967feb616..a2e686a3e9 100644
--- a/src/classes/ActionCable/Channel/Streams.html
+++ b/src/classes/ActionCable/Channel/Streams.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -167,14 +167,14 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 137
- def stop_all_streams
- streams.each do |broadcasting, callback|
- pubsub.unsubscribe broadcasting, callback
- logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
- end.clear
- end
+def stop_all_streams
+ streams.each do |broadcasting, callback|
+ pubsub.unsubscribe broadcasting, callback
+ logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
+ end.clear
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -205,11 +205,11 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 132
- def stop_stream_for(model)
- stop_stream_from(broadcasting_for(model))
- end
+def stop_stream_for(model)
+ stop_stream_from(broadcasting_for(model))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,15 +240,15 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 123
- def stop_stream_from(broadcasting)
- callback = streams.delete(broadcasting)
- if callback
- pubsub.unsubscribe(broadcasting, callback)
- logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
- end
- end
+def stop_stream_from(broadcasting)
+ callback = streams.delete(broadcasting)
+ if callback
+ pubsub.unsubscribe(broadcasting, callback)
+ logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -281,11 +281,11 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 118
- def stream_for(broadcastables, callback = nil, coder: nil, &block)
- stream_from(broadcasting_for(broadcastables), callback || block, coder: coder)
- end
+def stream_for(broadcastables, callback = nil, coder: nil, &block)
+ stream_from(broadcasting_for(broadcastables), callback || block, coder: coder)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -316,28 +316,28 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 90
- def stream_from(broadcasting, callback = nil, coder: nil, &block)
- return if unsubscribed?
-
- broadcasting = String(broadcasting)
-
- # Don't send the confirmation until pubsub#subscribe is successful
- defer_subscription_confirmation!
-
- # Build a stream handler by wrapping the user-provided callback with a decoder
- # or defaulting to a JSON-decoding retransmitter.
- handler = worker_pool_stream_handler(broadcasting, callback || block, coder: coder)
- streams[broadcasting] = handler
-
- connection.server.event_loop.post do
- pubsub.subscribe(broadcasting, handler, lambda do
- ensure_confirmation_sent
- logger.info "#{self.class.name} is streaming from #{broadcasting}"
- end)
- end
- end
+def stream_from(broadcasting, callback = nil, coder: nil, &block)
+ return if unsubscribed?
+
+ broadcasting = String(broadcasting)
+
+ # Don't send the confirmation until pubsub#subscribe is successful
+ defer_subscription_confirmation!
+
+ # Build a stream handler by wrapping the user-provided callback with a decoder
+ # or defaulting to a JSON-decoding retransmitter.
+ handler = worker_pool_stream_handler(broadcasting, callback || block, coder: coder)
+ streams[broadcasting] = handler
+
+ connection.server.event_loop.post do
+ pubsub.subscribe(broadcasting, handler, lambda do
+ ensure_confirmation_sent
+ logger.info "#{self.class.name} is streaming from #{broadcasting}"
+ end)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -368,15 +368,15 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 146
- def stream_or_reject_for(model)
- if model
- stream_for model
- else
- reject
- end
- end
+def stream_or_reject_for(model)
+ if model
+ stream_for model
+ else
+ reject
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase.html b/src/classes/ActionCable/Channel/TestCase.html
index 08fb28c0cf..6317ff44d0 100644
--- a/src/classes/ActionCable/Channel/TestCase.html
+++ b/src/classes/ActionCable/Channel/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior.html b/src/classes/ActionCable/Channel/TestCase/Behavior.html
index b5f3a5cbb7..5a8ea0fd78 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -196,11 +196,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 282
- def assert_broadcast_on(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcast_on(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -231,11 +231,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 278
- def assert_broadcasts(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcasts(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,11 +272,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 326
- def assert_has_no_stream(stream)
- assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
- end
+def assert_has_no_stream(stream)
+ assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -313,11 +313,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 337
- def assert_has_no_stream_for(object)
- assert_has_no_stream(broadcasting_for(object))
- end
+def assert_has_no_stream_for(object)
+ assert_has_no_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -354,11 +354,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 304
- def assert_has_stream(stream)
- assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
- end
+def assert_has_stream(stream)
+ assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -395,11 +395,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 315
- def assert_has_stream_for(object)
- assert_has_stream(broadcasting_for(object))
- end
+def assert_has_stream_for(object)
+ assert_has_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -436,11 +436,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 293
- def assert_no_streams
- assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
- end
+def assert_no_streams
+ assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -473,12 +473,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 266
- def perform(action, data = {})
- check_subscribed!
- subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
- end
+def perform(action, data = {})
+ check_subscribed!
+ subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -516,11 +516,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 243
- def stub_connection(identifiers = {})
- @connection = ConnectionStub.new(identifiers)
- end
+def stub_connection(identifiers = {})
+ @connection = ConnectionStub.new(identifiers)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -551,15 +551,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 249
- def subscribe(params = {})
- @connection ||= stub_connection
- @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
- @subscription.singleton_class.include(ChannelStub)
- @subscription.subscribe_to_channel
- @subscription
- end
+def subscribe(params = {})
+ @connection ||= stub_connection
+ @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
+ @subscription.singleton_class.include(ChannelStub)
+ @subscription.subscribe_to_channel
+ @subscription
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -590,12 +590,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 272
- def transmissions
- # Return only directly sent message (via #transmit)
- connection.transmissions.filter_map { |data| data["message"] }
- end
+def transmissions
+ # Return only directly sent message (via #transmit)
+ connection.transmissions.filter_map { |data| data["message"] }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -626,12 +626,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 258
- def unsubscribe
- check_subscribed!
- subscription.unsubscribe_from_channel
- end
+def unsubscribe
+ check_subscribed!
+ subscription.unsubscribe_from_channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
index 48ea87f130..57efb4cdac 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 219
- def channel_class
- if channel = self._channel_class
- channel
- else
- tests determine_default_channel(name)
- end
- end
+def channel_class
+ if channel = self._channel_class
+ channel
+ else
+ tests determine_default_channel(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 227
- def determine_default_channel(name)
- channel = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Channel::Base
- end
- raise NonInferrableChannelError.new(name) if channel.nil?
- channel
- end
+def determine_default_channel(name)
+ channel = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Channel::Base
+ end
+ raise NonInferrableChannelError.new(name) if channel.nil?
+ channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 208
- def tests(channel)
- case channel
- when String, Symbol
- self._channel_class = channel.to_s.camelize.constantize
- when Module
- self._channel_class = channel
- else
- raise NonInferrableChannelError.new(channel)
- end
- end
+def tests(channel)
+ case channel
+ when String, Symbol
+ self._channel_class = channel.to_s.camelize.constantize
+ when Module
+ self._channel_class = channel
+ else
+ raise NonInferrableChannelError.new(channel)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection.html b/src/classes/ActionCable/Connection.html
index f832214f0e..7889c75284 100644
--- a/src/classes/ActionCable/Connection.html
+++ b/src/classes/ActionCable/Connection.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Assertions.html b/src/classes/ActionCable/Connection/Assertions.html
index 933ea80e4c..6b10ec5528 100644
--- a/src/classes/ActionCable/Connection/Assertions.html
+++ b/src/classes/ActionCable/Connection/Assertions.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 28
- def assert_reject_connection(&block)
- assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
- end
+def assert_reject_connection(&block)
+ assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization.html b/src/classes/ActionCable/Connection/Authorization.html
index feb855aa9e..baf85a37b3 100644
--- a/src/classes/ActionCable/Connection/Authorization.html
+++ b/src/classes/ActionCable/Connection/Authorization.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -97,12 +97,12 @@
# File actioncable/lib/action_cable/connection/authorization.rb, line 12
- def reject_unauthorized_connection
- logger.error "An unauthorized connection attempt was rejected"
- raise UnauthorizedError
- end
+def reject_unauthorized_connection
+ logger.error "An unauthorized connection attempt was rejected"
+ raise UnauthorizedError
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
index b63b282b0b..ff36299a28 100644
--- a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
+++ b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/Base.html b/src/classes/ActionCable/Connection/Base.html
index 36a2f1e1bb..ea0d62911f 100644
--- a/src/classes/ActionCable/Connection/Base.html
+++ b/src/classes/ActionCable/Connection/Base.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -255,21 +255,21 @@
# File actioncable/lib/action_cable/connection/base.rb, line 67
- def initialize(server, env, coder: ActiveSupport::JSON)
- @server, @env, @coder = server, env, coder
+def initialize(server, env, coder: ActiveSupport::JSON)
+ @server, @env, @coder = server, env, coder
- @worker_pool = server.worker_pool
- @logger = new_tagged_logger
+ @worker_pool = server.worker_pool
+ @logger = new_tagged_logger
- @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
+ @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
- @_internal_subscriptions = nil
- @started_at = Time.now
- end
+ @_internal_subscriptions = nil
+ @started_at = Time.now
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -304,11 +304,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 147
- def beat
- transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
- end
+def beat
+ transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -339,16 +339,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 120
- def close(reason: nil, reconnect: true)
- transmit(
- type: ActionCable::INTERNAL[:message_types][:disconnect],
- reason: reason,
- reconnect: reconnect
- )
- websocket.close
- end
+def close(reason: nil, reconnect: true)
+ transmit(
+ type: ActionCable::INTERNAL[:message_types][:disconnect],
+ reason: reason,
+ reconnect: reconnect
+ )
+ websocket.close
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -379,13 +379,13 @@
# File actioncable/lib/action_cable/connection/base.rb, line 109
- def handle_channel_command(payload)
- run_callbacks :command do
- subscriptions.execute_command payload
- end
- end
+def handle_channel_command(payload)
+ run_callbacks :command do
+ subscriptions.execute_command payload
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -416,11 +416,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 131
- def send_async(method, *arguments)
- worker_pool.async_invoke(self, method, *arguments)
- end
+def send_async(method, *arguments)
+ worker_pool.async_invoke(self, method, *arguments)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -451,16 +451,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 138
- def statistics
- {
- identifier: connection_identifier,
- started_at: @started_at,
- subscriptions: subscriptions.identifiers,
- request_id: @env["action_dispatch.request_id"]
- }
- end
+def statistics
+ {
+ identifier: connection_identifier,
+ started_at: @started_at,
+ subscriptions: subscriptions.identifiers,
+ request_id: @env["action_dispatch.request_id"]
+ }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -494,11 +494,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 187
- def cookies # :doc:
- request.cookie_jar
- end
+def cookies # :doc:
+ request.cookie_jar
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -529,14 +529,14 @@
# File actioncable/lib/action_cable/connection/base.rb, line 178
- def request # :doc:
- @request ||= begin
- environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
- ActionDispatch::Request.new(environment || env)
- end
- end
+def request # :doc:
+ @request ||= begin
+ environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
+ ActionDispatch::Request.new(environment || env)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Callbacks.html b/src/classes/ActionCable/Connection/Callbacks.html
index 818958bf81..d6504ca284 100644
--- a/src/classes/ActionCable/Connection/Callbacks.html
+++ b/src/classes/ActionCable/Connection/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
index 933056a029..6376d7195b 100644
--- a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,11 +90,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 47
- def after_command(*methods, &block)
- set_callback(:command, :after, *methods, &block)
- end
+def after_command(*methods, &block)
+ set_callback(:command, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -125,11 +125,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 51
- def around_command(*methods, &block)
- set_callback(:command, :around, *methods, &block)
- end
+def around_command(*methods, &block)
+ set_callback(:command, :around, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -160,11 +160,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 43
- def before_command(*methods, &block)
- set_callback(:command, :before, *methods, &block)
- end
+def before_command(*methods, &block)
+ set_callback(:command, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification.html b/src/classes/ActionCable/Connection/Identification.html
index f3dcea9bfc..063ca88999 100644
--- a/src/classes/ActionCable/Connection/Identification.html
+++ b/src/classes/ActionCable/Connection/Identification.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,15 +95,15 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 29
- def connection_identifier
- unless defined? @connection_identifier
- @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
- end
+def connection_identifier
+ unless defined? @connection_identifier
+ @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
+ end
- @connection_identifier
- end
+ @connection_identifier
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification/ClassMethods.html b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
index 324ded31f5..a3395ef8a3 100644
--- a/src/classes/ActionCable/Connection/Identification/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -84,12 +84,12 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 21
- def identified_by(*identifiers)
- Array(identifiers).each { |identifier| attr_accessor identifier }
- self.identifiers += identifiers
- end
+def identified_by(*identifiers)
+ Array(identifiers).each { |identifier| attr_accessor identifier }
+ self.identifiers += identifiers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/InternalChannel.html b/src/classes/ActionCable/Connection/InternalChannel.html
index 9b0144f690..cfdccceaf4 100644
--- a/src/classes/ActionCable/Connection/InternalChannel.html
+++ b/src/classes/ActionCable/Connection/InternalChannel.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
index 7167904452..bf0c696d62 100644
--- a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
+++ b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 15
- def initialize(name)
- super "Unable to determine the connection to test from #{name}. " +
- "You'll need to specify it using `tests YourConnection` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the connection to test from #{name}. " +
+ "You'll need to specify it using `tests YourConnection` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/StreamEventLoop.html b/src/classes/ActionCable/Connection/StreamEventLoop.html
index 2b71a213e3..f7c49354ef 100644
--- a/src/classes/ActionCable/Connection/StreamEventLoop.html
+++ b/src/classes/ActionCable/Connection/StreamEventLoop.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -111,16 +111,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 10
- def initialize
- @nio = @executor = @thread = nil
- @map = {}
- @stopping = false
- @todo = Queue.new
-
- @spawn_mutex = Mutex.new
- end
+def initialize
+ @nio = @executor = @thread = nil
+ @map = {}
+ @stopping = false
+ @todo = Queue.new
+
+ @spawn_mutex = Mutex.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -155,15 +155,15 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 30
- def attach(io, stream)
- @todo << lambda do
- @map[io] = @nio.register(io, :r)
- @map[io].value = stream
- end
- wakeup
- end
+def attach(io, stream)
+ @todo << lambda do
+ @map[io] = @nio.register(io, :r)
+ @map[io].value = stream
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -194,16 +194,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 38
- def detach(io, stream)
- @todo << lambda do
- @nio.deregister io
- @map.delete io
- io.close
- end
- wakeup
- end
+def detach(io, stream)
+ @todo << lambda do
+ @nio.deregister io
+ @map.delete io
+ io.close
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -234,14 +234,14 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 23
- def post(task = nil, &block)
- task ||= block
+def post(task = nil, &block)
+ task ||= block
- spawn
- @executor << task
- end
+ spawn
+ @executor << task
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,12 +272,12 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 56
- def stop
- @stopping = true
- wakeup if @nio
- end
+def stop
+ @stopping = true
+ wakeup if @nio
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -308,11 +308,11 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 19
- def timer(interval, &block)
- Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
- end
+def timer(interval, &block)
+ Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -343,16 +343,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 47
- def writes_pending(io)
- @todo << lambda do
- if monitor = @map[io]
- monitor.interests = :rw
- end
- end
- wakeup
- end
+def writes_pending(io)
+ @todo << lambda do
+ if monitor = @map[io]
+ monitor.interests = :rw
+ end
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
index f4d5cacc63..99731855fb 100644
--- a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
+++ b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -121,12 +121,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 16
- def initialize(logger, tags:)
- @logger = logger
- @tags = tags.flatten
- end
+def initialize(logger, tags:)
+ @logger = logger
+ @tags = tags.flatten
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -161,12 +161,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 21
- def add_tags(*tags)
- @tags += tags.flatten
- @tags = @tags.uniq
- end
+def add_tags(*tags)
+ @tags += tags.flatten
+ @tags = @tags.uniq
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -197,16 +197,16 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 26
- def tag(logger, &block)
- if logger.respond_to?(:tagged)
- current_tags = tags - logger.formatter.current_tags
- logger.tagged(*current_tags, &block)
- else
- yield
- end
- end
+def tag(logger, &block)
+ if logger.respond_to?(:tagged)
+ current_tags = tags - logger.formatter.current_tags
+ logger.tagged(*current_tags, &block)
+ else
+ yield
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,11 +240,11 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 42
- def log(type, message, &block) # :doc:
- tag(@logger) { @logger.send type, message, &block }
- end
+def log(type, message, &block) # :doc:
+ tag(@logger) { @logger.send type, message, &block }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase.html b/src/classes/ActionCable/Connection/TestCase.html
index 948378e491..39bc5cb056 100644
--- a/src/classes/ActionCable/Connection/TestCase.html
+++ b/src/classes/ActionCable/Connection/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior.html b/src/classes/ActionCable/Connection/TestCase/Behavior.html
index b87870becd..4ee0debbea 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -163,19 +163,19 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 192
- def connect(path = ActionCable.server.config.mount_path, **request_params)
- path ||= DEFAULT_PATH
+def connect(path = ActionCable.server.config.mount_path, **request_params)
+ path ||= DEFAULT_PATH
- connection = self.class.connection_class.allocate
- connection.singleton_class.include(TestConnection)
- connection.send(:initialize, build_test_request(path, **request_params))
- connection.connect if connection.respond_to?(:connect)
+ connection = self.class.connection_class.allocate
+ connection.singleton_class.include(TestConnection)
+ connection.send(:initialize, build_test_request(path, **request_params))
+ connection.connect if connection.respond_to?(:connect)
- # Only set instance variable if connected successfully
- @connection = connection
- end
+ # Only set instance variable if connected successfully
+ @connection = connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -206,11 +206,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 212
- def cookies
- @cookie_jar ||= TestCookieJar.new
- end
+def cookies
+ @cookie_jar ||= TestCookieJar.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -241,14 +241,14 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 205
- def disconnect
- raise "Must be connected!" if connection.nil?
+def disconnect
+ raise "Must be connected!" if connection.nil?
- connection.disconnect if connection.respond_to?(:disconnect)
- @connection = nil
- end
+ connection.disconnect if connection.respond_to?(:disconnect)
+ @connection = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
index 63444f4b27..99fc0e3f6f 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 167
- def connection_class
- if connection = self._connection_class
- connection
- else
- tests determine_default_connection(name)
- end
- end
+def connection_class
+ if connection = self._connection_class
+ connection
+ else
+ tests determine_default_connection(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 175
- def determine_default_connection(name)
- connection = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Connection::Base
- end
- raise NonInferrableConnectionError.new(name) if connection.nil?
- connection
- end
+def determine_default_connection(name)
+ connection = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Connection::Base
+ end
+ raise NonInferrableConnectionError.new(name) if connection.nil?
+ connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 45
- def broadcast_to(model, message)
- self.class.broadcast_to(model, message)
- end
+def broadcast_to(model, message)
+ self.class.broadcast_to(model, message)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -134,11 +134,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 41
- def broadcasting_for(model)
- self.class.broadcasting_for(model)
- end
+def broadcasting_for(model)
+ self.class.broadcasting_for(model)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html b/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
index 684bccb1ab..432bb5d74f 100644
--- a/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 14
- def broadcast_to(broadcastables, message)
- ActionCable.server.broadcast(broadcasting_for(broadcastables), message)
- end
+def broadcast_to(broadcastables, message)
+ ActionCable.server.broadcast(broadcasting_for(broadcastables), message)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -126,11 +126,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 24
- def broadcasting_for(broadcastables)
- serialize_broadcasting([ channel_name ] + Array(broadcastables))
- end
+def broadcasting_for(broadcastables)
+ serialize_broadcasting([ channel_name ] + Array(broadcastables))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Callbacks.html b/src/classes/ActionCable/Channel/Callbacks.html
index 076bdbc8fa..64985186c3 100644
--- a/src/classes/ActionCable/Channel/Callbacks.html
+++ b/src/classes/ActionCable/Channel/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html b/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
index 6ee4317311..7949b5fdf6 100644
--- a/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -111,11 +111,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 60
- def after_subscribe(*methods, &block)
- set_callback(:subscribe, :after, *methods, &block)
- end
+def after_subscribe(*methods, &block)
+ set_callback(:subscribe, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -150,11 +150,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 69
- def after_unsubscribe(*methods, &block)
- set_callback(:unsubscribe, :after, *methods, &block)
- end
+def after_unsubscribe(*methods, &block)
+ set_callback(:unsubscribe, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -185,11 +185,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 48
- def before_subscribe(*methods, &block)
- set_callback(:subscribe, :before, *methods, &block)
- end
+def before_subscribe(*methods, &block)
+ set_callback(:subscribe, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -220,11 +220,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 65
- def before_unsubscribe(*methods, &block)
- set_callback(:unsubscribe, :before, *methods, &block)
- end
+def before_unsubscribe(*methods, &block)
+ set_callback(:unsubscribe, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/ChannelStub.html b/src/classes/ActionCable/Channel/ChannelStub.html
index 9db98daac2..d004896dc5 100644
--- a/src/classes/ActionCable/Channel/ChannelStub.html
+++ b/src/classes/ActionCable/Channel/ChannelStub.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -25,7 +25,7 @@
Action Cable Channel Stub
-
Stub stream_from to track streams for the channel. Add public aliases for subscription_confirmation_sent? and subscription_rejected?.
+Stub stream_from to track streams for the channel. Add public aliases for subscription_confirmation_sent? and subscription_rejected?.
@@ -114,11 +114,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 25
- def confirmed?
- subscription_confirmation_sent?
- end
+def confirmed?
+ subscription_confirmation_sent?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -149,11 +149,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 29
- def rejected?
- subscription_rejected?
- end
+def rejected?
+ subscription_rejected?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -188,9 +188,9 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 46
- def start_periodic_timers; end
+def start_periodic_timers; end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -221,11 +221,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 37
- def stop_all_streams
- @_streams = []
- end
+def stop_all_streams
+ @_streams = []
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -281,11 +281,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 33
- def stream_from(broadcasting, *)
- streams << broadcasting
- end
+def stream_from(broadcasting, *)
+ streams << broadcasting
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -316,11 +316,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 41
- def streams
- @_streams ||= []
- end
+def streams
+ @_streams ||= []
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/ConnectionStub.html b/src/classes/ActionCable/Channel/ConnectionStub.html
index 62c52b567f..0fdc0d8690 100644
--- a/src/classes/ActionCable/Channel/ConnectionStub.html
+++ b/src/classes/ActionCable/Channel/ConnectionStub.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -141,20 +141,20 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 55
- def initialize(identifiers = {})
- @server = ActionCable.server
- @transmissions = []
-
- identifiers.each do |identifier, val|
- define_singleton_method(identifier) { val }
- end
-
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @identifiers = identifiers.keys
- @logger = ActiveSupport::TaggedLogging.new ActiveSupport::Logger.new(StringIO.new)
- end
+def initialize(identifiers = {})
+ @server = ActionCable.server
+ @transmissions = []
+
+ identifiers.each do |identifier, val|
+ define_singleton_method(identifier) { val }
+ end
+
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @identifiers = identifiers.keys
+ @logger = ActiveSupport::TaggedLogging.new ActiveSupport::Logger.new(StringIO.new)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -189,11 +189,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 72
- def connection_identifier
- @connection_identifier ||= connection_gid(identifiers.filter_map { |id| send(id.to_sym) if id })
- end
+def connection_identifier
+ @connection_identifier ||= connection_gid(identifiers.filter_map { |id| send(id.to_sym) if id })
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -224,11 +224,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 68
- def transmit(cable_message)
- transmissions << cable_message.with_indifferent_access
- end
+def transmit(cable_message)
+ transmissions << cable_message.with_indifferent_access
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Naming.html b/src/classes/ActionCable/Channel/Naming.html
index 84bfc0232c..db2aa18589 100644
--- a/src/classes/ActionCable/Channel/Naming.html
+++ b/src/classes/ActionCable/Channel/Naming.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,11 +95,11 @@
# File actioncable/lib/action_cable/channel/naming.rb, line 23
- def channel_name
- self.class.channel_name
- end
+def channel_name
+ self.class.channel_name
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Naming/ClassMethods.html b/src/classes/ActionCable/Channel/Naming/ClassMethods.html
index b847309f12..e99c0744a7 100644
--- a/src/classes/ActionCable/Channel/Naming/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Naming/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -66,7 +66,7 @@
- Returns the name of the channel, underscored, without the Channel ending. If the channel is in a namespace, then the namespaces are represented by single colon separators in the channel name.
+ Returns the name of the channel, underscored, without the Channel ending. If the channel is in a namespace, then the namespaces are represented by single colon separators in the channel name.
ChatChannel.channel_name # => 'chat'
Chats::AppearancesChannel.channel_name # => 'chats:appearances'
@@ -87,11 +87,11 @@
# File actioncable/lib/action_cable/channel/naming.rb, line 18
- def channel_name
- @channel_name ||= name.delete_suffix("Channel").gsub("::", ":").underscore
- end
+def channel_name
+ @channel_name ||= name.delete_suffix("Channel").gsub("::", ":").underscore
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/NonInferrableChannelError.html b/src/classes/ActionCable/Channel/NonInferrableChannelError.html
index 034c36b135..1eac81cbd2 100644
--- a/src/classes/ActionCable/Channel/NonInferrableChannelError.html
+++ b/src/classes/ActionCable/Channel/NonInferrableChannelError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 13
- def initialize(name)
- super "Unable to determine the channel to test from #{name}. " +
- "You'll need to specify it using `tests YourChannel` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the channel to test from #{name}. " +
+ "You'll need to specify it using `tests YourChannel` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/PeriodicTimers.html b/src/classes/ActionCable/Channel/PeriodicTimers.html
index 88facef675..561da6e0dd 100644
--- a/src/classes/ActionCable/Channel/PeriodicTimers.html
+++ b/src/classes/ActionCable/Channel/PeriodicTimers.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html b/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
index 233865e2e3..a694f6de16 100644
--- a/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -91,30 +91,30 @@
# File actioncable/lib/action_cable/channel/periodic_timers.rb, line 31
- def periodically(callback_or_method_name = nil, every:, &block)
- callback =
- if block_given?
- raise ArgumentError, "Pass a block or provide a callback arg, not both" if callback_or_method_name
- block
- else
- case callback_or_method_name
- when Proc
- callback_or_method_name
- when Symbol
- -> { __send__ callback_or_method_name }
- else
- raise ArgumentError, "Expected a Symbol method name or a Proc, got #{callback_or_method_name.inspect}"
- end
- end
-
- unless every.kind_of?(Numeric) && every > 0
- raise ArgumentError, "Expected every: to be a positive number of seconds, got #{every.inspect}"
- end
-
- self.periodic_timers += [[ callback, every: every ]]
- end
+def periodically(callback_or_method_name = nil, every:, &block)
+ callback =
+ if block_given?
+ raise ArgumentError, "Pass a block or provide a callback arg, not both" if callback_or_method_name
+ block
+ else
+ case callback_or_method_name
+ when Proc
+ callback_or_method_name
+ when Symbol
+ -> { __send__ callback_or_method_name }
+ else
+ raise ArgumentError, "Expected a Symbol method name or a Proc, got #{callback_or_method_name.inspect}"
+ end
+ end
+
+ unless every.kind_of?(Numeric) && every > 0
+ raise ArgumentError, "Expected every: to be a positive number of seconds, got #{every.inspect}"
+ end
+
+ self.periodic_timers += [[ callback, every: every ]]
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Streams.html b/src/classes/ActionCable/Channel/Streams.html
index 0967feb616..a2e686a3e9 100644
--- a/src/classes/ActionCable/Channel/Streams.html
+++ b/src/classes/ActionCable/Channel/Streams.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -167,14 +167,14 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 137
- def stop_all_streams
- streams.each do |broadcasting, callback|
- pubsub.unsubscribe broadcasting, callback
- logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
- end.clear
- end
+def stop_all_streams
+ streams.each do |broadcasting, callback|
+ pubsub.unsubscribe broadcasting, callback
+ logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
+ end.clear
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -205,11 +205,11 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 132
- def stop_stream_for(model)
- stop_stream_from(broadcasting_for(model))
- end
+def stop_stream_for(model)
+ stop_stream_from(broadcasting_for(model))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,15 +240,15 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 123
- def stop_stream_from(broadcasting)
- callback = streams.delete(broadcasting)
- if callback
- pubsub.unsubscribe(broadcasting, callback)
- logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
- end
- end
+def stop_stream_from(broadcasting)
+ callback = streams.delete(broadcasting)
+ if callback
+ pubsub.unsubscribe(broadcasting, callback)
+ logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -281,11 +281,11 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 118
- def stream_for(broadcastables, callback = nil, coder: nil, &block)
- stream_from(broadcasting_for(broadcastables), callback || block, coder: coder)
- end
+def stream_for(broadcastables, callback = nil, coder: nil, &block)
+ stream_from(broadcasting_for(broadcastables), callback || block, coder: coder)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -316,28 +316,28 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 90
- def stream_from(broadcasting, callback = nil, coder: nil, &block)
- return if unsubscribed?
-
- broadcasting = String(broadcasting)
-
- # Don't send the confirmation until pubsub#subscribe is successful
- defer_subscription_confirmation!
-
- # Build a stream handler by wrapping the user-provided callback with a decoder
- # or defaulting to a JSON-decoding retransmitter.
- handler = worker_pool_stream_handler(broadcasting, callback || block, coder: coder)
- streams[broadcasting] = handler
-
- connection.server.event_loop.post do
- pubsub.subscribe(broadcasting, handler, lambda do
- ensure_confirmation_sent
- logger.info "#{self.class.name} is streaming from #{broadcasting}"
- end)
- end
- end
+def stream_from(broadcasting, callback = nil, coder: nil, &block)
+ return if unsubscribed?
+
+ broadcasting = String(broadcasting)
+
+ # Don't send the confirmation until pubsub#subscribe is successful
+ defer_subscription_confirmation!
+
+ # Build a stream handler by wrapping the user-provided callback with a decoder
+ # or defaulting to a JSON-decoding retransmitter.
+ handler = worker_pool_stream_handler(broadcasting, callback || block, coder: coder)
+ streams[broadcasting] = handler
+
+ connection.server.event_loop.post do
+ pubsub.subscribe(broadcasting, handler, lambda do
+ ensure_confirmation_sent
+ logger.info "#{self.class.name} is streaming from #{broadcasting}"
+ end)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -368,15 +368,15 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 146
- def stream_or_reject_for(model)
- if model
- stream_for model
- else
- reject
- end
- end
+def stream_or_reject_for(model)
+ if model
+ stream_for model
+ else
+ reject
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase.html b/src/classes/ActionCable/Channel/TestCase.html
index 08fb28c0cf..6317ff44d0 100644
--- a/src/classes/ActionCable/Channel/TestCase.html
+++ b/src/classes/ActionCable/Channel/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior.html b/src/classes/ActionCable/Channel/TestCase/Behavior.html
index b5f3a5cbb7..5a8ea0fd78 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -196,11 +196,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 282
- def assert_broadcast_on(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcast_on(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -231,11 +231,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 278
- def assert_broadcasts(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcasts(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,11 +272,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 326
- def assert_has_no_stream(stream)
- assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
- end
+def assert_has_no_stream(stream)
+ assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -313,11 +313,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 337
- def assert_has_no_stream_for(object)
- assert_has_no_stream(broadcasting_for(object))
- end
+def assert_has_no_stream_for(object)
+ assert_has_no_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -354,11 +354,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 304
- def assert_has_stream(stream)
- assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
- end
+def assert_has_stream(stream)
+ assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -395,11 +395,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 315
- def assert_has_stream_for(object)
- assert_has_stream(broadcasting_for(object))
- end
+def assert_has_stream_for(object)
+ assert_has_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -436,11 +436,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 293
- def assert_no_streams
- assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
- end
+def assert_no_streams
+ assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -473,12 +473,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 266
- def perform(action, data = {})
- check_subscribed!
- subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
- end
+def perform(action, data = {})
+ check_subscribed!
+ subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -516,11 +516,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 243
- def stub_connection(identifiers = {})
- @connection = ConnectionStub.new(identifiers)
- end
+def stub_connection(identifiers = {})
+ @connection = ConnectionStub.new(identifiers)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -551,15 +551,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 249
- def subscribe(params = {})
- @connection ||= stub_connection
- @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
- @subscription.singleton_class.include(ChannelStub)
- @subscription.subscribe_to_channel
- @subscription
- end
+def subscribe(params = {})
+ @connection ||= stub_connection
+ @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
+ @subscription.singleton_class.include(ChannelStub)
+ @subscription.subscribe_to_channel
+ @subscription
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -590,12 +590,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 272
- def transmissions
- # Return only directly sent message (via #transmit)
- connection.transmissions.filter_map { |data| data["message"] }
- end
+def transmissions
+ # Return only directly sent message (via #transmit)
+ connection.transmissions.filter_map { |data| data["message"] }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -626,12 +626,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 258
- def unsubscribe
- check_subscribed!
- subscription.unsubscribe_from_channel
- end
+def unsubscribe
+ check_subscribed!
+ subscription.unsubscribe_from_channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
index 48ea87f130..57efb4cdac 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 219
- def channel_class
- if channel = self._channel_class
- channel
- else
- tests determine_default_channel(name)
- end
- end
+def channel_class
+ if channel = self._channel_class
+ channel
+ else
+ tests determine_default_channel(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 227
- def determine_default_channel(name)
- channel = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Channel::Base
- end
- raise NonInferrableChannelError.new(name) if channel.nil?
- channel
- end
+def determine_default_channel(name)
+ channel = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Channel::Base
+ end
+ raise NonInferrableChannelError.new(name) if channel.nil?
+ channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 208
- def tests(channel)
- case channel
- when String, Symbol
- self._channel_class = channel.to_s.camelize.constantize
- when Module
- self._channel_class = channel
- else
- raise NonInferrableChannelError.new(channel)
- end
- end
+def tests(channel)
+ case channel
+ when String, Symbol
+ self._channel_class = channel.to_s.camelize.constantize
+ when Module
+ self._channel_class = channel
+ else
+ raise NonInferrableChannelError.new(channel)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection.html b/src/classes/ActionCable/Connection.html
index f832214f0e..7889c75284 100644
--- a/src/classes/ActionCable/Connection.html
+++ b/src/classes/ActionCable/Connection.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Assertions.html b/src/classes/ActionCable/Connection/Assertions.html
index 933ea80e4c..6b10ec5528 100644
--- a/src/classes/ActionCable/Connection/Assertions.html
+++ b/src/classes/ActionCable/Connection/Assertions.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 28
- def assert_reject_connection(&block)
- assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
- end
+def assert_reject_connection(&block)
+ assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization.html b/src/classes/ActionCable/Connection/Authorization.html
index feb855aa9e..baf85a37b3 100644
--- a/src/classes/ActionCable/Connection/Authorization.html
+++ b/src/classes/ActionCable/Connection/Authorization.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -97,12 +97,12 @@
# File actioncable/lib/action_cable/connection/authorization.rb, line 12
- def reject_unauthorized_connection
- logger.error "An unauthorized connection attempt was rejected"
- raise UnauthorizedError
- end
+def reject_unauthorized_connection
+ logger.error "An unauthorized connection attempt was rejected"
+ raise UnauthorizedError
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
index b63b282b0b..ff36299a28 100644
--- a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
+++ b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/Base.html b/src/classes/ActionCable/Connection/Base.html
index 36a2f1e1bb..ea0d62911f 100644
--- a/src/classes/ActionCable/Connection/Base.html
+++ b/src/classes/ActionCable/Connection/Base.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -255,21 +255,21 @@
# File actioncable/lib/action_cable/connection/base.rb, line 67
- def initialize(server, env, coder: ActiveSupport::JSON)
- @server, @env, @coder = server, env, coder
+def initialize(server, env, coder: ActiveSupport::JSON)
+ @server, @env, @coder = server, env, coder
- @worker_pool = server.worker_pool
- @logger = new_tagged_logger
+ @worker_pool = server.worker_pool
+ @logger = new_tagged_logger
- @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
+ @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
- @_internal_subscriptions = nil
- @started_at = Time.now
- end
+ @_internal_subscriptions = nil
+ @started_at = Time.now
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -304,11 +304,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 147
- def beat
- transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
- end
+def beat
+ transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -339,16 +339,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 120
- def close(reason: nil, reconnect: true)
- transmit(
- type: ActionCable::INTERNAL[:message_types][:disconnect],
- reason: reason,
- reconnect: reconnect
- )
- websocket.close
- end
+def close(reason: nil, reconnect: true)
+ transmit(
+ type: ActionCable::INTERNAL[:message_types][:disconnect],
+ reason: reason,
+ reconnect: reconnect
+ )
+ websocket.close
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -379,13 +379,13 @@
# File actioncable/lib/action_cable/connection/base.rb, line 109
- def handle_channel_command(payload)
- run_callbacks :command do
- subscriptions.execute_command payload
- end
- end
+def handle_channel_command(payload)
+ run_callbacks :command do
+ subscriptions.execute_command payload
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -416,11 +416,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 131
- def send_async(method, *arguments)
- worker_pool.async_invoke(self, method, *arguments)
- end
+def send_async(method, *arguments)
+ worker_pool.async_invoke(self, method, *arguments)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -451,16 +451,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 138
- def statistics
- {
- identifier: connection_identifier,
- started_at: @started_at,
- subscriptions: subscriptions.identifiers,
- request_id: @env["action_dispatch.request_id"]
- }
- end
+def statistics
+ {
+ identifier: connection_identifier,
+ started_at: @started_at,
+ subscriptions: subscriptions.identifiers,
+ request_id: @env["action_dispatch.request_id"]
+ }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -494,11 +494,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 187
- def cookies # :doc:
- request.cookie_jar
- end
+def cookies # :doc:
+ request.cookie_jar
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -529,14 +529,14 @@
# File actioncable/lib/action_cable/connection/base.rb, line 178
- def request # :doc:
- @request ||= begin
- environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
- ActionDispatch::Request.new(environment || env)
- end
- end
+def request # :doc:
+ @request ||= begin
+ environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
+ ActionDispatch::Request.new(environment || env)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Callbacks.html b/src/classes/ActionCable/Connection/Callbacks.html
index 818958bf81..d6504ca284 100644
--- a/src/classes/ActionCable/Connection/Callbacks.html
+++ b/src/classes/ActionCable/Connection/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
index 933056a029..6376d7195b 100644
--- a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,11 +90,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 47
- def after_command(*methods, &block)
- set_callback(:command, :after, *methods, &block)
- end
+def after_command(*methods, &block)
+ set_callback(:command, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -125,11 +125,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 51
- def around_command(*methods, &block)
- set_callback(:command, :around, *methods, &block)
- end
+def around_command(*methods, &block)
+ set_callback(:command, :around, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -160,11 +160,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 43
- def before_command(*methods, &block)
- set_callback(:command, :before, *methods, &block)
- end
+def before_command(*methods, &block)
+ set_callback(:command, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification.html b/src/classes/ActionCable/Connection/Identification.html
index f3dcea9bfc..063ca88999 100644
--- a/src/classes/ActionCable/Connection/Identification.html
+++ b/src/classes/ActionCable/Connection/Identification.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,15 +95,15 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 29
- def connection_identifier
- unless defined? @connection_identifier
- @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
- end
+def connection_identifier
+ unless defined? @connection_identifier
+ @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
+ end
- @connection_identifier
- end
+ @connection_identifier
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification/ClassMethods.html b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
index 324ded31f5..a3395ef8a3 100644
--- a/src/classes/ActionCable/Connection/Identification/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -84,12 +84,12 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 21
- def identified_by(*identifiers)
- Array(identifiers).each { |identifier| attr_accessor identifier }
- self.identifiers += identifiers
- end
+def identified_by(*identifiers)
+ Array(identifiers).each { |identifier| attr_accessor identifier }
+ self.identifiers += identifiers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/InternalChannel.html b/src/classes/ActionCable/Connection/InternalChannel.html
index 9b0144f690..cfdccceaf4 100644
--- a/src/classes/ActionCable/Connection/InternalChannel.html
+++ b/src/classes/ActionCable/Connection/InternalChannel.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
index 7167904452..bf0c696d62 100644
--- a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
+++ b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 15
- def initialize(name)
- super "Unable to determine the connection to test from #{name}. " +
- "You'll need to specify it using `tests YourConnection` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the connection to test from #{name}. " +
+ "You'll need to specify it using `tests YourConnection` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/StreamEventLoop.html b/src/classes/ActionCable/Connection/StreamEventLoop.html
index 2b71a213e3..f7c49354ef 100644
--- a/src/classes/ActionCable/Connection/StreamEventLoop.html
+++ b/src/classes/ActionCable/Connection/StreamEventLoop.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -111,16 +111,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 10
- def initialize
- @nio = @executor = @thread = nil
- @map = {}
- @stopping = false
- @todo = Queue.new
-
- @spawn_mutex = Mutex.new
- end
+def initialize
+ @nio = @executor = @thread = nil
+ @map = {}
+ @stopping = false
+ @todo = Queue.new
+
+ @spawn_mutex = Mutex.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -155,15 +155,15 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 30
- def attach(io, stream)
- @todo << lambda do
- @map[io] = @nio.register(io, :r)
- @map[io].value = stream
- end
- wakeup
- end
+def attach(io, stream)
+ @todo << lambda do
+ @map[io] = @nio.register(io, :r)
+ @map[io].value = stream
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -194,16 +194,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 38
- def detach(io, stream)
- @todo << lambda do
- @nio.deregister io
- @map.delete io
- io.close
- end
- wakeup
- end
+def detach(io, stream)
+ @todo << lambda do
+ @nio.deregister io
+ @map.delete io
+ io.close
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -234,14 +234,14 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 23
- def post(task = nil, &block)
- task ||= block
+def post(task = nil, &block)
+ task ||= block
- spawn
- @executor << task
- end
+ spawn
+ @executor << task
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,12 +272,12 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 56
- def stop
- @stopping = true
- wakeup if @nio
- end
+def stop
+ @stopping = true
+ wakeup if @nio
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -308,11 +308,11 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 19
- def timer(interval, &block)
- Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
- end
+def timer(interval, &block)
+ Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -343,16 +343,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 47
- def writes_pending(io)
- @todo << lambda do
- if monitor = @map[io]
- monitor.interests = :rw
- end
- end
- wakeup
- end
+def writes_pending(io)
+ @todo << lambda do
+ if monitor = @map[io]
+ monitor.interests = :rw
+ end
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
index f4d5cacc63..99731855fb 100644
--- a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
+++ b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -121,12 +121,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 16
- def initialize(logger, tags:)
- @logger = logger
- @tags = tags.flatten
- end
+def initialize(logger, tags:)
+ @logger = logger
+ @tags = tags.flatten
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -161,12 +161,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 21
- def add_tags(*tags)
- @tags += tags.flatten
- @tags = @tags.uniq
- end
+def add_tags(*tags)
+ @tags += tags.flatten
+ @tags = @tags.uniq
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -197,16 +197,16 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 26
- def tag(logger, &block)
- if logger.respond_to?(:tagged)
- current_tags = tags - logger.formatter.current_tags
- logger.tagged(*current_tags, &block)
- else
- yield
- end
- end
+def tag(logger, &block)
+ if logger.respond_to?(:tagged)
+ current_tags = tags - logger.formatter.current_tags
+ logger.tagged(*current_tags, &block)
+ else
+ yield
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,11 +240,11 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 42
- def log(type, message, &block) # :doc:
- tag(@logger) { @logger.send type, message, &block }
- end
+def log(type, message, &block) # :doc:
+ tag(@logger) { @logger.send type, message, &block }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase.html b/src/classes/ActionCable/Connection/TestCase.html
index 948378e491..39bc5cb056 100644
--- a/src/classes/ActionCable/Connection/TestCase.html
+++ b/src/classes/ActionCable/Connection/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior.html b/src/classes/ActionCable/Connection/TestCase/Behavior.html
index b87870becd..4ee0debbea 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -163,19 +163,19 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 192
- def connect(path = ActionCable.server.config.mount_path, **request_params)
- path ||= DEFAULT_PATH
+def connect(path = ActionCable.server.config.mount_path, **request_params)
+ path ||= DEFAULT_PATH
- connection = self.class.connection_class.allocate
- connection.singleton_class.include(TestConnection)
- connection.send(:initialize, build_test_request(path, **request_params))
- connection.connect if connection.respond_to?(:connect)
+ connection = self.class.connection_class.allocate
+ connection.singleton_class.include(TestConnection)
+ connection.send(:initialize, build_test_request(path, **request_params))
+ connection.connect if connection.respond_to?(:connect)
- # Only set instance variable if connected successfully
- @connection = connection
- end
+ # Only set instance variable if connected successfully
+ @connection = connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -206,11 +206,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 212
- def cookies
- @cookie_jar ||= TestCookieJar.new
- end
+def cookies
+ @cookie_jar ||= TestCookieJar.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -241,14 +241,14 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 205
- def disconnect
- raise "Must be connected!" if connection.nil?
+def disconnect
+ raise "Must be connected!" if connection.nil?
- connection.disconnect if connection.respond_to?(:disconnect)
- @connection = nil
- end
+ connection.disconnect if connection.respond_to?(:disconnect)
+ @connection = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
index 63444f4b27..99fc0e3f6f 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 167
- def connection_class
- if connection = self._connection_class
- connection
- else
- tests determine_default_connection(name)
- end
- end
+def connection_class
+ if connection = self._connection_class
+ connection
+ else
+ tests determine_default_connection(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 175
- def determine_default_connection(name)
- connection = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Connection::Base
- end
- raise NonInferrableConnectionError.new(name) if connection.nil?
- connection
- end
+def determine_default_connection(name)
+ connection = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Connection::Base
+ end
+ raise NonInferrableConnectionError.new(name) if connection.nil?
+ connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 41
- def broadcasting_for(model)
- self.class.broadcasting_for(model)
- end+ Ruby on Rails 8.1.0.rc1
@@ -86,11 +86,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 14
- def broadcast_to(broadcastables, message)
- ActionCable.server.broadcast(broadcasting_for(broadcastables), message)
- end
+def broadcast_to(broadcastables, message)
+ ActionCable.server.broadcast(broadcasting_for(broadcastables), message)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -126,11 +126,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 24
- def broadcasting_for(broadcastables)
- serialize_broadcasting([ channel_name ] + Array(broadcastables))
- end
+def broadcasting_for(broadcastables)
+ serialize_broadcasting([ channel_name ] + Array(broadcastables))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Callbacks.html b/src/classes/ActionCable/Channel/Callbacks.html
index 076bdbc8fa..64985186c3 100644
--- a/src/classes/ActionCable/Channel/Callbacks.html
+++ b/src/classes/ActionCable/Channel/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html b/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
index 6ee4317311..7949b5fdf6 100644
--- a/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -111,11 +111,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 60
- def after_subscribe(*methods, &block)
- set_callback(:subscribe, :after, *methods, &block)
- end
+def after_subscribe(*methods, &block)
+ set_callback(:subscribe, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -150,11 +150,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 69
- def after_unsubscribe(*methods, &block)
- set_callback(:unsubscribe, :after, *methods, &block)
- end
+def after_unsubscribe(*methods, &block)
+ set_callback(:unsubscribe, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -185,11 +185,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 48
- def before_subscribe(*methods, &block)
- set_callback(:subscribe, :before, *methods, &block)
- end
+def before_subscribe(*methods, &block)
+ set_callback(:subscribe, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -220,11 +220,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 65
- def before_unsubscribe(*methods, &block)
- set_callback(:unsubscribe, :before, *methods, &block)
- end
+def before_unsubscribe(*methods, &block)
+ set_callback(:unsubscribe, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/ChannelStub.html b/src/classes/ActionCable/Channel/ChannelStub.html
index 9db98daac2..d004896dc5 100644
--- a/src/classes/ActionCable/Channel/ChannelStub.html
+++ b/src/classes/ActionCable/Channel/ChannelStub.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -25,7 +25,7 @@
Action Cable Channel Stub
-
Stub stream_from to track streams for the channel. Add public aliases for subscription_confirmation_sent? and subscription_rejected?.
+Stub stream_from to track streams for the channel. Add public aliases for subscription_confirmation_sent? and subscription_rejected?.
@@ -114,11 +114,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 25
- def confirmed?
- subscription_confirmation_sent?
- end
+def confirmed?
+ subscription_confirmation_sent?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -149,11 +149,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 29
- def rejected?
- subscription_rejected?
- end
+def rejected?
+ subscription_rejected?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -188,9 +188,9 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 46
- def start_periodic_timers; end
+def start_periodic_timers; end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -221,11 +221,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 37
- def stop_all_streams
- @_streams = []
- end
+def stop_all_streams
+ @_streams = []
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -281,11 +281,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 33
- def stream_from(broadcasting, *)
- streams << broadcasting
- end
+def stream_from(broadcasting, *)
+ streams << broadcasting
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -316,11 +316,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 41
- def streams
- @_streams ||= []
- end
+def streams
+ @_streams ||= []
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/ConnectionStub.html b/src/classes/ActionCable/Channel/ConnectionStub.html
index 62c52b567f..0fdc0d8690 100644
--- a/src/classes/ActionCable/Channel/ConnectionStub.html
+++ b/src/classes/ActionCable/Channel/ConnectionStub.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -141,20 +141,20 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 55
- def initialize(identifiers = {})
- @server = ActionCable.server
- @transmissions = []
-
- identifiers.each do |identifier, val|
- define_singleton_method(identifier) { val }
- end
-
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @identifiers = identifiers.keys
- @logger = ActiveSupport::TaggedLogging.new ActiveSupport::Logger.new(StringIO.new)
- end
+def initialize(identifiers = {})
+ @server = ActionCable.server
+ @transmissions = []
+
+ identifiers.each do |identifier, val|
+ define_singleton_method(identifier) { val }
+ end
+
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @identifiers = identifiers.keys
+ @logger = ActiveSupport::TaggedLogging.new ActiveSupport::Logger.new(StringIO.new)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -189,11 +189,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 72
- def connection_identifier
- @connection_identifier ||= connection_gid(identifiers.filter_map { |id| send(id.to_sym) if id })
- end
+def connection_identifier
+ @connection_identifier ||= connection_gid(identifiers.filter_map { |id| send(id.to_sym) if id })
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -224,11 +224,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 68
- def transmit(cable_message)
- transmissions << cable_message.with_indifferent_access
- end
+def transmit(cable_message)
+ transmissions << cable_message.with_indifferent_access
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Naming.html b/src/classes/ActionCable/Channel/Naming.html
index 84bfc0232c..db2aa18589 100644
--- a/src/classes/ActionCable/Channel/Naming.html
+++ b/src/classes/ActionCable/Channel/Naming.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,11 +95,11 @@
# File actioncable/lib/action_cable/channel/naming.rb, line 23
- def channel_name
- self.class.channel_name
- end
+def channel_name
+ self.class.channel_name
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Naming/ClassMethods.html b/src/classes/ActionCable/Channel/Naming/ClassMethods.html
index b847309f12..e99c0744a7 100644
--- a/src/classes/ActionCable/Channel/Naming/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Naming/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -66,7 +66,7 @@
- Returns the name of the channel, underscored, without the Channel ending. If the channel is in a namespace, then the namespaces are represented by single colon separators in the channel name.
+ Returns the name of the channel, underscored, without the Channel ending. If the channel is in a namespace, then the namespaces are represented by single colon separators in the channel name.
ChatChannel.channel_name # => 'chat'
Chats::AppearancesChannel.channel_name # => 'chats:appearances'
@@ -87,11 +87,11 @@
# File actioncable/lib/action_cable/channel/naming.rb, line 18
- def channel_name
- @channel_name ||= name.delete_suffix("Channel").gsub("::", ":").underscore
- end
+def channel_name
+ @channel_name ||= name.delete_suffix("Channel").gsub("::", ":").underscore
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/NonInferrableChannelError.html b/src/classes/ActionCable/Channel/NonInferrableChannelError.html
index 034c36b135..1eac81cbd2 100644
--- a/src/classes/ActionCable/Channel/NonInferrableChannelError.html
+++ b/src/classes/ActionCable/Channel/NonInferrableChannelError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 13
- def initialize(name)
- super "Unable to determine the channel to test from #{name}. " +
- "You'll need to specify it using `tests YourChannel` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the channel to test from #{name}. " +
+ "You'll need to specify it using `tests YourChannel` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/PeriodicTimers.html b/src/classes/ActionCable/Channel/PeriodicTimers.html
index 88facef675..561da6e0dd 100644
--- a/src/classes/ActionCable/Channel/PeriodicTimers.html
+++ b/src/classes/ActionCable/Channel/PeriodicTimers.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html b/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
index 233865e2e3..a694f6de16 100644
--- a/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -91,30 +91,30 @@
# File actioncable/lib/action_cable/channel/periodic_timers.rb, line 31
- def periodically(callback_or_method_name = nil, every:, &block)
- callback =
- if block_given?
- raise ArgumentError, "Pass a block or provide a callback arg, not both" if callback_or_method_name
- block
- else
- case callback_or_method_name
- when Proc
- callback_or_method_name
- when Symbol
- -> { __send__ callback_or_method_name }
- else
- raise ArgumentError, "Expected a Symbol method name or a Proc, got #{callback_or_method_name.inspect}"
- end
- end
-
- unless every.kind_of?(Numeric) && every > 0
- raise ArgumentError, "Expected every: to be a positive number of seconds, got #{every.inspect}"
- end
-
- self.periodic_timers += [[ callback, every: every ]]
- end
+def periodically(callback_or_method_name = nil, every:, &block)
+ callback =
+ if block_given?
+ raise ArgumentError, "Pass a block or provide a callback arg, not both" if callback_or_method_name
+ block
+ else
+ case callback_or_method_name
+ when Proc
+ callback_or_method_name
+ when Symbol
+ -> { __send__ callback_or_method_name }
+ else
+ raise ArgumentError, "Expected a Symbol method name or a Proc, got #{callback_or_method_name.inspect}"
+ end
+ end
+
+ unless every.kind_of?(Numeric) && every > 0
+ raise ArgumentError, "Expected every: to be a positive number of seconds, got #{every.inspect}"
+ end
+
+ self.periodic_timers += [[ callback, every: every ]]
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Streams.html b/src/classes/ActionCable/Channel/Streams.html
index 0967feb616..a2e686a3e9 100644
--- a/src/classes/ActionCable/Channel/Streams.html
+++ b/src/classes/ActionCable/Channel/Streams.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -167,14 +167,14 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 137
- def stop_all_streams
- streams.each do |broadcasting, callback|
- pubsub.unsubscribe broadcasting, callback
- logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
- end.clear
- end
+def stop_all_streams
+ streams.each do |broadcasting, callback|
+ pubsub.unsubscribe broadcasting, callback
+ logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
+ end.clear
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -205,11 +205,11 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 132
- def stop_stream_for(model)
- stop_stream_from(broadcasting_for(model))
- end
+def stop_stream_for(model)
+ stop_stream_from(broadcasting_for(model))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,15 +240,15 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 123
- def stop_stream_from(broadcasting)
- callback = streams.delete(broadcasting)
- if callback
- pubsub.unsubscribe(broadcasting, callback)
- logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
- end
- end
+def stop_stream_from(broadcasting)
+ callback = streams.delete(broadcasting)
+ if callback
+ pubsub.unsubscribe(broadcasting, callback)
+ logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -281,11 +281,11 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 118
- def stream_for(broadcastables, callback = nil, coder: nil, &block)
- stream_from(broadcasting_for(broadcastables), callback || block, coder: coder)
- end
+def stream_for(broadcastables, callback = nil, coder: nil, &block)
+ stream_from(broadcasting_for(broadcastables), callback || block, coder: coder)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -316,28 +316,28 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 90
- def stream_from(broadcasting, callback = nil, coder: nil, &block)
- return if unsubscribed?
-
- broadcasting = String(broadcasting)
-
- # Don't send the confirmation until pubsub#subscribe is successful
- defer_subscription_confirmation!
-
- # Build a stream handler by wrapping the user-provided callback with a decoder
- # or defaulting to a JSON-decoding retransmitter.
- handler = worker_pool_stream_handler(broadcasting, callback || block, coder: coder)
- streams[broadcasting] = handler
-
- connection.server.event_loop.post do
- pubsub.subscribe(broadcasting, handler, lambda do
- ensure_confirmation_sent
- logger.info "#{self.class.name} is streaming from #{broadcasting}"
- end)
- end
- end
+def stream_from(broadcasting, callback = nil, coder: nil, &block)
+ return if unsubscribed?
+
+ broadcasting = String(broadcasting)
+
+ # Don't send the confirmation until pubsub#subscribe is successful
+ defer_subscription_confirmation!
+
+ # Build a stream handler by wrapping the user-provided callback with a decoder
+ # or defaulting to a JSON-decoding retransmitter.
+ handler = worker_pool_stream_handler(broadcasting, callback || block, coder: coder)
+ streams[broadcasting] = handler
+
+ connection.server.event_loop.post do
+ pubsub.subscribe(broadcasting, handler, lambda do
+ ensure_confirmation_sent
+ logger.info "#{self.class.name} is streaming from #{broadcasting}"
+ end)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -368,15 +368,15 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 146
- def stream_or_reject_for(model)
- if model
- stream_for model
- else
- reject
- end
- end
+def stream_or_reject_for(model)
+ if model
+ stream_for model
+ else
+ reject
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase.html b/src/classes/ActionCable/Channel/TestCase.html
index 08fb28c0cf..6317ff44d0 100644
--- a/src/classes/ActionCable/Channel/TestCase.html
+++ b/src/classes/ActionCable/Channel/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior.html b/src/classes/ActionCable/Channel/TestCase/Behavior.html
index b5f3a5cbb7..5a8ea0fd78 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -196,11 +196,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 282
- def assert_broadcast_on(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcast_on(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -231,11 +231,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 278
- def assert_broadcasts(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcasts(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,11 +272,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 326
- def assert_has_no_stream(stream)
- assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
- end
+def assert_has_no_stream(stream)
+ assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -313,11 +313,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 337
- def assert_has_no_stream_for(object)
- assert_has_no_stream(broadcasting_for(object))
- end
+def assert_has_no_stream_for(object)
+ assert_has_no_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -354,11 +354,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 304
- def assert_has_stream(stream)
- assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
- end
+def assert_has_stream(stream)
+ assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -395,11 +395,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 315
- def assert_has_stream_for(object)
- assert_has_stream(broadcasting_for(object))
- end
+def assert_has_stream_for(object)
+ assert_has_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -436,11 +436,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 293
- def assert_no_streams
- assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
- end
+def assert_no_streams
+ assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -473,12 +473,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 266
- def perform(action, data = {})
- check_subscribed!
- subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
- end
+def perform(action, data = {})
+ check_subscribed!
+ subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -516,11 +516,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 243
- def stub_connection(identifiers = {})
- @connection = ConnectionStub.new(identifiers)
- end
+def stub_connection(identifiers = {})
+ @connection = ConnectionStub.new(identifiers)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -551,15 +551,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 249
- def subscribe(params = {})
- @connection ||= stub_connection
- @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
- @subscription.singleton_class.include(ChannelStub)
- @subscription.subscribe_to_channel
- @subscription
- end
+def subscribe(params = {})
+ @connection ||= stub_connection
+ @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
+ @subscription.singleton_class.include(ChannelStub)
+ @subscription.subscribe_to_channel
+ @subscription
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -590,12 +590,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 272
- def transmissions
- # Return only directly sent message (via #transmit)
- connection.transmissions.filter_map { |data| data["message"] }
- end
+def transmissions
+ # Return only directly sent message (via #transmit)
+ connection.transmissions.filter_map { |data| data["message"] }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -626,12 +626,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 258
- def unsubscribe
- check_subscribed!
- subscription.unsubscribe_from_channel
- end
+def unsubscribe
+ check_subscribed!
+ subscription.unsubscribe_from_channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
index 48ea87f130..57efb4cdac 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 219
- def channel_class
- if channel = self._channel_class
- channel
- else
- tests determine_default_channel(name)
- end
- end
+def channel_class
+ if channel = self._channel_class
+ channel
+ else
+ tests determine_default_channel(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 227
- def determine_default_channel(name)
- channel = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Channel::Base
- end
- raise NonInferrableChannelError.new(name) if channel.nil?
- channel
- end
+def determine_default_channel(name)
+ channel = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Channel::Base
+ end
+ raise NonInferrableChannelError.new(name) if channel.nil?
+ channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 208
- def tests(channel)
- case channel
- when String, Symbol
- self._channel_class = channel.to_s.camelize.constantize
- when Module
- self._channel_class = channel
- else
- raise NonInferrableChannelError.new(channel)
- end
- end
+def tests(channel)
+ case channel
+ when String, Symbol
+ self._channel_class = channel.to_s.camelize.constantize
+ when Module
+ self._channel_class = channel
+ else
+ raise NonInferrableChannelError.new(channel)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection.html b/src/classes/ActionCable/Connection.html
index f832214f0e..7889c75284 100644
--- a/src/classes/ActionCable/Connection.html
+++ b/src/classes/ActionCable/Connection.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Assertions.html b/src/classes/ActionCable/Connection/Assertions.html
index 933ea80e4c..6b10ec5528 100644
--- a/src/classes/ActionCable/Connection/Assertions.html
+++ b/src/classes/ActionCable/Connection/Assertions.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 28
- def assert_reject_connection(&block)
- assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
- end
+def assert_reject_connection(&block)
+ assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization.html b/src/classes/ActionCable/Connection/Authorization.html
index feb855aa9e..baf85a37b3 100644
--- a/src/classes/ActionCable/Connection/Authorization.html
+++ b/src/classes/ActionCable/Connection/Authorization.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -97,12 +97,12 @@
# File actioncable/lib/action_cable/connection/authorization.rb, line 12
- def reject_unauthorized_connection
- logger.error "An unauthorized connection attempt was rejected"
- raise UnauthorizedError
- end
+def reject_unauthorized_connection
+ logger.error "An unauthorized connection attempt was rejected"
+ raise UnauthorizedError
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
index b63b282b0b..ff36299a28 100644
--- a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
+++ b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/Base.html b/src/classes/ActionCable/Connection/Base.html
index 36a2f1e1bb..ea0d62911f 100644
--- a/src/classes/ActionCable/Connection/Base.html
+++ b/src/classes/ActionCable/Connection/Base.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -255,21 +255,21 @@
# File actioncable/lib/action_cable/connection/base.rb, line 67
- def initialize(server, env, coder: ActiveSupport::JSON)
- @server, @env, @coder = server, env, coder
+def initialize(server, env, coder: ActiveSupport::JSON)
+ @server, @env, @coder = server, env, coder
- @worker_pool = server.worker_pool
- @logger = new_tagged_logger
+ @worker_pool = server.worker_pool
+ @logger = new_tagged_logger
- @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
+ @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
- @_internal_subscriptions = nil
- @started_at = Time.now
- end
+ @_internal_subscriptions = nil
+ @started_at = Time.now
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -304,11 +304,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 147
- def beat
- transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
- end
+def beat
+ transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -339,16 +339,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 120
- def close(reason: nil, reconnect: true)
- transmit(
- type: ActionCable::INTERNAL[:message_types][:disconnect],
- reason: reason,
- reconnect: reconnect
- )
- websocket.close
- end
+def close(reason: nil, reconnect: true)
+ transmit(
+ type: ActionCable::INTERNAL[:message_types][:disconnect],
+ reason: reason,
+ reconnect: reconnect
+ )
+ websocket.close
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -379,13 +379,13 @@
# File actioncable/lib/action_cable/connection/base.rb, line 109
- def handle_channel_command(payload)
- run_callbacks :command do
- subscriptions.execute_command payload
- end
- end
+def handle_channel_command(payload)
+ run_callbacks :command do
+ subscriptions.execute_command payload
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -416,11 +416,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 131
- def send_async(method, *arguments)
- worker_pool.async_invoke(self, method, *arguments)
- end
+def send_async(method, *arguments)
+ worker_pool.async_invoke(self, method, *arguments)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -451,16 +451,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 138
- def statistics
- {
- identifier: connection_identifier,
- started_at: @started_at,
- subscriptions: subscriptions.identifiers,
- request_id: @env["action_dispatch.request_id"]
- }
- end
+def statistics
+ {
+ identifier: connection_identifier,
+ started_at: @started_at,
+ subscriptions: subscriptions.identifiers,
+ request_id: @env["action_dispatch.request_id"]
+ }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -494,11 +494,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 187
- def cookies # :doc:
- request.cookie_jar
- end
+def cookies # :doc:
+ request.cookie_jar
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -529,14 +529,14 @@
# File actioncable/lib/action_cable/connection/base.rb, line 178
- def request # :doc:
- @request ||= begin
- environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
- ActionDispatch::Request.new(environment || env)
- end
- end
+def request # :doc:
+ @request ||= begin
+ environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
+ ActionDispatch::Request.new(environment || env)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Callbacks.html b/src/classes/ActionCable/Connection/Callbacks.html
index 818958bf81..d6504ca284 100644
--- a/src/classes/ActionCable/Connection/Callbacks.html
+++ b/src/classes/ActionCable/Connection/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
index 933056a029..6376d7195b 100644
--- a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,11 +90,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 47
- def after_command(*methods, &block)
- set_callback(:command, :after, *methods, &block)
- end
+def after_command(*methods, &block)
+ set_callback(:command, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -125,11 +125,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 51
- def around_command(*methods, &block)
- set_callback(:command, :around, *methods, &block)
- end
+def around_command(*methods, &block)
+ set_callback(:command, :around, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -160,11 +160,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 43
- def before_command(*methods, &block)
- set_callback(:command, :before, *methods, &block)
- end
+def before_command(*methods, &block)
+ set_callback(:command, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification.html b/src/classes/ActionCable/Connection/Identification.html
index f3dcea9bfc..063ca88999 100644
--- a/src/classes/ActionCable/Connection/Identification.html
+++ b/src/classes/ActionCable/Connection/Identification.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,15 +95,15 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 29
- def connection_identifier
- unless defined? @connection_identifier
- @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
- end
+def connection_identifier
+ unless defined? @connection_identifier
+ @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
+ end
- @connection_identifier
- end
+ @connection_identifier
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification/ClassMethods.html b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
index 324ded31f5..a3395ef8a3 100644
--- a/src/classes/ActionCable/Connection/Identification/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -84,12 +84,12 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 21
- def identified_by(*identifiers)
- Array(identifiers).each { |identifier| attr_accessor identifier }
- self.identifiers += identifiers
- end
+def identified_by(*identifiers)
+ Array(identifiers).each { |identifier| attr_accessor identifier }
+ self.identifiers += identifiers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/InternalChannel.html b/src/classes/ActionCable/Connection/InternalChannel.html
index 9b0144f690..cfdccceaf4 100644
--- a/src/classes/ActionCable/Connection/InternalChannel.html
+++ b/src/classes/ActionCable/Connection/InternalChannel.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
index 7167904452..bf0c696d62 100644
--- a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
+++ b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 15
- def initialize(name)
- super "Unable to determine the connection to test from #{name}. " +
- "You'll need to specify it using `tests YourConnection` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the connection to test from #{name}. " +
+ "You'll need to specify it using `tests YourConnection` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/StreamEventLoop.html b/src/classes/ActionCable/Connection/StreamEventLoop.html
index 2b71a213e3..f7c49354ef 100644
--- a/src/classes/ActionCable/Connection/StreamEventLoop.html
+++ b/src/classes/ActionCable/Connection/StreamEventLoop.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -111,16 +111,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 10
- def initialize
- @nio = @executor = @thread = nil
- @map = {}
- @stopping = false
- @todo = Queue.new
-
- @spawn_mutex = Mutex.new
- end
+def initialize
+ @nio = @executor = @thread = nil
+ @map = {}
+ @stopping = false
+ @todo = Queue.new
+
+ @spawn_mutex = Mutex.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -155,15 +155,15 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 30
- def attach(io, stream)
- @todo << lambda do
- @map[io] = @nio.register(io, :r)
- @map[io].value = stream
- end
- wakeup
- end
+def attach(io, stream)
+ @todo << lambda do
+ @map[io] = @nio.register(io, :r)
+ @map[io].value = stream
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -194,16 +194,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 38
- def detach(io, stream)
- @todo << lambda do
- @nio.deregister io
- @map.delete io
- io.close
- end
- wakeup
- end
+def detach(io, stream)
+ @todo << lambda do
+ @nio.deregister io
+ @map.delete io
+ io.close
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -234,14 +234,14 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 23
- def post(task = nil, &block)
- task ||= block
+def post(task = nil, &block)
+ task ||= block
- spawn
- @executor << task
- end
+ spawn
+ @executor << task
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,12 +272,12 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 56
- def stop
- @stopping = true
- wakeup if @nio
- end
+def stop
+ @stopping = true
+ wakeup if @nio
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -308,11 +308,11 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 19
- def timer(interval, &block)
- Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
- end
+def timer(interval, &block)
+ Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -343,16 +343,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 47
- def writes_pending(io)
- @todo << lambda do
- if monitor = @map[io]
- monitor.interests = :rw
- end
- end
- wakeup
- end
+def writes_pending(io)
+ @todo << lambda do
+ if monitor = @map[io]
+ monitor.interests = :rw
+ end
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
index f4d5cacc63..99731855fb 100644
--- a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
+++ b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -121,12 +121,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 16
- def initialize(logger, tags:)
- @logger = logger
- @tags = tags.flatten
- end
+def initialize(logger, tags:)
+ @logger = logger
+ @tags = tags.flatten
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -161,12 +161,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 21
- def add_tags(*tags)
- @tags += tags.flatten
- @tags = @tags.uniq
- end
+def add_tags(*tags)
+ @tags += tags.flatten
+ @tags = @tags.uniq
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -197,16 +197,16 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 26
- def tag(logger, &block)
- if logger.respond_to?(:tagged)
- current_tags = tags - logger.formatter.current_tags
- logger.tagged(*current_tags, &block)
- else
- yield
- end
- end
+def tag(logger, &block)
+ if logger.respond_to?(:tagged)
+ current_tags = tags - logger.formatter.current_tags
+ logger.tagged(*current_tags, &block)
+ else
+ yield
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,11 +240,11 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 42
- def log(type, message, &block) # :doc:
- tag(@logger) { @logger.send type, message, &block }
- end
+def log(type, message, &block) # :doc:
+ tag(@logger) { @logger.send type, message, &block }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase.html b/src/classes/ActionCable/Connection/TestCase.html
index 948378e491..39bc5cb056 100644
--- a/src/classes/ActionCable/Connection/TestCase.html
+++ b/src/classes/ActionCable/Connection/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior.html b/src/classes/ActionCable/Connection/TestCase/Behavior.html
index b87870becd..4ee0debbea 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -163,19 +163,19 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 192
- def connect(path = ActionCable.server.config.mount_path, **request_params)
- path ||= DEFAULT_PATH
+def connect(path = ActionCable.server.config.mount_path, **request_params)
+ path ||= DEFAULT_PATH
- connection = self.class.connection_class.allocate
- connection.singleton_class.include(TestConnection)
- connection.send(:initialize, build_test_request(path, **request_params))
- connection.connect if connection.respond_to?(:connect)
+ connection = self.class.connection_class.allocate
+ connection.singleton_class.include(TestConnection)
+ connection.send(:initialize, build_test_request(path, **request_params))
+ connection.connect if connection.respond_to?(:connect)
- # Only set instance variable if connected successfully
- @connection = connection
- end
+ # Only set instance variable if connected successfully
+ @connection = connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -206,11 +206,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 212
- def cookies
- @cookie_jar ||= TestCookieJar.new
- end
+def cookies
+ @cookie_jar ||= TestCookieJar.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -241,14 +241,14 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 205
- def disconnect
- raise "Must be connected!" if connection.nil?
+def disconnect
+ raise "Must be connected!" if connection.nil?
- connection.disconnect if connection.respond_to?(:disconnect)
- @connection = nil
- end
+ connection.disconnect if connection.respond_to?(:disconnect)
+ @connection = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
index 63444f4b27..99fc0e3f6f 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 167
- def connection_class
- if connection = self._connection_class
- connection
- else
- tests determine_default_connection(name)
- end
- end
+def connection_class
+ if connection = self._connection_class
+ connection
+ else
+ tests determine_default_connection(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 175
- def determine_default_connection(name)
- connection = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Connection::Base
- end
- raise NonInferrableConnectionError.new(name) if connection.nil?
- connection
- end
+def determine_default_connection(name)
+ connection = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Connection::Base
+ end
+ raise NonInferrableConnectionError.new(name) if connection.nil?
+ connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 14
- def broadcast_to(broadcastables, message)
- ActionCable.server.broadcast(broadcasting_for(broadcastables), message)
- end
+def broadcast_to(broadcastables, message)
+ ActionCable.server.broadcast(broadcasting_for(broadcastables), message)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -126,11 +126,11 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 24
- def broadcasting_for(broadcastables)
- serialize_broadcasting([ channel_name ] + Array(broadcastables))
- end
+def broadcasting_for(broadcastables)
+ serialize_broadcasting([ channel_name ] + Array(broadcastables))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Callbacks.html b/src/classes/ActionCable/Channel/Callbacks.html
index 076bdbc8fa..64985186c3 100644
--- a/src/classes/ActionCable/Channel/Callbacks.html
+++ b/src/classes/ActionCable/Channel/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html b/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
index 6ee4317311..7949b5fdf6 100644
--- a/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -111,11 +111,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 60
- def after_subscribe(*methods, &block)
- set_callback(:subscribe, :after, *methods, &block)
- end
+def after_subscribe(*methods, &block)
+ set_callback(:subscribe, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -150,11 +150,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 69
- def after_unsubscribe(*methods, &block)
- set_callback(:unsubscribe, :after, *methods, &block)
- end
+def after_unsubscribe(*methods, &block)
+ set_callback(:unsubscribe, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -185,11 +185,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 48
- def before_subscribe(*methods, &block)
- set_callback(:subscribe, :before, *methods, &block)
- end
+def before_subscribe(*methods, &block)
+ set_callback(:subscribe, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -220,11 +220,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 65
- def before_unsubscribe(*methods, &block)
- set_callback(:unsubscribe, :before, *methods, &block)
- end
+def before_unsubscribe(*methods, &block)
+ set_callback(:unsubscribe, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/ChannelStub.html b/src/classes/ActionCable/Channel/ChannelStub.html
index 9db98daac2..d004896dc5 100644
--- a/src/classes/ActionCable/Channel/ChannelStub.html
+++ b/src/classes/ActionCable/Channel/ChannelStub.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -25,7 +25,7 @@
Action Cable Channel Stub
-
Stub stream_from to track streams for the channel. Add public aliases for subscription_confirmation_sent? and subscription_rejected?.
+Stub stream_from to track streams for the channel. Add public aliases for subscription_confirmation_sent? and subscription_rejected?.
@@ -114,11 +114,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 25
- def confirmed?
- subscription_confirmation_sent?
- end
+def confirmed?
+ subscription_confirmation_sent?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -149,11 +149,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 29
- def rejected?
- subscription_rejected?
- end
+def rejected?
+ subscription_rejected?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -188,9 +188,9 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 46
- def start_periodic_timers; end
+def start_periodic_timers; end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -221,11 +221,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 37
- def stop_all_streams
- @_streams = []
- end
+def stop_all_streams
+ @_streams = []
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -281,11 +281,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 33
- def stream_from(broadcasting, *)
- streams << broadcasting
- end
+def stream_from(broadcasting, *)
+ streams << broadcasting
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -316,11 +316,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 41
- def streams
- @_streams ||= []
- end
+def streams
+ @_streams ||= []
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/ConnectionStub.html b/src/classes/ActionCable/Channel/ConnectionStub.html
index 62c52b567f..0fdc0d8690 100644
--- a/src/classes/ActionCable/Channel/ConnectionStub.html
+++ b/src/classes/ActionCable/Channel/ConnectionStub.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -141,20 +141,20 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 55
- def initialize(identifiers = {})
- @server = ActionCable.server
- @transmissions = []
-
- identifiers.each do |identifier, val|
- define_singleton_method(identifier) { val }
- end
-
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @identifiers = identifiers.keys
- @logger = ActiveSupport::TaggedLogging.new ActiveSupport::Logger.new(StringIO.new)
- end
+def initialize(identifiers = {})
+ @server = ActionCable.server
+ @transmissions = []
+
+ identifiers.each do |identifier, val|
+ define_singleton_method(identifier) { val }
+ end
+
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @identifiers = identifiers.keys
+ @logger = ActiveSupport::TaggedLogging.new ActiveSupport::Logger.new(StringIO.new)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -189,11 +189,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 72
- def connection_identifier
- @connection_identifier ||= connection_gid(identifiers.filter_map { |id| send(id.to_sym) if id })
- end
+def connection_identifier
+ @connection_identifier ||= connection_gid(identifiers.filter_map { |id| send(id.to_sym) if id })
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -224,11 +224,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 68
- def transmit(cable_message)
- transmissions << cable_message.with_indifferent_access
- end
+def transmit(cable_message)
+ transmissions << cable_message.with_indifferent_access
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Naming.html b/src/classes/ActionCable/Channel/Naming.html
index 84bfc0232c..db2aa18589 100644
--- a/src/classes/ActionCable/Channel/Naming.html
+++ b/src/classes/ActionCable/Channel/Naming.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,11 +95,11 @@
# File actioncable/lib/action_cable/channel/naming.rb, line 23
- def channel_name
- self.class.channel_name
- end
+def channel_name
+ self.class.channel_name
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Naming/ClassMethods.html b/src/classes/ActionCable/Channel/Naming/ClassMethods.html
index b847309f12..e99c0744a7 100644
--- a/src/classes/ActionCable/Channel/Naming/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Naming/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -66,7 +66,7 @@
- Returns the name of the channel, underscored, without the Channel ending. If the channel is in a namespace, then the namespaces are represented by single colon separators in the channel name.
+ Returns the name of the channel, underscored, without the Channel ending. If the channel is in a namespace, then the namespaces are represented by single colon separators in the channel name.
ChatChannel.channel_name # => 'chat'
Chats::AppearancesChannel.channel_name # => 'chats:appearances'
@@ -87,11 +87,11 @@
# File actioncable/lib/action_cable/channel/naming.rb, line 18
- def channel_name
- @channel_name ||= name.delete_suffix("Channel").gsub("::", ":").underscore
- end
+def channel_name
+ @channel_name ||= name.delete_suffix("Channel").gsub("::", ":").underscore
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/NonInferrableChannelError.html b/src/classes/ActionCable/Channel/NonInferrableChannelError.html
index 034c36b135..1eac81cbd2 100644
--- a/src/classes/ActionCable/Channel/NonInferrableChannelError.html
+++ b/src/classes/ActionCable/Channel/NonInferrableChannelError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 13
- def initialize(name)
- super "Unable to determine the channel to test from #{name}. " +
- "You'll need to specify it using `tests YourChannel` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the channel to test from #{name}. " +
+ "You'll need to specify it using `tests YourChannel` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/PeriodicTimers.html b/src/classes/ActionCable/Channel/PeriodicTimers.html
index 88facef675..561da6e0dd 100644
--- a/src/classes/ActionCable/Channel/PeriodicTimers.html
+++ b/src/classes/ActionCable/Channel/PeriodicTimers.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html b/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
index 233865e2e3..a694f6de16 100644
--- a/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -91,30 +91,30 @@
# File actioncable/lib/action_cable/channel/periodic_timers.rb, line 31
- def periodically(callback_or_method_name = nil, every:, &block)
- callback =
- if block_given?
- raise ArgumentError, "Pass a block or provide a callback arg, not both" if callback_or_method_name
- block
- else
- case callback_or_method_name
- when Proc
- callback_or_method_name
- when Symbol
- -> { __send__ callback_or_method_name }
- else
- raise ArgumentError, "Expected a Symbol method name or a Proc, got #{callback_or_method_name.inspect}"
- end
- end
-
- unless every.kind_of?(Numeric) && every > 0
- raise ArgumentError, "Expected every: to be a positive number of seconds, got #{every.inspect}"
- end
-
- self.periodic_timers += [[ callback, every: every ]]
- end
+def periodically(callback_or_method_name = nil, every:, &block)
+ callback =
+ if block_given?
+ raise ArgumentError, "Pass a block or provide a callback arg, not both" if callback_or_method_name
+ block
+ else
+ case callback_or_method_name
+ when Proc
+ callback_or_method_name
+ when Symbol
+ -> { __send__ callback_or_method_name }
+ else
+ raise ArgumentError, "Expected a Symbol method name or a Proc, got #{callback_or_method_name.inspect}"
+ end
+ end
+
+ unless every.kind_of?(Numeric) && every > 0
+ raise ArgumentError, "Expected every: to be a positive number of seconds, got #{every.inspect}"
+ end
+
+ self.periodic_timers += [[ callback, every: every ]]
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Streams.html b/src/classes/ActionCable/Channel/Streams.html
index 0967feb616..a2e686a3e9 100644
--- a/src/classes/ActionCable/Channel/Streams.html
+++ b/src/classes/ActionCable/Channel/Streams.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -167,14 +167,14 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 137
- def stop_all_streams
- streams.each do |broadcasting, callback|
- pubsub.unsubscribe broadcasting, callback
- logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
- end.clear
- end
+def stop_all_streams
+ streams.each do |broadcasting, callback|
+ pubsub.unsubscribe broadcasting, callback
+ logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
+ end.clear
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -205,11 +205,11 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 132
- def stop_stream_for(model)
- stop_stream_from(broadcasting_for(model))
- end
+def stop_stream_for(model)
+ stop_stream_from(broadcasting_for(model))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,15 +240,15 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 123
- def stop_stream_from(broadcasting)
- callback = streams.delete(broadcasting)
- if callback
- pubsub.unsubscribe(broadcasting, callback)
- logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
- end
- end
+def stop_stream_from(broadcasting)
+ callback = streams.delete(broadcasting)
+ if callback
+ pubsub.unsubscribe(broadcasting, callback)
+ logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -281,11 +281,11 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 118
- def stream_for(broadcastables, callback = nil, coder: nil, &block)
- stream_from(broadcasting_for(broadcastables), callback || block, coder: coder)
- end
+def stream_for(broadcastables, callback = nil, coder: nil, &block)
+ stream_from(broadcasting_for(broadcastables), callback || block, coder: coder)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -316,28 +316,28 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 90
- def stream_from(broadcasting, callback = nil, coder: nil, &block)
- return if unsubscribed?
-
- broadcasting = String(broadcasting)
-
- # Don't send the confirmation until pubsub#subscribe is successful
- defer_subscription_confirmation!
-
- # Build a stream handler by wrapping the user-provided callback with a decoder
- # or defaulting to a JSON-decoding retransmitter.
- handler = worker_pool_stream_handler(broadcasting, callback || block, coder: coder)
- streams[broadcasting] = handler
-
- connection.server.event_loop.post do
- pubsub.subscribe(broadcasting, handler, lambda do
- ensure_confirmation_sent
- logger.info "#{self.class.name} is streaming from #{broadcasting}"
- end)
- end
- end
+def stream_from(broadcasting, callback = nil, coder: nil, &block)
+ return if unsubscribed?
+
+ broadcasting = String(broadcasting)
+
+ # Don't send the confirmation until pubsub#subscribe is successful
+ defer_subscription_confirmation!
+
+ # Build a stream handler by wrapping the user-provided callback with a decoder
+ # or defaulting to a JSON-decoding retransmitter.
+ handler = worker_pool_stream_handler(broadcasting, callback || block, coder: coder)
+ streams[broadcasting] = handler
+
+ connection.server.event_loop.post do
+ pubsub.subscribe(broadcasting, handler, lambda do
+ ensure_confirmation_sent
+ logger.info "#{self.class.name} is streaming from #{broadcasting}"
+ end)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -368,15 +368,15 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 146
- def stream_or_reject_for(model)
- if model
- stream_for model
- else
- reject
- end
- end
+def stream_or_reject_for(model)
+ if model
+ stream_for model
+ else
+ reject
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase.html b/src/classes/ActionCable/Channel/TestCase.html
index 08fb28c0cf..6317ff44d0 100644
--- a/src/classes/ActionCable/Channel/TestCase.html
+++ b/src/classes/ActionCable/Channel/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior.html b/src/classes/ActionCable/Channel/TestCase/Behavior.html
index b5f3a5cbb7..5a8ea0fd78 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -196,11 +196,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 282
- def assert_broadcast_on(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcast_on(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -231,11 +231,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 278
- def assert_broadcasts(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcasts(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,11 +272,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 326
- def assert_has_no_stream(stream)
- assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
- end
+def assert_has_no_stream(stream)
+ assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -313,11 +313,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 337
- def assert_has_no_stream_for(object)
- assert_has_no_stream(broadcasting_for(object))
- end
+def assert_has_no_stream_for(object)
+ assert_has_no_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -354,11 +354,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 304
- def assert_has_stream(stream)
- assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
- end
+def assert_has_stream(stream)
+ assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -395,11 +395,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 315
- def assert_has_stream_for(object)
- assert_has_stream(broadcasting_for(object))
- end
+def assert_has_stream_for(object)
+ assert_has_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -436,11 +436,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 293
- def assert_no_streams
- assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
- end
+def assert_no_streams
+ assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -473,12 +473,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 266
- def perform(action, data = {})
- check_subscribed!
- subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
- end
+def perform(action, data = {})
+ check_subscribed!
+ subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -516,11 +516,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 243
- def stub_connection(identifiers = {})
- @connection = ConnectionStub.new(identifiers)
- end
+def stub_connection(identifiers = {})
+ @connection = ConnectionStub.new(identifiers)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -551,15 +551,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 249
- def subscribe(params = {})
- @connection ||= stub_connection
- @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
- @subscription.singleton_class.include(ChannelStub)
- @subscription.subscribe_to_channel
- @subscription
- end
+def subscribe(params = {})
+ @connection ||= stub_connection
+ @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
+ @subscription.singleton_class.include(ChannelStub)
+ @subscription.subscribe_to_channel
+ @subscription
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -590,12 +590,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 272
- def transmissions
- # Return only directly sent message (via #transmit)
- connection.transmissions.filter_map { |data| data["message"] }
- end
+def transmissions
+ # Return only directly sent message (via #transmit)
+ connection.transmissions.filter_map { |data| data["message"] }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -626,12 +626,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 258
- def unsubscribe
- check_subscribed!
- subscription.unsubscribe_from_channel
- end
+def unsubscribe
+ check_subscribed!
+ subscription.unsubscribe_from_channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
index 48ea87f130..57efb4cdac 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 219
- def channel_class
- if channel = self._channel_class
- channel
- else
- tests determine_default_channel(name)
- end
- end
+def channel_class
+ if channel = self._channel_class
+ channel
+ else
+ tests determine_default_channel(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 227
- def determine_default_channel(name)
- channel = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Channel::Base
- end
- raise NonInferrableChannelError.new(name) if channel.nil?
- channel
- end
+def determine_default_channel(name)
+ channel = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Channel::Base
+ end
+ raise NonInferrableChannelError.new(name) if channel.nil?
+ channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 208
- def tests(channel)
- case channel
- when String, Symbol
- self._channel_class = channel.to_s.camelize.constantize
- when Module
- self._channel_class = channel
- else
- raise NonInferrableChannelError.new(channel)
- end
- end
+def tests(channel)
+ case channel
+ when String, Symbol
+ self._channel_class = channel.to_s.camelize.constantize
+ when Module
+ self._channel_class = channel
+ else
+ raise NonInferrableChannelError.new(channel)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection.html b/src/classes/ActionCable/Connection.html
index f832214f0e..7889c75284 100644
--- a/src/classes/ActionCable/Connection.html
+++ b/src/classes/ActionCable/Connection.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Assertions.html b/src/classes/ActionCable/Connection/Assertions.html
index 933ea80e4c..6b10ec5528 100644
--- a/src/classes/ActionCable/Connection/Assertions.html
+++ b/src/classes/ActionCable/Connection/Assertions.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 28
- def assert_reject_connection(&block)
- assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
- end
+def assert_reject_connection(&block)
+ assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization.html b/src/classes/ActionCable/Connection/Authorization.html
index feb855aa9e..baf85a37b3 100644
--- a/src/classes/ActionCable/Connection/Authorization.html
+++ b/src/classes/ActionCable/Connection/Authorization.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -97,12 +97,12 @@
# File actioncable/lib/action_cable/connection/authorization.rb, line 12
- def reject_unauthorized_connection
- logger.error "An unauthorized connection attempt was rejected"
- raise UnauthorizedError
- end
+def reject_unauthorized_connection
+ logger.error "An unauthorized connection attempt was rejected"
+ raise UnauthorizedError
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
index b63b282b0b..ff36299a28 100644
--- a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
+++ b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/Base.html b/src/classes/ActionCable/Connection/Base.html
index 36a2f1e1bb..ea0d62911f 100644
--- a/src/classes/ActionCable/Connection/Base.html
+++ b/src/classes/ActionCable/Connection/Base.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -255,21 +255,21 @@
# File actioncable/lib/action_cable/connection/base.rb, line 67
- def initialize(server, env, coder: ActiveSupport::JSON)
- @server, @env, @coder = server, env, coder
+def initialize(server, env, coder: ActiveSupport::JSON)
+ @server, @env, @coder = server, env, coder
- @worker_pool = server.worker_pool
- @logger = new_tagged_logger
+ @worker_pool = server.worker_pool
+ @logger = new_tagged_logger
- @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
+ @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
- @_internal_subscriptions = nil
- @started_at = Time.now
- end
+ @_internal_subscriptions = nil
+ @started_at = Time.now
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -304,11 +304,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 147
- def beat
- transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
- end
+def beat
+ transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -339,16 +339,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 120
- def close(reason: nil, reconnect: true)
- transmit(
- type: ActionCable::INTERNAL[:message_types][:disconnect],
- reason: reason,
- reconnect: reconnect
- )
- websocket.close
- end
+def close(reason: nil, reconnect: true)
+ transmit(
+ type: ActionCable::INTERNAL[:message_types][:disconnect],
+ reason: reason,
+ reconnect: reconnect
+ )
+ websocket.close
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -379,13 +379,13 @@
# File actioncable/lib/action_cable/connection/base.rb, line 109
- def handle_channel_command(payload)
- run_callbacks :command do
- subscriptions.execute_command payload
- end
- end
+def handle_channel_command(payload)
+ run_callbacks :command do
+ subscriptions.execute_command payload
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -416,11 +416,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 131
- def send_async(method, *arguments)
- worker_pool.async_invoke(self, method, *arguments)
- end
+def send_async(method, *arguments)
+ worker_pool.async_invoke(self, method, *arguments)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -451,16 +451,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 138
- def statistics
- {
- identifier: connection_identifier,
- started_at: @started_at,
- subscriptions: subscriptions.identifiers,
- request_id: @env["action_dispatch.request_id"]
- }
- end
+def statistics
+ {
+ identifier: connection_identifier,
+ started_at: @started_at,
+ subscriptions: subscriptions.identifiers,
+ request_id: @env["action_dispatch.request_id"]
+ }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -494,11 +494,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 187
- def cookies # :doc:
- request.cookie_jar
- end
+def cookies # :doc:
+ request.cookie_jar
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -529,14 +529,14 @@
# File actioncable/lib/action_cable/connection/base.rb, line 178
- def request # :doc:
- @request ||= begin
- environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
- ActionDispatch::Request.new(environment || env)
- end
- end
+def request # :doc:
+ @request ||= begin
+ environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
+ ActionDispatch::Request.new(environment || env)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Callbacks.html b/src/classes/ActionCable/Connection/Callbacks.html
index 818958bf81..d6504ca284 100644
--- a/src/classes/ActionCable/Connection/Callbacks.html
+++ b/src/classes/ActionCable/Connection/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
index 933056a029..6376d7195b 100644
--- a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,11 +90,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 47
- def after_command(*methods, &block)
- set_callback(:command, :after, *methods, &block)
- end
+def after_command(*methods, &block)
+ set_callback(:command, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -125,11 +125,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 51
- def around_command(*methods, &block)
- set_callback(:command, :around, *methods, &block)
- end
+def around_command(*methods, &block)
+ set_callback(:command, :around, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -160,11 +160,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 43
- def before_command(*methods, &block)
- set_callback(:command, :before, *methods, &block)
- end
+def before_command(*methods, &block)
+ set_callback(:command, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification.html b/src/classes/ActionCable/Connection/Identification.html
index f3dcea9bfc..063ca88999 100644
--- a/src/classes/ActionCable/Connection/Identification.html
+++ b/src/classes/ActionCable/Connection/Identification.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,15 +95,15 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 29
- def connection_identifier
- unless defined? @connection_identifier
- @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
- end
+def connection_identifier
+ unless defined? @connection_identifier
+ @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
+ end
- @connection_identifier
- end
+ @connection_identifier
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification/ClassMethods.html b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
index 324ded31f5..a3395ef8a3 100644
--- a/src/classes/ActionCable/Connection/Identification/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -84,12 +84,12 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 21
- def identified_by(*identifiers)
- Array(identifiers).each { |identifier| attr_accessor identifier }
- self.identifiers += identifiers
- end
+def identified_by(*identifiers)
+ Array(identifiers).each { |identifier| attr_accessor identifier }
+ self.identifiers += identifiers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/InternalChannel.html b/src/classes/ActionCable/Connection/InternalChannel.html
index 9b0144f690..cfdccceaf4 100644
--- a/src/classes/ActionCable/Connection/InternalChannel.html
+++ b/src/classes/ActionCable/Connection/InternalChannel.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
index 7167904452..bf0c696d62 100644
--- a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
+++ b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 15
- def initialize(name)
- super "Unable to determine the connection to test from #{name}. " +
- "You'll need to specify it using `tests YourConnection` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the connection to test from #{name}. " +
+ "You'll need to specify it using `tests YourConnection` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/StreamEventLoop.html b/src/classes/ActionCable/Connection/StreamEventLoop.html
index 2b71a213e3..f7c49354ef 100644
--- a/src/classes/ActionCable/Connection/StreamEventLoop.html
+++ b/src/classes/ActionCable/Connection/StreamEventLoop.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -111,16 +111,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 10
- def initialize
- @nio = @executor = @thread = nil
- @map = {}
- @stopping = false
- @todo = Queue.new
-
- @spawn_mutex = Mutex.new
- end
+def initialize
+ @nio = @executor = @thread = nil
+ @map = {}
+ @stopping = false
+ @todo = Queue.new
+
+ @spawn_mutex = Mutex.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -155,15 +155,15 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 30
- def attach(io, stream)
- @todo << lambda do
- @map[io] = @nio.register(io, :r)
- @map[io].value = stream
- end
- wakeup
- end
+def attach(io, stream)
+ @todo << lambda do
+ @map[io] = @nio.register(io, :r)
+ @map[io].value = stream
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -194,16 +194,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 38
- def detach(io, stream)
- @todo << lambda do
- @nio.deregister io
- @map.delete io
- io.close
- end
- wakeup
- end
+def detach(io, stream)
+ @todo << lambda do
+ @nio.deregister io
+ @map.delete io
+ io.close
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -234,14 +234,14 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 23
- def post(task = nil, &block)
- task ||= block
+def post(task = nil, &block)
+ task ||= block
- spawn
- @executor << task
- end
+ spawn
+ @executor << task
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,12 +272,12 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 56
- def stop
- @stopping = true
- wakeup if @nio
- end
+def stop
+ @stopping = true
+ wakeup if @nio
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -308,11 +308,11 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 19
- def timer(interval, &block)
- Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
- end
+def timer(interval, &block)
+ Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -343,16 +343,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 47
- def writes_pending(io)
- @todo << lambda do
- if monitor = @map[io]
- monitor.interests = :rw
- end
- end
- wakeup
- end
+def writes_pending(io)
+ @todo << lambda do
+ if monitor = @map[io]
+ monitor.interests = :rw
+ end
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
index f4d5cacc63..99731855fb 100644
--- a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
+++ b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -121,12 +121,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 16
- def initialize(logger, tags:)
- @logger = logger
- @tags = tags.flatten
- end
+def initialize(logger, tags:)
+ @logger = logger
+ @tags = tags.flatten
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -161,12 +161,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 21
- def add_tags(*tags)
- @tags += tags.flatten
- @tags = @tags.uniq
- end
+def add_tags(*tags)
+ @tags += tags.flatten
+ @tags = @tags.uniq
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -197,16 +197,16 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 26
- def tag(logger, &block)
- if logger.respond_to?(:tagged)
- current_tags = tags - logger.formatter.current_tags
- logger.tagged(*current_tags, &block)
- else
- yield
- end
- end
+def tag(logger, &block)
+ if logger.respond_to?(:tagged)
+ current_tags = tags - logger.formatter.current_tags
+ logger.tagged(*current_tags, &block)
+ else
+ yield
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,11 +240,11 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 42
- def log(type, message, &block) # :doc:
- tag(@logger) { @logger.send type, message, &block }
- end
+def log(type, message, &block) # :doc:
+ tag(@logger) { @logger.send type, message, &block }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase.html b/src/classes/ActionCable/Connection/TestCase.html
index 948378e491..39bc5cb056 100644
--- a/src/classes/ActionCable/Connection/TestCase.html
+++ b/src/classes/ActionCable/Connection/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior.html b/src/classes/ActionCable/Connection/TestCase/Behavior.html
index b87870becd..4ee0debbea 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -163,19 +163,19 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 192
- def connect(path = ActionCable.server.config.mount_path, **request_params)
- path ||= DEFAULT_PATH
+def connect(path = ActionCable.server.config.mount_path, **request_params)
+ path ||= DEFAULT_PATH
- connection = self.class.connection_class.allocate
- connection.singleton_class.include(TestConnection)
- connection.send(:initialize, build_test_request(path, **request_params))
- connection.connect if connection.respond_to?(:connect)
+ connection = self.class.connection_class.allocate
+ connection.singleton_class.include(TestConnection)
+ connection.send(:initialize, build_test_request(path, **request_params))
+ connection.connect if connection.respond_to?(:connect)
- # Only set instance variable if connected successfully
- @connection = connection
- end
+ # Only set instance variable if connected successfully
+ @connection = connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -206,11 +206,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 212
- def cookies
- @cookie_jar ||= TestCookieJar.new
- end
+def cookies
+ @cookie_jar ||= TestCookieJar.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -241,14 +241,14 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 205
- def disconnect
- raise "Must be connected!" if connection.nil?
+def disconnect
+ raise "Must be connected!" if connection.nil?
- connection.disconnect if connection.respond_to?(:disconnect)
- @connection = nil
- end
+ connection.disconnect if connection.respond_to?(:disconnect)
+ @connection = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
index 63444f4b27..99fc0e3f6f 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 167
- def connection_class
- if connection = self._connection_class
- connection
- else
- tests determine_default_connection(name)
- end
- end
+def connection_class
+ if connection = self._connection_class
+ connection
+ else
+ tests determine_default_connection(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 175
- def determine_default_connection(name)
- connection = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Connection::Base
- end
- raise NonInferrableConnectionError.new(name) if connection.nil?
- connection
- end
+def determine_default_connection(name)
+ connection = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Connection::Base
+ end
+ raise NonInferrableConnectionError.new(name) if connection.nil?
+ connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 24
- def broadcasting_for(broadcastables)
- serialize_broadcasting([ channel_name ] + Array(broadcastables))
- end+ Ruby on Rails 8.1.0.rc1
diff --git a/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html b/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
index 6ee4317311..7949b5fdf6 100644
--- a/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -111,11 +111,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 60
- def after_subscribe(*methods, &block)
- set_callback(:subscribe, :after, *methods, &block)
- end
+def after_subscribe(*methods, &block)
+ set_callback(:subscribe, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -150,11 +150,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 69
- def after_unsubscribe(*methods, &block)
- set_callback(:unsubscribe, :after, *methods, &block)
- end
+def after_unsubscribe(*methods, &block)
+ set_callback(:unsubscribe, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -185,11 +185,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 48
- def before_subscribe(*methods, &block)
- set_callback(:subscribe, :before, *methods, &block)
- end
+def before_subscribe(*methods, &block)
+ set_callback(:subscribe, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -220,11 +220,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 65
- def before_unsubscribe(*methods, &block)
- set_callback(:unsubscribe, :before, *methods, &block)
- end
+def before_unsubscribe(*methods, &block)
+ set_callback(:unsubscribe, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/ChannelStub.html b/src/classes/ActionCable/Channel/ChannelStub.html
index 9db98daac2..d004896dc5 100644
--- a/src/classes/ActionCable/Channel/ChannelStub.html
+++ b/src/classes/ActionCable/Channel/ChannelStub.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -25,7 +25,7 @@
Action Cable Channel Stub
-
Stub stream_from to track streams for the channel. Add public aliases for subscription_confirmation_sent? and subscription_rejected?.
+Stub stream_from to track streams for the channel. Add public aliases for subscription_confirmation_sent? and subscription_rejected?.
@@ -114,11 +114,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 25
- def confirmed?
- subscription_confirmation_sent?
- end
+def confirmed?
+ subscription_confirmation_sent?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -149,11 +149,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 29
- def rejected?
- subscription_rejected?
- end
+def rejected?
+ subscription_rejected?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -188,9 +188,9 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 46
- def start_periodic_timers; end
+def start_periodic_timers; end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -221,11 +221,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 37
- def stop_all_streams
- @_streams = []
- end
+def stop_all_streams
+ @_streams = []
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -281,11 +281,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 33
- def stream_from(broadcasting, *)
- streams << broadcasting
- end
+def stream_from(broadcasting, *)
+ streams << broadcasting
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -316,11 +316,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 41
- def streams
- @_streams ||= []
- end
+def streams
+ @_streams ||= []
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/ConnectionStub.html b/src/classes/ActionCable/Channel/ConnectionStub.html
index 62c52b567f..0fdc0d8690 100644
--- a/src/classes/ActionCable/Channel/ConnectionStub.html
+++ b/src/classes/ActionCable/Channel/ConnectionStub.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -141,20 +141,20 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 55
- def initialize(identifiers = {})
- @server = ActionCable.server
- @transmissions = []
-
- identifiers.each do |identifier, val|
- define_singleton_method(identifier) { val }
- end
-
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @identifiers = identifiers.keys
- @logger = ActiveSupport::TaggedLogging.new ActiveSupport::Logger.new(StringIO.new)
- end
+def initialize(identifiers = {})
+ @server = ActionCable.server
+ @transmissions = []
+
+ identifiers.each do |identifier, val|
+ define_singleton_method(identifier) { val }
+ end
+
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @identifiers = identifiers.keys
+ @logger = ActiveSupport::TaggedLogging.new ActiveSupport::Logger.new(StringIO.new)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -189,11 +189,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 72
- def connection_identifier
- @connection_identifier ||= connection_gid(identifiers.filter_map { |id| send(id.to_sym) if id })
- end
+def connection_identifier
+ @connection_identifier ||= connection_gid(identifiers.filter_map { |id| send(id.to_sym) if id })
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -224,11 +224,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 68
- def transmit(cable_message)
- transmissions << cable_message.with_indifferent_access
- end
+def transmit(cable_message)
+ transmissions << cable_message.with_indifferent_access
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Naming.html b/src/classes/ActionCable/Channel/Naming.html
index 84bfc0232c..db2aa18589 100644
--- a/src/classes/ActionCable/Channel/Naming.html
+++ b/src/classes/ActionCable/Channel/Naming.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,11 +95,11 @@
# File actioncable/lib/action_cable/channel/naming.rb, line 23
- def channel_name
- self.class.channel_name
- end
+def channel_name
+ self.class.channel_name
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Naming/ClassMethods.html b/src/classes/ActionCable/Channel/Naming/ClassMethods.html
index b847309f12..e99c0744a7 100644
--- a/src/classes/ActionCable/Channel/Naming/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Naming/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -66,7 +66,7 @@
- Returns the name of the channel, underscored, without the Channel ending. If the channel is in a namespace, then the namespaces are represented by single colon separators in the channel name.
+ Returns the name of the channel, underscored, without the Channel ending. If the channel is in a namespace, then the namespaces are represented by single colon separators in the channel name.
ChatChannel.channel_name # => 'chat'
Chats::AppearancesChannel.channel_name # => 'chats:appearances'
@@ -87,11 +87,11 @@
# File actioncable/lib/action_cable/channel/naming.rb, line 18
- def channel_name
- @channel_name ||= name.delete_suffix("Channel").gsub("::", ":").underscore
- end
+def channel_name
+ @channel_name ||= name.delete_suffix("Channel").gsub("::", ":").underscore
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/NonInferrableChannelError.html b/src/classes/ActionCable/Channel/NonInferrableChannelError.html
index 034c36b135..1eac81cbd2 100644
--- a/src/classes/ActionCable/Channel/NonInferrableChannelError.html
+++ b/src/classes/ActionCable/Channel/NonInferrableChannelError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 13
- def initialize(name)
- super "Unable to determine the channel to test from #{name}. " +
- "You'll need to specify it using `tests YourChannel` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the channel to test from #{name}. " +
+ "You'll need to specify it using `tests YourChannel` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/PeriodicTimers.html b/src/classes/ActionCable/Channel/PeriodicTimers.html
index 88facef675..561da6e0dd 100644
--- a/src/classes/ActionCable/Channel/PeriodicTimers.html
+++ b/src/classes/ActionCable/Channel/PeriodicTimers.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html b/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
index 233865e2e3..a694f6de16 100644
--- a/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -91,30 +91,30 @@
# File actioncable/lib/action_cable/channel/periodic_timers.rb, line 31
- def periodically(callback_or_method_name = nil, every:, &block)
- callback =
- if block_given?
- raise ArgumentError, "Pass a block or provide a callback arg, not both" if callback_or_method_name
- block
- else
- case callback_or_method_name
- when Proc
- callback_or_method_name
- when Symbol
- -> { __send__ callback_or_method_name }
- else
- raise ArgumentError, "Expected a Symbol method name or a Proc, got #{callback_or_method_name.inspect}"
- end
- end
-
- unless every.kind_of?(Numeric) && every > 0
- raise ArgumentError, "Expected every: to be a positive number of seconds, got #{every.inspect}"
- end
-
- self.periodic_timers += [[ callback, every: every ]]
- end
+def periodically(callback_or_method_name = nil, every:, &block)
+ callback =
+ if block_given?
+ raise ArgumentError, "Pass a block or provide a callback arg, not both" if callback_or_method_name
+ block
+ else
+ case callback_or_method_name
+ when Proc
+ callback_or_method_name
+ when Symbol
+ -> { __send__ callback_or_method_name }
+ else
+ raise ArgumentError, "Expected a Symbol method name or a Proc, got #{callback_or_method_name.inspect}"
+ end
+ end
+
+ unless every.kind_of?(Numeric) && every > 0
+ raise ArgumentError, "Expected every: to be a positive number of seconds, got #{every.inspect}"
+ end
+
+ self.periodic_timers += [[ callback, every: every ]]
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Streams.html b/src/classes/ActionCable/Channel/Streams.html
index 0967feb616..a2e686a3e9 100644
--- a/src/classes/ActionCable/Channel/Streams.html
+++ b/src/classes/ActionCable/Channel/Streams.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -167,14 +167,14 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 137
- def stop_all_streams
- streams.each do |broadcasting, callback|
- pubsub.unsubscribe broadcasting, callback
- logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
- end.clear
- end
+def stop_all_streams
+ streams.each do |broadcasting, callback|
+ pubsub.unsubscribe broadcasting, callback
+ logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
+ end.clear
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -205,11 +205,11 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 132
- def stop_stream_for(model)
- stop_stream_from(broadcasting_for(model))
- end
+def stop_stream_for(model)
+ stop_stream_from(broadcasting_for(model))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,15 +240,15 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 123
- def stop_stream_from(broadcasting)
- callback = streams.delete(broadcasting)
- if callback
- pubsub.unsubscribe(broadcasting, callback)
- logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
- end
- end
+def stop_stream_from(broadcasting)
+ callback = streams.delete(broadcasting)
+ if callback
+ pubsub.unsubscribe(broadcasting, callback)
+ logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -281,11 +281,11 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 118
- def stream_for(broadcastables, callback = nil, coder: nil, &block)
- stream_from(broadcasting_for(broadcastables), callback || block, coder: coder)
- end
+def stream_for(broadcastables, callback = nil, coder: nil, &block)
+ stream_from(broadcasting_for(broadcastables), callback || block, coder: coder)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -316,28 +316,28 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 90
- def stream_from(broadcasting, callback = nil, coder: nil, &block)
- return if unsubscribed?
-
- broadcasting = String(broadcasting)
-
- # Don't send the confirmation until pubsub#subscribe is successful
- defer_subscription_confirmation!
-
- # Build a stream handler by wrapping the user-provided callback with a decoder
- # or defaulting to a JSON-decoding retransmitter.
- handler = worker_pool_stream_handler(broadcasting, callback || block, coder: coder)
- streams[broadcasting] = handler
-
- connection.server.event_loop.post do
- pubsub.subscribe(broadcasting, handler, lambda do
- ensure_confirmation_sent
- logger.info "#{self.class.name} is streaming from #{broadcasting}"
- end)
- end
- end
+def stream_from(broadcasting, callback = nil, coder: nil, &block)
+ return if unsubscribed?
+
+ broadcasting = String(broadcasting)
+
+ # Don't send the confirmation until pubsub#subscribe is successful
+ defer_subscription_confirmation!
+
+ # Build a stream handler by wrapping the user-provided callback with a decoder
+ # or defaulting to a JSON-decoding retransmitter.
+ handler = worker_pool_stream_handler(broadcasting, callback || block, coder: coder)
+ streams[broadcasting] = handler
+
+ connection.server.event_loop.post do
+ pubsub.subscribe(broadcasting, handler, lambda do
+ ensure_confirmation_sent
+ logger.info "#{self.class.name} is streaming from #{broadcasting}"
+ end)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -368,15 +368,15 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 146
- def stream_or_reject_for(model)
- if model
- stream_for model
- else
- reject
- end
- end
+def stream_or_reject_for(model)
+ if model
+ stream_for model
+ else
+ reject
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase.html b/src/classes/ActionCable/Channel/TestCase.html
index 08fb28c0cf..6317ff44d0 100644
--- a/src/classes/ActionCable/Channel/TestCase.html
+++ b/src/classes/ActionCable/Channel/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior.html b/src/classes/ActionCable/Channel/TestCase/Behavior.html
index b5f3a5cbb7..5a8ea0fd78 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -196,11 +196,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 282
- def assert_broadcast_on(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcast_on(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -231,11 +231,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 278
- def assert_broadcasts(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcasts(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,11 +272,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 326
- def assert_has_no_stream(stream)
- assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
- end
+def assert_has_no_stream(stream)
+ assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -313,11 +313,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 337
- def assert_has_no_stream_for(object)
- assert_has_no_stream(broadcasting_for(object))
- end
+def assert_has_no_stream_for(object)
+ assert_has_no_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -354,11 +354,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 304
- def assert_has_stream(stream)
- assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
- end
+def assert_has_stream(stream)
+ assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -395,11 +395,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 315
- def assert_has_stream_for(object)
- assert_has_stream(broadcasting_for(object))
- end
+def assert_has_stream_for(object)
+ assert_has_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -436,11 +436,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 293
- def assert_no_streams
- assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
- end
+def assert_no_streams
+ assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -473,12 +473,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 266
- def perform(action, data = {})
- check_subscribed!
- subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
- end
+def perform(action, data = {})
+ check_subscribed!
+ subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -516,11 +516,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 243
- def stub_connection(identifiers = {})
- @connection = ConnectionStub.new(identifiers)
- end
+def stub_connection(identifiers = {})
+ @connection = ConnectionStub.new(identifiers)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -551,15 +551,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 249
- def subscribe(params = {})
- @connection ||= stub_connection
- @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
- @subscription.singleton_class.include(ChannelStub)
- @subscription.subscribe_to_channel
- @subscription
- end
+def subscribe(params = {})
+ @connection ||= stub_connection
+ @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
+ @subscription.singleton_class.include(ChannelStub)
+ @subscription.subscribe_to_channel
+ @subscription
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -590,12 +590,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 272
- def transmissions
- # Return only directly sent message (via #transmit)
- connection.transmissions.filter_map { |data| data["message"] }
- end
+def transmissions
+ # Return only directly sent message (via #transmit)
+ connection.transmissions.filter_map { |data| data["message"] }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -626,12 +626,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 258
- def unsubscribe
- check_subscribed!
- subscription.unsubscribe_from_channel
- end
+def unsubscribe
+ check_subscribed!
+ subscription.unsubscribe_from_channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
index 48ea87f130..57efb4cdac 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 219
- def channel_class
- if channel = self._channel_class
- channel
- else
- tests determine_default_channel(name)
- end
- end
+def channel_class
+ if channel = self._channel_class
+ channel
+ else
+ tests determine_default_channel(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 227
- def determine_default_channel(name)
- channel = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Channel::Base
- end
- raise NonInferrableChannelError.new(name) if channel.nil?
- channel
- end
+def determine_default_channel(name)
+ channel = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Channel::Base
+ end
+ raise NonInferrableChannelError.new(name) if channel.nil?
+ channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 208
- def tests(channel)
- case channel
- when String, Symbol
- self._channel_class = channel.to_s.camelize.constantize
- when Module
- self._channel_class = channel
- else
- raise NonInferrableChannelError.new(channel)
- end
- end
+def tests(channel)
+ case channel
+ when String, Symbol
+ self._channel_class = channel.to_s.camelize.constantize
+ when Module
+ self._channel_class = channel
+ else
+ raise NonInferrableChannelError.new(channel)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection.html b/src/classes/ActionCable/Connection.html
index f832214f0e..7889c75284 100644
--- a/src/classes/ActionCable/Connection.html
+++ b/src/classes/ActionCable/Connection.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Assertions.html b/src/classes/ActionCable/Connection/Assertions.html
index 933ea80e4c..6b10ec5528 100644
--- a/src/classes/ActionCable/Connection/Assertions.html
+++ b/src/classes/ActionCable/Connection/Assertions.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 28
- def assert_reject_connection(&block)
- assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
- end
+def assert_reject_connection(&block)
+ assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization.html b/src/classes/ActionCable/Connection/Authorization.html
index feb855aa9e..baf85a37b3 100644
--- a/src/classes/ActionCable/Connection/Authorization.html
+++ b/src/classes/ActionCable/Connection/Authorization.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -97,12 +97,12 @@
# File actioncable/lib/action_cable/connection/authorization.rb, line 12
- def reject_unauthorized_connection
- logger.error "An unauthorized connection attempt was rejected"
- raise UnauthorizedError
- end
+def reject_unauthorized_connection
+ logger.error "An unauthorized connection attempt was rejected"
+ raise UnauthorizedError
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
index b63b282b0b..ff36299a28 100644
--- a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
+++ b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/Base.html b/src/classes/ActionCable/Connection/Base.html
index 36a2f1e1bb..ea0d62911f 100644
--- a/src/classes/ActionCable/Connection/Base.html
+++ b/src/classes/ActionCable/Connection/Base.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -255,21 +255,21 @@
# File actioncable/lib/action_cable/connection/base.rb, line 67
- def initialize(server, env, coder: ActiveSupport::JSON)
- @server, @env, @coder = server, env, coder
+def initialize(server, env, coder: ActiveSupport::JSON)
+ @server, @env, @coder = server, env, coder
- @worker_pool = server.worker_pool
- @logger = new_tagged_logger
+ @worker_pool = server.worker_pool
+ @logger = new_tagged_logger
- @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
+ @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
- @_internal_subscriptions = nil
- @started_at = Time.now
- end
+ @_internal_subscriptions = nil
+ @started_at = Time.now
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -304,11 +304,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 147
- def beat
- transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
- end
+def beat
+ transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -339,16 +339,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 120
- def close(reason: nil, reconnect: true)
- transmit(
- type: ActionCable::INTERNAL[:message_types][:disconnect],
- reason: reason,
- reconnect: reconnect
- )
- websocket.close
- end
+def close(reason: nil, reconnect: true)
+ transmit(
+ type: ActionCable::INTERNAL[:message_types][:disconnect],
+ reason: reason,
+ reconnect: reconnect
+ )
+ websocket.close
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -379,13 +379,13 @@
# File actioncable/lib/action_cable/connection/base.rb, line 109
- def handle_channel_command(payload)
- run_callbacks :command do
- subscriptions.execute_command payload
- end
- end
+def handle_channel_command(payload)
+ run_callbacks :command do
+ subscriptions.execute_command payload
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -416,11 +416,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 131
- def send_async(method, *arguments)
- worker_pool.async_invoke(self, method, *arguments)
- end
+def send_async(method, *arguments)
+ worker_pool.async_invoke(self, method, *arguments)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -451,16 +451,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 138
- def statistics
- {
- identifier: connection_identifier,
- started_at: @started_at,
- subscriptions: subscriptions.identifiers,
- request_id: @env["action_dispatch.request_id"]
- }
- end
+def statistics
+ {
+ identifier: connection_identifier,
+ started_at: @started_at,
+ subscriptions: subscriptions.identifiers,
+ request_id: @env["action_dispatch.request_id"]
+ }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -494,11 +494,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 187
- def cookies # :doc:
- request.cookie_jar
- end
+def cookies # :doc:
+ request.cookie_jar
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -529,14 +529,14 @@
# File actioncable/lib/action_cable/connection/base.rb, line 178
- def request # :doc:
- @request ||= begin
- environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
- ActionDispatch::Request.new(environment || env)
- end
- end
+def request # :doc:
+ @request ||= begin
+ environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
+ ActionDispatch::Request.new(environment || env)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Callbacks.html b/src/classes/ActionCable/Connection/Callbacks.html
index 818958bf81..d6504ca284 100644
--- a/src/classes/ActionCable/Connection/Callbacks.html
+++ b/src/classes/ActionCable/Connection/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
index 933056a029..6376d7195b 100644
--- a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,11 +90,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 47
- def after_command(*methods, &block)
- set_callback(:command, :after, *methods, &block)
- end
+def after_command(*methods, &block)
+ set_callback(:command, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -125,11 +125,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 51
- def around_command(*methods, &block)
- set_callback(:command, :around, *methods, &block)
- end
+def around_command(*methods, &block)
+ set_callback(:command, :around, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -160,11 +160,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 43
- def before_command(*methods, &block)
- set_callback(:command, :before, *methods, &block)
- end
+def before_command(*methods, &block)
+ set_callback(:command, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification.html b/src/classes/ActionCable/Connection/Identification.html
index f3dcea9bfc..063ca88999 100644
--- a/src/classes/ActionCable/Connection/Identification.html
+++ b/src/classes/ActionCable/Connection/Identification.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,15 +95,15 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 29
- def connection_identifier
- unless defined? @connection_identifier
- @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
- end
+def connection_identifier
+ unless defined? @connection_identifier
+ @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
+ end
- @connection_identifier
- end
+ @connection_identifier
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification/ClassMethods.html b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
index 324ded31f5..a3395ef8a3 100644
--- a/src/classes/ActionCable/Connection/Identification/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -84,12 +84,12 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 21
- def identified_by(*identifiers)
- Array(identifiers).each { |identifier| attr_accessor identifier }
- self.identifiers += identifiers
- end
+def identified_by(*identifiers)
+ Array(identifiers).each { |identifier| attr_accessor identifier }
+ self.identifiers += identifiers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/InternalChannel.html b/src/classes/ActionCable/Connection/InternalChannel.html
index 9b0144f690..cfdccceaf4 100644
--- a/src/classes/ActionCable/Connection/InternalChannel.html
+++ b/src/classes/ActionCable/Connection/InternalChannel.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
index 7167904452..bf0c696d62 100644
--- a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
+++ b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 15
- def initialize(name)
- super "Unable to determine the connection to test from #{name}. " +
- "You'll need to specify it using `tests YourConnection` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the connection to test from #{name}. " +
+ "You'll need to specify it using `tests YourConnection` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/StreamEventLoop.html b/src/classes/ActionCable/Connection/StreamEventLoop.html
index 2b71a213e3..f7c49354ef 100644
--- a/src/classes/ActionCable/Connection/StreamEventLoop.html
+++ b/src/classes/ActionCable/Connection/StreamEventLoop.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -111,16 +111,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 10
- def initialize
- @nio = @executor = @thread = nil
- @map = {}
- @stopping = false
- @todo = Queue.new
-
- @spawn_mutex = Mutex.new
- end
+def initialize
+ @nio = @executor = @thread = nil
+ @map = {}
+ @stopping = false
+ @todo = Queue.new
+
+ @spawn_mutex = Mutex.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -155,15 +155,15 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 30
- def attach(io, stream)
- @todo << lambda do
- @map[io] = @nio.register(io, :r)
- @map[io].value = stream
- end
- wakeup
- end
+def attach(io, stream)
+ @todo << lambda do
+ @map[io] = @nio.register(io, :r)
+ @map[io].value = stream
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -194,16 +194,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 38
- def detach(io, stream)
- @todo << lambda do
- @nio.deregister io
- @map.delete io
- io.close
- end
- wakeup
- end
+def detach(io, stream)
+ @todo << lambda do
+ @nio.deregister io
+ @map.delete io
+ io.close
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -234,14 +234,14 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 23
- def post(task = nil, &block)
- task ||= block
+def post(task = nil, &block)
+ task ||= block
- spawn
- @executor << task
- end
+ spawn
+ @executor << task
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,12 +272,12 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 56
- def stop
- @stopping = true
- wakeup if @nio
- end
+def stop
+ @stopping = true
+ wakeup if @nio
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -308,11 +308,11 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 19
- def timer(interval, &block)
- Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
- end
+def timer(interval, &block)
+ Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -343,16 +343,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 47
- def writes_pending(io)
- @todo << lambda do
- if monitor = @map[io]
- monitor.interests = :rw
- end
- end
- wakeup
- end
+def writes_pending(io)
+ @todo << lambda do
+ if monitor = @map[io]
+ monitor.interests = :rw
+ end
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
index f4d5cacc63..99731855fb 100644
--- a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
+++ b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -121,12 +121,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 16
- def initialize(logger, tags:)
- @logger = logger
- @tags = tags.flatten
- end
+def initialize(logger, tags:)
+ @logger = logger
+ @tags = tags.flatten
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -161,12 +161,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 21
- def add_tags(*tags)
- @tags += tags.flatten
- @tags = @tags.uniq
- end
+def add_tags(*tags)
+ @tags += tags.flatten
+ @tags = @tags.uniq
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -197,16 +197,16 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 26
- def tag(logger, &block)
- if logger.respond_to?(:tagged)
- current_tags = tags - logger.formatter.current_tags
- logger.tagged(*current_tags, &block)
- else
- yield
- end
- end
+def tag(logger, &block)
+ if logger.respond_to?(:tagged)
+ current_tags = tags - logger.formatter.current_tags
+ logger.tagged(*current_tags, &block)
+ else
+ yield
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,11 +240,11 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 42
- def log(type, message, &block) # :doc:
- tag(@logger) { @logger.send type, message, &block }
- end
+def log(type, message, &block) # :doc:
+ tag(@logger) { @logger.send type, message, &block }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase.html b/src/classes/ActionCable/Connection/TestCase.html
index 948378e491..39bc5cb056 100644
--- a/src/classes/ActionCable/Connection/TestCase.html
+++ b/src/classes/ActionCable/Connection/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior.html b/src/classes/ActionCable/Connection/TestCase/Behavior.html
index b87870becd..4ee0debbea 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -163,19 +163,19 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 192
- def connect(path = ActionCable.server.config.mount_path, **request_params)
- path ||= DEFAULT_PATH
+def connect(path = ActionCable.server.config.mount_path, **request_params)
+ path ||= DEFAULT_PATH
- connection = self.class.connection_class.allocate
- connection.singleton_class.include(TestConnection)
- connection.send(:initialize, build_test_request(path, **request_params))
- connection.connect if connection.respond_to?(:connect)
+ connection = self.class.connection_class.allocate
+ connection.singleton_class.include(TestConnection)
+ connection.send(:initialize, build_test_request(path, **request_params))
+ connection.connect if connection.respond_to?(:connect)
- # Only set instance variable if connected successfully
- @connection = connection
- end
+ # Only set instance variable if connected successfully
+ @connection = connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -206,11 +206,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 212
- def cookies
- @cookie_jar ||= TestCookieJar.new
- end
+def cookies
+ @cookie_jar ||= TestCookieJar.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -241,14 +241,14 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 205
- def disconnect
- raise "Must be connected!" if connection.nil?
+def disconnect
+ raise "Must be connected!" if connection.nil?
- connection.disconnect if connection.respond_to?(:disconnect)
- @connection = nil
- end
+ connection.disconnect if connection.respond_to?(:disconnect)
+ @connection = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
index 63444f4b27..99fc0e3f6f 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 167
- def connection_class
- if connection = self._connection_class
- connection
- else
- tests determine_default_connection(name)
- end
- end
+def connection_class
+ if connection = self._connection_class
+ connection
+ else
+ tests determine_default_connection(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 175
- def determine_default_connection(name)
- connection = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Connection::Base
- end
- raise NonInferrableConnectionError.new(name) if connection.nil?
- connection
- end
+def determine_default_connection(name)
+ connection = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Connection::Base
+ end
+ raise NonInferrableConnectionError.new(name) if connection.nil?
+ connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
+ Ruby on Rails 8.1.0.rc1
@@ -111,11 +111,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 60
- def after_subscribe(*methods, &block)
- set_callback(:subscribe, :after, *methods, &block)
- end
+def after_subscribe(*methods, &block)
+ set_callback(:subscribe, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -150,11 +150,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 69
- def after_unsubscribe(*methods, &block)
- set_callback(:unsubscribe, :after, *methods, &block)
- end
+def after_unsubscribe(*methods, &block)
+ set_callback(:unsubscribe, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -185,11 +185,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 48
- def before_subscribe(*methods, &block)
- set_callback(:subscribe, :before, *methods, &block)
- end
+def before_subscribe(*methods, &block)
+ set_callback(:subscribe, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -220,11 +220,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 65
- def before_unsubscribe(*methods, &block)
- set_callback(:unsubscribe, :before, *methods, &block)
- end
+def before_unsubscribe(*methods, &block)
+ set_callback(:unsubscribe, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/ChannelStub.html b/src/classes/ActionCable/Channel/ChannelStub.html
index 9db98daac2..d004896dc5 100644
--- a/src/classes/ActionCable/Channel/ChannelStub.html
+++ b/src/classes/ActionCable/Channel/ChannelStub.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -25,7 +25,7 @@
Action Cable Channel Stub
-
Stub stream_from to track streams for the channel. Add public aliases for subscription_confirmation_sent? and subscription_rejected?.
+Stub stream_from to track streams for the channel. Add public aliases for subscription_confirmation_sent? and subscription_rejected?.
@@ -114,11 +114,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 25
- def confirmed?
- subscription_confirmation_sent?
- end
+def confirmed?
+ subscription_confirmation_sent?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -149,11 +149,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 29
- def rejected?
- subscription_rejected?
- end
+def rejected?
+ subscription_rejected?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -188,9 +188,9 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 46
- def start_periodic_timers; end
+def start_periodic_timers; end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -221,11 +221,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 37
- def stop_all_streams
- @_streams = []
- end
+def stop_all_streams
+ @_streams = []
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -281,11 +281,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 33
- def stream_from(broadcasting, *)
- streams << broadcasting
- end
+def stream_from(broadcasting, *)
+ streams << broadcasting
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -316,11 +316,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 41
- def streams
- @_streams ||= []
- end
+def streams
+ @_streams ||= []
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/ConnectionStub.html b/src/classes/ActionCable/Channel/ConnectionStub.html
index 62c52b567f..0fdc0d8690 100644
--- a/src/classes/ActionCable/Channel/ConnectionStub.html
+++ b/src/classes/ActionCable/Channel/ConnectionStub.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -141,20 +141,20 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 55
- def initialize(identifiers = {})
- @server = ActionCable.server
- @transmissions = []
-
- identifiers.each do |identifier, val|
- define_singleton_method(identifier) { val }
- end
-
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @identifiers = identifiers.keys
- @logger = ActiveSupport::TaggedLogging.new ActiveSupport::Logger.new(StringIO.new)
- end
+def initialize(identifiers = {})
+ @server = ActionCable.server
+ @transmissions = []
+
+ identifiers.each do |identifier, val|
+ define_singleton_method(identifier) { val }
+ end
+
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @identifiers = identifiers.keys
+ @logger = ActiveSupport::TaggedLogging.new ActiveSupport::Logger.new(StringIO.new)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -189,11 +189,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 72
- def connection_identifier
- @connection_identifier ||= connection_gid(identifiers.filter_map { |id| send(id.to_sym) if id })
- end
+def connection_identifier
+ @connection_identifier ||= connection_gid(identifiers.filter_map { |id| send(id.to_sym) if id })
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -224,11 +224,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 68
- def transmit(cable_message)
- transmissions << cable_message.with_indifferent_access
- end
+def transmit(cable_message)
+ transmissions << cable_message.with_indifferent_access
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Naming.html b/src/classes/ActionCable/Channel/Naming.html
index 84bfc0232c..db2aa18589 100644
--- a/src/classes/ActionCable/Channel/Naming.html
+++ b/src/classes/ActionCable/Channel/Naming.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,11 +95,11 @@
# File actioncable/lib/action_cable/channel/naming.rb, line 23
- def channel_name
- self.class.channel_name
- end
+def channel_name
+ self.class.channel_name
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Naming/ClassMethods.html b/src/classes/ActionCable/Channel/Naming/ClassMethods.html
index b847309f12..e99c0744a7 100644
--- a/src/classes/ActionCable/Channel/Naming/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Naming/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -66,7 +66,7 @@
- Returns the name of the channel, underscored, without the Channel ending. If the channel is in a namespace, then the namespaces are represented by single colon separators in the channel name.
+ Returns the name of the channel, underscored, without the Channel ending. If the channel is in a namespace, then the namespaces are represented by single colon separators in the channel name.
ChatChannel.channel_name # => 'chat'
Chats::AppearancesChannel.channel_name # => 'chats:appearances'
@@ -87,11 +87,11 @@
# File actioncable/lib/action_cable/channel/naming.rb, line 18
- def channel_name
- @channel_name ||= name.delete_suffix("Channel").gsub("::", ":").underscore
- end
+def channel_name
+ @channel_name ||= name.delete_suffix("Channel").gsub("::", ":").underscore
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/NonInferrableChannelError.html b/src/classes/ActionCable/Channel/NonInferrableChannelError.html
index 034c36b135..1eac81cbd2 100644
--- a/src/classes/ActionCable/Channel/NonInferrableChannelError.html
+++ b/src/classes/ActionCable/Channel/NonInferrableChannelError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 13
- def initialize(name)
- super "Unable to determine the channel to test from #{name}. " +
- "You'll need to specify it using `tests YourChannel` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the channel to test from #{name}. " +
+ "You'll need to specify it using `tests YourChannel` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/PeriodicTimers.html b/src/classes/ActionCable/Channel/PeriodicTimers.html
index 88facef675..561da6e0dd 100644
--- a/src/classes/ActionCable/Channel/PeriodicTimers.html
+++ b/src/classes/ActionCable/Channel/PeriodicTimers.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html b/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
index 233865e2e3..a694f6de16 100644
--- a/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -91,30 +91,30 @@
# File actioncable/lib/action_cable/channel/periodic_timers.rb, line 31
- def periodically(callback_or_method_name = nil, every:, &block)
- callback =
- if block_given?
- raise ArgumentError, "Pass a block or provide a callback arg, not both" if callback_or_method_name
- block
- else
- case callback_or_method_name
- when Proc
- callback_or_method_name
- when Symbol
- -> { __send__ callback_or_method_name }
- else
- raise ArgumentError, "Expected a Symbol method name or a Proc, got #{callback_or_method_name.inspect}"
- end
- end
-
- unless every.kind_of?(Numeric) && every > 0
- raise ArgumentError, "Expected every: to be a positive number of seconds, got #{every.inspect}"
- end
-
- self.periodic_timers += [[ callback, every: every ]]
- end
+def periodically(callback_or_method_name = nil, every:, &block)
+ callback =
+ if block_given?
+ raise ArgumentError, "Pass a block or provide a callback arg, not both" if callback_or_method_name
+ block
+ else
+ case callback_or_method_name
+ when Proc
+ callback_or_method_name
+ when Symbol
+ -> { __send__ callback_or_method_name }
+ else
+ raise ArgumentError, "Expected a Symbol method name or a Proc, got #{callback_or_method_name.inspect}"
+ end
+ end
+
+ unless every.kind_of?(Numeric) && every > 0
+ raise ArgumentError, "Expected every: to be a positive number of seconds, got #{every.inspect}"
+ end
+
+ self.periodic_timers += [[ callback, every: every ]]
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Streams.html b/src/classes/ActionCable/Channel/Streams.html
index 0967feb616..a2e686a3e9 100644
--- a/src/classes/ActionCable/Channel/Streams.html
+++ b/src/classes/ActionCable/Channel/Streams.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -167,14 +167,14 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 137
- def stop_all_streams
- streams.each do |broadcasting, callback|
- pubsub.unsubscribe broadcasting, callback
- logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
- end.clear
- end
+def stop_all_streams
+ streams.each do |broadcasting, callback|
+ pubsub.unsubscribe broadcasting, callback
+ logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
+ end.clear
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -205,11 +205,11 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 132
- def stop_stream_for(model)
- stop_stream_from(broadcasting_for(model))
- end
+def stop_stream_for(model)
+ stop_stream_from(broadcasting_for(model))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,15 +240,15 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 123
- def stop_stream_from(broadcasting)
- callback = streams.delete(broadcasting)
- if callback
- pubsub.unsubscribe(broadcasting, callback)
- logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
- end
- end
+def stop_stream_from(broadcasting)
+ callback = streams.delete(broadcasting)
+ if callback
+ pubsub.unsubscribe(broadcasting, callback)
+ logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -281,11 +281,11 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 118
- def stream_for(broadcastables, callback = nil, coder: nil, &block)
- stream_from(broadcasting_for(broadcastables), callback || block, coder: coder)
- end
+def stream_for(broadcastables, callback = nil, coder: nil, &block)
+ stream_from(broadcasting_for(broadcastables), callback || block, coder: coder)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -316,28 +316,28 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 90
- def stream_from(broadcasting, callback = nil, coder: nil, &block)
- return if unsubscribed?
-
- broadcasting = String(broadcasting)
-
- # Don't send the confirmation until pubsub#subscribe is successful
- defer_subscription_confirmation!
-
- # Build a stream handler by wrapping the user-provided callback with a decoder
- # or defaulting to a JSON-decoding retransmitter.
- handler = worker_pool_stream_handler(broadcasting, callback || block, coder: coder)
- streams[broadcasting] = handler
-
- connection.server.event_loop.post do
- pubsub.subscribe(broadcasting, handler, lambda do
- ensure_confirmation_sent
- logger.info "#{self.class.name} is streaming from #{broadcasting}"
- end)
- end
- end
+def stream_from(broadcasting, callback = nil, coder: nil, &block)
+ return if unsubscribed?
+
+ broadcasting = String(broadcasting)
+
+ # Don't send the confirmation until pubsub#subscribe is successful
+ defer_subscription_confirmation!
+
+ # Build a stream handler by wrapping the user-provided callback with a decoder
+ # or defaulting to a JSON-decoding retransmitter.
+ handler = worker_pool_stream_handler(broadcasting, callback || block, coder: coder)
+ streams[broadcasting] = handler
+
+ connection.server.event_loop.post do
+ pubsub.subscribe(broadcasting, handler, lambda do
+ ensure_confirmation_sent
+ logger.info "#{self.class.name} is streaming from #{broadcasting}"
+ end)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -368,15 +368,15 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 146
- def stream_or_reject_for(model)
- if model
- stream_for model
- else
- reject
- end
- end
+def stream_or_reject_for(model)
+ if model
+ stream_for model
+ else
+ reject
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase.html b/src/classes/ActionCable/Channel/TestCase.html
index 08fb28c0cf..6317ff44d0 100644
--- a/src/classes/ActionCable/Channel/TestCase.html
+++ b/src/classes/ActionCable/Channel/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior.html b/src/classes/ActionCable/Channel/TestCase/Behavior.html
index b5f3a5cbb7..5a8ea0fd78 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -196,11 +196,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 282
- def assert_broadcast_on(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcast_on(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -231,11 +231,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 278
- def assert_broadcasts(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcasts(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,11 +272,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 326
- def assert_has_no_stream(stream)
- assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
- end
+def assert_has_no_stream(stream)
+ assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -313,11 +313,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 337
- def assert_has_no_stream_for(object)
- assert_has_no_stream(broadcasting_for(object))
- end
+def assert_has_no_stream_for(object)
+ assert_has_no_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -354,11 +354,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 304
- def assert_has_stream(stream)
- assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
- end
+def assert_has_stream(stream)
+ assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -395,11 +395,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 315
- def assert_has_stream_for(object)
- assert_has_stream(broadcasting_for(object))
- end
+def assert_has_stream_for(object)
+ assert_has_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -436,11 +436,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 293
- def assert_no_streams
- assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
- end
+def assert_no_streams
+ assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -473,12 +473,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 266
- def perform(action, data = {})
- check_subscribed!
- subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
- end
+def perform(action, data = {})
+ check_subscribed!
+ subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -516,11 +516,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 243
- def stub_connection(identifiers = {})
- @connection = ConnectionStub.new(identifiers)
- end
+def stub_connection(identifiers = {})
+ @connection = ConnectionStub.new(identifiers)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -551,15 +551,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 249
- def subscribe(params = {})
- @connection ||= stub_connection
- @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
- @subscription.singleton_class.include(ChannelStub)
- @subscription.subscribe_to_channel
- @subscription
- end
+def subscribe(params = {})
+ @connection ||= stub_connection
+ @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
+ @subscription.singleton_class.include(ChannelStub)
+ @subscription.subscribe_to_channel
+ @subscription
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -590,12 +590,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 272
- def transmissions
- # Return only directly sent message (via #transmit)
- connection.transmissions.filter_map { |data| data["message"] }
- end
+def transmissions
+ # Return only directly sent message (via #transmit)
+ connection.transmissions.filter_map { |data| data["message"] }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -626,12 +626,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 258
- def unsubscribe
- check_subscribed!
- subscription.unsubscribe_from_channel
- end
+def unsubscribe
+ check_subscribed!
+ subscription.unsubscribe_from_channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
index 48ea87f130..57efb4cdac 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 219
- def channel_class
- if channel = self._channel_class
- channel
- else
- tests determine_default_channel(name)
- end
- end
+def channel_class
+ if channel = self._channel_class
+ channel
+ else
+ tests determine_default_channel(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 227
- def determine_default_channel(name)
- channel = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Channel::Base
- end
- raise NonInferrableChannelError.new(name) if channel.nil?
- channel
- end
+def determine_default_channel(name)
+ channel = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Channel::Base
+ end
+ raise NonInferrableChannelError.new(name) if channel.nil?
+ channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 208
- def tests(channel)
- case channel
- when String, Symbol
- self._channel_class = channel.to_s.camelize.constantize
- when Module
- self._channel_class = channel
- else
- raise NonInferrableChannelError.new(channel)
- end
- end
+def tests(channel)
+ case channel
+ when String, Symbol
+ self._channel_class = channel.to_s.camelize.constantize
+ when Module
+ self._channel_class = channel
+ else
+ raise NonInferrableChannelError.new(channel)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection.html b/src/classes/ActionCable/Connection.html
index f832214f0e..7889c75284 100644
--- a/src/classes/ActionCable/Connection.html
+++ b/src/classes/ActionCable/Connection.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Assertions.html b/src/classes/ActionCable/Connection/Assertions.html
index 933ea80e4c..6b10ec5528 100644
--- a/src/classes/ActionCable/Connection/Assertions.html
+++ b/src/classes/ActionCable/Connection/Assertions.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 28
- def assert_reject_connection(&block)
- assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
- end
+def assert_reject_connection(&block)
+ assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization.html b/src/classes/ActionCable/Connection/Authorization.html
index feb855aa9e..baf85a37b3 100644
--- a/src/classes/ActionCable/Connection/Authorization.html
+++ b/src/classes/ActionCable/Connection/Authorization.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -97,12 +97,12 @@
# File actioncable/lib/action_cable/connection/authorization.rb, line 12
- def reject_unauthorized_connection
- logger.error "An unauthorized connection attempt was rejected"
- raise UnauthorizedError
- end
+def reject_unauthorized_connection
+ logger.error "An unauthorized connection attempt was rejected"
+ raise UnauthorizedError
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
index b63b282b0b..ff36299a28 100644
--- a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
+++ b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/Base.html b/src/classes/ActionCable/Connection/Base.html
index 36a2f1e1bb..ea0d62911f 100644
--- a/src/classes/ActionCable/Connection/Base.html
+++ b/src/classes/ActionCable/Connection/Base.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -255,21 +255,21 @@
# File actioncable/lib/action_cable/connection/base.rb, line 67
- def initialize(server, env, coder: ActiveSupport::JSON)
- @server, @env, @coder = server, env, coder
+def initialize(server, env, coder: ActiveSupport::JSON)
+ @server, @env, @coder = server, env, coder
- @worker_pool = server.worker_pool
- @logger = new_tagged_logger
+ @worker_pool = server.worker_pool
+ @logger = new_tagged_logger
- @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
+ @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
- @_internal_subscriptions = nil
- @started_at = Time.now
- end
+ @_internal_subscriptions = nil
+ @started_at = Time.now
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -304,11 +304,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 147
- def beat
- transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
- end
+def beat
+ transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -339,16 +339,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 120
- def close(reason: nil, reconnect: true)
- transmit(
- type: ActionCable::INTERNAL[:message_types][:disconnect],
- reason: reason,
- reconnect: reconnect
- )
- websocket.close
- end
+def close(reason: nil, reconnect: true)
+ transmit(
+ type: ActionCable::INTERNAL[:message_types][:disconnect],
+ reason: reason,
+ reconnect: reconnect
+ )
+ websocket.close
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -379,13 +379,13 @@
# File actioncable/lib/action_cable/connection/base.rb, line 109
- def handle_channel_command(payload)
- run_callbacks :command do
- subscriptions.execute_command payload
- end
- end
+def handle_channel_command(payload)
+ run_callbacks :command do
+ subscriptions.execute_command payload
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -416,11 +416,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 131
- def send_async(method, *arguments)
- worker_pool.async_invoke(self, method, *arguments)
- end
+def send_async(method, *arguments)
+ worker_pool.async_invoke(self, method, *arguments)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -451,16 +451,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 138
- def statistics
- {
- identifier: connection_identifier,
- started_at: @started_at,
- subscriptions: subscriptions.identifiers,
- request_id: @env["action_dispatch.request_id"]
- }
- end
+def statistics
+ {
+ identifier: connection_identifier,
+ started_at: @started_at,
+ subscriptions: subscriptions.identifiers,
+ request_id: @env["action_dispatch.request_id"]
+ }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -494,11 +494,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 187
- def cookies # :doc:
- request.cookie_jar
- end
+def cookies # :doc:
+ request.cookie_jar
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -529,14 +529,14 @@
# File actioncable/lib/action_cable/connection/base.rb, line 178
- def request # :doc:
- @request ||= begin
- environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
- ActionDispatch::Request.new(environment || env)
- end
- end
+def request # :doc:
+ @request ||= begin
+ environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
+ ActionDispatch::Request.new(environment || env)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Callbacks.html b/src/classes/ActionCable/Connection/Callbacks.html
index 818958bf81..d6504ca284 100644
--- a/src/classes/ActionCable/Connection/Callbacks.html
+++ b/src/classes/ActionCable/Connection/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
index 933056a029..6376d7195b 100644
--- a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,11 +90,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 47
- def after_command(*methods, &block)
- set_callback(:command, :after, *methods, &block)
- end
+def after_command(*methods, &block)
+ set_callback(:command, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -125,11 +125,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 51
- def around_command(*methods, &block)
- set_callback(:command, :around, *methods, &block)
- end
+def around_command(*methods, &block)
+ set_callback(:command, :around, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -160,11 +160,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 43
- def before_command(*methods, &block)
- set_callback(:command, :before, *methods, &block)
- end
+def before_command(*methods, &block)
+ set_callback(:command, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification.html b/src/classes/ActionCable/Connection/Identification.html
index f3dcea9bfc..063ca88999 100644
--- a/src/classes/ActionCable/Connection/Identification.html
+++ b/src/classes/ActionCable/Connection/Identification.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,15 +95,15 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 29
- def connection_identifier
- unless defined? @connection_identifier
- @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
- end
+def connection_identifier
+ unless defined? @connection_identifier
+ @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
+ end
- @connection_identifier
- end
+ @connection_identifier
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification/ClassMethods.html b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
index 324ded31f5..a3395ef8a3 100644
--- a/src/classes/ActionCable/Connection/Identification/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -84,12 +84,12 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 21
- def identified_by(*identifiers)
- Array(identifiers).each { |identifier| attr_accessor identifier }
- self.identifiers += identifiers
- end
+def identified_by(*identifiers)
+ Array(identifiers).each { |identifier| attr_accessor identifier }
+ self.identifiers += identifiers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/InternalChannel.html b/src/classes/ActionCable/Connection/InternalChannel.html
index 9b0144f690..cfdccceaf4 100644
--- a/src/classes/ActionCable/Connection/InternalChannel.html
+++ b/src/classes/ActionCable/Connection/InternalChannel.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
index 7167904452..bf0c696d62 100644
--- a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
+++ b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 15
- def initialize(name)
- super "Unable to determine the connection to test from #{name}. " +
- "You'll need to specify it using `tests YourConnection` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the connection to test from #{name}. " +
+ "You'll need to specify it using `tests YourConnection` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/StreamEventLoop.html b/src/classes/ActionCable/Connection/StreamEventLoop.html
index 2b71a213e3..f7c49354ef 100644
--- a/src/classes/ActionCable/Connection/StreamEventLoop.html
+++ b/src/classes/ActionCable/Connection/StreamEventLoop.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -111,16 +111,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 10
- def initialize
- @nio = @executor = @thread = nil
- @map = {}
- @stopping = false
- @todo = Queue.new
-
- @spawn_mutex = Mutex.new
- end
+def initialize
+ @nio = @executor = @thread = nil
+ @map = {}
+ @stopping = false
+ @todo = Queue.new
+
+ @spawn_mutex = Mutex.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -155,15 +155,15 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 30
- def attach(io, stream)
- @todo << lambda do
- @map[io] = @nio.register(io, :r)
- @map[io].value = stream
- end
- wakeup
- end
+def attach(io, stream)
+ @todo << lambda do
+ @map[io] = @nio.register(io, :r)
+ @map[io].value = stream
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -194,16 +194,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 38
- def detach(io, stream)
- @todo << lambda do
- @nio.deregister io
- @map.delete io
- io.close
- end
- wakeup
- end
+def detach(io, stream)
+ @todo << lambda do
+ @nio.deregister io
+ @map.delete io
+ io.close
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -234,14 +234,14 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 23
- def post(task = nil, &block)
- task ||= block
+def post(task = nil, &block)
+ task ||= block
- spawn
- @executor << task
- end
+ spawn
+ @executor << task
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,12 +272,12 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 56
- def stop
- @stopping = true
- wakeup if @nio
- end
+def stop
+ @stopping = true
+ wakeup if @nio
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -308,11 +308,11 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 19
- def timer(interval, &block)
- Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
- end
+def timer(interval, &block)
+ Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -343,16 +343,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 47
- def writes_pending(io)
- @todo << lambda do
- if monitor = @map[io]
- monitor.interests = :rw
- end
- end
- wakeup
- end
+def writes_pending(io)
+ @todo << lambda do
+ if monitor = @map[io]
+ monitor.interests = :rw
+ end
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
index f4d5cacc63..99731855fb 100644
--- a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
+++ b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -121,12 +121,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 16
- def initialize(logger, tags:)
- @logger = logger
- @tags = tags.flatten
- end
+def initialize(logger, tags:)
+ @logger = logger
+ @tags = tags.flatten
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -161,12 +161,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 21
- def add_tags(*tags)
- @tags += tags.flatten
- @tags = @tags.uniq
- end
+def add_tags(*tags)
+ @tags += tags.flatten
+ @tags = @tags.uniq
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -197,16 +197,16 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 26
- def tag(logger, &block)
- if logger.respond_to?(:tagged)
- current_tags = tags - logger.formatter.current_tags
- logger.tagged(*current_tags, &block)
- else
- yield
- end
- end
+def tag(logger, &block)
+ if logger.respond_to?(:tagged)
+ current_tags = tags - logger.formatter.current_tags
+ logger.tagged(*current_tags, &block)
+ else
+ yield
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,11 +240,11 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 42
- def log(type, message, &block) # :doc:
- tag(@logger) { @logger.send type, message, &block }
- end
+def log(type, message, &block) # :doc:
+ tag(@logger) { @logger.send type, message, &block }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase.html b/src/classes/ActionCable/Connection/TestCase.html
index 948378e491..39bc5cb056 100644
--- a/src/classes/ActionCable/Connection/TestCase.html
+++ b/src/classes/ActionCable/Connection/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior.html b/src/classes/ActionCable/Connection/TestCase/Behavior.html
index b87870becd..4ee0debbea 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -163,19 +163,19 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 192
- def connect(path = ActionCable.server.config.mount_path, **request_params)
- path ||= DEFAULT_PATH
+def connect(path = ActionCable.server.config.mount_path, **request_params)
+ path ||= DEFAULT_PATH
- connection = self.class.connection_class.allocate
- connection.singleton_class.include(TestConnection)
- connection.send(:initialize, build_test_request(path, **request_params))
- connection.connect if connection.respond_to?(:connect)
+ connection = self.class.connection_class.allocate
+ connection.singleton_class.include(TestConnection)
+ connection.send(:initialize, build_test_request(path, **request_params))
+ connection.connect if connection.respond_to?(:connect)
- # Only set instance variable if connected successfully
- @connection = connection
- end
+ # Only set instance variable if connected successfully
+ @connection = connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -206,11 +206,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 212
- def cookies
- @cookie_jar ||= TestCookieJar.new
- end
+def cookies
+ @cookie_jar ||= TestCookieJar.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -241,14 +241,14 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 205
- def disconnect
- raise "Must be connected!" if connection.nil?
+def disconnect
+ raise "Must be connected!" if connection.nil?
- connection.disconnect if connection.respond_to?(:disconnect)
- @connection = nil
- end
+ connection.disconnect if connection.respond_to?(:disconnect)
+ @connection = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
index 63444f4b27..99fc0e3f6f 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 167
- def connection_class
- if connection = self._connection_class
- connection
- else
- tests determine_default_connection(name)
- end
- end
+def connection_class
+ if connection = self._connection_class
+ connection
+ else
+ tests determine_default_connection(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 175
- def determine_default_connection(name)
- connection = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Connection::Base
- end
- raise NonInferrableConnectionError.new(name) if connection.nil?
- connection
- end
+def determine_default_connection(name)
+ connection = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Connection::Base
+ end
+ raise NonInferrableConnectionError.new(name) if connection.nil?
+ connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 60
- def after_subscribe(*methods, &block)
- set_callback(:subscribe, :after, *methods, &block)
- end
+def after_subscribe(*methods, &block)
+ set_callback(:subscribe, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -150,11 +150,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 69
- def after_unsubscribe(*methods, &block)
- set_callback(:unsubscribe, :after, *methods, &block)
- end
+def after_unsubscribe(*methods, &block)
+ set_callback(:unsubscribe, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -185,11 +185,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 48
- def before_subscribe(*methods, &block)
- set_callback(:subscribe, :before, *methods, &block)
- end
+def before_subscribe(*methods, &block)
+ set_callback(:subscribe, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -220,11 +220,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 65
- def before_unsubscribe(*methods, &block)
- set_callback(:unsubscribe, :before, *methods, &block)
- end
+def before_unsubscribe(*methods, &block)
+ set_callback(:unsubscribe, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/ChannelStub.html b/src/classes/ActionCable/Channel/ChannelStub.html
index 9db98daac2..d004896dc5 100644
--- a/src/classes/ActionCable/Channel/ChannelStub.html
+++ b/src/classes/ActionCable/Channel/ChannelStub.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -25,7 +25,7 @@
Action Cable Channel Stub
-
Stub stream_from to track streams for the channel. Add public aliases for subscription_confirmation_sent? and subscription_rejected?.
+Stub stream_from to track streams for the channel. Add public aliases for subscription_confirmation_sent? and subscription_rejected?.
@@ -114,11 +114,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 25
- def confirmed?
- subscription_confirmation_sent?
- end
+def confirmed?
+ subscription_confirmation_sent?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -149,11 +149,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 29
- def rejected?
- subscription_rejected?
- end
+def rejected?
+ subscription_rejected?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -188,9 +188,9 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 46
- def start_periodic_timers; end
+def start_periodic_timers; end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -221,11 +221,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 37
- def stop_all_streams
- @_streams = []
- end
+def stop_all_streams
+ @_streams = []
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -281,11 +281,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 33
- def stream_from(broadcasting, *)
- streams << broadcasting
- end
+def stream_from(broadcasting, *)
+ streams << broadcasting
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -316,11 +316,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 41
- def streams
- @_streams ||= []
- end
+def streams
+ @_streams ||= []
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/ConnectionStub.html b/src/classes/ActionCable/Channel/ConnectionStub.html
index 62c52b567f..0fdc0d8690 100644
--- a/src/classes/ActionCable/Channel/ConnectionStub.html
+++ b/src/classes/ActionCable/Channel/ConnectionStub.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -141,20 +141,20 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 55
- def initialize(identifiers = {})
- @server = ActionCable.server
- @transmissions = []
-
- identifiers.each do |identifier, val|
- define_singleton_method(identifier) { val }
- end
-
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @identifiers = identifiers.keys
- @logger = ActiveSupport::TaggedLogging.new ActiveSupport::Logger.new(StringIO.new)
- end
+def initialize(identifiers = {})
+ @server = ActionCable.server
+ @transmissions = []
+
+ identifiers.each do |identifier, val|
+ define_singleton_method(identifier) { val }
+ end
+
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @identifiers = identifiers.keys
+ @logger = ActiveSupport::TaggedLogging.new ActiveSupport::Logger.new(StringIO.new)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -189,11 +189,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 72
- def connection_identifier
- @connection_identifier ||= connection_gid(identifiers.filter_map { |id| send(id.to_sym) if id })
- end
+def connection_identifier
+ @connection_identifier ||= connection_gid(identifiers.filter_map { |id| send(id.to_sym) if id })
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -224,11 +224,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 68
- def transmit(cable_message)
- transmissions << cable_message.with_indifferent_access
- end
+def transmit(cable_message)
+ transmissions << cable_message.with_indifferent_access
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Naming.html b/src/classes/ActionCable/Channel/Naming.html
index 84bfc0232c..db2aa18589 100644
--- a/src/classes/ActionCable/Channel/Naming.html
+++ b/src/classes/ActionCable/Channel/Naming.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,11 +95,11 @@
# File actioncable/lib/action_cable/channel/naming.rb, line 23
- def channel_name
- self.class.channel_name
- end
+def channel_name
+ self.class.channel_name
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Naming/ClassMethods.html b/src/classes/ActionCable/Channel/Naming/ClassMethods.html
index b847309f12..e99c0744a7 100644
--- a/src/classes/ActionCable/Channel/Naming/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Naming/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -66,7 +66,7 @@
- Returns the name of the channel, underscored, without the Channel ending. If the channel is in a namespace, then the namespaces are represented by single colon separators in the channel name.
+ Returns the name of the channel, underscored, without the Channel ending. If the channel is in a namespace, then the namespaces are represented by single colon separators in the channel name.
ChatChannel.channel_name # => 'chat'
Chats::AppearancesChannel.channel_name # => 'chats:appearances'
@@ -87,11 +87,11 @@
# File actioncable/lib/action_cable/channel/naming.rb, line 18
- def channel_name
- @channel_name ||= name.delete_suffix("Channel").gsub("::", ":").underscore
- end
+def channel_name
+ @channel_name ||= name.delete_suffix("Channel").gsub("::", ":").underscore
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/NonInferrableChannelError.html b/src/classes/ActionCable/Channel/NonInferrableChannelError.html
index 034c36b135..1eac81cbd2 100644
--- a/src/classes/ActionCable/Channel/NonInferrableChannelError.html
+++ b/src/classes/ActionCable/Channel/NonInferrableChannelError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 13
- def initialize(name)
- super "Unable to determine the channel to test from #{name}. " +
- "You'll need to specify it using `tests YourChannel` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the channel to test from #{name}. " +
+ "You'll need to specify it using `tests YourChannel` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/PeriodicTimers.html b/src/classes/ActionCable/Channel/PeriodicTimers.html
index 88facef675..561da6e0dd 100644
--- a/src/classes/ActionCable/Channel/PeriodicTimers.html
+++ b/src/classes/ActionCable/Channel/PeriodicTimers.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html b/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
index 233865e2e3..a694f6de16 100644
--- a/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -91,30 +91,30 @@
# File actioncable/lib/action_cable/channel/periodic_timers.rb, line 31
- def periodically(callback_or_method_name = nil, every:, &block)
- callback =
- if block_given?
- raise ArgumentError, "Pass a block or provide a callback arg, not both" if callback_or_method_name
- block
- else
- case callback_or_method_name
- when Proc
- callback_or_method_name
- when Symbol
- -> { __send__ callback_or_method_name }
- else
- raise ArgumentError, "Expected a Symbol method name or a Proc, got #{callback_or_method_name.inspect}"
- end
- end
-
- unless every.kind_of?(Numeric) && every > 0
- raise ArgumentError, "Expected every: to be a positive number of seconds, got #{every.inspect}"
- end
-
- self.periodic_timers += [[ callback, every: every ]]
- end
+def periodically(callback_or_method_name = nil, every:, &block)
+ callback =
+ if block_given?
+ raise ArgumentError, "Pass a block or provide a callback arg, not both" if callback_or_method_name
+ block
+ else
+ case callback_or_method_name
+ when Proc
+ callback_or_method_name
+ when Symbol
+ -> { __send__ callback_or_method_name }
+ else
+ raise ArgumentError, "Expected a Symbol method name or a Proc, got #{callback_or_method_name.inspect}"
+ end
+ end
+
+ unless every.kind_of?(Numeric) && every > 0
+ raise ArgumentError, "Expected every: to be a positive number of seconds, got #{every.inspect}"
+ end
+
+ self.periodic_timers += [[ callback, every: every ]]
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Streams.html b/src/classes/ActionCable/Channel/Streams.html
index 0967feb616..a2e686a3e9 100644
--- a/src/classes/ActionCable/Channel/Streams.html
+++ b/src/classes/ActionCable/Channel/Streams.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -167,14 +167,14 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 137
- def stop_all_streams
- streams.each do |broadcasting, callback|
- pubsub.unsubscribe broadcasting, callback
- logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
- end.clear
- end
+def stop_all_streams
+ streams.each do |broadcasting, callback|
+ pubsub.unsubscribe broadcasting, callback
+ logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
+ end.clear
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -205,11 +205,11 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 132
- def stop_stream_for(model)
- stop_stream_from(broadcasting_for(model))
- end
+def stop_stream_for(model)
+ stop_stream_from(broadcasting_for(model))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,15 +240,15 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 123
- def stop_stream_from(broadcasting)
- callback = streams.delete(broadcasting)
- if callback
- pubsub.unsubscribe(broadcasting, callback)
- logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
- end
- end
+def stop_stream_from(broadcasting)
+ callback = streams.delete(broadcasting)
+ if callback
+ pubsub.unsubscribe(broadcasting, callback)
+ logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -281,11 +281,11 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 118
- def stream_for(broadcastables, callback = nil, coder: nil, &block)
- stream_from(broadcasting_for(broadcastables), callback || block, coder: coder)
- end
+def stream_for(broadcastables, callback = nil, coder: nil, &block)
+ stream_from(broadcasting_for(broadcastables), callback || block, coder: coder)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -316,28 +316,28 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 90
- def stream_from(broadcasting, callback = nil, coder: nil, &block)
- return if unsubscribed?
-
- broadcasting = String(broadcasting)
-
- # Don't send the confirmation until pubsub#subscribe is successful
- defer_subscription_confirmation!
-
- # Build a stream handler by wrapping the user-provided callback with a decoder
- # or defaulting to a JSON-decoding retransmitter.
- handler = worker_pool_stream_handler(broadcasting, callback || block, coder: coder)
- streams[broadcasting] = handler
-
- connection.server.event_loop.post do
- pubsub.subscribe(broadcasting, handler, lambda do
- ensure_confirmation_sent
- logger.info "#{self.class.name} is streaming from #{broadcasting}"
- end)
- end
- end
+def stream_from(broadcasting, callback = nil, coder: nil, &block)
+ return if unsubscribed?
+
+ broadcasting = String(broadcasting)
+
+ # Don't send the confirmation until pubsub#subscribe is successful
+ defer_subscription_confirmation!
+
+ # Build a stream handler by wrapping the user-provided callback with a decoder
+ # or defaulting to a JSON-decoding retransmitter.
+ handler = worker_pool_stream_handler(broadcasting, callback || block, coder: coder)
+ streams[broadcasting] = handler
+
+ connection.server.event_loop.post do
+ pubsub.subscribe(broadcasting, handler, lambda do
+ ensure_confirmation_sent
+ logger.info "#{self.class.name} is streaming from #{broadcasting}"
+ end)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -368,15 +368,15 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 146
- def stream_or_reject_for(model)
- if model
- stream_for model
- else
- reject
- end
- end
+def stream_or_reject_for(model)
+ if model
+ stream_for model
+ else
+ reject
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase.html b/src/classes/ActionCable/Channel/TestCase.html
index 08fb28c0cf..6317ff44d0 100644
--- a/src/classes/ActionCable/Channel/TestCase.html
+++ b/src/classes/ActionCable/Channel/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior.html b/src/classes/ActionCable/Channel/TestCase/Behavior.html
index b5f3a5cbb7..5a8ea0fd78 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -196,11 +196,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 282
- def assert_broadcast_on(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcast_on(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -231,11 +231,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 278
- def assert_broadcasts(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcasts(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,11 +272,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 326
- def assert_has_no_stream(stream)
- assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
- end
+def assert_has_no_stream(stream)
+ assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -313,11 +313,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 337
- def assert_has_no_stream_for(object)
- assert_has_no_stream(broadcasting_for(object))
- end
+def assert_has_no_stream_for(object)
+ assert_has_no_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -354,11 +354,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 304
- def assert_has_stream(stream)
- assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
- end
+def assert_has_stream(stream)
+ assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -395,11 +395,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 315
- def assert_has_stream_for(object)
- assert_has_stream(broadcasting_for(object))
- end
+def assert_has_stream_for(object)
+ assert_has_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -436,11 +436,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 293
- def assert_no_streams
- assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
- end
+def assert_no_streams
+ assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -473,12 +473,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 266
- def perform(action, data = {})
- check_subscribed!
- subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
- end
+def perform(action, data = {})
+ check_subscribed!
+ subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -516,11 +516,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 243
- def stub_connection(identifiers = {})
- @connection = ConnectionStub.new(identifiers)
- end
+def stub_connection(identifiers = {})
+ @connection = ConnectionStub.new(identifiers)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -551,15 +551,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 249
- def subscribe(params = {})
- @connection ||= stub_connection
- @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
- @subscription.singleton_class.include(ChannelStub)
- @subscription.subscribe_to_channel
- @subscription
- end
+def subscribe(params = {})
+ @connection ||= stub_connection
+ @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
+ @subscription.singleton_class.include(ChannelStub)
+ @subscription.subscribe_to_channel
+ @subscription
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -590,12 +590,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 272
- def transmissions
- # Return only directly sent message (via #transmit)
- connection.transmissions.filter_map { |data| data["message"] }
- end
+def transmissions
+ # Return only directly sent message (via #transmit)
+ connection.transmissions.filter_map { |data| data["message"] }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -626,12 +626,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 258
- def unsubscribe
- check_subscribed!
- subscription.unsubscribe_from_channel
- end
+def unsubscribe
+ check_subscribed!
+ subscription.unsubscribe_from_channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
index 48ea87f130..57efb4cdac 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 219
- def channel_class
- if channel = self._channel_class
- channel
- else
- tests determine_default_channel(name)
- end
- end
+def channel_class
+ if channel = self._channel_class
+ channel
+ else
+ tests determine_default_channel(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 227
- def determine_default_channel(name)
- channel = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Channel::Base
- end
- raise NonInferrableChannelError.new(name) if channel.nil?
- channel
- end
+def determine_default_channel(name)
+ channel = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Channel::Base
+ end
+ raise NonInferrableChannelError.new(name) if channel.nil?
+ channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 208
- def tests(channel)
- case channel
- when String, Symbol
- self._channel_class = channel.to_s.camelize.constantize
- when Module
- self._channel_class = channel
- else
- raise NonInferrableChannelError.new(channel)
- end
- end
+def tests(channel)
+ case channel
+ when String, Symbol
+ self._channel_class = channel.to_s.camelize.constantize
+ when Module
+ self._channel_class = channel
+ else
+ raise NonInferrableChannelError.new(channel)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection.html b/src/classes/ActionCable/Connection.html
index f832214f0e..7889c75284 100644
--- a/src/classes/ActionCable/Connection.html
+++ b/src/classes/ActionCable/Connection.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Assertions.html b/src/classes/ActionCable/Connection/Assertions.html
index 933ea80e4c..6b10ec5528 100644
--- a/src/classes/ActionCable/Connection/Assertions.html
+++ b/src/classes/ActionCable/Connection/Assertions.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 28
- def assert_reject_connection(&block)
- assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
- end
+def assert_reject_connection(&block)
+ assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization.html b/src/classes/ActionCable/Connection/Authorization.html
index feb855aa9e..baf85a37b3 100644
--- a/src/classes/ActionCable/Connection/Authorization.html
+++ b/src/classes/ActionCable/Connection/Authorization.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -97,12 +97,12 @@
# File actioncable/lib/action_cable/connection/authorization.rb, line 12
- def reject_unauthorized_connection
- logger.error "An unauthorized connection attempt was rejected"
- raise UnauthorizedError
- end
+def reject_unauthorized_connection
+ logger.error "An unauthorized connection attempt was rejected"
+ raise UnauthorizedError
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
index b63b282b0b..ff36299a28 100644
--- a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
+++ b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/Base.html b/src/classes/ActionCable/Connection/Base.html
index 36a2f1e1bb..ea0d62911f 100644
--- a/src/classes/ActionCable/Connection/Base.html
+++ b/src/classes/ActionCable/Connection/Base.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -255,21 +255,21 @@
# File actioncable/lib/action_cable/connection/base.rb, line 67
- def initialize(server, env, coder: ActiveSupport::JSON)
- @server, @env, @coder = server, env, coder
+def initialize(server, env, coder: ActiveSupport::JSON)
+ @server, @env, @coder = server, env, coder
- @worker_pool = server.worker_pool
- @logger = new_tagged_logger
+ @worker_pool = server.worker_pool
+ @logger = new_tagged_logger
- @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
+ @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
- @_internal_subscriptions = nil
- @started_at = Time.now
- end
+ @_internal_subscriptions = nil
+ @started_at = Time.now
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -304,11 +304,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 147
- def beat
- transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
- end
+def beat
+ transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -339,16 +339,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 120
- def close(reason: nil, reconnect: true)
- transmit(
- type: ActionCable::INTERNAL[:message_types][:disconnect],
- reason: reason,
- reconnect: reconnect
- )
- websocket.close
- end
+def close(reason: nil, reconnect: true)
+ transmit(
+ type: ActionCable::INTERNAL[:message_types][:disconnect],
+ reason: reason,
+ reconnect: reconnect
+ )
+ websocket.close
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -379,13 +379,13 @@
# File actioncable/lib/action_cable/connection/base.rb, line 109
- def handle_channel_command(payload)
- run_callbacks :command do
- subscriptions.execute_command payload
- end
- end
+def handle_channel_command(payload)
+ run_callbacks :command do
+ subscriptions.execute_command payload
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -416,11 +416,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 131
- def send_async(method, *arguments)
- worker_pool.async_invoke(self, method, *arguments)
- end
+def send_async(method, *arguments)
+ worker_pool.async_invoke(self, method, *arguments)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -451,16 +451,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 138
- def statistics
- {
- identifier: connection_identifier,
- started_at: @started_at,
- subscriptions: subscriptions.identifiers,
- request_id: @env["action_dispatch.request_id"]
- }
- end
+def statistics
+ {
+ identifier: connection_identifier,
+ started_at: @started_at,
+ subscriptions: subscriptions.identifiers,
+ request_id: @env["action_dispatch.request_id"]
+ }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -494,11 +494,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 187
- def cookies # :doc:
- request.cookie_jar
- end
+def cookies # :doc:
+ request.cookie_jar
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -529,14 +529,14 @@
# File actioncable/lib/action_cable/connection/base.rb, line 178
- def request # :doc:
- @request ||= begin
- environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
- ActionDispatch::Request.new(environment || env)
- end
- end
+def request # :doc:
+ @request ||= begin
+ environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
+ ActionDispatch::Request.new(environment || env)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Callbacks.html b/src/classes/ActionCable/Connection/Callbacks.html
index 818958bf81..d6504ca284 100644
--- a/src/classes/ActionCable/Connection/Callbacks.html
+++ b/src/classes/ActionCable/Connection/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
index 933056a029..6376d7195b 100644
--- a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,11 +90,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 47
- def after_command(*methods, &block)
- set_callback(:command, :after, *methods, &block)
- end
+def after_command(*methods, &block)
+ set_callback(:command, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -125,11 +125,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 51
- def around_command(*methods, &block)
- set_callback(:command, :around, *methods, &block)
- end
+def around_command(*methods, &block)
+ set_callback(:command, :around, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -160,11 +160,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 43
- def before_command(*methods, &block)
- set_callback(:command, :before, *methods, &block)
- end
+def before_command(*methods, &block)
+ set_callback(:command, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification.html b/src/classes/ActionCable/Connection/Identification.html
index f3dcea9bfc..063ca88999 100644
--- a/src/classes/ActionCable/Connection/Identification.html
+++ b/src/classes/ActionCable/Connection/Identification.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,15 +95,15 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 29
- def connection_identifier
- unless defined? @connection_identifier
- @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
- end
+def connection_identifier
+ unless defined? @connection_identifier
+ @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
+ end
- @connection_identifier
- end
+ @connection_identifier
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification/ClassMethods.html b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
index 324ded31f5..a3395ef8a3 100644
--- a/src/classes/ActionCable/Connection/Identification/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -84,12 +84,12 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 21
- def identified_by(*identifiers)
- Array(identifiers).each { |identifier| attr_accessor identifier }
- self.identifiers += identifiers
- end
+def identified_by(*identifiers)
+ Array(identifiers).each { |identifier| attr_accessor identifier }
+ self.identifiers += identifiers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/InternalChannel.html b/src/classes/ActionCable/Connection/InternalChannel.html
index 9b0144f690..cfdccceaf4 100644
--- a/src/classes/ActionCable/Connection/InternalChannel.html
+++ b/src/classes/ActionCable/Connection/InternalChannel.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
index 7167904452..bf0c696d62 100644
--- a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
+++ b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 15
- def initialize(name)
- super "Unable to determine the connection to test from #{name}. " +
- "You'll need to specify it using `tests YourConnection` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the connection to test from #{name}. " +
+ "You'll need to specify it using `tests YourConnection` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/StreamEventLoop.html b/src/classes/ActionCable/Connection/StreamEventLoop.html
index 2b71a213e3..f7c49354ef 100644
--- a/src/classes/ActionCable/Connection/StreamEventLoop.html
+++ b/src/classes/ActionCable/Connection/StreamEventLoop.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -111,16 +111,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 10
- def initialize
- @nio = @executor = @thread = nil
- @map = {}
- @stopping = false
- @todo = Queue.new
-
- @spawn_mutex = Mutex.new
- end
+def initialize
+ @nio = @executor = @thread = nil
+ @map = {}
+ @stopping = false
+ @todo = Queue.new
+
+ @spawn_mutex = Mutex.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -155,15 +155,15 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 30
- def attach(io, stream)
- @todo << lambda do
- @map[io] = @nio.register(io, :r)
- @map[io].value = stream
- end
- wakeup
- end
+def attach(io, stream)
+ @todo << lambda do
+ @map[io] = @nio.register(io, :r)
+ @map[io].value = stream
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -194,16 +194,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 38
- def detach(io, stream)
- @todo << lambda do
- @nio.deregister io
- @map.delete io
- io.close
- end
- wakeup
- end
+def detach(io, stream)
+ @todo << lambda do
+ @nio.deregister io
+ @map.delete io
+ io.close
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -234,14 +234,14 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 23
- def post(task = nil, &block)
- task ||= block
+def post(task = nil, &block)
+ task ||= block
- spawn
- @executor << task
- end
+ spawn
+ @executor << task
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,12 +272,12 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 56
- def stop
- @stopping = true
- wakeup if @nio
- end
+def stop
+ @stopping = true
+ wakeup if @nio
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -308,11 +308,11 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 19
- def timer(interval, &block)
- Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
- end
+def timer(interval, &block)
+ Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -343,16 +343,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 47
- def writes_pending(io)
- @todo << lambda do
- if monitor = @map[io]
- monitor.interests = :rw
- end
- end
- wakeup
- end
+def writes_pending(io)
+ @todo << lambda do
+ if monitor = @map[io]
+ monitor.interests = :rw
+ end
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
index f4d5cacc63..99731855fb 100644
--- a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
+++ b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -121,12 +121,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 16
- def initialize(logger, tags:)
- @logger = logger
- @tags = tags.flatten
- end
+def initialize(logger, tags:)
+ @logger = logger
+ @tags = tags.flatten
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -161,12 +161,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 21
- def add_tags(*tags)
- @tags += tags.flatten
- @tags = @tags.uniq
- end
+def add_tags(*tags)
+ @tags += tags.flatten
+ @tags = @tags.uniq
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -197,16 +197,16 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 26
- def tag(logger, &block)
- if logger.respond_to?(:tagged)
- current_tags = tags - logger.formatter.current_tags
- logger.tagged(*current_tags, &block)
- else
- yield
- end
- end
+def tag(logger, &block)
+ if logger.respond_to?(:tagged)
+ current_tags = tags - logger.formatter.current_tags
+ logger.tagged(*current_tags, &block)
+ else
+ yield
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,11 +240,11 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 42
- def log(type, message, &block) # :doc:
- tag(@logger) { @logger.send type, message, &block }
- end
+def log(type, message, &block) # :doc:
+ tag(@logger) { @logger.send type, message, &block }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase.html b/src/classes/ActionCable/Connection/TestCase.html
index 948378e491..39bc5cb056 100644
--- a/src/classes/ActionCable/Connection/TestCase.html
+++ b/src/classes/ActionCable/Connection/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior.html b/src/classes/ActionCable/Connection/TestCase/Behavior.html
index b87870becd..4ee0debbea 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -163,19 +163,19 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 192
- def connect(path = ActionCable.server.config.mount_path, **request_params)
- path ||= DEFAULT_PATH
+def connect(path = ActionCable.server.config.mount_path, **request_params)
+ path ||= DEFAULT_PATH
- connection = self.class.connection_class.allocate
- connection.singleton_class.include(TestConnection)
- connection.send(:initialize, build_test_request(path, **request_params))
- connection.connect if connection.respond_to?(:connect)
+ connection = self.class.connection_class.allocate
+ connection.singleton_class.include(TestConnection)
+ connection.send(:initialize, build_test_request(path, **request_params))
+ connection.connect if connection.respond_to?(:connect)
- # Only set instance variable if connected successfully
- @connection = connection
- end
+ # Only set instance variable if connected successfully
+ @connection = connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -206,11 +206,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 212
- def cookies
- @cookie_jar ||= TestCookieJar.new
- end
+def cookies
+ @cookie_jar ||= TestCookieJar.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -241,14 +241,14 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 205
- def disconnect
- raise "Must be connected!" if connection.nil?
+def disconnect
+ raise "Must be connected!" if connection.nil?
- connection.disconnect if connection.respond_to?(:disconnect)
- @connection = nil
- end
+ connection.disconnect if connection.respond_to?(:disconnect)
+ @connection = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
index 63444f4b27..99fc0e3f6f 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 167
- def connection_class
- if connection = self._connection_class
- connection
- else
- tests determine_default_connection(name)
- end
- end
+def connection_class
+ if connection = self._connection_class
+ connection
+ else
+ tests determine_default_connection(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 175
- def determine_default_connection(name)
- connection = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Connection::Base
- end
- raise NonInferrableConnectionError.new(name) if connection.nil?
- connection
- end
+def determine_default_connection(name)
+ connection = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Connection::Base
+ end
+ raise NonInferrableConnectionError.new(name) if connection.nil?
+ connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 69
- def after_unsubscribe(*methods, &block)
- set_callback(:unsubscribe, :after, *methods, &block)
- end# File actioncable/lib/action_cable/channel/callbacks.rb, line 48
- def before_subscribe(*methods, &block)
- set_callback(:subscribe, :before, *methods, &block)
- end
+def before_subscribe(*methods, &block)
+ set_callback(:subscribe, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -220,11 +220,11 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 65
- def before_unsubscribe(*methods, &block)
- set_callback(:unsubscribe, :before, *methods, &block)
- end
+def before_unsubscribe(*methods, &block)
+ set_callback(:unsubscribe, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/ChannelStub.html b/src/classes/ActionCable/Channel/ChannelStub.html
index 9db98daac2..d004896dc5 100644
--- a/src/classes/ActionCable/Channel/ChannelStub.html
+++ b/src/classes/ActionCable/Channel/ChannelStub.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -25,7 +25,7 @@
Action Cable Channel Stub
-
Stub stream_from to track streams for the channel. Add public aliases for subscription_confirmation_sent? and subscription_rejected?.
+Stub stream_from to track streams for the channel. Add public aliases for subscription_confirmation_sent? and subscription_rejected?.
@@ -114,11 +114,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 25
- def confirmed?
- subscription_confirmation_sent?
- end
+def confirmed?
+ subscription_confirmation_sent?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -149,11 +149,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 29
- def rejected?
- subscription_rejected?
- end
+def rejected?
+ subscription_rejected?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -188,9 +188,9 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 46
- def start_periodic_timers; end
+def start_periodic_timers; end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -221,11 +221,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 37
- def stop_all_streams
- @_streams = []
- end
+def stop_all_streams
+ @_streams = []
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -281,11 +281,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 33
- def stream_from(broadcasting, *)
- streams << broadcasting
- end
+def stream_from(broadcasting, *)
+ streams << broadcasting
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -316,11 +316,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 41
- def streams
- @_streams ||= []
- end
+def streams
+ @_streams ||= []
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/ConnectionStub.html b/src/classes/ActionCable/Channel/ConnectionStub.html
index 62c52b567f..0fdc0d8690 100644
--- a/src/classes/ActionCable/Channel/ConnectionStub.html
+++ b/src/classes/ActionCable/Channel/ConnectionStub.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -141,20 +141,20 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 55
- def initialize(identifiers = {})
- @server = ActionCable.server
- @transmissions = []
-
- identifiers.each do |identifier, val|
- define_singleton_method(identifier) { val }
- end
-
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @identifiers = identifiers.keys
- @logger = ActiveSupport::TaggedLogging.new ActiveSupport::Logger.new(StringIO.new)
- end
+def initialize(identifiers = {})
+ @server = ActionCable.server
+ @transmissions = []
+
+ identifiers.each do |identifier, val|
+ define_singleton_method(identifier) { val }
+ end
+
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @identifiers = identifiers.keys
+ @logger = ActiveSupport::TaggedLogging.new ActiveSupport::Logger.new(StringIO.new)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -189,11 +189,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 72
- def connection_identifier
- @connection_identifier ||= connection_gid(identifiers.filter_map { |id| send(id.to_sym) if id })
- end
+def connection_identifier
+ @connection_identifier ||= connection_gid(identifiers.filter_map { |id| send(id.to_sym) if id })
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -224,11 +224,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 68
- def transmit(cable_message)
- transmissions << cable_message.with_indifferent_access
- end
+def transmit(cable_message)
+ transmissions << cable_message.with_indifferent_access
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Naming.html b/src/classes/ActionCable/Channel/Naming.html
index 84bfc0232c..db2aa18589 100644
--- a/src/classes/ActionCable/Channel/Naming.html
+++ b/src/classes/ActionCable/Channel/Naming.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,11 +95,11 @@
# File actioncable/lib/action_cable/channel/naming.rb, line 23
- def channel_name
- self.class.channel_name
- end
+def channel_name
+ self.class.channel_name
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Naming/ClassMethods.html b/src/classes/ActionCable/Channel/Naming/ClassMethods.html
index b847309f12..e99c0744a7 100644
--- a/src/classes/ActionCable/Channel/Naming/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Naming/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -66,7 +66,7 @@
- Returns the name of the channel, underscored, without the Channel ending. If the channel is in a namespace, then the namespaces are represented by single colon separators in the channel name.
+ Returns the name of the channel, underscored, without the Channel ending. If the channel is in a namespace, then the namespaces are represented by single colon separators in the channel name.
ChatChannel.channel_name # => 'chat'
Chats::AppearancesChannel.channel_name # => 'chats:appearances'
@@ -87,11 +87,11 @@
# File actioncable/lib/action_cable/channel/naming.rb, line 18
- def channel_name
- @channel_name ||= name.delete_suffix("Channel").gsub("::", ":").underscore
- end
+def channel_name
+ @channel_name ||= name.delete_suffix("Channel").gsub("::", ":").underscore
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/NonInferrableChannelError.html b/src/classes/ActionCable/Channel/NonInferrableChannelError.html
index 034c36b135..1eac81cbd2 100644
--- a/src/classes/ActionCable/Channel/NonInferrableChannelError.html
+++ b/src/classes/ActionCable/Channel/NonInferrableChannelError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 13
- def initialize(name)
- super "Unable to determine the channel to test from #{name}. " +
- "You'll need to specify it using `tests YourChannel` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the channel to test from #{name}. " +
+ "You'll need to specify it using `tests YourChannel` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/PeriodicTimers.html b/src/classes/ActionCable/Channel/PeriodicTimers.html
index 88facef675..561da6e0dd 100644
--- a/src/classes/ActionCable/Channel/PeriodicTimers.html
+++ b/src/classes/ActionCable/Channel/PeriodicTimers.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html b/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
index 233865e2e3..a694f6de16 100644
--- a/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -91,30 +91,30 @@
# File actioncable/lib/action_cable/channel/periodic_timers.rb, line 31
- def periodically(callback_or_method_name = nil, every:, &block)
- callback =
- if block_given?
- raise ArgumentError, "Pass a block or provide a callback arg, not both" if callback_or_method_name
- block
- else
- case callback_or_method_name
- when Proc
- callback_or_method_name
- when Symbol
- -> { __send__ callback_or_method_name }
- else
- raise ArgumentError, "Expected a Symbol method name or a Proc, got #{callback_or_method_name.inspect}"
- end
- end
-
- unless every.kind_of?(Numeric) && every > 0
- raise ArgumentError, "Expected every: to be a positive number of seconds, got #{every.inspect}"
- end
-
- self.periodic_timers += [[ callback, every: every ]]
- end
+def periodically(callback_or_method_name = nil, every:, &block)
+ callback =
+ if block_given?
+ raise ArgumentError, "Pass a block or provide a callback arg, not both" if callback_or_method_name
+ block
+ else
+ case callback_or_method_name
+ when Proc
+ callback_or_method_name
+ when Symbol
+ -> { __send__ callback_or_method_name }
+ else
+ raise ArgumentError, "Expected a Symbol method name or a Proc, got #{callback_or_method_name.inspect}"
+ end
+ end
+
+ unless every.kind_of?(Numeric) && every > 0
+ raise ArgumentError, "Expected every: to be a positive number of seconds, got #{every.inspect}"
+ end
+
+ self.periodic_timers += [[ callback, every: every ]]
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Streams.html b/src/classes/ActionCable/Channel/Streams.html
index 0967feb616..a2e686a3e9 100644
--- a/src/classes/ActionCable/Channel/Streams.html
+++ b/src/classes/ActionCable/Channel/Streams.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -167,14 +167,14 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 137
- def stop_all_streams
- streams.each do |broadcasting, callback|
- pubsub.unsubscribe broadcasting, callback
- logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
- end.clear
- end
+def stop_all_streams
+ streams.each do |broadcasting, callback|
+ pubsub.unsubscribe broadcasting, callback
+ logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
+ end.clear
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -205,11 +205,11 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 132
- def stop_stream_for(model)
- stop_stream_from(broadcasting_for(model))
- end
+def stop_stream_for(model)
+ stop_stream_from(broadcasting_for(model))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,15 +240,15 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 123
- def stop_stream_from(broadcasting)
- callback = streams.delete(broadcasting)
- if callback
- pubsub.unsubscribe(broadcasting, callback)
- logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
- end
- end
+def stop_stream_from(broadcasting)
+ callback = streams.delete(broadcasting)
+ if callback
+ pubsub.unsubscribe(broadcasting, callback)
+ logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -281,11 +281,11 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 118
- def stream_for(broadcastables, callback = nil, coder: nil, &block)
- stream_from(broadcasting_for(broadcastables), callback || block, coder: coder)
- end
+def stream_for(broadcastables, callback = nil, coder: nil, &block)
+ stream_from(broadcasting_for(broadcastables), callback || block, coder: coder)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -316,28 +316,28 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 90
- def stream_from(broadcasting, callback = nil, coder: nil, &block)
- return if unsubscribed?
-
- broadcasting = String(broadcasting)
-
- # Don't send the confirmation until pubsub#subscribe is successful
- defer_subscription_confirmation!
-
- # Build a stream handler by wrapping the user-provided callback with a decoder
- # or defaulting to a JSON-decoding retransmitter.
- handler = worker_pool_stream_handler(broadcasting, callback || block, coder: coder)
- streams[broadcasting] = handler
-
- connection.server.event_loop.post do
- pubsub.subscribe(broadcasting, handler, lambda do
- ensure_confirmation_sent
- logger.info "#{self.class.name} is streaming from #{broadcasting}"
- end)
- end
- end
+def stream_from(broadcasting, callback = nil, coder: nil, &block)
+ return if unsubscribed?
+
+ broadcasting = String(broadcasting)
+
+ # Don't send the confirmation until pubsub#subscribe is successful
+ defer_subscription_confirmation!
+
+ # Build a stream handler by wrapping the user-provided callback with a decoder
+ # or defaulting to a JSON-decoding retransmitter.
+ handler = worker_pool_stream_handler(broadcasting, callback || block, coder: coder)
+ streams[broadcasting] = handler
+
+ connection.server.event_loop.post do
+ pubsub.subscribe(broadcasting, handler, lambda do
+ ensure_confirmation_sent
+ logger.info "#{self.class.name} is streaming from #{broadcasting}"
+ end)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -368,15 +368,15 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 146
- def stream_or_reject_for(model)
- if model
- stream_for model
- else
- reject
- end
- end
+def stream_or_reject_for(model)
+ if model
+ stream_for model
+ else
+ reject
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase.html b/src/classes/ActionCable/Channel/TestCase.html
index 08fb28c0cf..6317ff44d0 100644
--- a/src/classes/ActionCable/Channel/TestCase.html
+++ b/src/classes/ActionCable/Channel/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior.html b/src/classes/ActionCable/Channel/TestCase/Behavior.html
index b5f3a5cbb7..5a8ea0fd78 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -196,11 +196,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 282
- def assert_broadcast_on(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcast_on(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -231,11 +231,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 278
- def assert_broadcasts(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcasts(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,11 +272,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 326
- def assert_has_no_stream(stream)
- assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
- end
+def assert_has_no_stream(stream)
+ assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -313,11 +313,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 337
- def assert_has_no_stream_for(object)
- assert_has_no_stream(broadcasting_for(object))
- end
+def assert_has_no_stream_for(object)
+ assert_has_no_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -354,11 +354,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 304
- def assert_has_stream(stream)
- assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
- end
+def assert_has_stream(stream)
+ assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -395,11 +395,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 315
- def assert_has_stream_for(object)
- assert_has_stream(broadcasting_for(object))
- end
+def assert_has_stream_for(object)
+ assert_has_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -436,11 +436,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 293
- def assert_no_streams
- assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
- end
+def assert_no_streams
+ assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -473,12 +473,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 266
- def perform(action, data = {})
- check_subscribed!
- subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
- end
+def perform(action, data = {})
+ check_subscribed!
+ subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -516,11 +516,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 243
- def stub_connection(identifiers = {})
- @connection = ConnectionStub.new(identifiers)
- end
+def stub_connection(identifiers = {})
+ @connection = ConnectionStub.new(identifiers)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -551,15 +551,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 249
- def subscribe(params = {})
- @connection ||= stub_connection
- @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
- @subscription.singleton_class.include(ChannelStub)
- @subscription.subscribe_to_channel
- @subscription
- end
+def subscribe(params = {})
+ @connection ||= stub_connection
+ @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
+ @subscription.singleton_class.include(ChannelStub)
+ @subscription.subscribe_to_channel
+ @subscription
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -590,12 +590,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 272
- def transmissions
- # Return only directly sent message (via #transmit)
- connection.transmissions.filter_map { |data| data["message"] }
- end
+def transmissions
+ # Return only directly sent message (via #transmit)
+ connection.transmissions.filter_map { |data| data["message"] }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -626,12 +626,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 258
- def unsubscribe
- check_subscribed!
- subscription.unsubscribe_from_channel
- end
+def unsubscribe
+ check_subscribed!
+ subscription.unsubscribe_from_channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
index 48ea87f130..57efb4cdac 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 219
- def channel_class
- if channel = self._channel_class
- channel
- else
- tests determine_default_channel(name)
- end
- end
+def channel_class
+ if channel = self._channel_class
+ channel
+ else
+ tests determine_default_channel(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 227
- def determine_default_channel(name)
- channel = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Channel::Base
- end
- raise NonInferrableChannelError.new(name) if channel.nil?
- channel
- end
+def determine_default_channel(name)
+ channel = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Channel::Base
+ end
+ raise NonInferrableChannelError.new(name) if channel.nil?
+ channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 208
- def tests(channel)
- case channel
- when String, Symbol
- self._channel_class = channel.to_s.camelize.constantize
- when Module
- self._channel_class = channel
- else
- raise NonInferrableChannelError.new(channel)
- end
- end
+def tests(channel)
+ case channel
+ when String, Symbol
+ self._channel_class = channel.to_s.camelize.constantize
+ when Module
+ self._channel_class = channel
+ else
+ raise NonInferrableChannelError.new(channel)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection.html b/src/classes/ActionCable/Connection.html
index f832214f0e..7889c75284 100644
--- a/src/classes/ActionCable/Connection.html
+++ b/src/classes/ActionCable/Connection.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Assertions.html b/src/classes/ActionCable/Connection/Assertions.html
index 933ea80e4c..6b10ec5528 100644
--- a/src/classes/ActionCable/Connection/Assertions.html
+++ b/src/classes/ActionCable/Connection/Assertions.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 28
- def assert_reject_connection(&block)
- assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
- end
+def assert_reject_connection(&block)
+ assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization.html b/src/classes/ActionCable/Connection/Authorization.html
index feb855aa9e..baf85a37b3 100644
--- a/src/classes/ActionCable/Connection/Authorization.html
+++ b/src/classes/ActionCable/Connection/Authorization.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -97,12 +97,12 @@
# File actioncable/lib/action_cable/connection/authorization.rb, line 12
- def reject_unauthorized_connection
- logger.error "An unauthorized connection attempt was rejected"
- raise UnauthorizedError
- end
+def reject_unauthorized_connection
+ logger.error "An unauthorized connection attempt was rejected"
+ raise UnauthorizedError
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
index b63b282b0b..ff36299a28 100644
--- a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
+++ b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/Base.html b/src/classes/ActionCable/Connection/Base.html
index 36a2f1e1bb..ea0d62911f 100644
--- a/src/classes/ActionCable/Connection/Base.html
+++ b/src/classes/ActionCable/Connection/Base.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -255,21 +255,21 @@
# File actioncable/lib/action_cable/connection/base.rb, line 67
- def initialize(server, env, coder: ActiveSupport::JSON)
- @server, @env, @coder = server, env, coder
+def initialize(server, env, coder: ActiveSupport::JSON)
+ @server, @env, @coder = server, env, coder
- @worker_pool = server.worker_pool
- @logger = new_tagged_logger
+ @worker_pool = server.worker_pool
+ @logger = new_tagged_logger
- @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
+ @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
- @_internal_subscriptions = nil
- @started_at = Time.now
- end
+ @_internal_subscriptions = nil
+ @started_at = Time.now
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -304,11 +304,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 147
- def beat
- transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
- end
+def beat
+ transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -339,16 +339,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 120
- def close(reason: nil, reconnect: true)
- transmit(
- type: ActionCable::INTERNAL[:message_types][:disconnect],
- reason: reason,
- reconnect: reconnect
- )
- websocket.close
- end
+def close(reason: nil, reconnect: true)
+ transmit(
+ type: ActionCable::INTERNAL[:message_types][:disconnect],
+ reason: reason,
+ reconnect: reconnect
+ )
+ websocket.close
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -379,13 +379,13 @@
# File actioncable/lib/action_cable/connection/base.rb, line 109
- def handle_channel_command(payload)
- run_callbacks :command do
- subscriptions.execute_command payload
- end
- end
+def handle_channel_command(payload)
+ run_callbacks :command do
+ subscriptions.execute_command payload
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -416,11 +416,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 131
- def send_async(method, *arguments)
- worker_pool.async_invoke(self, method, *arguments)
- end
+def send_async(method, *arguments)
+ worker_pool.async_invoke(self, method, *arguments)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -451,16 +451,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 138
- def statistics
- {
- identifier: connection_identifier,
- started_at: @started_at,
- subscriptions: subscriptions.identifiers,
- request_id: @env["action_dispatch.request_id"]
- }
- end
+def statistics
+ {
+ identifier: connection_identifier,
+ started_at: @started_at,
+ subscriptions: subscriptions.identifiers,
+ request_id: @env["action_dispatch.request_id"]
+ }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -494,11 +494,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 187
- def cookies # :doc:
- request.cookie_jar
- end
+def cookies # :doc:
+ request.cookie_jar
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -529,14 +529,14 @@
# File actioncable/lib/action_cable/connection/base.rb, line 178
- def request # :doc:
- @request ||= begin
- environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
- ActionDispatch::Request.new(environment || env)
- end
- end
+def request # :doc:
+ @request ||= begin
+ environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
+ ActionDispatch::Request.new(environment || env)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Callbacks.html b/src/classes/ActionCable/Connection/Callbacks.html
index 818958bf81..d6504ca284 100644
--- a/src/classes/ActionCable/Connection/Callbacks.html
+++ b/src/classes/ActionCable/Connection/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
index 933056a029..6376d7195b 100644
--- a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,11 +90,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 47
- def after_command(*methods, &block)
- set_callback(:command, :after, *methods, &block)
- end
+def after_command(*methods, &block)
+ set_callback(:command, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -125,11 +125,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 51
- def around_command(*methods, &block)
- set_callback(:command, :around, *methods, &block)
- end
+def around_command(*methods, &block)
+ set_callback(:command, :around, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -160,11 +160,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 43
- def before_command(*methods, &block)
- set_callback(:command, :before, *methods, &block)
- end
+def before_command(*methods, &block)
+ set_callback(:command, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification.html b/src/classes/ActionCable/Connection/Identification.html
index f3dcea9bfc..063ca88999 100644
--- a/src/classes/ActionCable/Connection/Identification.html
+++ b/src/classes/ActionCable/Connection/Identification.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,15 +95,15 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 29
- def connection_identifier
- unless defined? @connection_identifier
- @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
- end
+def connection_identifier
+ unless defined? @connection_identifier
+ @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
+ end
- @connection_identifier
- end
+ @connection_identifier
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification/ClassMethods.html b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
index 324ded31f5..a3395ef8a3 100644
--- a/src/classes/ActionCable/Connection/Identification/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -84,12 +84,12 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 21
- def identified_by(*identifiers)
- Array(identifiers).each { |identifier| attr_accessor identifier }
- self.identifiers += identifiers
- end
+def identified_by(*identifiers)
+ Array(identifiers).each { |identifier| attr_accessor identifier }
+ self.identifiers += identifiers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/InternalChannel.html b/src/classes/ActionCable/Connection/InternalChannel.html
index 9b0144f690..cfdccceaf4 100644
--- a/src/classes/ActionCable/Connection/InternalChannel.html
+++ b/src/classes/ActionCable/Connection/InternalChannel.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
index 7167904452..bf0c696d62 100644
--- a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
+++ b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 15
- def initialize(name)
- super "Unable to determine the connection to test from #{name}. " +
- "You'll need to specify it using `tests YourConnection` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the connection to test from #{name}. " +
+ "You'll need to specify it using `tests YourConnection` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/StreamEventLoop.html b/src/classes/ActionCable/Connection/StreamEventLoop.html
index 2b71a213e3..f7c49354ef 100644
--- a/src/classes/ActionCable/Connection/StreamEventLoop.html
+++ b/src/classes/ActionCable/Connection/StreamEventLoop.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -111,16 +111,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 10
- def initialize
- @nio = @executor = @thread = nil
- @map = {}
- @stopping = false
- @todo = Queue.new
-
- @spawn_mutex = Mutex.new
- end
+def initialize
+ @nio = @executor = @thread = nil
+ @map = {}
+ @stopping = false
+ @todo = Queue.new
+
+ @spawn_mutex = Mutex.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -155,15 +155,15 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 30
- def attach(io, stream)
- @todo << lambda do
- @map[io] = @nio.register(io, :r)
- @map[io].value = stream
- end
- wakeup
- end
+def attach(io, stream)
+ @todo << lambda do
+ @map[io] = @nio.register(io, :r)
+ @map[io].value = stream
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -194,16 +194,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 38
- def detach(io, stream)
- @todo << lambda do
- @nio.deregister io
- @map.delete io
- io.close
- end
- wakeup
- end
+def detach(io, stream)
+ @todo << lambda do
+ @nio.deregister io
+ @map.delete io
+ io.close
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -234,14 +234,14 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 23
- def post(task = nil, &block)
- task ||= block
+def post(task = nil, &block)
+ task ||= block
- spawn
- @executor << task
- end
+ spawn
+ @executor << task
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,12 +272,12 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 56
- def stop
- @stopping = true
- wakeup if @nio
- end
+def stop
+ @stopping = true
+ wakeup if @nio
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -308,11 +308,11 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 19
- def timer(interval, &block)
- Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
- end
+def timer(interval, &block)
+ Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -343,16 +343,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 47
- def writes_pending(io)
- @todo << lambda do
- if monitor = @map[io]
- monitor.interests = :rw
- end
- end
- wakeup
- end
+def writes_pending(io)
+ @todo << lambda do
+ if monitor = @map[io]
+ monitor.interests = :rw
+ end
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
index f4d5cacc63..99731855fb 100644
--- a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
+++ b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -121,12 +121,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 16
- def initialize(logger, tags:)
- @logger = logger
- @tags = tags.flatten
- end
+def initialize(logger, tags:)
+ @logger = logger
+ @tags = tags.flatten
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -161,12 +161,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 21
- def add_tags(*tags)
- @tags += tags.flatten
- @tags = @tags.uniq
- end
+def add_tags(*tags)
+ @tags += tags.flatten
+ @tags = @tags.uniq
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -197,16 +197,16 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 26
- def tag(logger, &block)
- if logger.respond_to?(:tagged)
- current_tags = tags - logger.formatter.current_tags
- logger.tagged(*current_tags, &block)
- else
- yield
- end
- end
+def tag(logger, &block)
+ if logger.respond_to?(:tagged)
+ current_tags = tags - logger.formatter.current_tags
+ logger.tagged(*current_tags, &block)
+ else
+ yield
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,11 +240,11 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 42
- def log(type, message, &block) # :doc:
- tag(@logger) { @logger.send type, message, &block }
- end
+def log(type, message, &block) # :doc:
+ tag(@logger) { @logger.send type, message, &block }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase.html b/src/classes/ActionCable/Connection/TestCase.html
index 948378e491..39bc5cb056 100644
--- a/src/classes/ActionCable/Connection/TestCase.html
+++ b/src/classes/ActionCable/Connection/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior.html b/src/classes/ActionCable/Connection/TestCase/Behavior.html
index b87870becd..4ee0debbea 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -163,19 +163,19 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 192
- def connect(path = ActionCable.server.config.mount_path, **request_params)
- path ||= DEFAULT_PATH
+def connect(path = ActionCable.server.config.mount_path, **request_params)
+ path ||= DEFAULT_PATH
- connection = self.class.connection_class.allocate
- connection.singleton_class.include(TestConnection)
- connection.send(:initialize, build_test_request(path, **request_params))
- connection.connect if connection.respond_to?(:connect)
+ connection = self.class.connection_class.allocate
+ connection.singleton_class.include(TestConnection)
+ connection.send(:initialize, build_test_request(path, **request_params))
+ connection.connect if connection.respond_to?(:connect)
- # Only set instance variable if connected successfully
- @connection = connection
- end
+ # Only set instance variable if connected successfully
+ @connection = connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -206,11 +206,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 212
- def cookies
- @cookie_jar ||= TestCookieJar.new
- end
+def cookies
+ @cookie_jar ||= TestCookieJar.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -241,14 +241,14 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 205
- def disconnect
- raise "Must be connected!" if connection.nil?
+def disconnect
+ raise "Must be connected!" if connection.nil?
- connection.disconnect if connection.respond_to?(:disconnect)
- @connection = nil
- end
+ connection.disconnect if connection.respond_to?(:disconnect)
+ @connection = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
index 63444f4b27..99fc0e3f6f 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 167
- def connection_class
- if connection = self._connection_class
- connection
- else
- tests determine_default_connection(name)
- end
- end
+def connection_class
+ if connection = self._connection_class
+ connection
+ else
+ tests determine_default_connection(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 175
- def determine_default_connection(name)
- connection = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Connection::Base
- end
- raise NonInferrableConnectionError.new(name) if connection.nil?
- connection
- end
+def determine_default_connection(name)
+ connection = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Connection::Base
+ end
+ raise NonInferrableConnectionError.new(name) if connection.nil?
+ connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/channel/callbacks.rb, line 65
- def before_unsubscribe(*methods, &block)
- set_callback(:unsubscribe, :before, *methods, &block)
- end+ Ruby on Rails 8.1.0.rc1
@@ -25,7 +25,7 @@
Action Cable Channel Stub
-
Action Cable Channel Stub
-Stub stream_from to track streams for the channel. Add public aliases for subscription_confirmation_sent? and subscription_rejected?.
Stub stream_from to track streams for the channel. Add public aliases for subscription_confirmation_sent? and subscription_rejected?.
# File actioncable/lib/action_cable/channel/test_case.rb, line 25
- def confirmed?
- subscription_confirmation_sent?
- end
+def confirmed?
+ subscription_confirmation_sent?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -149,11 +149,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 29
- def rejected?
- subscription_rejected?
- end
+def rejected?
+ subscription_rejected?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -188,9 +188,9 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 46
- def start_periodic_timers; end
+def start_periodic_timers; end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -221,11 +221,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 37
- def stop_all_streams
- @_streams = []
- end
+def stop_all_streams
+ @_streams = []
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -281,11 +281,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 33
- def stream_from(broadcasting, *)
- streams << broadcasting
- end
+def stream_from(broadcasting, *)
+ streams << broadcasting
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -316,11 +316,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 41
- def streams
- @_streams ||= []
- end
+def streams
+ @_streams ||= []
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/ConnectionStub.html b/src/classes/ActionCable/Channel/ConnectionStub.html
index 62c52b567f..0fdc0d8690 100644
--- a/src/classes/ActionCable/Channel/ConnectionStub.html
+++ b/src/classes/ActionCable/Channel/ConnectionStub.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -141,20 +141,20 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 55
- def initialize(identifiers = {})
- @server = ActionCable.server
- @transmissions = []
-
- identifiers.each do |identifier, val|
- define_singleton_method(identifier) { val }
- end
-
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @identifiers = identifiers.keys
- @logger = ActiveSupport::TaggedLogging.new ActiveSupport::Logger.new(StringIO.new)
- end
+def initialize(identifiers = {})
+ @server = ActionCable.server
+ @transmissions = []
+
+ identifiers.each do |identifier, val|
+ define_singleton_method(identifier) { val }
+ end
+
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @identifiers = identifiers.keys
+ @logger = ActiveSupport::TaggedLogging.new ActiveSupport::Logger.new(StringIO.new)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -189,11 +189,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 72
- def connection_identifier
- @connection_identifier ||= connection_gid(identifiers.filter_map { |id| send(id.to_sym) if id })
- end
+def connection_identifier
+ @connection_identifier ||= connection_gid(identifiers.filter_map { |id| send(id.to_sym) if id })
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -224,11 +224,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 68
- def transmit(cable_message)
- transmissions << cable_message.with_indifferent_access
- end
+def transmit(cable_message)
+ transmissions << cable_message.with_indifferent_access
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Naming.html b/src/classes/ActionCable/Channel/Naming.html
index 84bfc0232c..db2aa18589 100644
--- a/src/classes/ActionCable/Channel/Naming.html
+++ b/src/classes/ActionCable/Channel/Naming.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,11 +95,11 @@
# File actioncable/lib/action_cable/channel/naming.rb, line 23
- def channel_name
- self.class.channel_name
- end
+def channel_name
+ self.class.channel_name
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Naming/ClassMethods.html b/src/classes/ActionCable/Channel/Naming/ClassMethods.html
index b847309f12..e99c0744a7 100644
--- a/src/classes/ActionCable/Channel/Naming/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Naming/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -66,7 +66,7 @@
- Returns the name of the channel, underscored, without the Channel ending. If the channel is in a namespace, then the namespaces are represented by single colon separators in the channel name.
+ Returns the name of the channel, underscored, without the Channel ending. If the channel is in a namespace, then the namespaces are represented by single colon separators in the channel name.
ChatChannel.channel_name # => 'chat'
Chats::AppearancesChannel.channel_name # => 'chats:appearances'
@@ -87,11 +87,11 @@
# File actioncable/lib/action_cable/channel/naming.rb, line 18
- def channel_name
- @channel_name ||= name.delete_suffix("Channel").gsub("::", ":").underscore
- end
+def channel_name
+ @channel_name ||= name.delete_suffix("Channel").gsub("::", ":").underscore
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/NonInferrableChannelError.html b/src/classes/ActionCable/Channel/NonInferrableChannelError.html
index 034c36b135..1eac81cbd2 100644
--- a/src/classes/ActionCable/Channel/NonInferrableChannelError.html
+++ b/src/classes/ActionCable/Channel/NonInferrableChannelError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 13
- def initialize(name)
- super "Unable to determine the channel to test from #{name}. " +
- "You'll need to specify it using `tests YourChannel` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the channel to test from #{name}. " +
+ "You'll need to specify it using `tests YourChannel` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/PeriodicTimers.html b/src/classes/ActionCable/Channel/PeriodicTimers.html
index 88facef675..561da6e0dd 100644
--- a/src/classes/ActionCable/Channel/PeriodicTimers.html
+++ b/src/classes/ActionCable/Channel/PeriodicTimers.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html b/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
index 233865e2e3..a694f6de16 100644
--- a/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -91,30 +91,30 @@
# File actioncable/lib/action_cable/channel/periodic_timers.rb, line 31
- def periodically(callback_or_method_name = nil, every:, &block)
- callback =
- if block_given?
- raise ArgumentError, "Pass a block or provide a callback arg, not both" if callback_or_method_name
- block
- else
- case callback_or_method_name
- when Proc
- callback_or_method_name
- when Symbol
- -> { __send__ callback_or_method_name }
- else
- raise ArgumentError, "Expected a Symbol method name or a Proc, got #{callback_or_method_name.inspect}"
- end
- end
-
- unless every.kind_of?(Numeric) && every > 0
- raise ArgumentError, "Expected every: to be a positive number of seconds, got #{every.inspect}"
- end
-
- self.periodic_timers += [[ callback, every: every ]]
- end
+def periodically(callback_or_method_name = nil, every:, &block)
+ callback =
+ if block_given?
+ raise ArgumentError, "Pass a block or provide a callback arg, not both" if callback_or_method_name
+ block
+ else
+ case callback_or_method_name
+ when Proc
+ callback_or_method_name
+ when Symbol
+ -> { __send__ callback_or_method_name }
+ else
+ raise ArgumentError, "Expected a Symbol method name or a Proc, got #{callback_or_method_name.inspect}"
+ end
+ end
+
+ unless every.kind_of?(Numeric) && every > 0
+ raise ArgumentError, "Expected every: to be a positive number of seconds, got #{every.inspect}"
+ end
+
+ self.periodic_timers += [[ callback, every: every ]]
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Streams.html b/src/classes/ActionCable/Channel/Streams.html
index 0967feb616..a2e686a3e9 100644
--- a/src/classes/ActionCable/Channel/Streams.html
+++ b/src/classes/ActionCable/Channel/Streams.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -167,14 +167,14 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 137
- def stop_all_streams
- streams.each do |broadcasting, callback|
- pubsub.unsubscribe broadcasting, callback
- logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
- end.clear
- end
+def stop_all_streams
+ streams.each do |broadcasting, callback|
+ pubsub.unsubscribe broadcasting, callback
+ logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
+ end.clear
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -205,11 +205,11 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 132
- def stop_stream_for(model)
- stop_stream_from(broadcasting_for(model))
- end
+def stop_stream_for(model)
+ stop_stream_from(broadcasting_for(model))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,15 +240,15 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 123
- def stop_stream_from(broadcasting)
- callback = streams.delete(broadcasting)
- if callback
- pubsub.unsubscribe(broadcasting, callback)
- logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
- end
- end
+def stop_stream_from(broadcasting)
+ callback = streams.delete(broadcasting)
+ if callback
+ pubsub.unsubscribe(broadcasting, callback)
+ logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -281,11 +281,11 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 118
- def stream_for(broadcastables, callback = nil, coder: nil, &block)
- stream_from(broadcasting_for(broadcastables), callback || block, coder: coder)
- end
+def stream_for(broadcastables, callback = nil, coder: nil, &block)
+ stream_from(broadcasting_for(broadcastables), callback || block, coder: coder)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -316,28 +316,28 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 90
- def stream_from(broadcasting, callback = nil, coder: nil, &block)
- return if unsubscribed?
-
- broadcasting = String(broadcasting)
-
- # Don't send the confirmation until pubsub#subscribe is successful
- defer_subscription_confirmation!
-
- # Build a stream handler by wrapping the user-provided callback with a decoder
- # or defaulting to a JSON-decoding retransmitter.
- handler = worker_pool_stream_handler(broadcasting, callback || block, coder: coder)
- streams[broadcasting] = handler
-
- connection.server.event_loop.post do
- pubsub.subscribe(broadcasting, handler, lambda do
- ensure_confirmation_sent
- logger.info "#{self.class.name} is streaming from #{broadcasting}"
- end)
- end
- end
+def stream_from(broadcasting, callback = nil, coder: nil, &block)
+ return if unsubscribed?
+
+ broadcasting = String(broadcasting)
+
+ # Don't send the confirmation until pubsub#subscribe is successful
+ defer_subscription_confirmation!
+
+ # Build a stream handler by wrapping the user-provided callback with a decoder
+ # or defaulting to a JSON-decoding retransmitter.
+ handler = worker_pool_stream_handler(broadcasting, callback || block, coder: coder)
+ streams[broadcasting] = handler
+
+ connection.server.event_loop.post do
+ pubsub.subscribe(broadcasting, handler, lambda do
+ ensure_confirmation_sent
+ logger.info "#{self.class.name} is streaming from #{broadcasting}"
+ end)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -368,15 +368,15 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 146
- def stream_or_reject_for(model)
- if model
- stream_for model
- else
- reject
- end
- end
+def stream_or_reject_for(model)
+ if model
+ stream_for model
+ else
+ reject
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase.html b/src/classes/ActionCable/Channel/TestCase.html
index 08fb28c0cf..6317ff44d0 100644
--- a/src/classes/ActionCable/Channel/TestCase.html
+++ b/src/classes/ActionCable/Channel/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior.html b/src/classes/ActionCable/Channel/TestCase/Behavior.html
index b5f3a5cbb7..5a8ea0fd78 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -196,11 +196,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 282
- def assert_broadcast_on(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcast_on(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -231,11 +231,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 278
- def assert_broadcasts(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcasts(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,11 +272,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 326
- def assert_has_no_stream(stream)
- assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
- end
+def assert_has_no_stream(stream)
+ assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -313,11 +313,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 337
- def assert_has_no_stream_for(object)
- assert_has_no_stream(broadcasting_for(object))
- end
+def assert_has_no_stream_for(object)
+ assert_has_no_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -354,11 +354,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 304
- def assert_has_stream(stream)
- assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
- end
+def assert_has_stream(stream)
+ assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -395,11 +395,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 315
- def assert_has_stream_for(object)
- assert_has_stream(broadcasting_for(object))
- end
+def assert_has_stream_for(object)
+ assert_has_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -436,11 +436,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 293
- def assert_no_streams
- assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
- end
+def assert_no_streams
+ assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -473,12 +473,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 266
- def perform(action, data = {})
- check_subscribed!
- subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
- end
+def perform(action, data = {})
+ check_subscribed!
+ subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -516,11 +516,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 243
- def stub_connection(identifiers = {})
- @connection = ConnectionStub.new(identifiers)
- end
+def stub_connection(identifiers = {})
+ @connection = ConnectionStub.new(identifiers)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -551,15 +551,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 249
- def subscribe(params = {})
- @connection ||= stub_connection
- @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
- @subscription.singleton_class.include(ChannelStub)
- @subscription.subscribe_to_channel
- @subscription
- end
+def subscribe(params = {})
+ @connection ||= stub_connection
+ @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
+ @subscription.singleton_class.include(ChannelStub)
+ @subscription.subscribe_to_channel
+ @subscription
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -590,12 +590,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 272
- def transmissions
- # Return only directly sent message (via #transmit)
- connection.transmissions.filter_map { |data| data["message"] }
- end
+def transmissions
+ # Return only directly sent message (via #transmit)
+ connection.transmissions.filter_map { |data| data["message"] }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -626,12 +626,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 258
- def unsubscribe
- check_subscribed!
- subscription.unsubscribe_from_channel
- end
+def unsubscribe
+ check_subscribed!
+ subscription.unsubscribe_from_channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
index 48ea87f130..57efb4cdac 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 219
- def channel_class
- if channel = self._channel_class
- channel
- else
- tests determine_default_channel(name)
- end
- end
+def channel_class
+ if channel = self._channel_class
+ channel
+ else
+ tests determine_default_channel(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 227
- def determine_default_channel(name)
- channel = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Channel::Base
- end
- raise NonInferrableChannelError.new(name) if channel.nil?
- channel
- end
+def determine_default_channel(name)
+ channel = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Channel::Base
+ end
+ raise NonInferrableChannelError.new(name) if channel.nil?
+ channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 208
- def tests(channel)
- case channel
- when String, Symbol
- self._channel_class = channel.to_s.camelize.constantize
- when Module
- self._channel_class = channel
- else
- raise NonInferrableChannelError.new(channel)
- end
- end
+def tests(channel)
+ case channel
+ when String, Symbol
+ self._channel_class = channel.to_s.camelize.constantize
+ when Module
+ self._channel_class = channel
+ else
+ raise NonInferrableChannelError.new(channel)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection.html b/src/classes/ActionCable/Connection.html
index f832214f0e..7889c75284 100644
--- a/src/classes/ActionCable/Connection.html
+++ b/src/classes/ActionCable/Connection.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Assertions.html b/src/classes/ActionCable/Connection/Assertions.html
index 933ea80e4c..6b10ec5528 100644
--- a/src/classes/ActionCable/Connection/Assertions.html
+++ b/src/classes/ActionCable/Connection/Assertions.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 28
- def assert_reject_connection(&block)
- assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
- end
+def assert_reject_connection(&block)
+ assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization.html b/src/classes/ActionCable/Connection/Authorization.html
index feb855aa9e..baf85a37b3 100644
--- a/src/classes/ActionCable/Connection/Authorization.html
+++ b/src/classes/ActionCable/Connection/Authorization.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -97,12 +97,12 @@
# File actioncable/lib/action_cable/connection/authorization.rb, line 12
- def reject_unauthorized_connection
- logger.error "An unauthorized connection attempt was rejected"
- raise UnauthorizedError
- end
+def reject_unauthorized_connection
+ logger.error "An unauthorized connection attempt was rejected"
+ raise UnauthorizedError
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
index b63b282b0b..ff36299a28 100644
--- a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
+++ b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/Base.html b/src/classes/ActionCable/Connection/Base.html
index 36a2f1e1bb..ea0d62911f 100644
--- a/src/classes/ActionCable/Connection/Base.html
+++ b/src/classes/ActionCable/Connection/Base.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -255,21 +255,21 @@
# File actioncable/lib/action_cable/connection/base.rb, line 67
- def initialize(server, env, coder: ActiveSupport::JSON)
- @server, @env, @coder = server, env, coder
+def initialize(server, env, coder: ActiveSupport::JSON)
+ @server, @env, @coder = server, env, coder
- @worker_pool = server.worker_pool
- @logger = new_tagged_logger
+ @worker_pool = server.worker_pool
+ @logger = new_tagged_logger
- @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
+ @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
- @_internal_subscriptions = nil
- @started_at = Time.now
- end
+ @_internal_subscriptions = nil
+ @started_at = Time.now
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -304,11 +304,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 147
- def beat
- transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
- end
+def beat
+ transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -339,16 +339,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 120
- def close(reason: nil, reconnect: true)
- transmit(
- type: ActionCable::INTERNAL[:message_types][:disconnect],
- reason: reason,
- reconnect: reconnect
- )
- websocket.close
- end
+def close(reason: nil, reconnect: true)
+ transmit(
+ type: ActionCable::INTERNAL[:message_types][:disconnect],
+ reason: reason,
+ reconnect: reconnect
+ )
+ websocket.close
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -379,13 +379,13 @@
# File actioncable/lib/action_cable/connection/base.rb, line 109
- def handle_channel_command(payload)
- run_callbacks :command do
- subscriptions.execute_command payload
- end
- end
+def handle_channel_command(payload)
+ run_callbacks :command do
+ subscriptions.execute_command payload
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -416,11 +416,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 131
- def send_async(method, *arguments)
- worker_pool.async_invoke(self, method, *arguments)
- end
+def send_async(method, *arguments)
+ worker_pool.async_invoke(self, method, *arguments)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -451,16 +451,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 138
- def statistics
- {
- identifier: connection_identifier,
- started_at: @started_at,
- subscriptions: subscriptions.identifiers,
- request_id: @env["action_dispatch.request_id"]
- }
- end
+def statistics
+ {
+ identifier: connection_identifier,
+ started_at: @started_at,
+ subscriptions: subscriptions.identifiers,
+ request_id: @env["action_dispatch.request_id"]
+ }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -494,11 +494,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 187
- def cookies # :doc:
- request.cookie_jar
- end
+def cookies # :doc:
+ request.cookie_jar
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -529,14 +529,14 @@
# File actioncable/lib/action_cable/connection/base.rb, line 178
- def request # :doc:
- @request ||= begin
- environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
- ActionDispatch::Request.new(environment || env)
- end
- end
+def request # :doc:
+ @request ||= begin
+ environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
+ ActionDispatch::Request.new(environment || env)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Callbacks.html b/src/classes/ActionCable/Connection/Callbacks.html
index 818958bf81..d6504ca284 100644
--- a/src/classes/ActionCable/Connection/Callbacks.html
+++ b/src/classes/ActionCable/Connection/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
index 933056a029..6376d7195b 100644
--- a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,11 +90,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 47
- def after_command(*methods, &block)
- set_callback(:command, :after, *methods, &block)
- end
+def after_command(*methods, &block)
+ set_callback(:command, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -125,11 +125,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 51
- def around_command(*methods, &block)
- set_callback(:command, :around, *methods, &block)
- end
+def around_command(*methods, &block)
+ set_callback(:command, :around, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -160,11 +160,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 43
- def before_command(*methods, &block)
- set_callback(:command, :before, *methods, &block)
- end
+def before_command(*methods, &block)
+ set_callback(:command, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification.html b/src/classes/ActionCable/Connection/Identification.html
index f3dcea9bfc..063ca88999 100644
--- a/src/classes/ActionCable/Connection/Identification.html
+++ b/src/classes/ActionCable/Connection/Identification.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,15 +95,15 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 29
- def connection_identifier
- unless defined? @connection_identifier
- @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
- end
+def connection_identifier
+ unless defined? @connection_identifier
+ @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
+ end
- @connection_identifier
- end
+ @connection_identifier
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification/ClassMethods.html b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
index 324ded31f5..a3395ef8a3 100644
--- a/src/classes/ActionCable/Connection/Identification/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -84,12 +84,12 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 21
- def identified_by(*identifiers)
- Array(identifiers).each { |identifier| attr_accessor identifier }
- self.identifiers += identifiers
- end
+def identified_by(*identifiers)
+ Array(identifiers).each { |identifier| attr_accessor identifier }
+ self.identifiers += identifiers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/InternalChannel.html b/src/classes/ActionCable/Connection/InternalChannel.html
index 9b0144f690..cfdccceaf4 100644
--- a/src/classes/ActionCable/Connection/InternalChannel.html
+++ b/src/classes/ActionCable/Connection/InternalChannel.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
index 7167904452..bf0c696d62 100644
--- a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
+++ b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 15
- def initialize(name)
- super "Unable to determine the connection to test from #{name}. " +
- "You'll need to specify it using `tests YourConnection` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the connection to test from #{name}. " +
+ "You'll need to specify it using `tests YourConnection` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/StreamEventLoop.html b/src/classes/ActionCable/Connection/StreamEventLoop.html
index 2b71a213e3..f7c49354ef 100644
--- a/src/classes/ActionCable/Connection/StreamEventLoop.html
+++ b/src/classes/ActionCable/Connection/StreamEventLoop.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -111,16 +111,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 10
- def initialize
- @nio = @executor = @thread = nil
- @map = {}
- @stopping = false
- @todo = Queue.new
-
- @spawn_mutex = Mutex.new
- end
+def initialize
+ @nio = @executor = @thread = nil
+ @map = {}
+ @stopping = false
+ @todo = Queue.new
+
+ @spawn_mutex = Mutex.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -155,15 +155,15 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 30
- def attach(io, stream)
- @todo << lambda do
- @map[io] = @nio.register(io, :r)
- @map[io].value = stream
- end
- wakeup
- end
+def attach(io, stream)
+ @todo << lambda do
+ @map[io] = @nio.register(io, :r)
+ @map[io].value = stream
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -194,16 +194,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 38
- def detach(io, stream)
- @todo << lambda do
- @nio.deregister io
- @map.delete io
- io.close
- end
- wakeup
- end
+def detach(io, stream)
+ @todo << lambda do
+ @nio.deregister io
+ @map.delete io
+ io.close
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -234,14 +234,14 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 23
- def post(task = nil, &block)
- task ||= block
+def post(task = nil, &block)
+ task ||= block
- spawn
- @executor << task
- end
+ spawn
+ @executor << task
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,12 +272,12 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 56
- def stop
- @stopping = true
- wakeup if @nio
- end
+def stop
+ @stopping = true
+ wakeup if @nio
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -308,11 +308,11 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 19
- def timer(interval, &block)
- Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
- end
+def timer(interval, &block)
+ Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -343,16 +343,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 47
- def writes_pending(io)
- @todo << lambda do
- if monitor = @map[io]
- monitor.interests = :rw
- end
- end
- wakeup
- end
+def writes_pending(io)
+ @todo << lambda do
+ if monitor = @map[io]
+ monitor.interests = :rw
+ end
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
index f4d5cacc63..99731855fb 100644
--- a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
+++ b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -121,12 +121,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 16
- def initialize(logger, tags:)
- @logger = logger
- @tags = tags.flatten
- end
+def initialize(logger, tags:)
+ @logger = logger
+ @tags = tags.flatten
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -161,12 +161,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 21
- def add_tags(*tags)
- @tags += tags.flatten
- @tags = @tags.uniq
- end
+def add_tags(*tags)
+ @tags += tags.flatten
+ @tags = @tags.uniq
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -197,16 +197,16 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 26
- def tag(logger, &block)
- if logger.respond_to?(:tagged)
- current_tags = tags - logger.formatter.current_tags
- logger.tagged(*current_tags, &block)
- else
- yield
- end
- end
+def tag(logger, &block)
+ if logger.respond_to?(:tagged)
+ current_tags = tags - logger.formatter.current_tags
+ logger.tagged(*current_tags, &block)
+ else
+ yield
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,11 +240,11 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 42
- def log(type, message, &block) # :doc:
- tag(@logger) { @logger.send type, message, &block }
- end
+def log(type, message, &block) # :doc:
+ tag(@logger) { @logger.send type, message, &block }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase.html b/src/classes/ActionCable/Connection/TestCase.html
index 948378e491..39bc5cb056 100644
--- a/src/classes/ActionCable/Connection/TestCase.html
+++ b/src/classes/ActionCable/Connection/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior.html b/src/classes/ActionCable/Connection/TestCase/Behavior.html
index b87870becd..4ee0debbea 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -163,19 +163,19 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 192
- def connect(path = ActionCable.server.config.mount_path, **request_params)
- path ||= DEFAULT_PATH
+def connect(path = ActionCable.server.config.mount_path, **request_params)
+ path ||= DEFAULT_PATH
- connection = self.class.connection_class.allocate
- connection.singleton_class.include(TestConnection)
- connection.send(:initialize, build_test_request(path, **request_params))
- connection.connect if connection.respond_to?(:connect)
+ connection = self.class.connection_class.allocate
+ connection.singleton_class.include(TestConnection)
+ connection.send(:initialize, build_test_request(path, **request_params))
+ connection.connect if connection.respond_to?(:connect)
- # Only set instance variable if connected successfully
- @connection = connection
- end
+ # Only set instance variable if connected successfully
+ @connection = connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -206,11 +206,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 212
- def cookies
- @cookie_jar ||= TestCookieJar.new
- end
+def cookies
+ @cookie_jar ||= TestCookieJar.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -241,14 +241,14 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 205
- def disconnect
- raise "Must be connected!" if connection.nil?
+def disconnect
+ raise "Must be connected!" if connection.nil?
- connection.disconnect if connection.respond_to?(:disconnect)
- @connection = nil
- end
+ connection.disconnect if connection.respond_to?(:disconnect)
+ @connection = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
index 63444f4b27..99fc0e3f6f 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 167
- def connection_class
- if connection = self._connection_class
- connection
- else
- tests determine_default_connection(name)
- end
- end
+def connection_class
+ if connection = self._connection_class
+ connection
+ else
+ tests determine_default_connection(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 175
- def determine_default_connection(name)
- connection = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Connection::Base
- end
- raise NonInferrableConnectionError.new(name) if connection.nil?
- connection
- end
+def determine_default_connection(name)
+ connection = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Connection::Base
+ end
+ raise NonInferrableConnectionError.new(name) if connection.nil?
+ connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 25
- def confirmed?
- subscription_confirmation_sent?
- end# File actioncable/lib/action_cable/channel/test_case.rb, line 29
- def rejected?
- subscription_rejected?
- end
+def rejected?
+ subscription_rejected?
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -188,9 +188,9 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 46
- def start_periodic_timers; end
+def start_periodic_timers; end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -221,11 +221,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 37
- def stop_all_streams
- @_streams = []
- end
+def stop_all_streams
+ @_streams = []
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -281,11 +281,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 33
- def stream_from(broadcasting, *)
- streams << broadcasting
- end
+def stream_from(broadcasting, *)
+ streams << broadcasting
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -316,11 +316,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 41
- def streams
- @_streams ||= []
- end
+def streams
+ @_streams ||= []
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/ConnectionStub.html b/src/classes/ActionCable/Channel/ConnectionStub.html
index 62c52b567f..0fdc0d8690 100644
--- a/src/classes/ActionCable/Channel/ConnectionStub.html
+++ b/src/classes/ActionCable/Channel/ConnectionStub.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -141,20 +141,20 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 55
- def initialize(identifiers = {})
- @server = ActionCable.server
- @transmissions = []
-
- identifiers.each do |identifier, val|
- define_singleton_method(identifier) { val }
- end
-
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @identifiers = identifiers.keys
- @logger = ActiveSupport::TaggedLogging.new ActiveSupport::Logger.new(StringIO.new)
- end
+def initialize(identifiers = {})
+ @server = ActionCable.server
+ @transmissions = []
+
+ identifiers.each do |identifier, val|
+ define_singleton_method(identifier) { val }
+ end
+
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @identifiers = identifiers.keys
+ @logger = ActiveSupport::TaggedLogging.new ActiveSupport::Logger.new(StringIO.new)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -189,11 +189,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 72
- def connection_identifier
- @connection_identifier ||= connection_gid(identifiers.filter_map { |id| send(id.to_sym) if id })
- end
+def connection_identifier
+ @connection_identifier ||= connection_gid(identifiers.filter_map { |id| send(id.to_sym) if id })
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -224,11 +224,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 68
- def transmit(cable_message)
- transmissions << cable_message.with_indifferent_access
- end
+def transmit(cable_message)
+ transmissions << cable_message.with_indifferent_access
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Naming.html b/src/classes/ActionCable/Channel/Naming.html
index 84bfc0232c..db2aa18589 100644
--- a/src/classes/ActionCable/Channel/Naming.html
+++ b/src/classes/ActionCable/Channel/Naming.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,11 +95,11 @@
# File actioncable/lib/action_cable/channel/naming.rb, line 23
- def channel_name
- self.class.channel_name
- end
+def channel_name
+ self.class.channel_name
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Naming/ClassMethods.html b/src/classes/ActionCable/Channel/Naming/ClassMethods.html
index b847309f12..e99c0744a7 100644
--- a/src/classes/ActionCable/Channel/Naming/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Naming/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -66,7 +66,7 @@
- Returns the name of the channel, underscored, without the Channel ending. If the channel is in a namespace, then the namespaces are represented by single colon separators in the channel name.
+ Returns the name of the channel, underscored, without the Channel ending. If the channel is in a namespace, then the namespaces are represented by single colon separators in the channel name.
ChatChannel.channel_name # => 'chat'
Chats::AppearancesChannel.channel_name # => 'chats:appearances'
@@ -87,11 +87,11 @@
# File actioncable/lib/action_cable/channel/naming.rb, line 18
- def channel_name
- @channel_name ||= name.delete_suffix("Channel").gsub("::", ":").underscore
- end
+def channel_name
+ @channel_name ||= name.delete_suffix("Channel").gsub("::", ":").underscore
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/NonInferrableChannelError.html b/src/classes/ActionCable/Channel/NonInferrableChannelError.html
index 034c36b135..1eac81cbd2 100644
--- a/src/classes/ActionCable/Channel/NonInferrableChannelError.html
+++ b/src/classes/ActionCable/Channel/NonInferrableChannelError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 13
- def initialize(name)
- super "Unable to determine the channel to test from #{name}. " +
- "You'll need to specify it using `tests YourChannel` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the channel to test from #{name}. " +
+ "You'll need to specify it using `tests YourChannel` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/PeriodicTimers.html b/src/classes/ActionCable/Channel/PeriodicTimers.html
index 88facef675..561da6e0dd 100644
--- a/src/classes/ActionCable/Channel/PeriodicTimers.html
+++ b/src/classes/ActionCable/Channel/PeriodicTimers.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html b/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
index 233865e2e3..a694f6de16 100644
--- a/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -91,30 +91,30 @@
# File actioncable/lib/action_cable/channel/periodic_timers.rb, line 31
- def periodically(callback_or_method_name = nil, every:, &block)
- callback =
- if block_given?
- raise ArgumentError, "Pass a block or provide a callback arg, not both" if callback_or_method_name
- block
- else
- case callback_or_method_name
- when Proc
- callback_or_method_name
- when Symbol
- -> { __send__ callback_or_method_name }
- else
- raise ArgumentError, "Expected a Symbol method name or a Proc, got #{callback_or_method_name.inspect}"
- end
- end
-
- unless every.kind_of?(Numeric) && every > 0
- raise ArgumentError, "Expected every: to be a positive number of seconds, got #{every.inspect}"
- end
-
- self.periodic_timers += [[ callback, every: every ]]
- end
+def periodically(callback_or_method_name = nil, every:, &block)
+ callback =
+ if block_given?
+ raise ArgumentError, "Pass a block or provide a callback arg, not both" if callback_or_method_name
+ block
+ else
+ case callback_or_method_name
+ when Proc
+ callback_or_method_name
+ when Symbol
+ -> { __send__ callback_or_method_name }
+ else
+ raise ArgumentError, "Expected a Symbol method name or a Proc, got #{callback_or_method_name.inspect}"
+ end
+ end
+
+ unless every.kind_of?(Numeric) && every > 0
+ raise ArgumentError, "Expected every: to be a positive number of seconds, got #{every.inspect}"
+ end
+
+ self.periodic_timers += [[ callback, every: every ]]
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Streams.html b/src/classes/ActionCable/Channel/Streams.html
index 0967feb616..a2e686a3e9 100644
--- a/src/classes/ActionCable/Channel/Streams.html
+++ b/src/classes/ActionCable/Channel/Streams.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -167,14 +167,14 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 137
- def stop_all_streams
- streams.each do |broadcasting, callback|
- pubsub.unsubscribe broadcasting, callback
- logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
- end.clear
- end
+def stop_all_streams
+ streams.each do |broadcasting, callback|
+ pubsub.unsubscribe broadcasting, callback
+ logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
+ end.clear
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -205,11 +205,11 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 132
- def stop_stream_for(model)
- stop_stream_from(broadcasting_for(model))
- end
+def stop_stream_for(model)
+ stop_stream_from(broadcasting_for(model))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,15 +240,15 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 123
- def stop_stream_from(broadcasting)
- callback = streams.delete(broadcasting)
- if callback
- pubsub.unsubscribe(broadcasting, callback)
- logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
- end
- end
+def stop_stream_from(broadcasting)
+ callback = streams.delete(broadcasting)
+ if callback
+ pubsub.unsubscribe(broadcasting, callback)
+ logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -281,11 +281,11 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 118
- def stream_for(broadcastables, callback = nil, coder: nil, &block)
- stream_from(broadcasting_for(broadcastables), callback || block, coder: coder)
- end
+def stream_for(broadcastables, callback = nil, coder: nil, &block)
+ stream_from(broadcasting_for(broadcastables), callback || block, coder: coder)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -316,28 +316,28 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 90
- def stream_from(broadcasting, callback = nil, coder: nil, &block)
- return if unsubscribed?
-
- broadcasting = String(broadcasting)
-
- # Don't send the confirmation until pubsub#subscribe is successful
- defer_subscription_confirmation!
-
- # Build a stream handler by wrapping the user-provided callback with a decoder
- # or defaulting to a JSON-decoding retransmitter.
- handler = worker_pool_stream_handler(broadcasting, callback || block, coder: coder)
- streams[broadcasting] = handler
-
- connection.server.event_loop.post do
- pubsub.subscribe(broadcasting, handler, lambda do
- ensure_confirmation_sent
- logger.info "#{self.class.name} is streaming from #{broadcasting}"
- end)
- end
- end
+def stream_from(broadcasting, callback = nil, coder: nil, &block)
+ return if unsubscribed?
+
+ broadcasting = String(broadcasting)
+
+ # Don't send the confirmation until pubsub#subscribe is successful
+ defer_subscription_confirmation!
+
+ # Build a stream handler by wrapping the user-provided callback with a decoder
+ # or defaulting to a JSON-decoding retransmitter.
+ handler = worker_pool_stream_handler(broadcasting, callback || block, coder: coder)
+ streams[broadcasting] = handler
+
+ connection.server.event_loop.post do
+ pubsub.subscribe(broadcasting, handler, lambda do
+ ensure_confirmation_sent
+ logger.info "#{self.class.name} is streaming from #{broadcasting}"
+ end)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -368,15 +368,15 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 146
- def stream_or_reject_for(model)
- if model
- stream_for model
- else
- reject
- end
- end
+def stream_or_reject_for(model)
+ if model
+ stream_for model
+ else
+ reject
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase.html b/src/classes/ActionCable/Channel/TestCase.html
index 08fb28c0cf..6317ff44d0 100644
--- a/src/classes/ActionCable/Channel/TestCase.html
+++ b/src/classes/ActionCable/Channel/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior.html b/src/classes/ActionCable/Channel/TestCase/Behavior.html
index b5f3a5cbb7..5a8ea0fd78 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -196,11 +196,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 282
- def assert_broadcast_on(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcast_on(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -231,11 +231,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 278
- def assert_broadcasts(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcasts(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,11 +272,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 326
- def assert_has_no_stream(stream)
- assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
- end
+def assert_has_no_stream(stream)
+ assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -313,11 +313,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 337
- def assert_has_no_stream_for(object)
- assert_has_no_stream(broadcasting_for(object))
- end
+def assert_has_no_stream_for(object)
+ assert_has_no_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -354,11 +354,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 304
- def assert_has_stream(stream)
- assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
- end
+def assert_has_stream(stream)
+ assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -395,11 +395,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 315
- def assert_has_stream_for(object)
- assert_has_stream(broadcasting_for(object))
- end
+def assert_has_stream_for(object)
+ assert_has_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -436,11 +436,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 293
- def assert_no_streams
- assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
- end
+def assert_no_streams
+ assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -473,12 +473,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 266
- def perform(action, data = {})
- check_subscribed!
- subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
- end
+def perform(action, data = {})
+ check_subscribed!
+ subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -516,11 +516,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 243
- def stub_connection(identifiers = {})
- @connection = ConnectionStub.new(identifiers)
- end
+def stub_connection(identifiers = {})
+ @connection = ConnectionStub.new(identifiers)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -551,15 +551,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 249
- def subscribe(params = {})
- @connection ||= stub_connection
- @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
- @subscription.singleton_class.include(ChannelStub)
- @subscription.subscribe_to_channel
- @subscription
- end
+def subscribe(params = {})
+ @connection ||= stub_connection
+ @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
+ @subscription.singleton_class.include(ChannelStub)
+ @subscription.subscribe_to_channel
+ @subscription
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -590,12 +590,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 272
- def transmissions
- # Return only directly sent message (via #transmit)
- connection.transmissions.filter_map { |data| data["message"] }
- end
+def transmissions
+ # Return only directly sent message (via #transmit)
+ connection.transmissions.filter_map { |data| data["message"] }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -626,12 +626,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 258
- def unsubscribe
- check_subscribed!
- subscription.unsubscribe_from_channel
- end
+def unsubscribe
+ check_subscribed!
+ subscription.unsubscribe_from_channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
index 48ea87f130..57efb4cdac 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 219
- def channel_class
- if channel = self._channel_class
- channel
- else
- tests determine_default_channel(name)
- end
- end
+def channel_class
+ if channel = self._channel_class
+ channel
+ else
+ tests determine_default_channel(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 227
- def determine_default_channel(name)
- channel = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Channel::Base
- end
- raise NonInferrableChannelError.new(name) if channel.nil?
- channel
- end
+def determine_default_channel(name)
+ channel = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Channel::Base
+ end
+ raise NonInferrableChannelError.new(name) if channel.nil?
+ channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 208
- def tests(channel)
- case channel
- when String, Symbol
- self._channel_class = channel.to_s.camelize.constantize
- when Module
- self._channel_class = channel
- else
- raise NonInferrableChannelError.new(channel)
- end
- end
+def tests(channel)
+ case channel
+ when String, Symbol
+ self._channel_class = channel.to_s.camelize.constantize
+ when Module
+ self._channel_class = channel
+ else
+ raise NonInferrableChannelError.new(channel)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection.html b/src/classes/ActionCable/Connection.html
index f832214f0e..7889c75284 100644
--- a/src/classes/ActionCable/Connection.html
+++ b/src/classes/ActionCable/Connection.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Assertions.html b/src/classes/ActionCable/Connection/Assertions.html
index 933ea80e4c..6b10ec5528 100644
--- a/src/classes/ActionCable/Connection/Assertions.html
+++ b/src/classes/ActionCable/Connection/Assertions.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 28
- def assert_reject_connection(&block)
- assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
- end
+def assert_reject_connection(&block)
+ assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization.html b/src/classes/ActionCable/Connection/Authorization.html
index feb855aa9e..baf85a37b3 100644
--- a/src/classes/ActionCable/Connection/Authorization.html
+++ b/src/classes/ActionCable/Connection/Authorization.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -97,12 +97,12 @@
# File actioncable/lib/action_cable/connection/authorization.rb, line 12
- def reject_unauthorized_connection
- logger.error "An unauthorized connection attempt was rejected"
- raise UnauthorizedError
- end
+def reject_unauthorized_connection
+ logger.error "An unauthorized connection attempt was rejected"
+ raise UnauthorizedError
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
index b63b282b0b..ff36299a28 100644
--- a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
+++ b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/Base.html b/src/classes/ActionCable/Connection/Base.html
index 36a2f1e1bb..ea0d62911f 100644
--- a/src/classes/ActionCable/Connection/Base.html
+++ b/src/classes/ActionCable/Connection/Base.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -255,21 +255,21 @@
# File actioncable/lib/action_cable/connection/base.rb, line 67
- def initialize(server, env, coder: ActiveSupport::JSON)
- @server, @env, @coder = server, env, coder
+def initialize(server, env, coder: ActiveSupport::JSON)
+ @server, @env, @coder = server, env, coder
- @worker_pool = server.worker_pool
- @logger = new_tagged_logger
+ @worker_pool = server.worker_pool
+ @logger = new_tagged_logger
- @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
+ @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
- @_internal_subscriptions = nil
- @started_at = Time.now
- end
+ @_internal_subscriptions = nil
+ @started_at = Time.now
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -304,11 +304,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 147
- def beat
- transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
- end
+def beat
+ transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -339,16 +339,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 120
- def close(reason: nil, reconnect: true)
- transmit(
- type: ActionCable::INTERNAL[:message_types][:disconnect],
- reason: reason,
- reconnect: reconnect
- )
- websocket.close
- end
+def close(reason: nil, reconnect: true)
+ transmit(
+ type: ActionCable::INTERNAL[:message_types][:disconnect],
+ reason: reason,
+ reconnect: reconnect
+ )
+ websocket.close
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -379,13 +379,13 @@
# File actioncable/lib/action_cable/connection/base.rb, line 109
- def handle_channel_command(payload)
- run_callbacks :command do
- subscriptions.execute_command payload
- end
- end
+def handle_channel_command(payload)
+ run_callbacks :command do
+ subscriptions.execute_command payload
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -416,11 +416,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 131
- def send_async(method, *arguments)
- worker_pool.async_invoke(self, method, *arguments)
- end
+def send_async(method, *arguments)
+ worker_pool.async_invoke(self, method, *arguments)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -451,16 +451,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 138
- def statistics
- {
- identifier: connection_identifier,
- started_at: @started_at,
- subscriptions: subscriptions.identifiers,
- request_id: @env["action_dispatch.request_id"]
- }
- end
+def statistics
+ {
+ identifier: connection_identifier,
+ started_at: @started_at,
+ subscriptions: subscriptions.identifiers,
+ request_id: @env["action_dispatch.request_id"]
+ }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -494,11 +494,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 187
- def cookies # :doc:
- request.cookie_jar
- end
+def cookies # :doc:
+ request.cookie_jar
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -529,14 +529,14 @@
# File actioncable/lib/action_cable/connection/base.rb, line 178
- def request # :doc:
- @request ||= begin
- environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
- ActionDispatch::Request.new(environment || env)
- end
- end
+def request # :doc:
+ @request ||= begin
+ environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
+ ActionDispatch::Request.new(environment || env)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Callbacks.html b/src/classes/ActionCable/Connection/Callbacks.html
index 818958bf81..d6504ca284 100644
--- a/src/classes/ActionCable/Connection/Callbacks.html
+++ b/src/classes/ActionCable/Connection/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
index 933056a029..6376d7195b 100644
--- a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,11 +90,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 47
- def after_command(*methods, &block)
- set_callback(:command, :after, *methods, &block)
- end
+def after_command(*methods, &block)
+ set_callback(:command, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -125,11 +125,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 51
- def around_command(*methods, &block)
- set_callback(:command, :around, *methods, &block)
- end
+def around_command(*methods, &block)
+ set_callback(:command, :around, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -160,11 +160,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 43
- def before_command(*methods, &block)
- set_callback(:command, :before, *methods, &block)
- end
+def before_command(*methods, &block)
+ set_callback(:command, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification.html b/src/classes/ActionCable/Connection/Identification.html
index f3dcea9bfc..063ca88999 100644
--- a/src/classes/ActionCable/Connection/Identification.html
+++ b/src/classes/ActionCable/Connection/Identification.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,15 +95,15 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 29
- def connection_identifier
- unless defined? @connection_identifier
- @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
- end
+def connection_identifier
+ unless defined? @connection_identifier
+ @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
+ end
- @connection_identifier
- end
+ @connection_identifier
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification/ClassMethods.html b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
index 324ded31f5..a3395ef8a3 100644
--- a/src/classes/ActionCable/Connection/Identification/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -84,12 +84,12 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 21
- def identified_by(*identifiers)
- Array(identifiers).each { |identifier| attr_accessor identifier }
- self.identifiers += identifiers
- end
+def identified_by(*identifiers)
+ Array(identifiers).each { |identifier| attr_accessor identifier }
+ self.identifiers += identifiers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/InternalChannel.html b/src/classes/ActionCable/Connection/InternalChannel.html
index 9b0144f690..cfdccceaf4 100644
--- a/src/classes/ActionCable/Connection/InternalChannel.html
+++ b/src/classes/ActionCable/Connection/InternalChannel.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
index 7167904452..bf0c696d62 100644
--- a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
+++ b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 15
- def initialize(name)
- super "Unable to determine the connection to test from #{name}. " +
- "You'll need to specify it using `tests YourConnection` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the connection to test from #{name}. " +
+ "You'll need to specify it using `tests YourConnection` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/StreamEventLoop.html b/src/classes/ActionCable/Connection/StreamEventLoop.html
index 2b71a213e3..f7c49354ef 100644
--- a/src/classes/ActionCable/Connection/StreamEventLoop.html
+++ b/src/classes/ActionCable/Connection/StreamEventLoop.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -111,16 +111,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 10
- def initialize
- @nio = @executor = @thread = nil
- @map = {}
- @stopping = false
- @todo = Queue.new
-
- @spawn_mutex = Mutex.new
- end
+def initialize
+ @nio = @executor = @thread = nil
+ @map = {}
+ @stopping = false
+ @todo = Queue.new
+
+ @spawn_mutex = Mutex.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -155,15 +155,15 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 30
- def attach(io, stream)
- @todo << lambda do
- @map[io] = @nio.register(io, :r)
- @map[io].value = stream
- end
- wakeup
- end
+def attach(io, stream)
+ @todo << lambda do
+ @map[io] = @nio.register(io, :r)
+ @map[io].value = stream
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -194,16 +194,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 38
- def detach(io, stream)
- @todo << lambda do
- @nio.deregister io
- @map.delete io
- io.close
- end
- wakeup
- end
+def detach(io, stream)
+ @todo << lambda do
+ @nio.deregister io
+ @map.delete io
+ io.close
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -234,14 +234,14 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 23
- def post(task = nil, &block)
- task ||= block
+def post(task = nil, &block)
+ task ||= block
- spawn
- @executor << task
- end
+ spawn
+ @executor << task
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,12 +272,12 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 56
- def stop
- @stopping = true
- wakeup if @nio
- end
+def stop
+ @stopping = true
+ wakeup if @nio
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -308,11 +308,11 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 19
- def timer(interval, &block)
- Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
- end
+def timer(interval, &block)
+ Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -343,16 +343,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 47
- def writes_pending(io)
- @todo << lambda do
- if monitor = @map[io]
- monitor.interests = :rw
- end
- end
- wakeup
- end
+def writes_pending(io)
+ @todo << lambda do
+ if monitor = @map[io]
+ monitor.interests = :rw
+ end
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
index f4d5cacc63..99731855fb 100644
--- a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
+++ b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -121,12 +121,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 16
- def initialize(logger, tags:)
- @logger = logger
- @tags = tags.flatten
- end
+def initialize(logger, tags:)
+ @logger = logger
+ @tags = tags.flatten
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -161,12 +161,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 21
- def add_tags(*tags)
- @tags += tags.flatten
- @tags = @tags.uniq
- end
+def add_tags(*tags)
+ @tags += tags.flatten
+ @tags = @tags.uniq
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -197,16 +197,16 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 26
- def tag(logger, &block)
- if logger.respond_to?(:tagged)
- current_tags = tags - logger.formatter.current_tags
- logger.tagged(*current_tags, &block)
- else
- yield
- end
- end
+def tag(logger, &block)
+ if logger.respond_to?(:tagged)
+ current_tags = tags - logger.formatter.current_tags
+ logger.tagged(*current_tags, &block)
+ else
+ yield
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,11 +240,11 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 42
- def log(type, message, &block) # :doc:
- tag(@logger) { @logger.send type, message, &block }
- end
+def log(type, message, &block) # :doc:
+ tag(@logger) { @logger.send type, message, &block }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase.html b/src/classes/ActionCable/Connection/TestCase.html
index 948378e491..39bc5cb056 100644
--- a/src/classes/ActionCable/Connection/TestCase.html
+++ b/src/classes/ActionCable/Connection/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior.html b/src/classes/ActionCable/Connection/TestCase/Behavior.html
index b87870becd..4ee0debbea 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -163,19 +163,19 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 192
- def connect(path = ActionCable.server.config.mount_path, **request_params)
- path ||= DEFAULT_PATH
+def connect(path = ActionCable.server.config.mount_path, **request_params)
+ path ||= DEFAULT_PATH
- connection = self.class.connection_class.allocate
- connection.singleton_class.include(TestConnection)
- connection.send(:initialize, build_test_request(path, **request_params))
- connection.connect if connection.respond_to?(:connect)
+ connection = self.class.connection_class.allocate
+ connection.singleton_class.include(TestConnection)
+ connection.send(:initialize, build_test_request(path, **request_params))
+ connection.connect if connection.respond_to?(:connect)
- # Only set instance variable if connected successfully
- @connection = connection
- end
+ # Only set instance variable if connected successfully
+ @connection = connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -206,11 +206,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 212
- def cookies
- @cookie_jar ||= TestCookieJar.new
- end
+def cookies
+ @cookie_jar ||= TestCookieJar.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -241,14 +241,14 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 205
- def disconnect
- raise "Must be connected!" if connection.nil?
+def disconnect
+ raise "Must be connected!" if connection.nil?
- connection.disconnect if connection.respond_to?(:disconnect)
- @connection = nil
- end
+ connection.disconnect if connection.respond_to?(:disconnect)
+ @connection = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
index 63444f4b27..99fc0e3f6f 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 167
- def connection_class
- if connection = self._connection_class
- connection
- else
- tests determine_default_connection(name)
- end
- end
+def connection_class
+ if connection = self._connection_class
+ connection
+ else
+ tests determine_default_connection(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 175
- def determine_default_connection(name)
- connection = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Connection::Base
- end
- raise NonInferrableConnectionError.new(name) if connection.nil?
- connection
- end
+def determine_default_connection(name)
+ connection = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Connection::Base
+ end
+ raise NonInferrableConnectionError.new(name) if connection.nil?
+ connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 46
- def start_periodic_timers; end# File actioncable/lib/action_cable/channel/test_case.rb, line 37
- def stop_all_streams
- @_streams = []
- end
+def stop_all_streams
+ @_streams = []
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -281,11 +281,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 33
- def stream_from(broadcasting, *)
- streams << broadcasting
- end
+def stream_from(broadcasting, *)
+ streams << broadcasting
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -316,11 +316,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 41
- def streams
- @_streams ||= []
- end
+def streams
+ @_streams ||= []
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/ConnectionStub.html b/src/classes/ActionCable/Channel/ConnectionStub.html
index 62c52b567f..0fdc0d8690 100644
--- a/src/classes/ActionCable/Channel/ConnectionStub.html
+++ b/src/classes/ActionCable/Channel/ConnectionStub.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -141,20 +141,20 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 55
- def initialize(identifiers = {})
- @server = ActionCable.server
- @transmissions = []
-
- identifiers.each do |identifier, val|
- define_singleton_method(identifier) { val }
- end
-
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @identifiers = identifiers.keys
- @logger = ActiveSupport::TaggedLogging.new ActiveSupport::Logger.new(StringIO.new)
- end
+def initialize(identifiers = {})
+ @server = ActionCable.server
+ @transmissions = []
+
+ identifiers.each do |identifier, val|
+ define_singleton_method(identifier) { val }
+ end
+
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @identifiers = identifiers.keys
+ @logger = ActiveSupport::TaggedLogging.new ActiveSupport::Logger.new(StringIO.new)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -189,11 +189,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 72
- def connection_identifier
- @connection_identifier ||= connection_gid(identifiers.filter_map { |id| send(id.to_sym) if id })
- end
+def connection_identifier
+ @connection_identifier ||= connection_gid(identifiers.filter_map { |id| send(id.to_sym) if id })
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -224,11 +224,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 68
- def transmit(cable_message)
- transmissions << cable_message.with_indifferent_access
- end
+def transmit(cable_message)
+ transmissions << cable_message.with_indifferent_access
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Naming.html b/src/classes/ActionCable/Channel/Naming.html
index 84bfc0232c..db2aa18589 100644
--- a/src/classes/ActionCable/Channel/Naming.html
+++ b/src/classes/ActionCable/Channel/Naming.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,11 +95,11 @@
# File actioncable/lib/action_cable/channel/naming.rb, line 23
- def channel_name
- self.class.channel_name
- end
+def channel_name
+ self.class.channel_name
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Naming/ClassMethods.html b/src/classes/ActionCable/Channel/Naming/ClassMethods.html
index b847309f12..e99c0744a7 100644
--- a/src/classes/ActionCable/Channel/Naming/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Naming/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -66,7 +66,7 @@
- Returns the name of the channel, underscored, without the Channel ending. If the channel is in a namespace, then the namespaces are represented by single colon separators in the channel name.
+ Returns the name of the channel, underscored, without the Channel ending. If the channel is in a namespace, then the namespaces are represented by single colon separators in the channel name.
ChatChannel.channel_name # => 'chat'
Chats::AppearancesChannel.channel_name # => 'chats:appearances'
@@ -87,11 +87,11 @@
# File actioncable/lib/action_cable/channel/naming.rb, line 18
- def channel_name
- @channel_name ||= name.delete_suffix("Channel").gsub("::", ":").underscore
- end
+def channel_name
+ @channel_name ||= name.delete_suffix("Channel").gsub("::", ":").underscore
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/NonInferrableChannelError.html b/src/classes/ActionCable/Channel/NonInferrableChannelError.html
index 034c36b135..1eac81cbd2 100644
--- a/src/classes/ActionCable/Channel/NonInferrableChannelError.html
+++ b/src/classes/ActionCable/Channel/NonInferrableChannelError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 13
- def initialize(name)
- super "Unable to determine the channel to test from #{name}. " +
- "You'll need to specify it using `tests YourChannel` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the channel to test from #{name}. " +
+ "You'll need to specify it using `tests YourChannel` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/PeriodicTimers.html b/src/classes/ActionCable/Channel/PeriodicTimers.html
index 88facef675..561da6e0dd 100644
--- a/src/classes/ActionCable/Channel/PeriodicTimers.html
+++ b/src/classes/ActionCable/Channel/PeriodicTimers.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html b/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
index 233865e2e3..a694f6de16 100644
--- a/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -91,30 +91,30 @@
# File actioncable/lib/action_cable/channel/periodic_timers.rb, line 31
- def periodically(callback_or_method_name = nil, every:, &block)
- callback =
- if block_given?
- raise ArgumentError, "Pass a block or provide a callback arg, not both" if callback_or_method_name
- block
- else
- case callback_or_method_name
- when Proc
- callback_or_method_name
- when Symbol
- -> { __send__ callback_or_method_name }
- else
- raise ArgumentError, "Expected a Symbol method name or a Proc, got #{callback_or_method_name.inspect}"
- end
- end
-
- unless every.kind_of?(Numeric) && every > 0
- raise ArgumentError, "Expected every: to be a positive number of seconds, got #{every.inspect}"
- end
-
- self.periodic_timers += [[ callback, every: every ]]
- end
+def periodically(callback_or_method_name = nil, every:, &block)
+ callback =
+ if block_given?
+ raise ArgumentError, "Pass a block or provide a callback arg, not both" if callback_or_method_name
+ block
+ else
+ case callback_or_method_name
+ when Proc
+ callback_or_method_name
+ when Symbol
+ -> { __send__ callback_or_method_name }
+ else
+ raise ArgumentError, "Expected a Symbol method name or a Proc, got #{callback_or_method_name.inspect}"
+ end
+ end
+
+ unless every.kind_of?(Numeric) && every > 0
+ raise ArgumentError, "Expected every: to be a positive number of seconds, got #{every.inspect}"
+ end
+
+ self.periodic_timers += [[ callback, every: every ]]
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Streams.html b/src/classes/ActionCable/Channel/Streams.html
index 0967feb616..a2e686a3e9 100644
--- a/src/classes/ActionCable/Channel/Streams.html
+++ b/src/classes/ActionCable/Channel/Streams.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -167,14 +167,14 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 137
- def stop_all_streams
- streams.each do |broadcasting, callback|
- pubsub.unsubscribe broadcasting, callback
- logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
- end.clear
- end
+def stop_all_streams
+ streams.each do |broadcasting, callback|
+ pubsub.unsubscribe broadcasting, callback
+ logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
+ end.clear
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -205,11 +205,11 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 132
- def stop_stream_for(model)
- stop_stream_from(broadcasting_for(model))
- end
+def stop_stream_for(model)
+ stop_stream_from(broadcasting_for(model))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,15 +240,15 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 123
- def stop_stream_from(broadcasting)
- callback = streams.delete(broadcasting)
- if callback
- pubsub.unsubscribe(broadcasting, callback)
- logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
- end
- end
+def stop_stream_from(broadcasting)
+ callback = streams.delete(broadcasting)
+ if callback
+ pubsub.unsubscribe(broadcasting, callback)
+ logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -281,11 +281,11 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 118
- def stream_for(broadcastables, callback = nil, coder: nil, &block)
- stream_from(broadcasting_for(broadcastables), callback || block, coder: coder)
- end
+def stream_for(broadcastables, callback = nil, coder: nil, &block)
+ stream_from(broadcasting_for(broadcastables), callback || block, coder: coder)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -316,28 +316,28 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 90
- def stream_from(broadcasting, callback = nil, coder: nil, &block)
- return if unsubscribed?
-
- broadcasting = String(broadcasting)
-
- # Don't send the confirmation until pubsub#subscribe is successful
- defer_subscription_confirmation!
-
- # Build a stream handler by wrapping the user-provided callback with a decoder
- # or defaulting to a JSON-decoding retransmitter.
- handler = worker_pool_stream_handler(broadcasting, callback || block, coder: coder)
- streams[broadcasting] = handler
-
- connection.server.event_loop.post do
- pubsub.subscribe(broadcasting, handler, lambda do
- ensure_confirmation_sent
- logger.info "#{self.class.name} is streaming from #{broadcasting}"
- end)
- end
- end
+def stream_from(broadcasting, callback = nil, coder: nil, &block)
+ return if unsubscribed?
+
+ broadcasting = String(broadcasting)
+
+ # Don't send the confirmation until pubsub#subscribe is successful
+ defer_subscription_confirmation!
+
+ # Build a stream handler by wrapping the user-provided callback with a decoder
+ # or defaulting to a JSON-decoding retransmitter.
+ handler = worker_pool_stream_handler(broadcasting, callback || block, coder: coder)
+ streams[broadcasting] = handler
+
+ connection.server.event_loop.post do
+ pubsub.subscribe(broadcasting, handler, lambda do
+ ensure_confirmation_sent
+ logger.info "#{self.class.name} is streaming from #{broadcasting}"
+ end)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -368,15 +368,15 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 146
- def stream_or_reject_for(model)
- if model
- stream_for model
- else
- reject
- end
- end
+def stream_or_reject_for(model)
+ if model
+ stream_for model
+ else
+ reject
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase.html b/src/classes/ActionCable/Channel/TestCase.html
index 08fb28c0cf..6317ff44d0 100644
--- a/src/classes/ActionCable/Channel/TestCase.html
+++ b/src/classes/ActionCable/Channel/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior.html b/src/classes/ActionCable/Channel/TestCase/Behavior.html
index b5f3a5cbb7..5a8ea0fd78 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -196,11 +196,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 282
- def assert_broadcast_on(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcast_on(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -231,11 +231,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 278
- def assert_broadcasts(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcasts(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,11 +272,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 326
- def assert_has_no_stream(stream)
- assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
- end
+def assert_has_no_stream(stream)
+ assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -313,11 +313,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 337
- def assert_has_no_stream_for(object)
- assert_has_no_stream(broadcasting_for(object))
- end
+def assert_has_no_stream_for(object)
+ assert_has_no_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -354,11 +354,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 304
- def assert_has_stream(stream)
- assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
- end
+def assert_has_stream(stream)
+ assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -395,11 +395,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 315
- def assert_has_stream_for(object)
- assert_has_stream(broadcasting_for(object))
- end
+def assert_has_stream_for(object)
+ assert_has_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -436,11 +436,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 293
- def assert_no_streams
- assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
- end
+def assert_no_streams
+ assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -473,12 +473,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 266
- def perform(action, data = {})
- check_subscribed!
- subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
- end
+def perform(action, data = {})
+ check_subscribed!
+ subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -516,11 +516,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 243
- def stub_connection(identifiers = {})
- @connection = ConnectionStub.new(identifiers)
- end
+def stub_connection(identifiers = {})
+ @connection = ConnectionStub.new(identifiers)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -551,15 +551,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 249
- def subscribe(params = {})
- @connection ||= stub_connection
- @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
- @subscription.singleton_class.include(ChannelStub)
- @subscription.subscribe_to_channel
- @subscription
- end
+def subscribe(params = {})
+ @connection ||= stub_connection
+ @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
+ @subscription.singleton_class.include(ChannelStub)
+ @subscription.subscribe_to_channel
+ @subscription
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -590,12 +590,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 272
- def transmissions
- # Return only directly sent message (via #transmit)
- connection.transmissions.filter_map { |data| data["message"] }
- end
+def transmissions
+ # Return only directly sent message (via #transmit)
+ connection.transmissions.filter_map { |data| data["message"] }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -626,12 +626,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 258
- def unsubscribe
- check_subscribed!
- subscription.unsubscribe_from_channel
- end
+def unsubscribe
+ check_subscribed!
+ subscription.unsubscribe_from_channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
index 48ea87f130..57efb4cdac 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 219
- def channel_class
- if channel = self._channel_class
- channel
- else
- tests determine_default_channel(name)
- end
- end
+def channel_class
+ if channel = self._channel_class
+ channel
+ else
+ tests determine_default_channel(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 227
- def determine_default_channel(name)
- channel = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Channel::Base
- end
- raise NonInferrableChannelError.new(name) if channel.nil?
- channel
- end
+def determine_default_channel(name)
+ channel = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Channel::Base
+ end
+ raise NonInferrableChannelError.new(name) if channel.nil?
+ channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 208
- def tests(channel)
- case channel
- when String, Symbol
- self._channel_class = channel.to_s.camelize.constantize
- when Module
- self._channel_class = channel
- else
- raise NonInferrableChannelError.new(channel)
- end
- end
+def tests(channel)
+ case channel
+ when String, Symbol
+ self._channel_class = channel.to_s.camelize.constantize
+ when Module
+ self._channel_class = channel
+ else
+ raise NonInferrableChannelError.new(channel)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection.html b/src/classes/ActionCable/Connection.html
index f832214f0e..7889c75284 100644
--- a/src/classes/ActionCable/Connection.html
+++ b/src/classes/ActionCable/Connection.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Assertions.html b/src/classes/ActionCable/Connection/Assertions.html
index 933ea80e4c..6b10ec5528 100644
--- a/src/classes/ActionCable/Connection/Assertions.html
+++ b/src/classes/ActionCable/Connection/Assertions.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 28
- def assert_reject_connection(&block)
- assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
- end
+def assert_reject_connection(&block)
+ assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization.html b/src/classes/ActionCable/Connection/Authorization.html
index feb855aa9e..baf85a37b3 100644
--- a/src/classes/ActionCable/Connection/Authorization.html
+++ b/src/classes/ActionCable/Connection/Authorization.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -97,12 +97,12 @@
# File actioncable/lib/action_cable/connection/authorization.rb, line 12
- def reject_unauthorized_connection
- logger.error "An unauthorized connection attempt was rejected"
- raise UnauthorizedError
- end
+def reject_unauthorized_connection
+ logger.error "An unauthorized connection attempt was rejected"
+ raise UnauthorizedError
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
index b63b282b0b..ff36299a28 100644
--- a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
+++ b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/Base.html b/src/classes/ActionCable/Connection/Base.html
index 36a2f1e1bb..ea0d62911f 100644
--- a/src/classes/ActionCable/Connection/Base.html
+++ b/src/classes/ActionCable/Connection/Base.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -255,21 +255,21 @@
# File actioncable/lib/action_cable/connection/base.rb, line 67
- def initialize(server, env, coder: ActiveSupport::JSON)
- @server, @env, @coder = server, env, coder
+def initialize(server, env, coder: ActiveSupport::JSON)
+ @server, @env, @coder = server, env, coder
- @worker_pool = server.worker_pool
- @logger = new_tagged_logger
+ @worker_pool = server.worker_pool
+ @logger = new_tagged_logger
- @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
+ @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
- @_internal_subscriptions = nil
- @started_at = Time.now
- end
+ @_internal_subscriptions = nil
+ @started_at = Time.now
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -304,11 +304,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 147
- def beat
- transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
- end
+def beat
+ transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -339,16 +339,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 120
- def close(reason: nil, reconnect: true)
- transmit(
- type: ActionCable::INTERNAL[:message_types][:disconnect],
- reason: reason,
- reconnect: reconnect
- )
- websocket.close
- end
+def close(reason: nil, reconnect: true)
+ transmit(
+ type: ActionCable::INTERNAL[:message_types][:disconnect],
+ reason: reason,
+ reconnect: reconnect
+ )
+ websocket.close
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -379,13 +379,13 @@
# File actioncable/lib/action_cable/connection/base.rb, line 109
- def handle_channel_command(payload)
- run_callbacks :command do
- subscriptions.execute_command payload
- end
- end
+def handle_channel_command(payload)
+ run_callbacks :command do
+ subscriptions.execute_command payload
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -416,11 +416,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 131
- def send_async(method, *arguments)
- worker_pool.async_invoke(self, method, *arguments)
- end
+def send_async(method, *arguments)
+ worker_pool.async_invoke(self, method, *arguments)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -451,16 +451,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 138
- def statistics
- {
- identifier: connection_identifier,
- started_at: @started_at,
- subscriptions: subscriptions.identifiers,
- request_id: @env["action_dispatch.request_id"]
- }
- end
+def statistics
+ {
+ identifier: connection_identifier,
+ started_at: @started_at,
+ subscriptions: subscriptions.identifiers,
+ request_id: @env["action_dispatch.request_id"]
+ }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -494,11 +494,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 187
- def cookies # :doc:
- request.cookie_jar
- end
+def cookies # :doc:
+ request.cookie_jar
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -529,14 +529,14 @@
# File actioncable/lib/action_cable/connection/base.rb, line 178
- def request # :doc:
- @request ||= begin
- environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
- ActionDispatch::Request.new(environment || env)
- end
- end
+def request # :doc:
+ @request ||= begin
+ environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
+ ActionDispatch::Request.new(environment || env)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Callbacks.html b/src/classes/ActionCable/Connection/Callbacks.html
index 818958bf81..d6504ca284 100644
--- a/src/classes/ActionCable/Connection/Callbacks.html
+++ b/src/classes/ActionCable/Connection/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
index 933056a029..6376d7195b 100644
--- a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,11 +90,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 47
- def after_command(*methods, &block)
- set_callback(:command, :after, *methods, &block)
- end
+def after_command(*methods, &block)
+ set_callback(:command, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -125,11 +125,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 51
- def around_command(*methods, &block)
- set_callback(:command, :around, *methods, &block)
- end
+def around_command(*methods, &block)
+ set_callback(:command, :around, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -160,11 +160,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 43
- def before_command(*methods, &block)
- set_callback(:command, :before, *methods, &block)
- end
+def before_command(*methods, &block)
+ set_callback(:command, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification.html b/src/classes/ActionCable/Connection/Identification.html
index f3dcea9bfc..063ca88999 100644
--- a/src/classes/ActionCable/Connection/Identification.html
+++ b/src/classes/ActionCable/Connection/Identification.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,15 +95,15 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 29
- def connection_identifier
- unless defined? @connection_identifier
- @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
- end
+def connection_identifier
+ unless defined? @connection_identifier
+ @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
+ end
- @connection_identifier
- end
+ @connection_identifier
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification/ClassMethods.html b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
index 324ded31f5..a3395ef8a3 100644
--- a/src/classes/ActionCable/Connection/Identification/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -84,12 +84,12 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 21
- def identified_by(*identifiers)
- Array(identifiers).each { |identifier| attr_accessor identifier }
- self.identifiers += identifiers
- end
+def identified_by(*identifiers)
+ Array(identifiers).each { |identifier| attr_accessor identifier }
+ self.identifiers += identifiers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/InternalChannel.html b/src/classes/ActionCable/Connection/InternalChannel.html
index 9b0144f690..cfdccceaf4 100644
--- a/src/classes/ActionCable/Connection/InternalChannel.html
+++ b/src/classes/ActionCable/Connection/InternalChannel.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
index 7167904452..bf0c696d62 100644
--- a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
+++ b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 15
- def initialize(name)
- super "Unable to determine the connection to test from #{name}. " +
- "You'll need to specify it using `tests YourConnection` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the connection to test from #{name}. " +
+ "You'll need to specify it using `tests YourConnection` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/StreamEventLoop.html b/src/classes/ActionCable/Connection/StreamEventLoop.html
index 2b71a213e3..f7c49354ef 100644
--- a/src/classes/ActionCable/Connection/StreamEventLoop.html
+++ b/src/classes/ActionCable/Connection/StreamEventLoop.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -111,16 +111,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 10
- def initialize
- @nio = @executor = @thread = nil
- @map = {}
- @stopping = false
- @todo = Queue.new
-
- @spawn_mutex = Mutex.new
- end
+def initialize
+ @nio = @executor = @thread = nil
+ @map = {}
+ @stopping = false
+ @todo = Queue.new
+
+ @spawn_mutex = Mutex.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -155,15 +155,15 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 30
- def attach(io, stream)
- @todo << lambda do
- @map[io] = @nio.register(io, :r)
- @map[io].value = stream
- end
- wakeup
- end
+def attach(io, stream)
+ @todo << lambda do
+ @map[io] = @nio.register(io, :r)
+ @map[io].value = stream
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -194,16 +194,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 38
- def detach(io, stream)
- @todo << lambda do
- @nio.deregister io
- @map.delete io
- io.close
- end
- wakeup
- end
+def detach(io, stream)
+ @todo << lambda do
+ @nio.deregister io
+ @map.delete io
+ io.close
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -234,14 +234,14 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 23
- def post(task = nil, &block)
- task ||= block
+def post(task = nil, &block)
+ task ||= block
- spawn
- @executor << task
- end
+ spawn
+ @executor << task
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,12 +272,12 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 56
- def stop
- @stopping = true
- wakeup if @nio
- end
+def stop
+ @stopping = true
+ wakeup if @nio
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -308,11 +308,11 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 19
- def timer(interval, &block)
- Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
- end
+def timer(interval, &block)
+ Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -343,16 +343,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 47
- def writes_pending(io)
- @todo << lambda do
- if monitor = @map[io]
- monitor.interests = :rw
- end
- end
- wakeup
- end
+def writes_pending(io)
+ @todo << lambda do
+ if monitor = @map[io]
+ monitor.interests = :rw
+ end
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
index f4d5cacc63..99731855fb 100644
--- a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
+++ b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -121,12 +121,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 16
- def initialize(logger, tags:)
- @logger = logger
- @tags = tags.flatten
- end
+def initialize(logger, tags:)
+ @logger = logger
+ @tags = tags.flatten
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -161,12 +161,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 21
- def add_tags(*tags)
- @tags += tags.flatten
- @tags = @tags.uniq
- end
+def add_tags(*tags)
+ @tags += tags.flatten
+ @tags = @tags.uniq
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -197,16 +197,16 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 26
- def tag(logger, &block)
- if logger.respond_to?(:tagged)
- current_tags = tags - logger.formatter.current_tags
- logger.tagged(*current_tags, &block)
- else
- yield
- end
- end
+def tag(logger, &block)
+ if logger.respond_to?(:tagged)
+ current_tags = tags - logger.formatter.current_tags
+ logger.tagged(*current_tags, &block)
+ else
+ yield
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,11 +240,11 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 42
- def log(type, message, &block) # :doc:
- tag(@logger) { @logger.send type, message, &block }
- end
+def log(type, message, &block) # :doc:
+ tag(@logger) { @logger.send type, message, &block }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase.html b/src/classes/ActionCable/Connection/TestCase.html
index 948378e491..39bc5cb056 100644
--- a/src/classes/ActionCable/Connection/TestCase.html
+++ b/src/classes/ActionCable/Connection/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior.html b/src/classes/ActionCable/Connection/TestCase/Behavior.html
index b87870becd..4ee0debbea 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -163,19 +163,19 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 192
- def connect(path = ActionCable.server.config.mount_path, **request_params)
- path ||= DEFAULT_PATH
+def connect(path = ActionCable.server.config.mount_path, **request_params)
+ path ||= DEFAULT_PATH
- connection = self.class.connection_class.allocate
- connection.singleton_class.include(TestConnection)
- connection.send(:initialize, build_test_request(path, **request_params))
- connection.connect if connection.respond_to?(:connect)
+ connection = self.class.connection_class.allocate
+ connection.singleton_class.include(TestConnection)
+ connection.send(:initialize, build_test_request(path, **request_params))
+ connection.connect if connection.respond_to?(:connect)
- # Only set instance variable if connected successfully
- @connection = connection
- end
+ # Only set instance variable if connected successfully
+ @connection = connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -206,11 +206,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 212
- def cookies
- @cookie_jar ||= TestCookieJar.new
- end
+def cookies
+ @cookie_jar ||= TestCookieJar.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -241,14 +241,14 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 205
- def disconnect
- raise "Must be connected!" if connection.nil?
+def disconnect
+ raise "Must be connected!" if connection.nil?
- connection.disconnect if connection.respond_to?(:disconnect)
- @connection = nil
- end
+ connection.disconnect if connection.respond_to?(:disconnect)
+ @connection = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
index 63444f4b27..99fc0e3f6f 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 167
- def connection_class
- if connection = self._connection_class
- connection
- else
- tests determine_default_connection(name)
- end
- end
+def connection_class
+ if connection = self._connection_class
+ connection
+ else
+ tests determine_default_connection(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 175
- def determine_default_connection(name)
- connection = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Connection::Base
- end
- raise NonInferrableConnectionError.new(name) if connection.nil?
- connection
- end
+def determine_default_connection(name)
+ connection = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Connection::Base
+ end
+ raise NonInferrableConnectionError.new(name) if connection.nil?
+ connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 33
- def stream_from(broadcasting, *)
- streams << broadcasting
- end# File actioncable/lib/action_cable/channel/test_case.rb, line 41
- def streams
- @_streams ||= []
- end
+def streams
+ @_streams ||= []
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/ConnectionStub.html b/src/classes/ActionCable/Channel/ConnectionStub.html
index 62c52b567f..0fdc0d8690 100644
--- a/src/classes/ActionCable/Channel/ConnectionStub.html
+++ b/src/classes/ActionCable/Channel/ConnectionStub.html
@@ -5,7 +5,7 @@
+ Ruby on Rails 8.1.0.rc1
@@ -141,20 +141,20 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 55
- def initialize(identifiers = {})
- @server = ActionCable.server
- @transmissions = []
-
- identifiers.each do |identifier, val|
- define_singleton_method(identifier) { val }
- end
-
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @identifiers = identifiers.keys
- @logger = ActiveSupport::TaggedLogging.new ActiveSupport::Logger.new(StringIO.new)
- end
+def initialize(identifiers = {})
+ @server = ActionCable.server
+ @transmissions = []
+
+ identifiers.each do |identifier, val|
+ define_singleton_method(identifier) { val }
+ end
+
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @identifiers = identifiers.keys
+ @logger = ActiveSupport::TaggedLogging.new ActiveSupport::Logger.new(StringIO.new)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -189,11 +189,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 72
- def connection_identifier
- @connection_identifier ||= connection_gid(identifiers.filter_map { |id| send(id.to_sym) if id })
- end
+def connection_identifier
+ @connection_identifier ||= connection_gid(identifiers.filter_map { |id| send(id.to_sym) if id })
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -224,11 +224,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 68
- def transmit(cable_message)
- transmissions << cable_message.with_indifferent_access
- end
+def transmit(cable_message)
+ transmissions << cable_message.with_indifferent_access
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Naming.html b/src/classes/ActionCable/Channel/Naming.html
index 84bfc0232c..db2aa18589 100644
--- a/src/classes/ActionCable/Channel/Naming.html
+++ b/src/classes/ActionCable/Channel/Naming.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,11 +95,11 @@
# File actioncable/lib/action_cable/channel/naming.rb, line 23
- def channel_name
- self.class.channel_name
- end
+def channel_name
+ self.class.channel_name
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Naming/ClassMethods.html b/src/classes/ActionCable/Channel/Naming/ClassMethods.html
index b847309f12..e99c0744a7 100644
--- a/src/classes/ActionCable/Channel/Naming/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Naming/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -66,7 +66,7 @@
- Returns the name of the channel, underscored, without the Channel ending. If the channel is in a namespace, then the namespaces are represented by single colon separators in the channel name.
+ Returns the name of the channel, underscored, without the Channel ending. If the channel is in a namespace, then the namespaces are represented by single colon separators in the channel name.
ChatChannel.channel_name # => 'chat'
Chats::AppearancesChannel.channel_name # => 'chats:appearances'
@@ -87,11 +87,11 @@
# File actioncable/lib/action_cable/channel/naming.rb, line 18
- def channel_name
- @channel_name ||= name.delete_suffix("Channel").gsub("::", ":").underscore
- end
+def channel_name
+ @channel_name ||= name.delete_suffix("Channel").gsub("::", ":").underscore
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/NonInferrableChannelError.html b/src/classes/ActionCable/Channel/NonInferrableChannelError.html
index 034c36b135..1eac81cbd2 100644
--- a/src/classes/ActionCable/Channel/NonInferrableChannelError.html
+++ b/src/classes/ActionCable/Channel/NonInferrableChannelError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 13
- def initialize(name)
- super "Unable to determine the channel to test from #{name}. " +
- "You'll need to specify it using `tests YourChannel` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the channel to test from #{name}. " +
+ "You'll need to specify it using `tests YourChannel` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/PeriodicTimers.html b/src/classes/ActionCable/Channel/PeriodicTimers.html
index 88facef675..561da6e0dd 100644
--- a/src/classes/ActionCable/Channel/PeriodicTimers.html
+++ b/src/classes/ActionCable/Channel/PeriodicTimers.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html b/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
index 233865e2e3..a694f6de16 100644
--- a/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -91,30 +91,30 @@
# File actioncable/lib/action_cable/channel/periodic_timers.rb, line 31
- def periodically(callback_or_method_name = nil, every:, &block)
- callback =
- if block_given?
- raise ArgumentError, "Pass a block or provide a callback arg, not both" if callback_or_method_name
- block
- else
- case callback_or_method_name
- when Proc
- callback_or_method_name
- when Symbol
- -> { __send__ callback_or_method_name }
- else
- raise ArgumentError, "Expected a Symbol method name or a Proc, got #{callback_or_method_name.inspect}"
- end
- end
-
- unless every.kind_of?(Numeric) && every > 0
- raise ArgumentError, "Expected every: to be a positive number of seconds, got #{every.inspect}"
- end
-
- self.periodic_timers += [[ callback, every: every ]]
- end
+def periodically(callback_or_method_name = nil, every:, &block)
+ callback =
+ if block_given?
+ raise ArgumentError, "Pass a block or provide a callback arg, not both" if callback_or_method_name
+ block
+ else
+ case callback_or_method_name
+ when Proc
+ callback_or_method_name
+ when Symbol
+ -> { __send__ callback_or_method_name }
+ else
+ raise ArgumentError, "Expected a Symbol method name or a Proc, got #{callback_or_method_name.inspect}"
+ end
+ end
+
+ unless every.kind_of?(Numeric) && every > 0
+ raise ArgumentError, "Expected every: to be a positive number of seconds, got #{every.inspect}"
+ end
+
+ self.periodic_timers += [[ callback, every: every ]]
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Streams.html b/src/classes/ActionCable/Channel/Streams.html
index 0967feb616..a2e686a3e9 100644
--- a/src/classes/ActionCable/Channel/Streams.html
+++ b/src/classes/ActionCable/Channel/Streams.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -167,14 +167,14 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 137
- def stop_all_streams
- streams.each do |broadcasting, callback|
- pubsub.unsubscribe broadcasting, callback
- logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
- end.clear
- end
+def stop_all_streams
+ streams.each do |broadcasting, callback|
+ pubsub.unsubscribe broadcasting, callback
+ logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
+ end.clear
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -205,11 +205,11 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 132
- def stop_stream_for(model)
- stop_stream_from(broadcasting_for(model))
- end
+def stop_stream_for(model)
+ stop_stream_from(broadcasting_for(model))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,15 +240,15 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 123
- def stop_stream_from(broadcasting)
- callback = streams.delete(broadcasting)
- if callback
- pubsub.unsubscribe(broadcasting, callback)
- logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
- end
- end
+def stop_stream_from(broadcasting)
+ callback = streams.delete(broadcasting)
+ if callback
+ pubsub.unsubscribe(broadcasting, callback)
+ logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -281,11 +281,11 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 118
- def stream_for(broadcastables, callback = nil, coder: nil, &block)
- stream_from(broadcasting_for(broadcastables), callback || block, coder: coder)
- end
+def stream_for(broadcastables, callback = nil, coder: nil, &block)
+ stream_from(broadcasting_for(broadcastables), callback || block, coder: coder)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -316,28 +316,28 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 90
- def stream_from(broadcasting, callback = nil, coder: nil, &block)
- return if unsubscribed?
-
- broadcasting = String(broadcasting)
-
- # Don't send the confirmation until pubsub#subscribe is successful
- defer_subscription_confirmation!
-
- # Build a stream handler by wrapping the user-provided callback with a decoder
- # or defaulting to a JSON-decoding retransmitter.
- handler = worker_pool_stream_handler(broadcasting, callback || block, coder: coder)
- streams[broadcasting] = handler
-
- connection.server.event_loop.post do
- pubsub.subscribe(broadcasting, handler, lambda do
- ensure_confirmation_sent
- logger.info "#{self.class.name} is streaming from #{broadcasting}"
- end)
- end
- end
+def stream_from(broadcasting, callback = nil, coder: nil, &block)
+ return if unsubscribed?
+
+ broadcasting = String(broadcasting)
+
+ # Don't send the confirmation until pubsub#subscribe is successful
+ defer_subscription_confirmation!
+
+ # Build a stream handler by wrapping the user-provided callback with a decoder
+ # or defaulting to a JSON-decoding retransmitter.
+ handler = worker_pool_stream_handler(broadcasting, callback || block, coder: coder)
+ streams[broadcasting] = handler
+
+ connection.server.event_loop.post do
+ pubsub.subscribe(broadcasting, handler, lambda do
+ ensure_confirmation_sent
+ logger.info "#{self.class.name} is streaming from #{broadcasting}"
+ end)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -368,15 +368,15 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 146
- def stream_or_reject_for(model)
- if model
- stream_for model
- else
- reject
- end
- end
+def stream_or_reject_for(model)
+ if model
+ stream_for model
+ else
+ reject
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase.html b/src/classes/ActionCable/Channel/TestCase.html
index 08fb28c0cf..6317ff44d0 100644
--- a/src/classes/ActionCable/Channel/TestCase.html
+++ b/src/classes/ActionCable/Channel/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior.html b/src/classes/ActionCable/Channel/TestCase/Behavior.html
index b5f3a5cbb7..5a8ea0fd78 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -196,11 +196,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 282
- def assert_broadcast_on(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcast_on(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -231,11 +231,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 278
- def assert_broadcasts(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcasts(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,11 +272,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 326
- def assert_has_no_stream(stream)
- assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
- end
+def assert_has_no_stream(stream)
+ assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -313,11 +313,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 337
- def assert_has_no_stream_for(object)
- assert_has_no_stream(broadcasting_for(object))
- end
+def assert_has_no_stream_for(object)
+ assert_has_no_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -354,11 +354,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 304
- def assert_has_stream(stream)
- assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
- end
+def assert_has_stream(stream)
+ assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -395,11 +395,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 315
- def assert_has_stream_for(object)
- assert_has_stream(broadcasting_for(object))
- end
+def assert_has_stream_for(object)
+ assert_has_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -436,11 +436,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 293
- def assert_no_streams
- assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
- end
+def assert_no_streams
+ assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -473,12 +473,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 266
- def perform(action, data = {})
- check_subscribed!
- subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
- end
+def perform(action, data = {})
+ check_subscribed!
+ subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -516,11 +516,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 243
- def stub_connection(identifiers = {})
- @connection = ConnectionStub.new(identifiers)
- end
+def stub_connection(identifiers = {})
+ @connection = ConnectionStub.new(identifiers)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -551,15 +551,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 249
- def subscribe(params = {})
- @connection ||= stub_connection
- @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
- @subscription.singleton_class.include(ChannelStub)
- @subscription.subscribe_to_channel
- @subscription
- end
+def subscribe(params = {})
+ @connection ||= stub_connection
+ @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
+ @subscription.singleton_class.include(ChannelStub)
+ @subscription.subscribe_to_channel
+ @subscription
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -590,12 +590,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 272
- def transmissions
- # Return only directly sent message (via #transmit)
- connection.transmissions.filter_map { |data| data["message"] }
- end
+def transmissions
+ # Return only directly sent message (via #transmit)
+ connection.transmissions.filter_map { |data| data["message"] }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -626,12 +626,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 258
- def unsubscribe
- check_subscribed!
- subscription.unsubscribe_from_channel
- end
+def unsubscribe
+ check_subscribed!
+ subscription.unsubscribe_from_channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
index 48ea87f130..57efb4cdac 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 219
- def channel_class
- if channel = self._channel_class
- channel
- else
- tests determine_default_channel(name)
- end
- end
+def channel_class
+ if channel = self._channel_class
+ channel
+ else
+ tests determine_default_channel(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 227
- def determine_default_channel(name)
- channel = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Channel::Base
- end
- raise NonInferrableChannelError.new(name) if channel.nil?
- channel
- end
+def determine_default_channel(name)
+ channel = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Channel::Base
+ end
+ raise NonInferrableChannelError.new(name) if channel.nil?
+ channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 208
- def tests(channel)
- case channel
- when String, Symbol
- self._channel_class = channel.to_s.camelize.constantize
- when Module
- self._channel_class = channel
- else
- raise NonInferrableChannelError.new(channel)
- end
- end
+def tests(channel)
+ case channel
+ when String, Symbol
+ self._channel_class = channel.to_s.camelize.constantize
+ when Module
+ self._channel_class = channel
+ else
+ raise NonInferrableChannelError.new(channel)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection.html b/src/classes/ActionCable/Connection.html
index f832214f0e..7889c75284 100644
--- a/src/classes/ActionCable/Connection.html
+++ b/src/classes/ActionCable/Connection.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Assertions.html b/src/classes/ActionCable/Connection/Assertions.html
index 933ea80e4c..6b10ec5528 100644
--- a/src/classes/ActionCable/Connection/Assertions.html
+++ b/src/classes/ActionCable/Connection/Assertions.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 28
- def assert_reject_connection(&block)
- assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
- end
+def assert_reject_connection(&block)
+ assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization.html b/src/classes/ActionCable/Connection/Authorization.html
index feb855aa9e..baf85a37b3 100644
--- a/src/classes/ActionCable/Connection/Authorization.html
+++ b/src/classes/ActionCable/Connection/Authorization.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -97,12 +97,12 @@
# File actioncable/lib/action_cable/connection/authorization.rb, line 12
- def reject_unauthorized_connection
- logger.error "An unauthorized connection attempt was rejected"
- raise UnauthorizedError
- end
+def reject_unauthorized_connection
+ logger.error "An unauthorized connection attempt was rejected"
+ raise UnauthorizedError
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
index b63b282b0b..ff36299a28 100644
--- a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
+++ b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/Base.html b/src/classes/ActionCable/Connection/Base.html
index 36a2f1e1bb..ea0d62911f 100644
--- a/src/classes/ActionCable/Connection/Base.html
+++ b/src/classes/ActionCable/Connection/Base.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -255,21 +255,21 @@
# File actioncable/lib/action_cable/connection/base.rb, line 67
- def initialize(server, env, coder: ActiveSupport::JSON)
- @server, @env, @coder = server, env, coder
+def initialize(server, env, coder: ActiveSupport::JSON)
+ @server, @env, @coder = server, env, coder
- @worker_pool = server.worker_pool
- @logger = new_tagged_logger
+ @worker_pool = server.worker_pool
+ @logger = new_tagged_logger
- @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
+ @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
- @_internal_subscriptions = nil
- @started_at = Time.now
- end
+ @_internal_subscriptions = nil
+ @started_at = Time.now
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -304,11 +304,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 147
- def beat
- transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
- end
+def beat
+ transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -339,16 +339,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 120
- def close(reason: nil, reconnect: true)
- transmit(
- type: ActionCable::INTERNAL[:message_types][:disconnect],
- reason: reason,
- reconnect: reconnect
- )
- websocket.close
- end
+def close(reason: nil, reconnect: true)
+ transmit(
+ type: ActionCable::INTERNAL[:message_types][:disconnect],
+ reason: reason,
+ reconnect: reconnect
+ )
+ websocket.close
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -379,13 +379,13 @@
# File actioncable/lib/action_cable/connection/base.rb, line 109
- def handle_channel_command(payload)
- run_callbacks :command do
- subscriptions.execute_command payload
- end
- end
+def handle_channel_command(payload)
+ run_callbacks :command do
+ subscriptions.execute_command payload
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -416,11 +416,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 131
- def send_async(method, *arguments)
- worker_pool.async_invoke(self, method, *arguments)
- end
+def send_async(method, *arguments)
+ worker_pool.async_invoke(self, method, *arguments)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -451,16 +451,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 138
- def statistics
- {
- identifier: connection_identifier,
- started_at: @started_at,
- subscriptions: subscriptions.identifiers,
- request_id: @env["action_dispatch.request_id"]
- }
- end
+def statistics
+ {
+ identifier: connection_identifier,
+ started_at: @started_at,
+ subscriptions: subscriptions.identifiers,
+ request_id: @env["action_dispatch.request_id"]
+ }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -494,11 +494,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 187
- def cookies # :doc:
- request.cookie_jar
- end
+def cookies # :doc:
+ request.cookie_jar
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -529,14 +529,14 @@
# File actioncable/lib/action_cable/connection/base.rb, line 178
- def request # :doc:
- @request ||= begin
- environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
- ActionDispatch::Request.new(environment || env)
- end
- end
+def request # :doc:
+ @request ||= begin
+ environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
+ ActionDispatch::Request.new(environment || env)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Callbacks.html b/src/classes/ActionCable/Connection/Callbacks.html
index 818958bf81..d6504ca284 100644
--- a/src/classes/ActionCable/Connection/Callbacks.html
+++ b/src/classes/ActionCable/Connection/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
index 933056a029..6376d7195b 100644
--- a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,11 +90,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 47
- def after_command(*methods, &block)
- set_callback(:command, :after, *methods, &block)
- end
+def after_command(*methods, &block)
+ set_callback(:command, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -125,11 +125,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 51
- def around_command(*methods, &block)
- set_callback(:command, :around, *methods, &block)
- end
+def around_command(*methods, &block)
+ set_callback(:command, :around, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -160,11 +160,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 43
- def before_command(*methods, &block)
- set_callback(:command, :before, *methods, &block)
- end
+def before_command(*methods, &block)
+ set_callback(:command, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification.html b/src/classes/ActionCable/Connection/Identification.html
index f3dcea9bfc..063ca88999 100644
--- a/src/classes/ActionCable/Connection/Identification.html
+++ b/src/classes/ActionCable/Connection/Identification.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,15 +95,15 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 29
- def connection_identifier
- unless defined? @connection_identifier
- @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
- end
+def connection_identifier
+ unless defined? @connection_identifier
+ @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
+ end
- @connection_identifier
- end
+ @connection_identifier
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification/ClassMethods.html b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
index 324ded31f5..a3395ef8a3 100644
--- a/src/classes/ActionCable/Connection/Identification/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -84,12 +84,12 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 21
- def identified_by(*identifiers)
- Array(identifiers).each { |identifier| attr_accessor identifier }
- self.identifiers += identifiers
- end
+def identified_by(*identifiers)
+ Array(identifiers).each { |identifier| attr_accessor identifier }
+ self.identifiers += identifiers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/InternalChannel.html b/src/classes/ActionCable/Connection/InternalChannel.html
index 9b0144f690..cfdccceaf4 100644
--- a/src/classes/ActionCable/Connection/InternalChannel.html
+++ b/src/classes/ActionCable/Connection/InternalChannel.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
index 7167904452..bf0c696d62 100644
--- a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
+++ b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 15
- def initialize(name)
- super "Unable to determine the connection to test from #{name}. " +
- "You'll need to specify it using `tests YourConnection` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the connection to test from #{name}. " +
+ "You'll need to specify it using `tests YourConnection` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/StreamEventLoop.html b/src/classes/ActionCable/Connection/StreamEventLoop.html
index 2b71a213e3..f7c49354ef 100644
--- a/src/classes/ActionCable/Connection/StreamEventLoop.html
+++ b/src/classes/ActionCable/Connection/StreamEventLoop.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -111,16 +111,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 10
- def initialize
- @nio = @executor = @thread = nil
- @map = {}
- @stopping = false
- @todo = Queue.new
-
- @spawn_mutex = Mutex.new
- end
+def initialize
+ @nio = @executor = @thread = nil
+ @map = {}
+ @stopping = false
+ @todo = Queue.new
+
+ @spawn_mutex = Mutex.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -155,15 +155,15 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 30
- def attach(io, stream)
- @todo << lambda do
- @map[io] = @nio.register(io, :r)
- @map[io].value = stream
- end
- wakeup
- end
+def attach(io, stream)
+ @todo << lambda do
+ @map[io] = @nio.register(io, :r)
+ @map[io].value = stream
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -194,16 +194,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 38
- def detach(io, stream)
- @todo << lambda do
- @nio.deregister io
- @map.delete io
- io.close
- end
- wakeup
- end
+def detach(io, stream)
+ @todo << lambda do
+ @nio.deregister io
+ @map.delete io
+ io.close
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -234,14 +234,14 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 23
- def post(task = nil, &block)
- task ||= block
+def post(task = nil, &block)
+ task ||= block
- spawn
- @executor << task
- end
+ spawn
+ @executor << task
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,12 +272,12 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 56
- def stop
- @stopping = true
- wakeup if @nio
- end
+def stop
+ @stopping = true
+ wakeup if @nio
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -308,11 +308,11 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 19
- def timer(interval, &block)
- Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
- end
+def timer(interval, &block)
+ Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -343,16 +343,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 47
- def writes_pending(io)
- @todo << lambda do
- if monitor = @map[io]
- monitor.interests = :rw
- end
- end
- wakeup
- end
+def writes_pending(io)
+ @todo << lambda do
+ if monitor = @map[io]
+ monitor.interests = :rw
+ end
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
index f4d5cacc63..99731855fb 100644
--- a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
+++ b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -121,12 +121,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 16
- def initialize(logger, tags:)
- @logger = logger
- @tags = tags.flatten
- end
+def initialize(logger, tags:)
+ @logger = logger
+ @tags = tags.flatten
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -161,12 +161,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 21
- def add_tags(*tags)
- @tags += tags.flatten
- @tags = @tags.uniq
- end
+def add_tags(*tags)
+ @tags += tags.flatten
+ @tags = @tags.uniq
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -197,16 +197,16 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 26
- def tag(logger, &block)
- if logger.respond_to?(:tagged)
- current_tags = tags - logger.formatter.current_tags
- logger.tagged(*current_tags, &block)
- else
- yield
- end
- end
+def tag(logger, &block)
+ if logger.respond_to?(:tagged)
+ current_tags = tags - logger.formatter.current_tags
+ logger.tagged(*current_tags, &block)
+ else
+ yield
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,11 +240,11 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 42
- def log(type, message, &block) # :doc:
- tag(@logger) { @logger.send type, message, &block }
- end
+def log(type, message, &block) # :doc:
+ tag(@logger) { @logger.send type, message, &block }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase.html b/src/classes/ActionCable/Connection/TestCase.html
index 948378e491..39bc5cb056 100644
--- a/src/classes/ActionCable/Connection/TestCase.html
+++ b/src/classes/ActionCable/Connection/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior.html b/src/classes/ActionCable/Connection/TestCase/Behavior.html
index b87870becd..4ee0debbea 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -163,19 +163,19 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 192
- def connect(path = ActionCable.server.config.mount_path, **request_params)
- path ||= DEFAULT_PATH
+def connect(path = ActionCable.server.config.mount_path, **request_params)
+ path ||= DEFAULT_PATH
- connection = self.class.connection_class.allocate
- connection.singleton_class.include(TestConnection)
- connection.send(:initialize, build_test_request(path, **request_params))
- connection.connect if connection.respond_to?(:connect)
+ connection = self.class.connection_class.allocate
+ connection.singleton_class.include(TestConnection)
+ connection.send(:initialize, build_test_request(path, **request_params))
+ connection.connect if connection.respond_to?(:connect)
- # Only set instance variable if connected successfully
- @connection = connection
- end
+ # Only set instance variable if connected successfully
+ @connection = connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -206,11 +206,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 212
- def cookies
- @cookie_jar ||= TestCookieJar.new
- end
+def cookies
+ @cookie_jar ||= TestCookieJar.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -241,14 +241,14 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 205
- def disconnect
- raise "Must be connected!" if connection.nil?
+def disconnect
+ raise "Must be connected!" if connection.nil?
- connection.disconnect if connection.respond_to?(:disconnect)
- @connection = nil
- end
+ connection.disconnect if connection.respond_to?(:disconnect)
+ @connection = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
index 63444f4b27..99fc0e3f6f 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 167
- def connection_class
- if connection = self._connection_class
- connection
- else
- tests determine_default_connection(name)
- end
- end
+def connection_class
+ if connection = self._connection_class
+ connection
+ else
+ tests determine_default_connection(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 175
- def determine_default_connection(name)
- connection = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Connection::Base
- end
- raise NonInferrableConnectionError.new(name) if connection.nil?
- connection
- end
+def determine_default_connection(name)
+ connection = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Connection::Base
+ end
+ raise NonInferrableConnectionError.new(name) if connection.nil?
+ connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 55
- def initialize(identifiers = {})
- @server = ActionCable.server
- @transmissions = []
-
- identifiers.each do |identifier, val|
- define_singleton_method(identifier) { val }
- end
-
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @identifiers = identifiers.keys
- @logger = ActiveSupport::TaggedLogging.new ActiveSupport::Logger.new(StringIO.new)
- end
+def initialize(identifiers = {})
+ @server = ActionCable.server
+ @transmissions = []
+
+ identifiers.each do |identifier, val|
+ define_singleton_method(identifier) { val }
+ end
+
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @identifiers = identifiers.keys
+ @logger = ActiveSupport::TaggedLogging.new ActiveSupport::Logger.new(StringIO.new)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -189,11 +189,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 72
- def connection_identifier
- @connection_identifier ||= connection_gid(identifiers.filter_map { |id| send(id.to_sym) if id })
- end
+def connection_identifier
+ @connection_identifier ||= connection_gid(identifiers.filter_map { |id| send(id.to_sym) if id })
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -224,11 +224,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 68
- def transmit(cable_message)
- transmissions << cable_message.with_indifferent_access
- end
+def transmit(cable_message)
+ transmissions << cable_message.with_indifferent_access
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Naming.html b/src/classes/ActionCable/Channel/Naming.html
index 84bfc0232c..db2aa18589 100644
--- a/src/classes/ActionCable/Channel/Naming.html
+++ b/src/classes/ActionCable/Channel/Naming.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,11 +95,11 @@
# File actioncable/lib/action_cable/channel/naming.rb, line 23
- def channel_name
- self.class.channel_name
- end
+def channel_name
+ self.class.channel_name
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Naming/ClassMethods.html b/src/classes/ActionCable/Channel/Naming/ClassMethods.html
index b847309f12..e99c0744a7 100644
--- a/src/classes/ActionCable/Channel/Naming/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Naming/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -66,7 +66,7 @@
- Returns the name of the channel, underscored, without the Channel ending. If the channel is in a namespace, then the namespaces are represented by single colon separators in the channel name.
+ Returns the name of the channel, underscored, without the Channel ending. If the channel is in a namespace, then the namespaces are represented by single colon separators in the channel name.
ChatChannel.channel_name # => 'chat'
Chats::AppearancesChannel.channel_name # => 'chats:appearances'
@@ -87,11 +87,11 @@
# File actioncable/lib/action_cable/channel/naming.rb, line 18
- def channel_name
- @channel_name ||= name.delete_suffix("Channel").gsub("::", ":").underscore
- end
+def channel_name
+ @channel_name ||= name.delete_suffix("Channel").gsub("::", ":").underscore
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/NonInferrableChannelError.html b/src/classes/ActionCable/Channel/NonInferrableChannelError.html
index 034c36b135..1eac81cbd2 100644
--- a/src/classes/ActionCable/Channel/NonInferrableChannelError.html
+++ b/src/classes/ActionCable/Channel/NonInferrableChannelError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 13
- def initialize(name)
- super "Unable to determine the channel to test from #{name}. " +
- "You'll need to specify it using `tests YourChannel` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the channel to test from #{name}. " +
+ "You'll need to specify it using `tests YourChannel` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/PeriodicTimers.html b/src/classes/ActionCable/Channel/PeriodicTimers.html
index 88facef675..561da6e0dd 100644
--- a/src/classes/ActionCable/Channel/PeriodicTimers.html
+++ b/src/classes/ActionCable/Channel/PeriodicTimers.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html b/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
index 233865e2e3..a694f6de16 100644
--- a/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -91,30 +91,30 @@
# File actioncable/lib/action_cable/channel/periodic_timers.rb, line 31
- def periodically(callback_or_method_name = nil, every:, &block)
- callback =
- if block_given?
- raise ArgumentError, "Pass a block or provide a callback arg, not both" if callback_or_method_name
- block
- else
- case callback_or_method_name
- when Proc
- callback_or_method_name
- when Symbol
- -> { __send__ callback_or_method_name }
- else
- raise ArgumentError, "Expected a Symbol method name or a Proc, got #{callback_or_method_name.inspect}"
- end
- end
-
- unless every.kind_of?(Numeric) && every > 0
- raise ArgumentError, "Expected every: to be a positive number of seconds, got #{every.inspect}"
- end
-
- self.periodic_timers += [[ callback, every: every ]]
- end
+def periodically(callback_or_method_name = nil, every:, &block)
+ callback =
+ if block_given?
+ raise ArgumentError, "Pass a block or provide a callback arg, not both" if callback_or_method_name
+ block
+ else
+ case callback_or_method_name
+ when Proc
+ callback_or_method_name
+ when Symbol
+ -> { __send__ callback_or_method_name }
+ else
+ raise ArgumentError, "Expected a Symbol method name or a Proc, got #{callback_or_method_name.inspect}"
+ end
+ end
+
+ unless every.kind_of?(Numeric) && every > 0
+ raise ArgumentError, "Expected every: to be a positive number of seconds, got #{every.inspect}"
+ end
+
+ self.periodic_timers += [[ callback, every: every ]]
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Streams.html b/src/classes/ActionCable/Channel/Streams.html
index 0967feb616..a2e686a3e9 100644
--- a/src/classes/ActionCable/Channel/Streams.html
+++ b/src/classes/ActionCable/Channel/Streams.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -167,14 +167,14 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 137
- def stop_all_streams
- streams.each do |broadcasting, callback|
- pubsub.unsubscribe broadcasting, callback
- logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
- end.clear
- end
+def stop_all_streams
+ streams.each do |broadcasting, callback|
+ pubsub.unsubscribe broadcasting, callback
+ logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
+ end.clear
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -205,11 +205,11 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 132
- def stop_stream_for(model)
- stop_stream_from(broadcasting_for(model))
- end
+def stop_stream_for(model)
+ stop_stream_from(broadcasting_for(model))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,15 +240,15 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 123
- def stop_stream_from(broadcasting)
- callback = streams.delete(broadcasting)
- if callback
- pubsub.unsubscribe(broadcasting, callback)
- logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
- end
- end
+def stop_stream_from(broadcasting)
+ callback = streams.delete(broadcasting)
+ if callback
+ pubsub.unsubscribe(broadcasting, callback)
+ logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -281,11 +281,11 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 118
- def stream_for(broadcastables, callback = nil, coder: nil, &block)
- stream_from(broadcasting_for(broadcastables), callback || block, coder: coder)
- end
+def stream_for(broadcastables, callback = nil, coder: nil, &block)
+ stream_from(broadcasting_for(broadcastables), callback || block, coder: coder)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -316,28 +316,28 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 90
- def stream_from(broadcasting, callback = nil, coder: nil, &block)
- return if unsubscribed?
-
- broadcasting = String(broadcasting)
-
- # Don't send the confirmation until pubsub#subscribe is successful
- defer_subscription_confirmation!
-
- # Build a stream handler by wrapping the user-provided callback with a decoder
- # or defaulting to a JSON-decoding retransmitter.
- handler = worker_pool_stream_handler(broadcasting, callback || block, coder: coder)
- streams[broadcasting] = handler
-
- connection.server.event_loop.post do
- pubsub.subscribe(broadcasting, handler, lambda do
- ensure_confirmation_sent
- logger.info "#{self.class.name} is streaming from #{broadcasting}"
- end)
- end
- end
+def stream_from(broadcasting, callback = nil, coder: nil, &block)
+ return if unsubscribed?
+
+ broadcasting = String(broadcasting)
+
+ # Don't send the confirmation until pubsub#subscribe is successful
+ defer_subscription_confirmation!
+
+ # Build a stream handler by wrapping the user-provided callback with a decoder
+ # or defaulting to a JSON-decoding retransmitter.
+ handler = worker_pool_stream_handler(broadcasting, callback || block, coder: coder)
+ streams[broadcasting] = handler
+
+ connection.server.event_loop.post do
+ pubsub.subscribe(broadcasting, handler, lambda do
+ ensure_confirmation_sent
+ logger.info "#{self.class.name} is streaming from #{broadcasting}"
+ end)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -368,15 +368,15 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 146
- def stream_or_reject_for(model)
- if model
- stream_for model
- else
- reject
- end
- end
+def stream_or_reject_for(model)
+ if model
+ stream_for model
+ else
+ reject
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase.html b/src/classes/ActionCable/Channel/TestCase.html
index 08fb28c0cf..6317ff44d0 100644
--- a/src/classes/ActionCable/Channel/TestCase.html
+++ b/src/classes/ActionCable/Channel/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior.html b/src/classes/ActionCable/Channel/TestCase/Behavior.html
index b5f3a5cbb7..5a8ea0fd78 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -196,11 +196,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 282
- def assert_broadcast_on(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcast_on(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -231,11 +231,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 278
- def assert_broadcasts(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcasts(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,11 +272,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 326
- def assert_has_no_stream(stream)
- assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
- end
+def assert_has_no_stream(stream)
+ assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -313,11 +313,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 337
- def assert_has_no_stream_for(object)
- assert_has_no_stream(broadcasting_for(object))
- end
+def assert_has_no_stream_for(object)
+ assert_has_no_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -354,11 +354,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 304
- def assert_has_stream(stream)
- assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
- end
+def assert_has_stream(stream)
+ assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -395,11 +395,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 315
- def assert_has_stream_for(object)
- assert_has_stream(broadcasting_for(object))
- end
+def assert_has_stream_for(object)
+ assert_has_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -436,11 +436,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 293
- def assert_no_streams
- assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
- end
+def assert_no_streams
+ assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -473,12 +473,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 266
- def perform(action, data = {})
- check_subscribed!
- subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
- end
+def perform(action, data = {})
+ check_subscribed!
+ subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -516,11 +516,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 243
- def stub_connection(identifiers = {})
- @connection = ConnectionStub.new(identifiers)
- end
+def stub_connection(identifiers = {})
+ @connection = ConnectionStub.new(identifiers)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -551,15 +551,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 249
- def subscribe(params = {})
- @connection ||= stub_connection
- @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
- @subscription.singleton_class.include(ChannelStub)
- @subscription.subscribe_to_channel
- @subscription
- end
+def subscribe(params = {})
+ @connection ||= stub_connection
+ @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
+ @subscription.singleton_class.include(ChannelStub)
+ @subscription.subscribe_to_channel
+ @subscription
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -590,12 +590,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 272
- def transmissions
- # Return only directly sent message (via #transmit)
- connection.transmissions.filter_map { |data| data["message"] }
- end
+def transmissions
+ # Return only directly sent message (via #transmit)
+ connection.transmissions.filter_map { |data| data["message"] }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -626,12 +626,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 258
- def unsubscribe
- check_subscribed!
- subscription.unsubscribe_from_channel
- end
+def unsubscribe
+ check_subscribed!
+ subscription.unsubscribe_from_channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
index 48ea87f130..57efb4cdac 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 219
- def channel_class
- if channel = self._channel_class
- channel
- else
- tests determine_default_channel(name)
- end
- end
+def channel_class
+ if channel = self._channel_class
+ channel
+ else
+ tests determine_default_channel(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 227
- def determine_default_channel(name)
- channel = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Channel::Base
- end
- raise NonInferrableChannelError.new(name) if channel.nil?
- channel
- end
+def determine_default_channel(name)
+ channel = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Channel::Base
+ end
+ raise NonInferrableChannelError.new(name) if channel.nil?
+ channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 208
- def tests(channel)
- case channel
- when String, Symbol
- self._channel_class = channel.to_s.camelize.constantize
- when Module
- self._channel_class = channel
- else
- raise NonInferrableChannelError.new(channel)
- end
- end
+def tests(channel)
+ case channel
+ when String, Symbol
+ self._channel_class = channel.to_s.camelize.constantize
+ when Module
+ self._channel_class = channel
+ else
+ raise NonInferrableChannelError.new(channel)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection.html b/src/classes/ActionCable/Connection.html
index f832214f0e..7889c75284 100644
--- a/src/classes/ActionCable/Connection.html
+++ b/src/classes/ActionCable/Connection.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Assertions.html b/src/classes/ActionCable/Connection/Assertions.html
index 933ea80e4c..6b10ec5528 100644
--- a/src/classes/ActionCable/Connection/Assertions.html
+++ b/src/classes/ActionCable/Connection/Assertions.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 28
- def assert_reject_connection(&block)
- assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
- end
+def assert_reject_connection(&block)
+ assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization.html b/src/classes/ActionCable/Connection/Authorization.html
index feb855aa9e..baf85a37b3 100644
--- a/src/classes/ActionCable/Connection/Authorization.html
+++ b/src/classes/ActionCable/Connection/Authorization.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -97,12 +97,12 @@
# File actioncable/lib/action_cable/connection/authorization.rb, line 12
- def reject_unauthorized_connection
- logger.error "An unauthorized connection attempt was rejected"
- raise UnauthorizedError
- end
+def reject_unauthorized_connection
+ logger.error "An unauthorized connection attempt was rejected"
+ raise UnauthorizedError
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
index b63b282b0b..ff36299a28 100644
--- a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
+++ b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/Base.html b/src/classes/ActionCable/Connection/Base.html
index 36a2f1e1bb..ea0d62911f 100644
--- a/src/classes/ActionCable/Connection/Base.html
+++ b/src/classes/ActionCable/Connection/Base.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -255,21 +255,21 @@
# File actioncable/lib/action_cable/connection/base.rb, line 67
- def initialize(server, env, coder: ActiveSupport::JSON)
- @server, @env, @coder = server, env, coder
+def initialize(server, env, coder: ActiveSupport::JSON)
+ @server, @env, @coder = server, env, coder
- @worker_pool = server.worker_pool
- @logger = new_tagged_logger
+ @worker_pool = server.worker_pool
+ @logger = new_tagged_logger
- @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
+ @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
- @_internal_subscriptions = nil
- @started_at = Time.now
- end
+ @_internal_subscriptions = nil
+ @started_at = Time.now
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -304,11 +304,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 147
- def beat
- transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
- end
+def beat
+ transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -339,16 +339,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 120
- def close(reason: nil, reconnect: true)
- transmit(
- type: ActionCable::INTERNAL[:message_types][:disconnect],
- reason: reason,
- reconnect: reconnect
- )
- websocket.close
- end
+def close(reason: nil, reconnect: true)
+ transmit(
+ type: ActionCable::INTERNAL[:message_types][:disconnect],
+ reason: reason,
+ reconnect: reconnect
+ )
+ websocket.close
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -379,13 +379,13 @@
# File actioncable/lib/action_cable/connection/base.rb, line 109
- def handle_channel_command(payload)
- run_callbacks :command do
- subscriptions.execute_command payload
- end
- end
+def handle_channel_command(payload)
+ run_callbacks :command do
+ subscriptions.execute_command payload
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -416,11 +416,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 131
- def send_async(method, *arguments)
- worker_pool.async_invoke(self, method, *arguments)
- end
+def send_async(method, *arguments)
+ worker_pool.async_invoke(self, method, *arguments)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -451,16 +451,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 138
- def statistics
- {
- identifier: connection_identifier,
- started_at: @started_at,
- subscriptions: subscriptions.identifiers,
- request_id: @env["action_dispatch.request_id"]
- }
- end
+def statistics
+ {
+ identifier: connection_identifier,
+ started_at: @started_at,
+ subscriptions: subscriptions.identifiers,
+ request_id: @env["action_dispatch.request_id"]
+ }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -494,11 +494,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 187
- def cookies # :doc:
- request.cookie_jar
- end
+def cookies # :doc:
+ request.cookie_jar
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -529,14 +529,14 @@
# File actioncable/lib/action_cable/connection/base.rb, line 178
- def request # :doc:
- @request ||= begin
- environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
- ActionDispatch::Request.new(environment || env)
- end
- end
+def request # :doc:
+ @request ||= begin
+ environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
+ ActionDispatch::Request.new(environment || env)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Callbacks.html b/src/classes/ActionCable/Connection/Callbacks.html
index 818958bf81..d6504ca284 100644
--- a/src/classes/ActionCable/Connection/Callbacks.html
+++ b/src/classes/ActionCable/Connection/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
index 933056a029..6376d7195b 100644
--- a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,11 +90,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 47
- def after_command(*methods, &block)
- set_callback(:command, :after, *methods, &block)
- end
+def after_command(*methods, &block)
+ set_callback(:command, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -125,11 +125,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 51
- def around_command(*methods, &block)
- set_callback(:command, :around, *methods, &block)
- end
+def around_command(*methods, &block)
+ set_callback(:command, :around, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -160,11 +160,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 43
- def before_command(*methods, &block)
- set_callback(:command, :before, *methods, &block)
- end
+def before_command(*methods, &block)
+ set_callback(:command, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification.html b/src/classes/ActionCable/Connection/Identification.html
index f3dcea9bfc..063ca88999 100644
--- a/src/classes/ActionCable/Connection/Identification.html
+++ b/src/classes/ActionCable/Connection/Identification.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,15 +95,15 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 29
- def connection_identifier
- unless defined? @connection_identifier
- @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
- end
+def connection_identifier
+ unless defined? @connection_identifier
+ @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
+ end
- @connection_identifier
- end
+ @connection_identifier
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification/ClassMethods.html b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
index 324ded31f5..a3395ef8a3 100644
--- a/src/classes/ActionCable/Connection/Identification/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -84,12 +84,12 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 21
- def identified_by(*identifiers)
- Array(identifiers).each { |identifier| attr_accessor identifier }
- self.identifiers += identifiers
- end
+def identified_by(*identifiers)
+ Array(identifiers).each { |identifier| attr_accessor identifier }
+ self.identifiers += identifiers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/InternalChannel.html b/src/classes/ActionCable/Connection/InternalChannel.html
index 9b0144f690..cfdccceaf4 100644
--- a/src/classes/ActionCable/Connection/InternalChannel.html
+++ b/src/classes/ActionCable/Connection/InternalChannel.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
index 7167904452..bf0c696d62 100644
--- a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
+++ b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 15
- def initialize(name)
- super "Unable to determine the connection to test from #{name}. " +
- "You'll need to specify it using `tests YourConnection` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the connection to test from #{name}. " +
+ "You'll need to specify it using `tests YourConnection` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/StreamEventLoop.html b/src/classes/ActionCable/Connection/StreamEventLoop.html
index 2b71a213e3..f7c49354ef 100644
--- a/src/classes/ActionCable/Connection/StreamEventLoop.html
+++ b/src/classes/ActionCable/Connection/StreamEventLoop.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -111,16 +111,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 10
- def initialize
- @nio = @executor = @thread = nil
- @map = {}
- @stopping = false
- @todo = Queue.new
-
- @spawn_mutex = Mutex.new
- end
+def initialize
+ @nio = @executor = @thread = nil
+ @map = {}
+ @stopping = false
+ @todo = Queue.new
+
+ @spawn_mutex = Mutex.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -155,15 +155,15 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 30
- def attach(io, stream)
- @todo << lambda do
- @map[io] = @nio.register(io, :r)
- @map[io].value = stream
- end
- wakeup
- end
+def attach(io, stream)
+ @todo << lambda do
+ @map[io] = @nio.register(io, :r)
+ @map[io].value = stream
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -194,16 +194,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 38
- def detach(io, stream)
- @todo << lambda do
- @nio.deregister io
- @map.delete io
- io.close
- end
- wakeup
- end
+def detach(io, stream)
+ @todo << lambda do
+ @nio.deregister io
+ @map.delete io
+ io.close
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -234,14 +234,14 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 23
- def post(task = nil, &block)
- task ||= block
+def post(task = nil, &block)
+ task ||= block
- spawn
- @executor << task
- end
+ spawn
+ @executor << task
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,12 +272,12 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 56
- def stop
- @stopping = true
- wakeup if @nio
- end
+def stop
+ @stopping = true
+ wakeup if @nio
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -308,11 +308,11 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 19
- def timer(interval, &block)
- Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
- end
+def timer(interval, &block)
+ Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -343,16 +343,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 47
- def writes_pending(io)
- @todo << lambda do
- if monitor = @map[io]
- monitor.interests = :rw
- end
- end
- wakeup
- end
+def writes_pending(io)
+ @todo << lambda do
+ if monitor = @map[io]
+ monitor.interests = :rw
+ end
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
index f4d5cacc63..99731855fb 100644
--- a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
+++ b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -121,12 +121,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 16
- def initialize(logger, tags:)
- @logger = logger
- @tags = tags.flatten
- end
+def initialize(logger, tags:)
+ @logger = logger
+ @tags = tags.flatten
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -161,12 +161,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 21
- def add_tags(*tags)
- @tags += tags.flatten
- @tags = @tags.uniq
- end
+def add_tags(*tags)
+ @tags += tags.flatten
+ @tags = @tags.uniq
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -197,16 +197,16 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 26
- def tag(logger, &block)
- if logger.respond_to?(:tagged)
- current_tags = tags - logger.formatter.current_tags
- logger.tagged(*current_tags, &block)
- else
- yield
- end
- end
+def tag(logger, &block)
+ if logger.respond_to?(:tagged)
+ current_tags = tags - logger.formatter.current_tags
+ logger.tagged(*current_tags, &block)
+ else
+ yield
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,11 +240,11 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 42
- def log(type, message, &block) # :doc:
- tag(@logger) { @logger.send type, message, &block }
- end
+def log(type, message, &block) # :doc:
+ tag(@logger) { @logger.send type, message, &block }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase.html b/src/classes/ActionCable/Connection/TestCase.html
index 948378e491..39bc5cb056 100644
--- a/src/classes/ActionCable/Connection/TestCase.html
+++ b/src/classes/ActionCable/Connection/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior.html b/src/classes/ActionCable/Connection/TestCase/Behavior.html
index b87870becd..4ee0debbea 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -163,19 +163,19 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 192
- def connect(path = ActionCable.server.config.mount_path, **request_params)
- path ||= DEFAULT_PATH
+def connect(path = ActionCable.server.config.mount_path, **request_params)
+ path ||= DEFAULT_PATH
- connection = self.class.connection_class.allocate
- connection.singleton_class.include(TestConnection)
- connection.send(:initialize, build_test_request(path, **request_params))
- connection.connect if connection.respond_to?(:connect)
+ connection = self.class.connection_class.allocate
+ connection.singleton_class.include(TestConnection)
+ connection.send(:initialize, build_test_request(path, **request_params))
+ connection.connect if connection.respond_to?(:connect)
- # Only set instance variable if connected successfully
- @connection = connection
- end
+ # Only set instance variable if connected successfully
+ @connection = connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -206,11 +206,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 212
- def cookies
- @cookie_jar ||= TestCookieJar.new
- end
+def cookies
+ @cookie_jar ||= TestCookieJar.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -241,14 +241,14 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 205
- def disconnect
- raise "Must be connected!" if connection.nil?
+def disconnect
+ raise "Must be connected!" if connection.nil?
- connection.disconnect if connection.respond_to?(:disconnect)
- @connection = nil
- end
+ connection.disconnect if connection.respond_to?(:disconnect)
+ @connection = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
index 63444f4b27..99fc0e3f6f 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 167
- def connection_class
- if connection = self._connection_class
- connection
- else
- tests determine_default_connection(name)
- end
- end
+def connection_class
+ if connection = self._connection_class
+ connection
+ else
+ tests determine_default_connection(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 175
- def determine_default_connection(name)
- connection = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Connection::Base
- end
- raise NonInferrableConnectionError.new(name) if connection.nil?
- connection
- end
+def determine_default_connection(name)
+ connection = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Connection::Base
+ end
+ raise NonInferrableConnectionError.new(name) if connection.nil?
+ connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 72
- def connection_identifier
- @connection_identifier ||= connection_gid(identifiers.filter_map { |id| send(id.to_sym) if id })
- end# File actioncable/lib/action_cable/channel/test_case.rb, line 68
- def transmit(cable_message)
- transmissions << cable_message.with_indifferent_access
- end
+def transmit(cable_message)
+ transmissions << cable_message.with_indifferent_access
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Naming.html b/src/classes/ActionCable/Channel/Naming.html
index 84bfc0232c..db2aa18589 100644
--- a/src/classes/ActionCable/Channel/Naming.html
+++ b/src/classes/ActionCable/Channel/Naming.html
@@ -5,7 +5,7 @@
+ Ruby on Rails 8.1.0.rc1
@@ -95,11 +95,11 @@
# File actioncable/lib/action_cable/channel/naming.rb, line 23
- def channel_name
- self.class.channel_name
- end
+def channel_name
+ self.class.channel_name
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Naming/ClassMethods.html b/src/classes/ActionCable/Channel/Naming/ClassMethods.html
index b847309f12..e99c0744a7 100644
--- a/src/classes/ActionCable/Channel/Naming/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Naming/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -66,7 +66,7 @@
- Returns the name of the channel, underscored, without the Channel ending. If the channel is in a namespace, then the namespaces are represented by single colon separators in the channel name.
+ Returns the name of the channel, underscored, without the Channel ending. If the channel is in a namespace, then the namespaces are represented by single colon separators in the channel name.
ChatChannel.channel_name # => 'chat'
Chats::AppearancesChannel.channel_name # => 'chats:appearances'
@@ -87,11 +87,11 @@
# File actioncable/lib/action_cable/channel/naming.rb, line 18
- def channel_name
- @channel_name ||= name.delete_suffix("Channel").gsub("::", ":").underscore
- end
+def channel_name
+ @channel_name ||= name.delete_suffix("Channel").gsub("::", ":").underscore
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/NonInferrableChannelError.html b/src/classes/ActionCable/Channel/NonInferrableChannelError.html
index 034c36b135..1eac81cbd2 100644
--- a/src/classes/ActionCable/Channel/NonInferrableChannelError.html
+++ b/src/classes/ActionCable/Channel/NonInferrableChannelError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 13
- def initialize(name)
- super "Unable to determine the channel to test from #{name}. " +
- "You'll need to specify it using `tests YourChannel` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the channel to test from #{name}. " +
+ "You'll need to specify it using `tests YourChannel` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/PeriodicTimers.html b/src/classes/ActionCable/Channel/PeriodicTimers.html
index 88facef675..561da6e0dd 100644
--- a/src/classes/ActionCable/Channel/PeriodicTimers.html
+++ b/src/classes/ActionCable/Channel/PeriodicTimers.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html b/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
index 233865e2e3..a694f6de16 100644
--- a/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -91,30 +91,30 @@
# File actioncable/lib/action_cable/channel/periodic_timers.rb, line 31
- def periodically(callback_or_method_name = nil, every:, &block)
- callback =
- if block_given?
- raise ArgumentError, "Pass a block or provide a callback arg, not both" if callback_or_method_name
- block
- else
- case callback_or_method_name
- when Proc
- callback_or_method_name
- when Symbol
- -> { __send__ callback_or_method_name }
- else
- raise ArgumentError, "Expected a Symbol method name or a Proc, got #{callback_or_method_name.inspect}"
- end
- end
-
- unless every.kind_of?(Numeric) && every > 0
- raise ArgumentError, "Expected every: to be a positive number of seconds, got #{every.inspect}"
- end
-
- self.periodic_timers += [[ callback, every: every ]]
- end
+def periodically(callback_or_method_name = nil, every:, &block)
+ callback =
+ if block_given?
+ raise ArgumentError, "Pass a block or provide a callback arg, not both" if callback_or_method_name
+ block
+ else
+ case callback_or_method_name
+ when Proc
+ callback_or_method_name
+ when Symbol
+ -> { __send__ callback_or_method_name }
+ else
+ raise ArgumentError, "Expected a Symbol method name or a Proc, got #{callback_or_method_name.inspect}"
+ end
+ end
+
+ unless every.kind_of?(Numeric) && every > 0
+ raise ArgumentError, "Expected every: to be a positive number of seconds, got #{every.inspect}"
+ end
+
+ self.periodic_timers += [[ callback, every: every ]]
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Streams.html b/src/classes/ActionCable/Channel/Streams.html
index 0967feb616..a2e686a3e9 100644
--- a/src/classes/ActionCable/Channel/Streams.html
+++ b/src/classes/ActionCable/Channel/Streams.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -167,14 +167,14 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 137
- def stop_all_streams
- streams.each do |broadcasting, callback|
- pubsub.unsubscribe broadcasting, callback
- logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
- end.clear
- end
+def stop_all_streams
+ streams.each do |broadcasting, callback|
+ pubsub.unsubscribe broadcasting, callback
+ logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
+ end.clear
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -205,11 +205,11 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 132
- def stop_stream_for(model)
- stop_stream_from(broadcasting_for(model))
- end
+def stop_stream_for(model)
+ stop_stream_from(broadcasting_for(model))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,15 +240,15 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 123
- def stop_stream_from(broadcasting)
- callback = streams.delete(broadcasting)
- if callback
- pubsub.unsubscribe(broadcasting, callback)
- logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
- end
- end
+def stop_stream_from(broadcasting)
+ callback = streams.delete(broadcasting)
+ if callback
+ pubsub.unsubscribe(broadcasting, callback)
+ logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -281,11 +281,11 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 118
- def stream_for(broadcastables, callback = nil, coder: nil, &block)
- stream_from(broadcasting_for(broadcastables), callback || block, coder: coder)
- end
+def stream_for(broadcastables, callback = nil, coder: nil, &block)
+ stream_from(broadcasting_for(broadcastables), callback || block, coder: coder)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -316,28 +316,28 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 90
- def stream_from(broadcasting, callback = nil, coder: nil, &block)
- return if unsubscribed?
-
- broadcasting = String(broadcasting)
-
- # Don't send the confirmation until pubsub#subscribe is successful
- defer_subscription_confirmation!
-
- # Build a stream handler by wrapping the user-provided callback with a decoder
- # or defaulting to a JSON-decoding retransmitter.
- handler = worker_pool_stream_handler(broadcasting, callback || block, coder: coder)
- streams[broadcasting] = handler
-
- connection.server.event_loop.post do
- pubsub.subscribe(broadcasting, handler, lambda do
- ensure_confirmation_sent
- logger.info "#{self.class.name} is streaming from #{broadcasting}"
- end)
- end
- end
+def stream_from(broadcasting, callback = nil, coder: nil, &block)
+ return if unsubscribed?
+
+ broadcasting = String(broadcasting)
+
+ # Don't send the confirmation until pubsub#subscribe is successful
+ defer_subscription_confirmation!
+
+ # Build a stream handler by wrapping the user-provided callback with a decoder
+ # or defaulting to a JSON-decoding retransmitter.
+ handler = worker_pool_stream_handler(broadcasting, callback || block, coder: coder)
+ streams[broadcasting] = handler
+
+ connection.server.event_loop.post do
+ pubsub.subscribe(broadcasting, handler, lambda do
+ ensure_confirmation_sent
+ logger.info "#{self.class.name} is streaming from #{broadcasting}"
+ end)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -368,15 +368,15 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 146
- def stream_or_reject_for(model)
- if model
- stream_for model
- else
- reject
- end
- end
+def stream_or_reject_for(model)
+ if model
+ stream_for model
+ else
+ reject
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase.html b/src/classes/ActionCable/Channel/TestCase.html
index 08fb28c0cf..6317ff44d0 100644
--- a/src/classes/ActionCable/Channel/TestCase.html
+++ b/src/classes/ActionCable/Channel/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior.html b/src/classes/ActionCable/Channel/TestCase/Behavior.html
index b5f3a5cbb7..5a8ea0fd78 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -196,11 +196,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 282
- def assert_broadcast_on(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcast_on(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -231,11 +231,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 278
- def assert_broadcasts(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcasts(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,11 +272,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 326
- def assert_has_no_stream(stream)
- assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
- end
+def assert_has_no_stream(stream)
+ assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -313,11 +313,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 337
- def assert_has_no_stream_for(object)
- assert_has_no_stream(broadcasting_for(object))
- end
+def assert_has_no_stream_for(object)
+ assert_has_no_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -354,11 +354,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 304
- def assert_has_stream(stream)
- assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
- end
+def assert_has_stream(stream)
+ assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -395,11 +395,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 315
- def assert_has_stream_for(object)
- assert_has_stream(broadcasting_for(object))
- end
+def assert_has_stream_for(object)
+ assert_has_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -436,11 +436,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 293
- def assert_no_streams
- assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
- end
+def assert_no_streams
+ assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -473,12 +473,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 266
- def perform(action, data = {})
- check_subscribed!
- subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
- end
+def perform(action, data = {})
+ check_subscribed!
+ subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -516,11 +516,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 243
- def stub_connection(identifiers = {})
- @connection = ConnectionStub.new(identifiers)
- end
+def stub_connection(identifiers = {})
+ @connection = ConnectionStub.new(identifiers)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -551,15 +551,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 249
- def subscribe(params = {})
- @connection ||= stub_connection
- @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
- @subscription.singleton_class.include(ChannelStub)
- @subscription.subscribe_to_channel
- @subscription
- end
+def subscribe(params = {})
+ @connection ||= stub_connection
+ @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
+ @subscription.singleton_class.include(ChannelStub)
+ @subscription.subscribe_to_channel
+ @subscription
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -590,12 +590,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 272
- def transmissions
- # Return only directly sent message (via #transmit)
- connection.transmissions.filter_map { |data| data["message"] }
- end
+def transmissions
+ # Return only directly sent message (via #transmit)
+ connection.transmissions.filter_map { |data| data["message"] }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -626,12 +626,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 258
- def unsubscribe
- check_subscribed!
- subscription.unsubscribe_from_channel
- end
+def unsubscribe
+ check_subscribed!
+ subscription.unsubscribe_from_channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
index 48ea87f130..57efb4cdac 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 219
- def channel_class
- if channel = self._channel_class
- channel
- else
- tests determine_default_channel(name)
- end
- end
+def channel_class
+ if channel = self._channel_class
+ channel
+ else
+ tests determine_default_channel(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 227
- def determine_default_channel(name)
- channel = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Channel::Base
- end
- raise NonInferrableChannelError.new(name) if channel.nil?
- channel
- end
+def determine_default_channel(name)
+ channel = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Channel::Base
+ end
+ raise NonInferrableChannelError.new(name) if channel.nil?
+ channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 208
- def tests(channel)
- case channel
- when String, Symbol
- self._channel_class = channel.to_s.camelize.constantize
- when Module
- self._channel_class = channel
- else
- raise NonInferrableChannelError.new(channel)
- end
- end
+def tests(channel)
+ case channel
+ when String, Symbol
+ self._channel_class = channel.to_s.camelize.constantize
+ when Module
+ self._channel_class = channel
+ else
+ raise NonInferrableChannelError.new(channel)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection.html b/src/classes/ActionCable/Connection.html
index f832214f0e..7889c75284 100644
--- a/src/classes/ActionCable/Connection.html
+++ b/src/classes/ActionCable/Connection.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Assertions.html b/src/classes/ActionCable/Connection/Assertions.html
index 933ea80e4c..6b10ec5528 100644
--- a/src/classes/ActionCable/Connection/Assertions.html
+++ b/src/classes/ActionCable/Connection/Assertions.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 28
- def assert_reject_connection(&block)
- assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
- end
+def assert_reject_connection(&block)
+ assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization.html b/src/classes/ActionCable/Connection/Authorization.html
index feb855aa9e..baf85a37b3 100644
--- a/src/classes/ActionCable/Connection/Authorization.html
+++ b/src/classes/ActionCable/Connection/Authorization.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -97,12 +97,12 @@
# File actioncable/lib/action_cable/connection/authorization.rb, line 12
- def reject_unauthorized_connection
- logger.error "An unauthorized connection attempt was rejected"
- raise UnauthorizedError
- end
+def reject_unauthorized_connection
+ logger.error "An unauthorized connection attempt was rejected"
+ raise UnauthorizedError
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
index b63b282b0b..ff36299a28 100644
--- a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
+++ b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/Base.html b/src/classes/ActionCable/Connection/Base.html
index 36a2f1e1bb..ea0d62911f 100644
--- a/src/classes/ActionCable/Connection/Base.html
+++ b/src/classes/ActionCable/Connection/Base.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -255,21 +255,21 @@
# File actioncable/lib/action_cable/connection/base.rb, line 67
- def initialize(server, env, coder: ActiveSupport::JSON)
- @server, @env, @coder = server, env, coder
+def initialize(server, env, coder: ActiveSupport::JSON)
+ @server, @env, @coder = server, env, coder
- @worker_pool = server.worker_pool
- @logger = new_tagged_logger
+ @worker_pool = server.worker_pool
+ @logger = new_tagged_logger
- @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
+ @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
- @_internal_subscriptions = nil
- @started_at = Time.now
- end
+ @_internal_subscriptions = nil
+ @started_at = Time.now
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -304,11 +304,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 147
- def beat
- transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
- end
+def beat
+ transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -339,16 +339,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 120
- def close(reason: nil, reconnect: true)
- transmit(
- type: ActionCable::INTERNAL[:message_types][:disconnect],
- reason: reason,
- reconnect: reconnect
- )
- websocket.close
- end
+def close(reason: nil, reconnect: true)
+ transmit(
+ type: ActionCable::INTERNAL[:message_types][:disconnect],
+ reason: reason,
+ reconnect: reconnect
+ )
+ websocket.close
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -379,13 +379,13 @@
# File actioncable/lib/action_cable/connection/base.rb, line 109
- def handle_channel_command(payload)
- run_callbacks :command do
- subscriptions.execute_command payload
- end
- end
+def handle_channel_command(payload)
+ run_callbacks :command do
+ subscriptions.execute_command payload
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -416,11 +416,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 131
- def send_async(method, *arguments)
- worker_pool.async_invoke(self, method, *arguments)
- end
+def send_async(method, *arguments)
+ worker_pool.async_invoke(self, method, *arguments)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -451,16 +451,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 138
- def statistics
- {
- identifier: connection_identifier,
- started_at: @started_at,
- subscriptions: subscriptions.identifiers,
- request_id: @env["action_dispatch.request_id"]
- }
- end
+def statistics
+ {
+ identifier: connection_identifier,
+ started_at: @started_at,
+ subscriptions: subscriptions.identifiers,
+ request_id: @env["action_dispatch.request_id"]
+ }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -494,11 +494,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 187
- def cookies # :doc:
- request.cookie_jar
- end
+def cookies # :doc:
+ request.cookie_jar
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -529,14 +529,14 @@
# File actioncable/lib/action_cable/connection/base.rb, line 178
- def request # :doc:
- @request ||= begin
- environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
- ActionDispatch::Request.new(environment || env)
- end
- end
+def request # :doc:
+ @request ||= begin
+ environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
+ ActionDispatch::Request.new(environment || env)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Callbacks.html b/src/classes/ActionCable/Connection/Callbacks.html
index 818958bf81..d6504ca284 100644
--- a/src/classes/ActionCable/Connection/Callbacks.html
+++ b/src/classes/ActionCable/Connection/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
index 933056a029..6376d7195b 100644
--- a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,11 +90,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 47
- def after_command(*methods, &block)
- set_callback(:command, :after, *methods, &block)
- end
+def after_command(*methods, &block)
+ set_callback(:command, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -125,11 +125,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 51
- def around_command(*methods, &block)
- set_callback(:command, :around, *methods, &block)
- end
+def around_command(*methods, &block)
+ set_callback(:command, :around, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -160,11 +160,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 43
- def before_command(*methods, &block)
- set_callback(:command, :before, *methods, &block)
- end
+def before_command(*methods, &block)
+ set_callback(:command, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification.html b/src/classes/ActionCable/Connection/Identification.html
index f3dcea9bfc..063ca88999 100644
--- a/src/classes/ActionCable/Connection/Identification.html
+++ b/src/classes/ActionCable/Connection/Identification.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,15 +95,15 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 29
- def connection_identifier
- unless defined? @connection_identifier
- @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
- end
+def connection_identifier
+ unless defined? @connection_identifier
+ @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
+ end
- @connection_identifier
- end
+ @connection_identifier
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification/ClassMethods.html b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
index 324ded31f5..a3395ef8a3 100644
--- a/src/classes/ActionCable/Connection/Identification/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -84,12 +84,12 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 21
- def identified_by(*identifiers)
- Array(identifiers).each { |identifier| attr_accessor identifier }
- self.identifiers += identifiers
- end
+def identified_by(*identifiers)
+ Array(identifiers).each { |identifier| attr_accessor identifier }
+ self.identifiers += identifiers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/InternalChannel.html b/src/classes/ActionCable/Connection/InternalChannel.html
index 9b0144f690..cfdccceaf4 100644
--- a/src/classes/ActionCable/Connection/InternalChannel.html
+++ b/src/classes/ActionCable/Connection/InternalChannel.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
index 7167904452..bf0c696d62 100644
--- a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
+++ b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 15
- def initialize(name)
- super "Unable to determine the connection to test from #{name}. " +
- "You'll need to specify it using `tests YourConnection` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the connection to test from #{name}. " +
+ "You'll need to specify it using `tests YourConnection` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/StreamEventLoop.html b/src/classes/ActionCable/Connection/StreamEventLoop.html
index 2b71a213e3..f7c49354ef 100644
--- a/src/classes/ActionCable/Connection/StreamEventLoop.html
+++ b/src/classes/ActionCable/Connection/StreamEventLoop.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -111,16 +111,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 10
- def initialize
- @nio = @executor = @thread = nil
- @map = {}
- @stopping = false
- @todo = Queue.new
-
- @spawn_mutex = Mutex.new
- end
+def initialize
+ @nio = @executor = @thread = nil
+ @map = {}
+ @stopping = false
+ @todo = Queue.new
+
+ @spawn_mutex = Mutex.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -155,15 +155,15 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 30
- def attach(io, stream)
- @todo << lambda do
- @map[io] = @nio.register(io, :r)
- @map[io].value = stream
- end
- wakeup
- end
+def attach(io, stream)
+ @todo << lambda do
+ @map[io] = @nio.register(io, :r)
+ @map[io].value = stream
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -194,16 +194,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 38
- def detach(io, stream)
- @todo << lambda do
- @nio.deregister io
- @map.delete io
- io.close
- end
- wakeup
- end
+def detach(io, stream)
+ @todo << lambda do
+ @nio.deregister io
+ @map.delete io
+ io.close
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -234,14 +234,14 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 23
- def post(task = nil, &block)
- task ||= block
+def post(task = nil, &block)
+ task ||= block
- spawn
- @executor << task
- end
+ spawn
+ @executor << task
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,12 +272,12 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 56
- def stop
- @stopping = true
- wakeup if @nio
- end
+def stop
+ @stopping = true
+ wakeup if @nio
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -308,11 +308,11 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 19
- def timer(interval, &block)
- Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
- end
+def timer(interval, &block)
+ Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -343,16 +343,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 47
- def writes_pending(io)
- @todo << lambda do
- if monitor = @map[io]
- monitor.interests = :rw
- end
- end
- wakeup
- end
+def writes_pending(io)
+ @todo << lambda do
+ if monitor = @map[io]
+ monitor.interests = :rw
+ end
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
index f4d5cacc63..99731855fb 100644
--- a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
+++ b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -121,12 +121,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 16
- def initialize(logger, tags:)
- @logger = logger
- @tags = tags.flatten
- end
+def initialize(logger, tags:)
+ @logger = logger
+ @tags = tags.flatten
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -161,12 +161,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 21
- def add_tags(*tags)
- @tags += tags.flatten
- @tags = @tags.uniq
- end
+def add_tags(*tags)
+ @tags += tags.flatten
+ @tags = @tags.uniq
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -197,16 +197,16 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 26
- def tag(logger, &block)
- if logger.respond_to?(:tagged)
- current_tags = tags - logger.formatter.current_tags
- logger.tagged(*current_tags, &block)
- else
- yield
- end
- end
+def tag(logger, &block)
+ if logger.respond_to?(:tagged)
+ current_tags = tags - logger.formatter.current_tags
+ logger.tagged(*current_tags, &block)
+ else
+ yield
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,11 +240,11 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 42
- def log(type, message, &block) # :doc:
- tag(@logger) { @logger.send type, message, &block }
- end
+def log(type, message, &block) # :doc:
+ tag(@logger) { @logger.send type, message, &block }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase.html b/src/classes/ActionCable/Connection/TestCase.html
index 948378e491..39bc5cb056 100644
--- a/src/classes/ActionCable/Connection/TestCase.html
+++ b/src/classes/ActionCable/Connection/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior.html b/src/classes/ActionCable/Connection/TestCase/Behavior.html
index b87870becd..4ee0debbea 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -163,19 +163,19 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 192
- def connect(path = ActionCable.server.config.mount_path, **request_params)
- path ||= DEFAULT_PATH
+def connect(path = ActionCable.server.config.mount_path, **request_params)
+ path ||= DEFAULT_PATH
- connection = self.class.connection_class.allocate
- connection.singleton_class.include(TestConnection)
- connection.send(:initialize, build_test_request(path, **request_params))
- connection.connect if connection.respond_to?(:connect)
+ connection = self.class.connection_class.allocate
+ connection.singleton_class.include(TestConnection)
+ connection.send(:initialize, build_test_request(path, **request_params))
+ connection.connect if connection.respond_to?(:connect)
- # Only set instance variable if connected successfully
- @connection = connection
- end
+ # Only set instance variable if connected successfully
+ @connection = connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -206,11 +206,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 212
- def cookies
- @cookie_jar ||= TestCookieJar.new
- end
+def cookies
+ @cookie_jar ||= TestCookieJar.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -241,14 +241,14 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 205
- def disconnect
- raise "Must be connected!" if connection.nil?
+def disconnect
+ raise "Must be connected!" if connection.nil?
- connection.disconnect if connection.respond_to?(:disconnect)
- @connection = nil
- end
+ connection.disconnect if connection.respond_to?(:disconnect)
+ @connection = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
index 63444f4b27..99fc0e3f6f 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 167
- def connection_class
- if connection = self._connection_class
- connection
- else
- tests determine_default_connection(name)
- end
- end
+def connection_class
+ if connection = self._connection_class
+ connection
+ else
+ tests determine_default_connection(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 175
- def determine_default_connection(name)
- connection = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Connection::Base
- end
- raise NonInferrableConnectionError.new(name) if connection.nil?
- connection
- end
+def determine_default_connection(name)
+ connection = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Connection::Base
+ end
+ raise NonInferrableConnectionError.new(name) if connection.nil?
+ connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/channel/naming.rb, line 23
- def channel_name
- self.class.channel_name
- end
+def channel_name
+ self.class.channel_name
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Naming/ClassMethods.html b/src/classes/ActionCable/Channel/Naming/ClassMethods.html
index b847309f12..e99c0744a7 100644
--- a/src/classes/ActionCable/Channel/Naming/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Naming/ClassMethods.html
@@ -5,7 +5,7 @@
+ Ruby on Rails 8.1.0.rc1
@@ -66,7 +66,7 @@
- Returns the name of the channel, underscored, without the Channel ending. If the channel is in a namespace, then the namespaces are represented by single colon separators in the channel name.
+ Returns the name of the channel, underscored, without the Channel ending. If the channel is in a namespace, then the namespaces are represented by single colon separators in the channel name.
ChatChannel.channel_name # => 'chat'
Chats::AppearancesChannel.channel_name # => 'chats:appearances'
@@ -87,11 +87,11 @@
# File actioncable/lib/action_cable/channel/naming.rb, line 18
- def channel_name
- @channel_name ||= name.delete_suffix("Channel").gsub("::", ":").underscore
- end
+def channel_name
+ @channel_name ||= name.delete_suffix("Channel").gsub("::", ":").underscore
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/NonInferrableChannelError.html b/src/classes/ActionCable/Channel/NonInferrableChannelError.html
index 034c36b135..1eac81cbd2 100644
--- a/src/classes/ActionCable/Channel/NonInferrableChannelError.html
+++ b/src/classes/ActionCable/Channel/NonInferrableChannelError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 13
- def initialize(name)
- super "Unable to determine the channel to test from #{name}. " +
- "You'll need to specify it using `tests YourChannel` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the channel to test from #{name}. " +
+ "You'll need to specify it using `tests YourChannel` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/PeriodicTimers.html b/src/classes/ActionCable/Channel/PeriodicTimers.html
index 88facef675..561da6e0dd 100644
--- a/src/classes/ActionCable/Channel/PeriodicTimers.html
+++ b/src/classes/ActionCable/Channel/PeriodicTimers.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html b/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
index 233865e2e3..a694f6de16 100644
--- a/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -91,30 +91,30 @@
# File actioncable/lib/action_cable/channel/periodic_timers.rb, line 31
- def periodically(callback_or_method_name = nil, every:, &block)
- callback =
- if block_given?
- raise ArgumentError, "Pass a block or provide a callback arg, not both" if callback_or_method_name
- block
- else
- case callback_or_method_name
- when Proc
- callback_or_method_name
- when Symbol
- -> { __send__ callback_or_method_name }
- else
- raise ArgumentError, "Expected a Symbol method name or a Proc, got #{callback_or_method_name.inspect}"
- end
- end
-
- unless every.kind_of?(Numeric) && every > 0
- raise ArgumentError, "Expected every: to be a positive number of seconds, got #{every.inspect}"
- end
-
- self.periodic_timers += [[ callback, every: every ]]
- end
+def periodically(callback_or_method_name = nil, every:, &block)
+ callback =
+ if block_given?
+ raise ArgumentError, "Pass a block or provide a callback arg, not both" if callback_or_method_name
+ block
+ else
+ case callback_or_method_name
+ when Proc
+ callback_or_method_name
+ when Symbol
+ -> { __send__ callback_or_method_name }
+ else
+ raise ArgumentError, "Expected a Symbol method name or a Proc, got #{callback_or_method_name.inspect}"
+ end
+ end
+
+ unless every.kind_of?(Numeric) && every > 0
+ raise ArgumentError, "Expected every: to be a positive number of seconds, got #{every.inspect}"
+ end
+
+ self.periodic_timers += [[ callback, every: every ]]
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Streams.html b/src/classes/ActionCable/Channel/Streams.html
index 0967feb616..a2e686a3e9 100644
--- a/src/classes/ActionCable/Channel/Streams.html
+++ b/src/classes/ActionCable/Channel/Streams.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -167,14 +167,14 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 137
- def stop_all_streams
- streams.each do |broadcasting, callback|
- pubsub.unsubscribe broadcasting, callback
- logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
- end.clear
- end
+def stop_all_streams
+ streams.each do |broadcasting, callback|
+ pubsub.unsubscribe broadcasting, callback
+ logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
+ end.clear
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -205,11 +205,11 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 132
- def stop_stream_for(model)
- stop_stream_from(broadcasting_for(model))
- end
+def stop_stream_for(model)
+ stop_stream_from(broadcasting_for(model))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,15 +240,15 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 123
- def stop_stream_from(broadcasting)
- callback = streams.delete(broadcasting)
- if callback
- pubsub.unsubscribe(broadcasting, callback)
- logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
- end
- end
+def stop_stream_from(broadcasting)
+ callback = streams.delete(broadcasting)
+ if callback
+ pubsub.unsubscribe(broadcasting, callback)
+ logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -281,11 +281,11 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 118
- def stream_for(broadcastables, callback = nil, coder: nil, &block)
- stream_from(broadcasting_for(broadcastables), callback || block, coder: coder)
- end
+def stream_for(broadcastables, callback = nil, coder: nil, &block)
+ stream_from(broadcasting_for(broadcastables), callback || block, coder: coder)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -316,28 +316,28 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 90
- def stream_from(broadcasting, callback = nil, coder: nil, &block)
- return if unsubscribed?
-
- broadcasting = String(broadcasting)
-
- # Don't send the confirmation until pubsub#subscribe is successful
- defer_subscription_confirmation!
-
- # Build a stream handler by wrapping the user-provided callback with a decoder
- # or defaulting to a JSON-decoding retransmitter.
- handler = worker_pool_stream_handler(broadcasting, callback || block, coder: coder)
- streams[broadcasting] = handler
-
- connection.server.event_loop.post do
- pubsub.subscribe(broadcasting, handler, lambda do
- ensure_confirmation_sent
- logger.info "#{self.class.name} is streaming from #{broadcasting}"
- end)
- end
- end
+def stream_from(broadcasting, callback = nil, coder: nil, &block)
+ return if unsubscribed?
+
+ broadcasting = String(broadcasting)
+
+ # Don't send the confirmation until pubsub#subscribe is successful
+ defer_subscription_confirmation!
+
+ # Build a stream handler by wrapping the user-provided callback with a decoder
+ # or defaulting to a JSON-decoding retransmitter.
+ handler = worker_pool_stream_handler(broadcasting, callback || block, coder: coder)
+ streams[broadcasting] = handler
+
+ connection.server.event_loop.post do
+ pubsub.subscribe(broadcasting, handler, lambda do
+ ensure_confirmation_sent
+ logger.info "#{self.class.name} is streaming from #{broadcasting}"
+ end)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -368,15 +368,15 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 146
- def stream_or_reject_for(model)
- if model
- stream_for model
- else
- reject
- end
- end
+def stream_or_reject_for(model)
+ if model
+ stream_for model
+ else
+ reject
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase.html b/src/classes/ActionCable/Channel/TestCase.html
index 08fb28c0cf..6317ff44d0 100644
--- a/src/classes/ActionCable/Channel/TestCase.html
+++ b/src/classes/ActionCable/Channel/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior.html b/src/classes/ActionCable/Channel/TestCase/Behavior.html
index b5f3a5cbb7..5a8ea0fd78 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -196,11 +196,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 282
- def assert_broadcast_on(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcast_on(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -231,11 +231,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 278
- def assert_broadcasts(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcasts(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,11 +272,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 326
- def assert_has_no_stream(stream)
- assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
- end
+def assert_has_no_stream(stream)
+ assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -313,11 +313,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 337
- def assert_has_no_stream_for(object)
- assert_has_no_stream(broadcasting_for(object))
- end
+def assert_has_no_stream_for(object)
+ assert_has_no_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -354,11 +354,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 304
- def assert_has_stream(stream)
- assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
- end
+def assert_has_stream(stream)
+ assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -395,11 +395,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 315
- def assert_has_stream_for(object)
- assert_has_stream(broadcasting_for(object))
- end
+def assert_has_stream_for(object)
+ assert_has_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -436,11 +436,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 293
- def assert_no_streams
- assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
- end
+def assert_no_streams
+ assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -473,12 +473,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 266
- def perform(action, data = {})
- check_subscribed!
- subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
- end
+def perform(action, data = {})
+ check_subscribed!
+ subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -516,11 +516,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 243
- def stub_connection(identifiers = {})
- @connection = ConnectionStub.new(identifiers)
- end
+def stub_connection(identifiers = {})
+ @connection = ConnectionStub.new(identifiers)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -551,15 +551,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 249
- def subscribe(params = {})
- @connection ||= stub_connection
- @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
- @subscription.singleton_class.include(ChannelStub)
- @subscription.subscribe_to_channel
- @subscription
- end
+def subscribe(params = {})
+ @connection ||= stub_connection
+ @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
+ @subscription.singleton_class.include(ChannelStub)
+ @subscription.subscribe_to_channel
+ @subscription
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -590,12 +590,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 272
- def transmissions
- # Return only directly sent message (via #transmit)
- connection.transmissions.filter_map { |data| data["message"] }
- end
+def transmissions
+ # Return only directly sent message (via #transmit)
+ connection.transmissions.filter_map { |data| data["message"] }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -626,12 +626,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 258
- def unsubscribe
- check_subscribed!
- subscription.unsubscribe_from_channel
- end
+def unsubscribe
+ check_subscribed!
+ subscription.unsubscribe_from_channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
index 48ea87f130..57efb4cdac 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 219
- def channel_class
- if channel = self._channel_class
- channel
- else
- tests determine_default_channel(name)
- end
- end
+def channel_class
+ if channel = self._channel_class
+ channel
+ else
+ tests determine_default_channel(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 227
- def determine_default_channel(name)
- channel = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Channel::Base
- end
- raise NonInferrableChannelError.new(name) if channel.nil?
- channel
- end
+def determine_default_channel(name)
+ channel = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Channel::Base
+ end
+ raise NonInferrableChannelError.new(name) if channel.nil?
+ channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 208
- def tests(channel)
- case channel
- when String, Symbol
- self._channel_class = channel.to_s.camelize.constantize
- when Module
- self._channel_class = channel
- else
- raise NonInferrableChannelError.new(channel)
- end
- end
+def tests(channel)
+ case channel
+ when String, Symbol
+ self._channel_class = channel.to_s.camelize.constantize
+ when Module
+ self._channel_class = channel
+ else
+ raise NonInferrableChannelError.new(channel)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection.html b/src/classes/ActionCable/Connection.html
index f832214f0e..7889c75284 100644
--- a/src/classes/ActionCable/Connection.html
+++ b/src/classes/ActionCable/Connection.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Assertions.html b/src/classes/ActionCable/Connection/Assertions.html
index 933ea80e4c..6b10ec5528 100644
--- a/src/classes/ActionCable/Connection/Assertions.html
+++ b/src/classes/ActionCable/Connection/Assertions.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 28
- def assert_reject_connection(&block)
- assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
- end
+def assert_reject_connection(&block)
+ assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization.html b/src/classes/ActionCable/Connection/Authorization.html
index feb855aa9e..baf85a37b3 100644
--- a/src/classes/ActionCable/Connection/Authorization.html
+++ b/src/classes/ActionCable/Connection/Authorization.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -97,12 +97,12 @@
# File actioncable/lib/action_cable/connection/authorization.rb, line 12
- def reject_unauthorized_connection
- logger.error "An unauthorized connection attempt was rejected"
- raise UnauthorizedError
- end
+def reject_unauthorized_connection
+ logger.error "An unauthorized connection attempt was rejected"
+ raise UnauthorizedError
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
index b63b282b0b..ff36299a28 100644
--- a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
+++ b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/Base.html b/src/classes/ActionCable/Connection/Base.html
index 36a2f1e1bb..ea0d62911f 100644
--- a/src/classes/ActionCable/Connection/Base.html
+++ b/src/classes/ActionCable/Connection/Base.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -255,21 +255,21 @@
# File actioncable/lib/action_cable/connection/base.rb, line 67
- def initialize(server, env, coder: ActiveSupport::JSON)
- @server, @env, @coder = server, env, coder
+def initialize(server, env, coder: ActiveSupport::JSON)
+ @server, @env, @coder = server, env, coder
- @worker_pool = server.worker_pool
- @logger = new_tagged_logger
+ @worker_pool = server.worker_pool
+ @logger = new_tagged_logger
- @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
+ @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
- @_internal_subscriptions = nil
- @started_at = Time.now
- end
+ @_internal_subscriptions = nil
+ @started_at = Time.now
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -304,11 +304,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 147
- def beat
- transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
- end
+def beat
+ transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -339,16 +339,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 120
- def close(reason: nil, reconnect: true)
- transmit(
- type: ActionCable::INTERNAL[:message_types][:disconnect],
- reason: reason,
- reconnect: reconnect
- )
- websocket.close
- end
+def close(reason: nil, reconnect: true)
+ transmit(
+ type: ActionCable::INTERNAL[:message_types][:disconnect],
+ reason: reason,
+ reconnect: reconnect
+ )
+ websocket.close
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -379,13 +379,13 @@
# File actioncable/lib/action_cable/connection/base.rb, line 109
- def handle_channel_command(payload)
- run_callbacks :command do
- subscriptions.execute_command payload
- end
- end
+def handle_channel_command(payload)
+ run_callbacks :command do
+ subscriptions.execute_command payload
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -416,11 +416,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 131
- def send_async(method, *arguments)
- worker_pool.async_invoke(self, method, *arguments)
- end
+def send_async(method, *arguments)
+ worker_pool.async_invoke(self, method, *arguments)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -451,16 +451,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 138
- def statistics
- {
- identifier: connection_identifier,
- started_at: @started_at,
- subscriptions: subscriptions.identifiers,
- request_id: @env["action_dispatch.request_id"]
- }
- end
+def statistics
+ {
+ identifier: connection_identifier,
+ started_at: @started_at,
+ subscriptions: subscriptions.identifiers,
+ request_id: @env["action_dispatch.request_id"]
+ }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -494,11 +494,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 187
- def cookies # :doc:
- request.cookie_jar
- end
+def cookies # :doc:
+ request.cookie_jar
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -529,14 +529,14 @@
# File actioncable/lib/action_cable/connection/base.rb, line 178
- def request # :doc:
- @request ||= begin
- environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
- ActionDispatch::Request.new(environment || env)
- end
- end
+def request # :doc:
+ @request ||= begin
+ environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
+ ActionDispatch::Request.new(environment || env)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Callbacks.html b/src/classes/ActionCable/Connection/Callbacks.html
index 818958bf81..d6504ca284 100644
--- a/src/classes/ActionCable/Connection/Callbacks.html
+++ b/src/classes/ActionCable/Connection/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
index 933056a029..6376d7195b 100644
--- a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,11 +90,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 47
- def after_command(*methods, &block)
- set_callback(:command, :after, *methods, &block)
- end
+def after_command(*methods, &block)
+ set_callback(:command, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -125,11 +125,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 51
- def around_command(*methods, &block)
- set_callback(:command, :around, *methods, &block)
- end
+def around_command(*methods, &block)
+ set_callback(:command, :around, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -160,11 +160,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 43
- def before_command(*methods, &block)
- set_callback(:command, :before, *methods, &block)
- end
+def before_command(*methods, &block)
+ set_callback(:command, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification.html b/src/classes/ActionCable/Connection/Identification.html
index f3dcea9bfc..063ca88999 100644
--- a/src/classes/ActionCable/Connection/Identification.html
+++ b/src/classes/ActionCable/Connection/Identification.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,15 +95,15 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 29
- def connection_identifier
- unless defined? @connection_identifier
- @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
- end
+def connection_identifier
+ unless defined? @connection_identifier
+ @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
+ end
- @connection_identifier
- end
+ @connection_identifier
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification/ClassMethods.html b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
index 324ded31f5..a3395ef8a3 100644
--- a/src/classes/ActionCable/Connection/Identification/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -84,12 +84,12 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 21
- def identified_by(*identifiers)
- Array(identifiers).each { |identifier| attr_accessor identifier }
- self.identifiers += identifiers
- end
+def identified_by(*identifiers)
+ Array(identifiers).each { |identifier| attr_accessor identifier }
+ self.identifiers += identifiers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/InternalChannel.html b/src/classes/ActionCable/Connection/InternalChannel.html
index 9b0144f690..cfdccceaf4 100644
--- a/src/classes/ActionCable/Connection/InternalChannel.html
+++ b/src/classes/ActionCable/Connection/InternalChannel.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
index 7167904452..bf0c696d62 100644
--- a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
+++ b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 15
- def initialize(name)
- super "Unable to determine the connection to test from #{name}. " +
- "You'll need to specify it using `tests YourConnection` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the connection to test from #{name}. " +
+ "You'll need to specify it using `tests YourConnection` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/StreamEventLoop.html b/src/classes/ActionCable/Connection/StreamEventLoop.html
index 2b71a213e3..f7c49354ef 100644
--- a/src/classes/ActionCable/Connection/StreamEventLoop.html
+++ b/src/classes/ActionCable/Connection/StreamEventLoop.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -111,16 +111,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 10
- def initialize
- @nio = @executor = @thread = nil
- @map = {}
- @stopping = false
- @todo = Queue.new
-
- @spawn_mutex = Mutex.new
- end
+def initialize
+ @nio = @executor = @thread = nil
+ @map = {}
+ @stopping = false
+ @todo = Queue.new
+
+ @spawn_mutex = Mutex.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -155,15 +155,15 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 30
- def attach(io, stream)
- @todo << lambda do
- @map[io] = @nio.register(io, :r)
- @map[io].value = stream
- end
- wakeup
- end
+def attach(io, stream)
+ @todo << lambda do
+ @map[io] = @nio.register(io, :r)
+ @map[io].value = stream
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -194,16 +194,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 38
- def detach(io, stream)
- @todo << lambda do
- @nio.deregister io
- @map.delete io
- io.close
- end
- wakeup
- end
+def detach(io, stream)
+ @todo << lambda do
+ @nio.deregister io
+ @map.delete io
+ io.close
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -234,14 +234,14 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 23
- def post(task = nil, &block)
- task ||= block
+def post(task = nil, &block)
+ task ||= block
- spawn
- @executor << task
- end
+ spawn
+ @executor << task
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,12 +272,12 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 56
- def stop
- @stopping = true
- wakeup if @nio
- end
+def stop
+ @stopping = true
+ wakeup if @nio
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -308,11 +308,11 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 19
- def timer(interval, &block)
- Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
- end
+def timer(interval, &block)
+ Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -343,16 +343,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 47
- def writes_pending(io)
- @todo << lambda do
- if monitor = @map[io]
- monitor.interests = :rw
- end
- end
- wakeup
- end
+def writes_pending(io)
+ @todo << lambda do
+ if monitor = @map[io]
+ monitor.interests = :rw
+ end
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
index f4d5cacc63..99731855fb 100644
--- a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
+++ b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -121,12 +121,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 16
- def initialize(logger, tags:)
- @logger = logger
- @tags = tags.flatten
- end
+def initialize(logger, tags:)
+ @logger = logger
+ @tags = tags.flatten
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -161,12 +161,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 21
- def add_tags(*tags)
- @tags += tags.flatten
- @tags = @tags.uniq
- end
+def add_tags(*tags)
+ @tags += tags.flatten
+ @tags = @tags.uniq
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -197,16 +197,16 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 26
- def tag(logger, &block)
- if logger.respond_to?(:tagged)
- current_tags = tags - logger.formatter.current_tags
- logger.tagged(*current_tags, &block)
- else
- yield
- end
- end
+def tag(logger, &block)
+ if logger.respond_to?(:tagged)
+ current_tags = tags - logger.formatter.current_tags
+ logger.tagged(*current_tags, &block)
+ else
+ yield
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,11 +240,11 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 42
- def log(type, message, &block) # :doc:
- tag(@logger) { @logger.send type, message, &block }
- end
+def log(type, message, &block) # :doc:
+ tag(@logger) { @logger.send type, message, &block }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase.html b/src/classes/ActionCable/Connection/TestCase.html
index 948378e491..39bc5cb056 100644
--- a/src/classes/ActionCable/Connection/TestCase.html
+++ b/src/classes/ActionCable/Connection/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior.html b/src/classes/ActionCable/Connection/TestCase/Behavior.html
index b87870becd..4ee0debbea 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -163,19 +163,19 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 192
- def connect(path = ActionCable.server.config.mount_path, **request_params)
- path ||= DEFAULT_PATH
+def connect(path = ActionCable.server.config.mount_path, **request_params)
+ path ||= DEFAULT_PATH
- connection = self.class.connection_class.allocate
- connection.singleton_class.include(TestConnection)
- connection.send(:initialize, build_test_request(path, **request_params))
- connection.connect if connection.respond_to?(:connect)
+ connection = self.class.connection_class.allocate
+ connection.singleton_class.include(TestConnection)
+ connection.send(:initialize, build_test_request(path, **request_params))
+ connection.connect if connection.respond_to?(:connect)
- # Only set instance variable if connected successfully
- @connection = connection
- end
+ # Only set instance variable if connected successfully
+ @connection = connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -206,11 +206,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 212
- def cookies
- @cookie_jar ||= TestCookieJar.new
- end
+def cookies
+ @cookie_jar ||= TestCookieJar.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -241,14 +241,14 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 205
- def disconnect
- raise "Must be connected!" if connection.nil?
+def disconnect
+ raise "Must be connected!" if connection.nil?
- connection.disconnect if connection.respond_to?(:disconnect)
- @connection = nil
- end
+ connection.disconnect if connection.respond_to?(:disconnect)
+ @connection = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
index 63444f4b27..99fc0e3f6f 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 167
- def connection_class
- if connection = self._connection_class
- connection
- else
- tests determine_default_connection(name)
- end
- end
+def connection_class
+ if connection = self._connection_class
+ connection
+ else
+ tests determine_default_connection(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 175
- def determine_default_connection(name)
- connection = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Connection::Base
- end
- raise NonInferrableConnectionError.new(name) if connection.nil?
- connection
- end
+def determine_default_connection(name)
+ connection = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Connection::Base
+ end
+ raise NonInferrableConnectionError.new(name) if connection.nil?
+ connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
Returns the name of the channel, underscored, without the Channel ending. If the channel is in a namespace, then the namespaces are represented by single colon separators in the channel name.
Returns the name of the channel, underscored, without the Channel ending. If the channel is in a namespace, then the namespaces are represented by single colon separators in the channel name.
ChatChannel.channel_name # => 'chat'
Chats::AppearancesChannel.channel_name # => 'chats:appearances'
@@ -87,11 +87,11 @@
# File actioncable/lib/action_cable/channel/naming.rb, line 18
- def channel_name
- @channel_name ||= name.delete_suffix("Channel").gsub("::", ":").underscore
- end
+def channel_name
+ @channel_name ||= name.delete_suffix("Channel").gsub("::", ":").underscore
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/NonInferrableChannelError.html b/src/classes/ActionCable/Channel/NonInferrableChannelError.html
index 034c36b135..1eac81cbd2 100644
--- a/src/classes/ActionCable/Channel/NonInferrableChannelError.html
+++ b/src/classes/ActionCable/Channel/NonInferrableChannelError.html
@@ -5,7 +5,7 @@
+ Ruby on Rails 8.1.0.rc1
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 13
- def initialize(name)
- super "Unable to determine the channel to test from #{name}. " +
- "You'll need to specify it using `tests YourChannel` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the channel to test from #{name}. " +
+ "You'll need to specify it using `tests YourChannel` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/PeriodicTimers.html b/src/classes/ActionCable/Channel/PeriodicTimers.html
index 88facef675..561da6e0dd 100644
--- a/src/classes/ActionCable/Channel/PeriodicTimers.html
+++ b/src/classes/ActionCable/Channel/PeriodicTimers.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html b/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
index 233865e2e3..a694f6de16 100644
--- a/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -91,30 +91,30 @@
# File actioncable/lib/action_cable/channel/periodic_timers.rb, line 31
- def periodically(callback_or_method_name = nil, every:, &block)
- callback =
- if block_given?
- raise ArgumentError, "Pass a block or provide a callback arg, not both" if callback_or_method_name
- block
- else
- case callback_or_method_name
- when Proc
- callback_or_method_name
- when Symbol
- -> { __send__ callback_or_method_name }
- else
- raise ArgumentError, "Expected a Symbol method name or a Proc, got #{callback_or_method_name.inspect}"
- end
- end
-
- unless every.kind_of?(Numeric) && every > 0
- raise ArgumentError, "Expected every: to be a positive number of seconds, got #{every.inspect}"
- end
-
- self.periodic_timers += [[ callback, every: every ]]
- end
+def periodically(callback_or_method_name = nil, every:, &block)
+ callback =
+ if block_given?
+ raise ArgumentError, "Pass a block or provide a callback arg, not both" if callback_or_method_name
+ block
+ else
+ case callback_or_method_name
+ when Proc
+ callback_or_method_name
+ when Symbol
+ -> { __send__ callback_or_method_name }
+ else
+ raise ArgumentError, "Expected a Symbol method name or a Proc, got #{callback_or_method_name.inspect}"
+ end
+ end
+
+ unless every.kind_of?(Numeric) && every > 0
+ raise ArgumentError, "Expected every: to be a positive number of seconds, got #{every.inspect}"
+ end
+
+ self.periodic_timers += [[ callback, every: every ]]
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Streams.html b/src/classes/ActionCable/Channel/Streams.html
index 0967feb616..a2e686a3e9 100644
--- a/src/classes/ActionCable/Channel/Streams.html
+++ b/src/classes/ActionCable/Channel/Streams.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -167,14 +167,14 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 137
- def stop_all_streams
- streams.each do |broadcasting, callback|
- pubsub.unsubscribe broadcasting, callback
- logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
- end.clear
- end
+def stop_all_streams
+ streams.each do |broadcasting, callback|
+ pubsub.unsubscribe broadcasting, callback
+ logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
+ end.clear
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -205,11 +205,11 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 132
- def stop_stream_for(model)
- stop_stream_from(broadcasting_for(model))
- end
+def stop_stream_for(model)
+ stop_stream_from(broadcasting_for(model))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,15 +240,15 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 123
- def stop_stream_from(broadcasting)
- callback = streams.delete(broadcasting)
- if callback
- pubsub.unsubscribe(broadcasting, callback)
- logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
- end
- end
+def stop_stream_from(broadcasting)
+ callback = streams.delete(broadcasting)
+ if callback
+ pubsub.unsubscribe(broadcasting, callback)
+ logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -281,11 +281,11 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 118
- def stream_for(broadcastables, callback = nil, coder: nil, &block)
- stream_from(broadcasting_for(broadcastables), callback || block, coder: coder)
- end
+def stream_for(broadcastables, callback = nil, coder: nil, &block)
+ stream_from(broadcasting_for(broadcastables), callback || block, coder: coder)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -316,28 +316,28 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 90
- def stream_from(broadcasting, callback = nil, coder: nil, &block)
- return if unsubscribed?
-
- broadcasting = String(broadcasting)
-
- # Don't send the confirmation until pubsub#subscribe is successful
- defer_subscription_confirmation!
-
- # Build a stream handler by wrapping the user-provided callback with a decoder
- # or defaulting to a JSON-decoding retransmitter.
- handler = worker_pool_stream_handler(broadcasting, callback || block, coder: coder)
- streams[broadcasting] = handler
-
- connection.server.event_loop.post do
- pubsub.subscribe(broadcasting, handler, lambda do
- ensure_confirmation_sent
- logger.info "#{self.class.name} is streaming from #{broadcasting}"
- end)
- end
- end
+def stream_from(broadcasting, callback = nil, coder: nil, &block)
+ return if unsubscribed?
+
+ broadcasting = String(broadcasting)
+
+ # Don't send the confirmation until pubsub#subscribe is successful
+ defer_subscription_confirmation!
+
+ # Build a stream handler by wrapping the user-provided callback with a decoder
+ # or defaulting to a JSON-decoding retransmitter.
+ handler = worker_pool_stream_handler(broadcasting, callback || block, coder: coder)
+ streams[broadcasting] = handler
+
+ connection.server.event_loop.post do
+ pubsub.subscribe(broadcasting, handler, lambda do
+ ensure_confirmation_sent
+ logger.info "#{self.class.name} is streaming from #{broadcasting}"
+ end)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -368,15 +368,15 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 146
- def stream_or_reject_for(model)
- if model
- stream_for model
- else
- reject
- end
- end
+def stream_or_reject_for(model)
+ if model
+ stream_for model
+ else
+ reject
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase.html b/src/classes/ActionCable/Channel/TestCase.html
index 08fb28c0cf..6317ff44d0 100644
--- a/src/classes/ActionCable/Channel/TestCase.html
+++ b/src/classes/ActionCable/Channel/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior.html b/src/classes/ActionCable/Channel/TestCase/Behavior.html
index b5f3a5cbb7..5a8ea0fd78 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -196,11 +196,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 282
- def assert_broadcast_on(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcast_on(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -231,11 +231,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 278
- def assert_broadcasts(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcasts(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,11 +272,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 326
- def assert_has_no_stream(stream)
- assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
- end
+def assert_has_no_stream(stream)
+ assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -313,11 +313,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 337
- def assert_has_no_stream_for(object)
- assert_has_no_stream(broadcasting_for(object))
- end
+def assert_has_no_stream_for(object)
+ assert_has_no_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -354,11 +354,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 304
- def assert_has_stream(stream)
- assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
- end
+def assert_has_stream(stream)
+ assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -395,11 +395,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 315
- def assert_has_stream_for(object)
- assert_has_stream(broadcasting_for(object))
- end
+def assert_has_stream_for(object)
+ assert_has_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -436,11 +436,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 293
- def assert_no_streams
- assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
- end
+def assert_no_streams
+ assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -473,12 +473,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 266
- def perform(action, data = {})
- check_subscribed!
- subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
- end
+def perform(action, data = {})
+ check_subscribed!
+ subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -516,11 +516,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 243
- def stub_connection(identifiers = {})
- @connection = ConnectionStub.new(identifiers)
- end
+def stub_connection(identifiers = {})
+ @connection = ConnectionStub.new(identifiers)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -551,15 +551,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 249
- def subscribe(params = {})
- @connection ||= stub_connection
- @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
- @subscription.singleton_class.include(ChannelStub)
- @subscription.subscribe_to_channel
- @subscription
- end
+def subscribe(params = {})
+ @connection ||= stub_connection
+ @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
+ @subscription.singleton_class.include(ChannelStub)
+ @subscription.subscribe_to_channel
+ @subscription
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -590,12 +590,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 272
- def transmissions
- # Return only directly sent message (via #transmit)
- connection.transmissions.filter_map { |data| data["message"] }
- end
+def transmissions
+ # Return only directly sent message (via #transmit)
+ connection.transmissions.filter_map { |data| data["message"] }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -626,12 +626,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 258
- def unsubscribe
- check_subscribed!
- subscription.unsubscribe_from_channel
- end
+def unsubscribe
+ check_subscribed!
+ subscription.unsubscribe_from_channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
index 48ea87f130..57efb4cdac 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 219
- def channel_class
- if channel = self._channel_class
- channel
- else
- tests determine_default_channel(name)
- end
- end
+def channel_class
+ if channel = self._channel_class
+ channel
+ else
+ tests determine_default_channel(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 227
- def determine_default_channel(name)
- channel = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Channel::Base
- end
- raise NonInferrableChannelError.new(name) if channel.nil?
- channel
- end
+def determine_default_channel(name)
+ channel = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Channel::Base
+ end
+ raise NonInferrableChannelError.new(name) if channel.nil?
+ channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 208
- def tests(channel)
- case channel
- when String, Symbol
- self._channel_class = channel.to_s.camelize.constantize
- when Module
- self._channel_class = channel
- else
- raise NonInferrableChannelError.new(channel)
- end
- end
+def tests(channel)
+ case channel
+ when String, Symbol
+ self._channel_class = channel.to_s.camelize.constantize
+ when Module
+ self._channel_class = channel
+ else
+ raise NonInferrableChannelError.new(channel)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection.html b/src/classes/ActionCable/Connection.html
index f832214f0e..7889c75284 100644
--- a/src/classes/ActionCable/Connection.html
+++ b/src/classes/ActionCable/Connection.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Assertions.html b/src/classes/ActionCable/Connection/Assertions.html
index 933ea80e4c..6b10ec5528 100644
--- a/src/classes/ActionCable/Connection/Assertions.html
+++ b/src/classes/ActionCable/Connection/Assertions.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 28
- def assert_reject_connection(&block)
- assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
- end
+def assert_reject_connection(&block)
+ assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization.html b/src/classes/ActionCable/Connection/Authorization.html
index feb855aa9e..baf85a37b3 100644
--- a/src/classes/ActionCable/Connection/Authorization.html
+++ b/src/classes/ActionCable/Connection/Authorization.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -97,12 +97,12 @@
# File actioncable/lib/action_cable/connection/authorization.rb, line 12
- def reject_unauthorized_connection
- logger.error "An unauthorized connection attempt was rejected"
- raise UnauthorizedError
- end
+def reject_unauthorized_connection
+ logger.error "An unauthorized connection attempt was rejected"
+ raise UnauthorizedError
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
index b63b282b0b..ff36299a28 100644
--- a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
+++ b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/Base.html b/src/classes/ActionCable/Connection/Base.html
index 36a2f1e1bb..ea0d62911f 100644
--- a/src/classes/ActionCable/Connection/Base.html
+++ b/src/classes/ActionCable/Connection/Base.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -255,21 +255,21 @@
# File actioncable/lib/action_cable/connection/base.rb, line 67
- def initialize(server, env, coder: ActiveSupport::JSON)
- @server, @env, @coder = server, env, coder
+def initialize(server, env, coder: ActiveSupport::JSON)
+ @server, @env, @coder = server, env, coder
- @worker_pool = server.worker_pool
- @logger = new_tagged_logger
+ @worker_pool = server.worker_pool
+ @logger = new_tagged_logger
- @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
+ @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
- @_internal_subscriptions = nil
- @started_at = Time.now
- end
+ @_internal_subscriptions = nil
+ @started_at = Time.now
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -304,11 +304,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 147
- def beat
- transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
- end
+def beat
+ transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -339,16 +339,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 120
- def close(reason: nil, reconnect: true)
- transmit(
- type: ActionCable::INTERNAL[:message_types][:disconnect],
- reason: reason,
- reconnect: reconnect
- )
- websocket.close
- end
+def close(reason: nil, reconnect: true)
+ transmit(
+ type: ActionCable::INTERNAL[:message_types][:disconnect],
+ reason: reason,
+ reconnect: reconnect
+ )
+ websocket.close
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -379,13 +379,13 @@
# File actioncable/lib/action_cable/connection/base.rb, line 109
- def handle_channel_command(payload)
- run_callbacks :command do
- subscriptions.execute_command payload
- end
- end
+def handle_channel_command(payload)
+ run_callbacks :command do
+ subscriptions.execute_command payload
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -416,11 +416,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 131
- def send_async(method, *arguments)
- worker_pool.async_invoke(self, method, *arguments)
- end
+def send_async(method, *arguments)
+ worker_pool.async_invoke(self, method, *arguments)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -451,16 +451,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 138
- def statistics
- {
- identifier: connection_identifier,
- started_at: @started_at,
- subscriptions: subscriptions.identifiers,
- request_id: @env["action_dispatch.request_id"]
- }
- end
+def statistics
+ {
+ identifier: connection_identifier,
+ started_at: @started_at,
+ subscriptions: subscriptions.identifiers,
+ request_id: @env["action_dispatch.request_id"]
+ }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -494,11 +494,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 187
- def cookies # :doc:
- request.cookie_jar
- end
+def cookies # :doc:
+ request.cookie_jar
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -529,14 +529,14 @@
# File actioncable/lib/action_cable/connection/base.rb, line 178
- def request # :doc:
- @request ||= begin
- environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
- ActionDispatch::Request.new(environment || env)
- end
- end
+def request # :doc:
+ @request ||= begin
+ environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
+ ActionDispatch::Request.new(environment || env)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Callbacks.html b/src/classes/ActionCable/Connection/Callbacks.html
index 818958bf81..d6504ca284 100644
--- a/src/classes/ActionCable/Connection/Callbacks.html
+++ b/src/classes/ActionCable/Connection/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
index 933056a029..6376d7195b 100644
--- a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,11 +90,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 47
- def after_command(*methods, &block)
- set_callback(:command, :after, *methods, &block)
- end
+def after_command(*methods, &block)
+ set_callback(:command, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -125,11 +125,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 51
- def around_command(*methods, &block)
- set_callback(:command, :around, *methods, &block)
- end
+def around_command(*methods, &block)
+ set_callback(:command, :around, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -160,11 +160,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 43
- def before_command(*methods, &block)
- set_callback(:command, :before, *methods, &block)
- end
+def before_command(*methods, &block)
+ set_callback(:command, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification.html b/src/classes/ActionCable/Connection/Identification.html
index f3dcea9bfc..063ca88999 100644
--- a/src/classes/ActionCable/Connection/Identification.html
+++ b/src/classes/ActionCable/Connection/Identification.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,15 +95,15 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 29
- def connection_identifier
- unless defined? @connection_identifier
- @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
- end
+def connection_identifier
+ unless defined? @connection_identifier
+ @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
+ end
- @connection_identifier
- end
+ @connection_identifier
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification/ClassMethods.html b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
index 324ded31f5..a3395ef8a3 100644
--- a/src/classes/ActionCable/Connection/Identification/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -84,12 +84,12 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 21
- def identified_by(*identifiers)
- Array(identifiers).each { |identifier| attr_accessor identifier }
- self.identifiers += identifiers
- end
+def identified_by(*identifiers)
+ Array(identifiers).each { |identifier| attr_accessor identifier }
+ self.identifiers += identifiers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/InternalChannel.html b/src/classes/ActionCable/Connection/InternalChannel.html
index 9b0144f690..cfdccceaf4 100644
--- a/src/classes/ActionCable/Connection/InternalChannel.html
+++ b/src/classes/ActionCable/Connection/InternalChannel.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
index 7167904452..bf0c696d62 100644
--- a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
+++ b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 15
- def initialize(name)
- super "Unable to determine the connection to test from #{name}. " +
- "You'll need to specify it using `tests YourConnection` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the connection to test from #{name}. " +
+ "You'll need to specify it using `tests YourConnection` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/StreamEventLoop.html b/src/classes/ActionCable/Connection/StreamEventLoop.html
index 2b71a213e3..f7c49354ef 100644
--- a/src/classes/ActionCable/Connection/StreamEventLoop.html
+++ b/src/classes/ActionCable/Connection/StreamEventLoop.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -111,16 +111,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 10
- def initialize
- @nio = @executor = @thread = nil
- @map = {}
- @stopping = false
- @todo = Queue.new
-
- @spawn_mutex = Mutex.new
- end
+def initialize
+ @nio = @executor = @thread = nil
+ @map = {}
+ @stopping = false
+ @todo = Queue.new
+
+ @spawn_mutex = Mutex.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -155,15 +155,15 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 30
- def attach(io, stream)
- @todo << lambda do
- @map[io] = @nio.register(io, :r)
- @map[io].value = stream
- end
- wakeup
- end
+def attach(io, stream)
+ @todo << lambda do
+ @map[io] = @nio.register(io, :r)
+ @map[io].value = stream
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -194,16 +194,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 38
- def detach(io, stream)
- @todo << lambda do
- @nio.deregister io
- @map.delete io
- io.close
- end
- wakeup
- end
+def detach(io, stream)
+ @todo << lambda do
+ @nio.deregister io
+ @map.delete io
+ io.close
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -234,14 +234,14 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 23
- def post(task = nil, &block)
- task ||= block
+def post(task = nil, &block)
+ task ||= block
- spawn
- @executor << task
- end
+ spawn
+ @executor << task
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,12 +272,12 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 56
- def stop
- @stopping = true
- wakeup if @nio
- end
+def stop
+ @stopping = true
+ wakeup if @nio
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -308,11 +308,11 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 19
- def timer(interval, &block)
- Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
- end
+def timer(interval, &block)
+ Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -343,16 +343,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 47
- def writes_pending(io)
- @todo << lambda do
- if monitor = @map[io]
- monitor.interests = :rw
- end
- end
- wakeup
- end
+def writes_pending(io)
+ @todo << lambda do
+ if monitor = @map[io]
+ monitor.interests = :rw
+ end
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
index f4d5cacc63..99731855fb 100644
--- a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
+++ b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -121,12 +121,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 16
- def initialize(logger, tags:)
- @logger = logger
- @tags = tags.flatten
- end
+def initialize(logger, tags:)
+ @logger = logger
+ @tags = tags.flatten
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -161,12 +161,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 21
- def add_tags(*tags)
- @tags += tags.flatten
- @tags = @tags.uniq
- end
+def add_tags(*tags)
+ @tags += tags.flatten
+ @tags = @tags.uniq
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -197,16 +197,16 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 26
- def tag(logger, &block)
- if logger.respond_to?(:tagged)
- current_tags = tags - logger.formatter.current_tags
- logger.tagged(*current_tags, &block)
- else
- yield
- end
- end
+def tag(logger, &block)
+ if logger.respond_to?(:tagged)
+ current_tags = tags - logger.formatter.current_tags
+ logger.tagged(*current_tags, &block)
+ else
+ yield
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,11 +240,11 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 42
- def log(type, message, &block) # :doc:
- tag(@logger) { @logger.send type, message, &block }
- end
+def log(type, message, &block) # :doc:
+ tag(@logger) { @logger.send type, message, &block }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase.html b/src/classes/ActionCable/Connection/TestCase.html
index 948378e491..39bc5cb056 100644
--- a/src/classes/ActionCable/Connection/TestCase.html
+++ b/src/classes/ActionCable/Connection/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior.html b/src/classes/ActionCable/Connection/TestCase/Behavior.html
index b87870becd..4ee0debbea 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -163,19 +163,19 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 192
- def connect(path = ActionCable.server.config.mount_path, **request_params)
- path ||= DEFAULT_PATH
+def connect(path = ActionCable.server.config.mount_path, **request_params)
+ path ||= DEFAULT_PATH
- connection = self.class.connection_class.allocate
- connection.singleton_class.include(TestConnection)
- connection.send(:initialize, build_test_request(path, **request_params))
- connection.connect if connection.respond_to?(:connect)
+ connection = self.class.connection_class.allocate
+ connection.singleton_class.include(TestConnection)
+ connection.send(:initialize, build_test_request(path, **request_params))
+ connection.connect if connection.respond_to?(:connect)
- # Only set instance variable if connected successfully
- @connection = connection
- end
+ # Only set instance variable if connected successfully
+ @connection = connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -206,11 +206,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 212
- def cookies
- @cookie_jar ||= TestCookieJar.new
- end
+def cookies
+ @cookie_jar ||= TestCookieJar.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -241,14 +241,14 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 205
- def disconnect
- raise "Must be connected!" if connection.nil?
+def disconnect
+ raise "Must be connected!" if connection.nil?
- connection.disconnect if connection.respond_to?(:disconnect)
- @connection = nil
- end
+ connection.disconnect if connection.respond_to?(:disconnect)
+ @connection = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
index 63444f4b27..99fc0e3f6f 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 167
- def connection_class
- if connection = self._connection_class
- connection
- else
- tests determine_default_connection(name)
- end
- end
+def connection_class
+ if connection = self._connection_class
+ connection
+ else
+ tests determine_default_connection(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 175
- def determine_default_connection(name)
- connection = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Connection::Base
- end
- raise NonInferrableConnectionError.new(name) if connection.nil?
- connection
- end
+def determine_default_connection(name)
+ connection = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Connection::Base
+ end
+ raise NonInferrableConnectionError.new(name) if connection.nil?
+ connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 13
- def initialize(name)
- super "Unable to determine the channel to test from #{name}. " +
- "You'll need to specify it using `tests YourChannel` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the channel to test from #{name}. " +
+ "You'll need to specify it using `tests YourChannel` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/PeriodicTimers.html b/src/classes/ActionCable/Channel/PeriodicTimers.html
index 88facef675..561da6e0dd 100644
--- a/src/classes/ActionCable/Channel/PeriodicTimers.html
+++ b/src/classes/ActionCable/Channel/PeriodicTimers.html
@@ -5,7 +5,7 @@
+ Ruby on Rails 8.1.0.rc1
diff --git a/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html b/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
index 233865e2e3..a694f6de16 100644
--- a/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -91,30 +91,30 @@
# File actioncable/lib/action_cable/channel/periodic_timers.rb, line 31
- def periodically(callback_or_method_name = nil, every:, &block)
- callback =
- if block_given?
- raise ArgumentError, "Pass a block or provide a callback arg, not both" if callback_or_method_name
- block
- else
- case callback_or_method_name
- when Proc
- callback_or_method_name
- when Symbol
- -> { __send__ callback_or_method_name }
- else
- raise ArgumentError, "Expected a Symbol method name or a Proc, got #{callback_or_method_name.inspect}"
- end
- end
-
- unless every.kind_of?(Numeric) && every > 0
- raise ArgumentError, "Expected every: to be a positive number of seconds, got #{every.inspect}"
- end
-
- self.periodic_timers += [[ callback, every: every ]]
- end
+def periodically(callback_or_method_name = nil, every:, &block)
+ callback =
+ if block_given?
+ raise ArgumentError, "Pass a block or provide a callback arg, not both" if callback_or_method_name
+ block
+ else
+ case callback_or_method_name
+ when Proc
+ callback_or_method_name
+ when Symbol
+ -> { __send__ callback_or_method_name }
+ else
+ raise ArgumentError, "Expected a Symbol method name or a Proc, got #{callback_or_method_name.inspect}"
+ end
+ end
+
+ unless every.kind_of?(Numeric) && every > 0
+ raise ArgumentError, "Expected every: to be a positive number of seconds, got #{every.inspect}"
+ end
+
+ self.periodic_timers += [[ callback, every: every ]]
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Streams.html b/src/classes/ActionCable/Channel/Streams.html
index 0967feb616..a2e686a3e9 100644
--- a/src/classes/ActionCable/Channel/Streams.html
+++ b/src/classes/ActionCable/Channel/Streams.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -167,14 +167,14 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 137
- def stop_all_streams
- streams.each do |broadcasting, callback|
- pubsub.unsubscribe broadcasting, callback
- logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
- end.clear
- end
+def stop_all_streams
+ streams.each do |broadcasting, callback|
+ pubsub.unsubscribe broadcasting, callback
+ logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
+ end.clear
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -205,11 +205,11 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 132
- def stop_stream_for(model)
- stop_stream_from(broadcasting_for(model))
- end
+def stop_stream_for(model)
+ stop_stream_from(broadcasting_for(model))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,15 +240,15 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 123
- def stop_stream_from(broadcasting)
- callback = streams.delete(broadcasting)
- if callback
- pubsub.unsubscribe(broadcasting, callback)
- logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
- end
- end
+def stop_stream_from(broadcasting)
+ callback = streams.delete(broadcasting)
+ if callback
+ pubsub.unsubscribe(broadcasting, callback)
+ logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -281,11 +281,11 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 118
- def stream_for(broadcastables, callback = nil, coder: nil, &block)
- stream_from(broadcasting_for(broadcastables), callback || block, coder: coder)
- end
+def stream_for(broadcastables, callback = nil, coder: nil, &block)
+ stream_from(broadcasting_for(broadcastables), callback || block, coder: coder)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -316,28 +316,28 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 90
- def stream_from(broadcasting, callback = nil, coder: nil, &block)
- return if unsubscribed?
-
- broadcasting = String(broadcasting)
-
- # Don't send the confirmation until pubsub#subscribe is successful
- defer_subscription_confirmation!
-
- # Build a stream handler by wrapping the user-provided callback with a decoder
- # or defaulting to a JSON-decoding retransmitter.
- handler = worker_pool_stream_handler(broadcasting, callback || block, coder: coder)
- streams[broadcasting] = handler
-
- connection.server.event_loop.post do
- pubsub.subscribe(broadcasting, handler, lambda do
- ensure_confirmation_sent
- logger.info "#{self.class.name} is streaming from #{broadcasting}"
- end)
- end
- end
+def stream_from(broadcasting, callback = nil, coder: nil, &block)
+ return if unsubscribed?
+
+ broadcasting = String(broadcasting)
+
+ # Don't send the confirmation until pubsub#subscribe is successful
+ defer_subscription_confirmation!
+
+ # Build a stream handler by wrapping the user-provided callback with a decoder
+ # or defaulting to a JSON-decoding retransmitter.
+ handler = worker_pool_stream_handler(broadcasting, callback || block, coder: coder)
+ streams[broadcasting] = handler
+
+ connection.server.event_loop.post do
+ pubsub.subscribe(broadcasting, handler, lambda do
+ ensure_confirmation_sent
+ logger.info "#{self.class.name} is streaming from #{broadcasting}"
+ end)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -368,15 +368,15 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 146
- def stream_or_reject_for(model)
- if model
- stream_for model
- else
- reject
- end
- end
+def stream_or_reject_for(model)
+ if model
+ stream_for model
+ else
+ reject
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase.html b/src/classes/ActionCable/Channel/TestCase.html
index 08fb28c0cf..6317ff44d0 100644
--- a/src/classes/ActionCable/Channel/TestCase.html
+++ b/src/classes/ActionCable/Channel/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior.html b/src/classes/ActionCable/Channel/TestCase/Behavior.html
index b5f3a5cbb7..5a8ea0fd78 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -196,11 +196,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 282
- def assert_broadcast_on(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcast_on(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -231,11 +231,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 278
- def assert_broadcasts(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcasts(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,11 +272,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 326
- def assert_has_no_stream(stream)
- assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
- end
+def assert_has_no_stream(stream)
+ assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -313,11 +313,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 337
- def assert_has_no_stream_for(object)
- assert_has_no_stream(broadcasting_for(object))
- end
+def assert_has_no_stream_for(object)
+ assert_has_no_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -354,11 +354,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 304
- def assert_has_stream(stream)
- assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
- end
+def assert_has_stream(stream)
+ assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -395,11 +395,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 315
- def assert_has_stream_for(object)
- assert_has_stream(broadcasting_for(object))
- end
+def assert_has_stream_for(object)
+ assert_has_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -436,11 +436,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 293
- def assert_no_streams
- assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
- end
+def assert_no_streams
+ assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -473,12 +473,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 266
- def perform(action, data = {})
- check_subscribed!
- subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
- end
+def perform(action, data = {})
+ check_subscribed!
+ subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -516,11 +516,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 243
- def stub_connection(identifiers = {})
- @connection = ConnectionStub.new(identifiers)
- end
+def stub_connection(identifiers = {})
+ @connection = ConnectionStub.new(identifiers)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -551,15 +551,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 249
- def subscribe(params = {})
- @connection ||= stub_connection
- @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
- @subscription.singleton_class.include(ChannelStub)
- @subscription.subscribe_to_channel
- @subscription
- end
+def subscribe(params = {})
+ @connection ||= stub_connection
+ @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
+ @subscription.singleton_class.include(ChannelStub)
+ @subscription.subscribe_to_channel
+ @subscription
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -590,12 +590,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 272
- def transmissions
- # Return only directly sent message (via #transmit)
- connection.transmissions.filter_map { |data| data["message"] }
- end
+def transmissions
+ # Return only directly sent message (via #transmit)
+ connection.transmissions.filter_map { |data| data["message"] }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -626,12 +626,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 258
- def unsubscribe
- check_subscribed!
- subscription.unsubscribe_from_channel
- end
+def unsubscribe
+ check_subscribed!
+ subscription.unsubscribe_from_channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
index 48ea87f130..57efb4cdac 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 219
- def channel_class
- if channel = self._channel_class
- channel
- else
- tests determine_default_channel(name)
- end
- end
+def channel_class
+ if channel = self._channel_class
+ channel
+ else
+ tests determine_default_channel(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 227
- def determine_default_channel(name)
- channel = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Channel::Base
- end
- raise NonInferrableChannelError.new(name) if channel.nil?
- channel
- end
+def determine_default_channel(name)
+ channel = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Channel::Base
+ end
+ raise NonInferrableChannelError.new(name) if channel.nil?
+ channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 208
- def tests(channel)
- case channel
- when String, Symbol
- self._channel_class = channel.to_s.camelize.constantize
- when Module
- self._channel_class = channel
- else
- raise NonInferrableChannelError.new(channel)
- end
- end
+def tests(channel)
+ case channel
+ when String, Symbol
+ self._channel_class = channel.to_s.camelize.constantize
+ when Module
+ self._channel_class = channel
+ else
+ raise NonInferrableChannelError.new(channel)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection.html b/src/classes/ActionCable/Connection.html
index f832214f0e..7889c75284 100644
--- a/src/classes/ActionCable/Connection.html
+++ b/src/classes/ActionCable/Connection.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Assertions.html b/src/classes/ActionCable/Connection/Assertions.html
index 933ea80e4c..6b10ec5528 100644
--- a/src/classes/ActionCable/Connection/Assertions.html
+++ b/src/classes/ActionCable/Connection/Assertions.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 28
- def assert_reject_connection(&block)
- assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
- end
+def assert_reject_connection(&block)
+ assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization.html b/src/classes/ActionCable/Connection/Authorization.html
index feb855aa9e..baf85a37b3 100644
--- a/src/classes/ActionCable/Connection/Authorization.html
+++ b/src/classes/ActionCable/Connection/Authorization.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -97,12 +97,12 @@
# File actioncable/lib/action_cable/connection/authorization.rb, line 12
- def reject_unauthorized_connection
- logger.error "An unauthorized connection attempt was rejected"
- raise UnauthorizedError
- end
+def reject_unauthorized_connection
+ logger.error "An unauthorized connection attempt was rejected"
+ raise UnauthorizedError
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
index b63b282b0b..ff36299a28 100644
--- a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
+++ b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/Base.html b/src/classes/ActionCable/Connection/Base.html
index 36a2f1e1bb..ea0d62911f 100644
--- a/src/classes/ActionCable/Connection/Base.html
+++ b/src/classes/ActionCable/Connection/Base.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -255,21 +255,21 @@
# File actioncable/lib/action_cable/connection/base.rb, line 67
- def initialize(server, env, coder: ActiveSupport::JSON)
- @server, @env, @coder = server, env, coder
+def initialize(server, env, coder: ActiveSupport::JSON)
+ @server, @env, @coder = server, env, coder
- @worker_pool = server.worker_pool
- @logger = new_tagged_logger
+ @worker_pool = server.worker_pool
+ @logger = new_tagged_logger
- @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
+ @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
- @_internal_subscriptions = nil
- @started_at = Time.now
- end
+ @_internal_subscriptions = nil
+ @started_at = Time.now
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -304,11 +304,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 147
- def beat
- transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
- end
+def beat
+ transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -339,16 +339,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 120
- def close(reason: nil, reconnect: true)
- transmit(
- type: ActionCable::INTERNAL[:message_types][:disconnect],
- reason: reason,
- reconnect: reconnect
- )
- websocket.close
- end
+def close(reason: nil, reconnect: true)
+ transmit(
+ type: ActionCable::INTERNAL[:message_types][:disconnect],
+ reason: reason,
+ reconnect: reconnect
+ )
+ websocket.close
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -379,13 +379,13 @@
# File actioncable/lib/action_cable/connection/base.rb, line 109
- def handle_channel_command(payload)
- run_callbacks :command do
- subscriptions.execute_command payload
- end
- end
+def handle_channel_command(payload)
+ run_callbacks :command do
+ subscriptions.execute_command payload
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -416,11 +416,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 131
- def send_async(method, *arguments)
- worker_pool.async_invoke(self, method, *arguments)
- end
+def send_async(method, *arguments)
+ worker_pool.async_invoke(self, method, *arguments)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -451,16 +451,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 138
- def statistics
- {
- identifier: connection_identifier,
- started_at: @started_at,
- subscriptions: subscriptions.identifiers,
- request_id: @env["action_dispatch.request_id"]
- }
- end
+def statistics
+ {
+ identifier: connection_identifier,
+ started_at: @started_at,
+ subscriptions: subscriptions.identifiers,
+ request_id: @env["action_dispatch.request_id"]
+ }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -494,11 +494,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 187
- def cookies # :doc:
- request.cookie_jar
- end
+def cookies # :doc:
+ request.cookie_jar
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -529,14 +529,14 @@
# File actioncable/lib/action_cable/connection/base.rb, line 178
- def request # :doc:
- @request ||= begin
- environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
- ActionDispatch::Request.new(environment || env)
- end
- end
+def request # :doc:
+ @request ||= begin
+ environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
+ ActionDispatch::Request.new(environment || env)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Callbacks.html b/src/classes/ActionCable/Connection/Callbacks.html
index 818958bf81..d6504ca284 100644
--- a/src/classes/ActionCable/Connection/Callbacks.html
+++ b/src/classes/ActionCable/Connection/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
index 933056a029..6376d7195b 100644
--- a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,11 +90,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 47
- def after_command(*methods, &block)
- set_callback(:command, :after, *methods, &block)
- end
+def after_command(*methods, &block)
+ set_callback(:command, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -125,11 +125,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 51
- def around_command(*methods, &block)
- set_callback(:command, :around, *methods, &block)
- end
+def around_command(*methods, &block)
+ set_callback(:command, :around, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -160,11 +160,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 43
- def before_command(*methods, &block)
- set_callback(:command, :before, *methods, &block)
- end
+def before_command(*methods, &block)
+ set_callback(:command, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification.html b/src/classes/ActionCable/Connection/Identification.html
index f3dcea9bfc..063ca88999 100644
--- a/src/classes/ActionCable/Connection/Identification.html
+++ b/src/classes/ActionCable/Connection/Identification.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,15 +95,15 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 29
- def connection_identifier
- unless defined? @connection_identifier
- @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
- end
+def connection_identifier
+ unless defined? @connection_identifier
+ @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
+ end
- @connection_identifier
- end
+ @connection_identifier
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification/ClassMethods.html b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
index 324ded31f5..a3395ef8a3 100644
--- a/src/classes/ActionCable/Connection/Identification/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -84,12 +84,12 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 21
- def identified_by(*identifiers)
- Array(identifiers).each { |identifier| attr_accessor identifier }
- self.identifiers += identifiers
- end
+def identified_by(*identifiers)
+ Array(identifiers).each { |identifier| attr_accessor identifier }
+ self.identifiers += identifiers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/InternalChannel.html b/src/classes/ActionCable/Connection/InternalChannel.html
index 9b0144f690..cfdccceaf4 100644
--- a/src/classes/ActionCable/Connection/InternalChannel.html
+++ b/src/classes/ActionCable/Connection/InternalChannel.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
index 7167904452..bf0c696d62 100644
--- a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
+++ b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 15
- def initialize(name)
- super "Unable to determine the connection to test from #{name}. " +
- "You'll need to specify it using `tests YourConnection` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the connection to test from #{name}. " +
+ "You'll need to specify it using `tests YourConnection` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/StreamEventLoop.html b/src/classes/ActionCable/Connection/StreamEventLoop.html
index 2b71a213e3..f7c49354ef 100644
--- a/src/classes/ActionCable/Connection/StreamEventLoop.html
+++ b/src/classes/ActionCable/Connection/StreamEventLoop.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -111,16 +111,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 10
- def initialize
- @nio = @executor = @thread = nil
- @map = {}
- @stopping = false
- @todo = Queue.new
-
- @spawn_mutex = Mutex.new
- end
+def initialize
+ @nio = @executor = @thread = nil
+ @map = {}
+ @stopping = false
+ @todo = Queue.new
+
+ @spawn_mutex = Mutex.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -155,15 +155,15 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 30
- def attach(io, stream)
- @todo << lambda do
- @map[io] = @nio.register(io, :r)
- @map[io].value = stream
- end
- wakeup
- end
+def attach(io, stream)
+ @todo << lambda do
+ @map[io] = @nio.register(io, :r)
+ @map[io].value = stream
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -194,16 +194,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 38
- def detach(io, stream)
- @todo << lambda do
- @nio.deregister io
- @map.delete io
- io.close
- end
- wakeup
- end
+def detach(io, stream)
+ @todo << lambda do
+ @nio.deregister io
+ @map.delete io
+ io.close
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -234,14 +234,14 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 23
- def post(task = nil, &block)
- task ||= block
+def post(task = nil, &block)
+ task ||= block
- spawn
- @executor << task
- end
+ spawn
+ @executor << task
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,12 +272,12 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 56
- def stop
- @stopping = true
- wakeup if @nio
- end
+def stop
+ @stopping = true
+ wakeup if @nio
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -308,11 +308,11 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 19
- def timer(interval, &block)
- Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
- end
+def timer(interval, &block)
+ Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -343,16 +343,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 47
- def writes_pending(io)
- @todo << lambda do
- if monitor = @map[io]
- monitor.interests = :rw
- end
- end
- wakeup
- end
+def writes_pending(io)
+ @todo << lambda do
+ if monitor = @map[io]
+ monitor.interests = :rw
+ end
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
index f4d5cacc63..99731855fb 100644
--- a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
+++ b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -121,12 +121,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 16
- def initialize(logger, tags:)
- @logger = logger
- @tags = tags.flatten
- end
+def initialize(logger, tags:)
+ @logger = logger
+ @tags = tags.flatten
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -161,12 +161,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 21
- def add_tags(*tags)
- @tags += tags.flatten
- @tags = @tags.uniq
- end
+def add_tags(*tags)
+ @tags += tags.flatten
+ @tags = @tags.uniq
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -197,16 +197,16 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 26
- def tag(logger, &block)
- if logger.respond_to?(:tagged)
- current_tags = tags - logger.formatter.current_tags
- logger.tagged(*current_tags, &block)
- else
- yield
- end
- end
+def tag(logger, &block)
+ if logger.respond_to?(:tagged)
+ current_tags = tags - logger.formatter.current_tags
+ logger.tagged(*current_tags, &block)
+ else
+ yield
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,11 +240,11 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 42
- def log(type, message, &block) # :doc:
- tag(@logger) { @logger.send type, message, &block }
- end
+def log(type, message, &block) # :doc:
+ tag(@logger) { @logger.send type, message, &block }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase.html b/src/classes/ActionCable/Connection/TestCase.html
index 948378e491..39bc5cb056 100644
--- a/src/classes/ActionCable/Connection/TestCase.html
+++ b/src/classes/ActionCable/Connection/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior.html b/src/classes/ActionCable/Connection/TestCase/Behavior.html
index b87870becd..4ee0debbea 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -163,19 +163,19 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 192
- def connect(path = ActionCable.server.config.mount_path, **request_params)
- path ||= DEFAULT_PATH
+def connect(path = ActionCable.server.config.mount_path, **request_params)
+ path ||= DEFAULT_PATH
- connection = self.class.connection_class.allocate
- connection.singleton_class.include(TestConnection)
- connection.send(:initialize, build_test_request(path, **request_params))
- connection.connect if connection.respond_to?(:connect)
+ connection = self.class.connection_class.allocate
+ connection.singleton_class.include(TestConnection)
+ connection.send(:initialize, build_test_request(path, **request_params))
+ connection.connect if connection.respond_to?(:connect)
- # Only set instance variable if connected successfully
- @connection = connection
- end
+ # Only set instance variable if connected successfully
+ @connection = connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -206,11 +206,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 212
- def cookies
- @cookie_jar ||= TestCookieJar.new
- end
+def cookies
+ @cookie_jar ||= TestCookieJar.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -241,14 +241,14 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 205
- def disconnect
- raise "Must be connected!" if connection.nil?
+def disconnect
+ raise "Must be connected!" if connection.nil?
- connection.disconnect if connection.respond_to?(:disconnect)
- @connection = nil
- end
+ connection.disconnect if connection.respond_to?(:disconnect)
+ @connection = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
index 63444f4b27..99fc0e3f6f 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 167
- def connection_class
- if connection = self._connection_class
- connection
- else
- tests determine_default_connection(name)
- end
- end
+def connection_class
+ if connection = self._connection_class
+ connection
+ else
+ tests determine_default_connection(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 175
- def determine_default_connection(name)
- connection = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Connection::Base
- end
- raise NonInferrableConnectionError.new(name) if connection.nil?
- connection
- end
+def determine_default_connection(name)
+ connection = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Connection::Base
+ end
+ raise NonInferrableConnectionError.new(name) if connection.nil?
+ connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
+ Ruby on Rails 8.1.0.rc1
@@ -91,30 +91,30 @@
# File actioncable/lib/action_cable/channel/periodic_timers.rb, line 31
- def periodically(callback_or_method_name = nil, every:, &block)
- callback =
- if block_given?
- raise ArgumentError, "Pass a block or provide a callback arg, not both" if callback_or_method_name
- block
- else
- case callback_or_method_name
- when Proc
- callback_or_method_name
- when Symbol
- -> { __send__ callback_or_method_name }
- else
- raise ArgumentError, "Expected a Symbol method name or a Proc, got #{callback_or_method_name.inspect}"
- end
- end
-
- unless every.kind_of?(Numeric) && every > 0
- raise ArgumentError, "Expected every: to be a positive number of seconds, got #{every.inspect}"
- end
-
- self.periodic_timers += [[ callback, every: every ]]
- end
+def periodically(callback_or_method_name = nil, every:, &block)
+ callback =
+ if block_given?
+ raise ArgumentError, "Pass a block or provide a callback arg, not both" if callback_or_method_name
+ block
+ else
+ case callback_or_method_name
+ when Proc
+ callback_or_method_name
+ when Symbol
+ -> { __send__ callback_or_method_name }
+ else
+ raise ArgumentError, "Expected a Symbol method name or a Proc, got #{callback_or_method_name.inspect}"
+ end
+ end
+
+ unless every.kind_of?(Numeric) && every > 0
+ raise ArgumentError, "Expected every: to be a positive number of seconds, got #{every.inspect}"
+ end
+
+ self.periodic_timers += [[ callback, every: every ]]
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Streams.html b/src/classes/ActionCable/Channel/Streams.html
index 0967feb616..a2e686a3e9 100644
--- a/src/classes/ActionCable/Channel/Streams.html
+++ b/src/classes/ActionCable/Channel/Streams.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -167,14 +167,14 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 137
- def stop_all_streams
- streams.each do |broadcasting, callback|
- pubsub.unsubscribe broadcasting, callback
- logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
- end.clear
- end
+def stop_all_streams
+ streams.each do |broadcasting, callback|
+ pubsub.unsubscribe broadcasting, callback
+ logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
+ end.clear
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -205,11 +205,11 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 132
- def stop_stream_for(model)
- stop_stream_from(broadcasting_for(model))
- end
+def stop_stream_for(model)
+ stop_stream_from(broadcasting_for(model))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,15 +240,15 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 123
- def stop_stream_from(broadcasting)
- callback = streams.delete(broadcasting)
- if callback
- pubsub.unsubscribe(broadcasting, callback)
- logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
- end
- end
+def stop_stream_from(broadcasting)
+ callback = streams.delete(broadcasting)
+ if callback
+ pubsub.unsubscribe(broadcasting, callback)
+ logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -281,11 +281,11 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 118
- def stream_for(broadcastables, callback = nil, coder: nil, &block)
- stream_from(broadcasting_for(broadcastables), callback || block, coder: coder)
- end
+def stream_for(broadcastables, callback = nil, coder: nil, &block)
+ stream_from(broadcasting_for(broadcastables), callback || block, coder: coder)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -316,28 +316,28 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 90
- def stream_from(broadcasting, callback = nil, coder: nil, &block)
- return if unsubscribed?
-
- broadcasting = String(broadcasting)
-
- # Don't send the confirmation until pubsub#subscribe is successful
- defer_subscription_confirmation!
-
- # Build a stream handler by wrapping the user-provided callback with a decoder
- # or defaulting to a JSON-decoding retransmitter.
- handler = worker_pool_stream_handler(broadcasting, callback || block, coder: coder)
- streams[broadcasting] = handler
-
- connection.server.event_loop.post do
- pubsub.subscribe(broadcasting, handler, lambda do
- ensure_confirmation_sent
- logger.info "#{self.class.name} is streaming from #{broadcasting}"
- end)
- end
- end
+def stream_from(broadcasting, callback = nil, coder: nil, &block)
+ return if unsubscribed?
+
+ broadcasting = String(broadcasting)
+
+ # Don't send the confirmation until pubsub#subscribe is successful
+ defer_subscription_confirmation!
+
+ # Build a stream handler by wrapping the user-provided callback with a decoder
+ # or defaulting to a JSON-decoding retransmitter.
+ handler = worker_pool_stream_handler(broadcasting, callback || block, coder: coder)
+ streams[broadcasting] = handler
+
+ connection.server.event_loop.post do
+ pubsub.subscribe(broadcasting, handler, lambda do
+ ensure_confirmation_sent
+ logger.info "#{self.class.name} is streaming from #{broadcasting}"
+ end)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -368,15 +368,15 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 146
- def stream_or_reject_for(model)
- if model
- stream_for model
- else
- reject
- end
- end
+def stream_or_reject_for(model)
+ if model
+ stream_for model
+ else
+ reject
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase.html b/src/classes/ActionCable/Channel/TestCase.html
index 08fb28c0cf..6317ff44d0 100644
--- a/src/classes/ActionCable/Channel/TestCase.html
+++ b/src/classes/ActionCable/Channel/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior.html b/src/classes/ActionCable/Channel/TestCase/Behavior.html
index b5f3a5cbb7..5a8ea0fd78 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -196,11 +196,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 282
- def assert_broadcast_on(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcast_on(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -231,11 +231,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 278
- def assert_broadcasts(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcasts(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,11 +272,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 326
- def assert_has_no_stream(stream)
- assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
- end
+def assert_has_no_stream(stream)
+ assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -313,11 +313,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 337
- def assert_has_no_stream_for(object)
- assert_has_no_stream(broadcasting_for(object))
- end
+def assert_has_no_stream_for(object)
+ assert_has_no_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -354,11 +354,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 304
- def assert_has_stream(stream)
- assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
- end
+def assert_has_stream(stream)
+ assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -395,11 +395,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 315
- def assert_has_stream_for(object)
- assert_has_stream(broadcasting_for(object))
- end
+def assert_has_stream_for(object)
+ assert_has_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -436,11 +436,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 293
- def assert_no_streams
- assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
- end
+def assert_no_streams
+ assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -473,12 +473,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 266
- def perform(action, data = {})
- check_subscribed!
- subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
- end
+def perform(action, data = {})
+ check_subscribed!
+ subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -516,11 +516,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 243
- def stub_connection(identifiers = {})
- @connection = ConnectionStub.new(identifiers)
- end
+def stub_connection(identifiers = {})
+ @connection = ConnectionStub.new(identifiers)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -551,15 +551,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 249
- def subscribe(params = {})
- @connection ||= stub_connection
- @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
- @subscription.singleton_class.include(ChannelStub)
- @subscription.subscribe_to_channel
- @subscription
- end
+def subscribe(params = {})
+ @connection ||= stub_connection
+ @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
+ @subscription.singleton_class.include(ChannelStub)
+ @subscription.subscribe_to_channel
+ @subscription
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -590,12 +590,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 272
- def transmissions
- # Return only directly sent message (via #transmit)
- connection.transmissions.filter_map { |data| data["message"] }
- end
+def transmissions
+ # Return only directly sent message (via #transmit)
+ connection.transmissions.filter_map { |data| data["message"] }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -626,12 +626,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 258
- def unsubscribe
- check_subscribed!
- subscription.unsubscribe_from_channel
- end
+def unsubscribe
+ check_subscribed!
+ subscription.unsubscribe_from_channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
index 48ea87f130..57efb4cdac 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 219
- def channel_class
- if channel = self._channel_class
- channel
- else
- tests determine_default_channel(name)
- end
- end
+def channel_class
+ if channel = self._channel_class
+ channel
+ else
+ tests determine_default_channel(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 227
- def determine_default_channel(name)
- channel = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Channel::Base
- end
- raise NonInferrableChannelError.new(name) if channel.nil?
- channel
- end
+def determine_default_channel(name)
+ channel = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Channel::Base
+ end
+ raise NonInferrableChannelError.new(name) if channel.nil?
+ channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 208
- def tests(channel)
- case channel
- when String, Symbol
- self._channel_class = channel.to_s.camelize.constantize
- when Module
- self._channel_class = channel
- else
- raise NonInferrableChannelError.new(channel)
- end
- end
+def tests(channel)
+ case channel
+ when String, Symbol
+ self._channel_class = channel.to_s.camelize.constantize
+ when Module
+ self._channel_class = channel
+ else
+ raise NonInferrableChannelError.new(channel)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection.html b/src/classes/ActionCable/Connection.html
index f832214f0e..7889c75284 100644
--- a/src/classes/ActionCable/Connection.html
+++ b/src/classes/ActionCable/Connection.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Assertions.html b/src/classes/ActionCable/Connection/Assertions.html
index 933ea80e4c..6b10ec5528 100644
--- a/src/classes/ActionCable/Connection/Assertions.html
+++ b/src/classes/ActionCable/Connection/Assertions.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 28
- def assert_reject_connection(&block)
- assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
- end
+def assert_reject_connection(&block)
+ assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization.html b/src/classes/ActionCable/Connection/Authorization.html
index feb855aa9e..baf85a37b3 100644
--- a/src/classes/ActionCable/Connection/Authorization.html
+++ b/src/classes/ActionCable/Connection/Authorization.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -97,12 +97,12 @@
# File actioncable/lib/action_cable/connection/authorization.rb, line 12
- def reject_unauthorized_connection
- logger.error "An unauthorized connection attempt was rejected"
- raise UnauthorizedError
- end
+def reject_unauthorized_connection
+ logger.error "An unauthorized connection attempt was rejected"
+ raise UnauthorizedError
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
index b63b282b0b..ff36299a28 100644
--- a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
+++ b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/Base.html b/src/classes/ActionCable/Connection/Base.html
index 36a2f1e1bb..ea0d62911f 100644
--- a/src/classes/ActionCable/Connection/Base.html
+++ b/src/classes/ActionCable/Connection/Base.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -255,21 +255,21 @@
# File actioncable/lib/action_cable/connection/base.rb, line 67
- def initialize(server, env, coder: ActiveSupport::JSON)
- @server, @env, @coder = server, env, coder
+def initialize(server, env, coder: ActiveSupport::JSON)
+ @server, @env, @coder = server, env, coder
- @worker_pool = server.worker_pool
- @logger = new_tagged_logger
+ @worker_pool = server.worker_pool
+ @logger = new_tagged_logger
- @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
+ @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
- @_internal_subscriptions = nil
- @started_at = Time.now
- end
+ @_internal_subscriptions = nil
+ @started_at = Time.now
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -304,11 +304,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 147
- def beat
- transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
- end
+def beat
+ transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -339,16 +339,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 120
- def close(reason: nil, reconnect: true)
- transmit(
- type: ActionCable::INTERNAL[:message_types][:disconnect],
- reason: reason,
- reconnect: reconnect
- )
- websocket.close
- end
+def close(reason: nil, reconnect: true)
+ transmit(
+ type: ActionCable::INTERNAL[:message_types][:disconnect],
+ reason: reason,
+ reconnect: reconnect
+ )
+ websocket.close
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -379,13 +379,13 @@
# File actioncable/lib/action_cable/connection/base.rb, line 109
- def handle_channel_command(payload)
- run_callbacks :command do
- subscriptions.execute_command payload
- end
- end
+def handle_channel_command(payload)
+ run_callbacks :command do
+ subscriptions.execute_command payload
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -416,11 +416,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 131
- def send_async(method, *arguments)
- worker_pool.async_invoke(self, method, *arguments)
- end
+def send_async(method, *arguments)
+ worker_pool.async_invoke(self, method, *arguments)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -451,16 +451,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 138
- def statistics
- {
- identifier: connection_identifier,
- started_at: @started_at,
- subscriptions: subscriptions.identifiers,
- request_id: @env["action_dispatch.request_id"]
- }
- end
+def statistics
+ {
+ identifier: connection_identifier,
+ started_at: @started_at,
+ subscriptions: subscriptions.identifiers,
+ request_id: @env["action_dispatch.request_id"]
+ }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -494,11 +494,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 187
- def cookies # :doc:
- request.cookie_jar
- end
+def cookies # :doc:
+ request.cookie_jar
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -529,14 +529,14 @@
# File actioncable/lib/action_cable/connection/base.rb, line 178
- def request # :doc:
- @request ||= begin
- environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
- ActionDispatch::Request.new(environment || env)
- end
- end
+def request # :doc:
+ @request ||= begin
+ environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
+ ActionDispatch::Request.new(environment || env)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Callbacks.html b/src/classes/ActionCable/Connection/Callbacks.html
index 818958bf81..d6504ca284 100644
--- a/src/classes/ActionCable/Connection/Callbacks.html
+++ b/src/classes/ActionCable/Connection/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
index 933056a029..6376d7195b 100644
--- a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,11 +90,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 47
- def after_command(*methods, &block)
- set_callback(:command, :after, *methods, &block)
- end
+def after_command(*methods, &block)
+ set_callback(:command, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -125,11 +125,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 51
- def around_command(*methods, &block)
- set_callback(:command, :around, *methods, &block)
- end
+def around_command(*methods, &block)
+ set_callback(:command, :around, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -160,11 +160,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 43
- def before_command(*methods, &block)
- set_callback(:command, :before, *methods, &block)
- end
+def before_command(*methods, &block)
+ set_callback(:command, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification.html b/src/classes/ActionCable/Connection/Identification.html
index f3dcea9bfc..063ca88999 100644
--- a/src/classes/ActionCable/Connection/Identification.html
+++ b/src/classes/ActionCable/Connection/Identification.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,15 +95,15 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 29
- def connection_identifier
- unless defined? @connection_identifier
- @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
- end
+def connection_identifier
+ unless defined? @connection_identifier
+ @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
+ end
- @connection_identifier
- end
+ @connection_identifier
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification/ClassMethods.html b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
index 324ded31f5..a3395ef8a3 100644
--- a/src/classes/ActionCable/Connection/Identification/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -84,12 +84,12 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 21
- def identified_by(*identifiers)
- Array(identifiers).each { |identifier| attr_accessor identifier }
- self.identifiers += identifiers
- end
+def identified_by(*identifiers)
+ Array(identifiers).each { |identifier| attr_accessor identifier }
+ self.identifiers += identifiers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/InternalChannel.html b/src/classes/ActionCable/Connection/InternalChannel.html
index 9b0144f690..cfdccceaf4 100644
--- a/src/classes/ActionCable/Connection/InternalChannel.html
+++ b/src/classes/ActionCable/Connection/InternalChannel.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
index 7167904452..bf0c696d62 100644
--- a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
+++ b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 15
- def initialize(name)
- super "Unable to determine the connection to test from #{name}. " +
- "You'll need to specify it using `tests YourConnection` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the connection to test from #{name}. " +
+ "You'll need to specify it using `tests YourConnection` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/StreamEventLoop.html b/src/classes/ActionCable/Connection/StreamEventLoop.html
index 2b71a213e3..f7c49354ef 100644
--- a/src/classes/ActionCable/Connection/StreamEventLoop.html
+++ b/src/classes/ActionCable/Connection/StreamEventLoop.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -111,16 +111,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 10
- def initialize
- @nio = @executor = @thread = nil
- @map = {}
- @stopping = false
- @todo = Queue.new
-
- @spawn_mutex = Mutex.new
- end
+def initialize
+ @nio = @executor = @thread = nil
+ @map = {}
+ @stopping = false
+ @todo = Queue.new
+
+ @spawn_mutex = Mutex.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -155,15 +155,15 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 30
- def attach(io, stream)
- @todo << lambda do
- @map[io] = @nio.register(io, :r)
- @map[io].value = stream
- end
- wakeup
- end
+def attach(io, stream)
+ @todo << lambda do
+ @map[io] = @nio.register(io, :r)
+ @map[io].value = stream
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -194,16 +194,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 38
- def detach(io, stream)
- @todo << lambda do
- @nio.deregister io
- @map.delete io
- io.close
- end
- wakeup
- end
+def detach(io, stream)
+ @todo << lambda do
+ @nio.deregister io
+ @map.delete io
+ io.close
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -234,14 +234,14 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 23
- def post(task = nil, &block)
- task ||= block
+def post(task = nil, &block)
+ task ||= block
- spawn
- @executor << task
- end
+ spawn
+ @executor << task
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,12 +272,12 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 56
- def stop
- @stopping = true
- wakeup if @nio
- end
+def stop
+ @stopping = true
+ wakeup if @nio
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -308,11 +308,11 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 19
- def timer(interval, &block)
- Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
- end
+def timer(interval, &block)
+ Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -343,16 +343,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 47
- def writes_pending(io)
- @todo << lambda do
- if monitor = @map[io]
- monitor.interests = :rw
- end
- end
- wakeup
- end
+def writes_pending(io)
+ @todo << lambda do
+ if monitor = @map[io]
+ monitor.interests = :rw
+ end
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
index f4d5cacc63..99731855fb 100644
--- a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
+++ b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -121,12 +121,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 16
- def initialize(logger, tags:)
- @logger = logger
- @tags = tags.flatten
- end
+def initialize(logger, tags:)
+ @logger = logger
+ @tags = tags.flatten
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -161,12 +161,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 21
- def add_tags(*tags)
- @tags += tags.flatten
- @tags = @tags.uniq
- end
+def add_tags(*tags)
+ @tags += tags.flatten
+ @tags = @tags.uniq
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -197,16 +197,16 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 26
- def tag(logger, &block)
- if logger.respond_to?(:tagged)
- current_tags = tags - logger.formatter.current_tags
- logger.tagged(*current_tags, &block)
- else
- yield
- end
- end
+def tag(logger, &block)
+ if logger.respond_to?(:tagged)
+ current_tags = tags - logger.formatter.current_tags
+ logger.tagged(*current_tags, &block)
+ else
+ yield
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,11 +240,11 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 42
- def log(type, message, &block) # :doc:
- tag(@logger) { @logger.send type, message, &block }
- end
+def log(type, message, &block) # :doc:
+ tag(@logger) { @logger.send type, message, &block }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase.html b/src/classes/ActionCable/Connection/TestCase.html
index 948378e491..39bc5cb056 100644
--- a/src/classes/ActionCable/Connection/TestCase.html
+++ b/src/classes/ActionCable/Connection/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior.html b/src/classes/ActionCable/Connection/TestCase/Behavior.html
index b87870becd..4ee0debbea 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -163,19 +163,19 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 192
- def connect(path = ActionCable.server.config.mount_path, **request_params)
- path ||= DEFAULT_PATH
+def connect(path = ActionCable.server.config.mount_path, **request_params)
+ path ||= DEFAULT_PATH
- connection = self.class.connection_class.allocate
- connection.singleton_class.include(TestConnection)
- connection.send(:initialize, build_test_request(path, **request_params))
- connection.connect if connection.respond_to?(:connect)
+ connection = self.class.connection_class.allocate
+ connection.singleton_class.include(TestConnection)
+ connection.send(:initialize, build_test_request(path, **request_params))
+ connection.connect if connection.respond_to?(:connect)
- # Only set instance variable if connected successfully
- @connection = connection
- end
+ # Only set instance variable if connected successfully
+ @connection = connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -206,11 +206,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 212
- def cookies
- @cookie_jar ||= TestCookieJar.new
- end
+def cookies
+ @cookie_jar ||= TestCookieJar.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -241,14 +241,14 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 205
- def disconnect
- raise "Must be connected!" if connection.nil?
+def disconnect
+ raise "Must be connected!" if connection.nil?
- connection.disconnect if connection.respond_to?(:disconnect)
- @connection = nil
- end
+ connection.disconnect if connection.respond_to?(:disconnect)
+ @connection = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
index 63444f4b27..99fc0e3f6f 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 167
- def connection_class
- if connection = self._connection_class
- connection
- else
- tests determine_default_connection(name)
- end
- end
+def connection_class
+ if connection = self._connection_class
+ connection
+ else
+ tests determine_default_connection(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 175
- def determine_default_connection(name)
- connection = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Connection::Base
- end
- raise NonInferrableConnectionError.new(name) if connection.nil?
- connection
- end
+def determine_default_connection(name)
+ connection = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Connection::Base
+ end
+ raise NonInferrableConnectionError.new(name) if connection.nil?
+ connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/channel/periodic_timers.rb, line 31
- def periodically(callback_or_method_name = nil, every:, &block)
- callback =
- if block_given?
- raise ArgumentError, "Pass a block or provide a callback arg, not both" if callback_or_method_name
- block
- else
- case callback_or_method_name
- when Proc
- callback_or_method_name
- when Symbol
- -> { __send__ callback_or_method_name }
- else
- raise ArgumentError, "Expected a Symbol method name or a Proc, got #{callback_or_method_name.inspect}"
- end
- end
-
- unless every.kind_of?(Numeric) && every > 0
- raise ArgumentError, "Expected every: to be a positive number of seconds, got #{every.inspect}"
- end
-
- self.periodic_timers += [[ callback, every: every ]]
- end
+def periodically(callback_or_method_name = nil, every:, &block)
+ callback =
+ if block_given?
+ raise ArgumentError, "Pass a block or provide a callback arg, not both" if callback_or_method_name
+ block
+ else
+ case callback_or_method_name
+ when Proc
+ callback_or_method_name
+ when Symbol
+ -> { __send__ callback_or_method_name }
+ else
+ raise ArgumentError, "Expected a Symbol method name or a Proc, got #{callback_or_method_name.inspect}"
+ end
+ end
+
+ unless every.kind_of?(Numeric) && every > 0
+ raise ArgumentError, "Expected every: to be a positive number of seconds, got #{every.inspect}"
+ end
+
+ self.periodic_timers += [[ callback, every: every ]]
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Streams.html b/src/classes/ActionCable/Channel/Streams.html
index 0967feb616..a2e686a3e9 100644
--- a/src/classes/ActionCable/Channel/Streams.html
+++ b/src/classes/ActionCable/Channel/Streams.html
@@ -5,7 +5,7 @@
+ Ruby on Rails 8.1.0.rc1
@@ -167,14 +167,14 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 137
- def stop_all_streams
- streams.each do |broadcasting, callback|
- pubsub.unsubscribe broadcasting, callback
- logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
- end.clear
- end
+def stop_all_streams
+ streams.each do |broadcasting, callback|
+ pubsub.unsubscribe broadcasting, callback
+ logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
+ end.clear
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -205,11 +205,11 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 132
- def stop_stream_for(model)
- stop_stream_from(broadcasting_for(model))
- end
+def stop_stream_for(model)
+ stop_stream_from(broadcasting_for(model))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,15 +240,15 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 123
- def stop_stream_from(broadcasting)
- callback = streams.delete(broadcasting)
- if callback
- pubsub.unsubscribe(broadcasting, callback)
- logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
- end
- end
+def stop_stream_from(broadcasting)
+ callback = streams.delete(broadcasting)
+ if callback
+ pubsub.unsubscribe(broadcasting, callback)
+ logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -281,11 +281,11 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 118
- def stream_for(broadcastables, callback = nil, coder: nil, &block)
- stream_from(broadcasting_for(broadcastables), callback || block, coder: coder)
- end
+def stream_for(broadcastables, callback = nil, coder: nil, &block)
+ stream_from(broadcasting_for(broadcastables), callback || block, coder: coder)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -316,28 +316,28 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 90
- def stream_from(broadcasting, callback = nil, coder: nil, &block)
- return if unsubscribed?
-
- broadcasting = String(broadcasting)
-
- # Don't send the confirmation until pubsub#subscribe is successful
- defer_subscription_confirmation!
-
- # Build a stream handler by wrapping the user-provided callback with a decoder
- # or defaulting to a JSON-decoding retransmitter.
- handler = worker_pool_stream_handler(broadcasting, callback || block, coder: coder)
- streams[broadcasting] = handler
-
- connection.server.event_loop.post do
- pubsub.subscribe(broadcasting, handler, lambda do
- ensure_confirmation_sent
- logger.info "#{self.class.name} is streaming from #{broadcasting}"
- end)
- end
- end
+def stream_from(broadcasting, callback = nil, coder: nil, &block)
+ return if unsubscribed?
+
+ broadcasting = String(broadcasting)
+
+ # Don't send the confirmation until pubsub#subscribe is successful
+ defer_subscription_confirmation!
+
+ # Build a stream handler by wrapping the user-provided callback with a decoder
+ # or defaulting to a JSON-decoding retransmitter.
+ handler = worker_pool_stream_handler(broadcasting, callback || block, coder: coder)
+ streams[broadcasting] = handler
+
+ connection.server.event_loop.post do
+ pubsub.subscribe(broadcasting, handler, lambda do
+ ensure_confirmation_sent
+ logger.info "#{self.class.name} is streaming from #{broadcasting}"
+ end)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -368,15 +368,15 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 146
- def stream_or_reject_for(model)
- if model
- stream_for model
- else
- reject
- end
- end
+def stream_or_reject_for(model)
+ if model
+ stream_for model
+ else
+ reject
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase.html b/src/classes/ActionCable/Channel/TestCase.html
index 08fb28c0cf..6317ff44d0 100644
--- a/src/classes/ActionCable/Channel/TestCase.html
+++ b/src/classes/ActionCable/Channel/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior.html b/src/classes/ActionCable/Channel/TestCase/Behavior.html
index b5f3a5cbb7..5a8ea0fd78 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -196,11 +196,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 282
- def assert_broadcast_on(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcast_on(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -231,11 +231,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 278
- def assert_broadcasts(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcasts(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,11 +272,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 326
- def assert_has_no_stream(stream)
- assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
- end
+def assert_has_no_stream(stream)
+ assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -313,11 +313,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 337
- def assert_has_no_stream_for(object)
- assert_has_no_stream(broadcasting_for(object))
- end
+def assert_has_no_stream_for(object)
+ assert_has_no_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -354,11 +354,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 304
- def assert_has_stream(stream)
- assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
- end
+def assert_has_stream(stream)
+ assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -395,11 +395,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 315
- def assert_has_stream_for(object)
- assert_has_stream(broadcasting_for(object))
- end
+def assert_has_stream_for(object)
+ assert_has_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -436,11 +436,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 293
- def assert_no_streams
- assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
- end
+def assert_no_streams
+ assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -473,12 +473,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 266
- def perform(action, data = {})
- check_subscribed!
- subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
- end
+def perform(action, data = {})
+ check_subscribed!
+ subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -516,11 +516,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 243
- def stub_connection(identifiers = {})
- @connection = ConnectionStub.new(identifiers)
- end
+def stub_connection(identifiers = {})
+ @connection = ConnectionStub.new(identifiers)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -551,15 +551,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 249
- def subscribe(params = {})
- @connection ||= stub_connection
- @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
- @subscription.singleton_class.include(ChannelStub)
- @subscription.subscribe_to_channel
- @subscription
- end
+def subscribe(params = {})
+ @connection ||= stub_connection
+ @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
+ @subscription.singleton_class.include(ChannelStub)
+ @subscription.subscribe_to_channel
+ @subscription
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -590,12 +590,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 272
- def transmissions
- # Return only directly sent message (via #transmit)
- connection.transmissions.filter_map { |data| data["message"] }
- end
+def transmissions
+ # Return only directly sent message (via #transmit)
+ connection.transmissions.filter_map { |data| data["message"] }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -626,12 +626,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 258
- def unsubscribe
- check_subscribed!
- subscription.unsubscribe_from_channel
- end
+def unsubscribe
+ check_subscribed!
+ subscription.unsubscribe_from_channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
index 48ea87f130..57efb4cdac 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 219
- def channel_class
- if channel = self._channel_class
- channel
- else
- tests determine_default_channel(name)
- end
- end
+def channel_class
+ if channel = self._channel_class
+ channel
+ else
+ tests determine_default_channel(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 227
- def determine_default_channel(name)
- channel = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Channel::Base
- end
- raise NonInferrableChannelError.new(name) if channel.nil?
- channel
- end
+def determine_default_channel(name)
+ channel = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Channel::Base
+ end
+ raise NonInferrableChannelError.new(name) if channel.nil?
+ channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 208
- def tests(channel)
- case channel
- when String, Symbol
- self._channel_class = channel.to_s.camelize.constantize
- when Module
- self._channel_class = channel
- else
- raise NonInferrableChannelError.new(channel)
- end
- end
+def tests(channel)
+ case channel
+ when String, Symbol
+ self._channel_class = channel.to_s.camelize.constantize
+ when Module
+ self._channel_class = channel
+ else
+ raise NonInferrableChannelError.new(channel)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection.html b/src/classes/ActionCable/Connection.html
index f832214f0e..7889c75284 100644
--- a/src/classes/ActionCable/Connection.html
+++ b/src/classes/ActionCable/Connection.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Assertions.html b/src/classes/ActionCable/Connection/Assertions.html
index 933ea80e4c..6b10ec5528 100644
--- a/src/classes/ActionCable/Connection/Assertions.html
+++ b/src/classes/ActionCable/Connection/Assertions.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 28
- def assert_reject_connection(&block)
- assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
- end
+def assert_reject_connection(&block)
+ assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization.html b/src/classes/ActionCable/Connection/Authorization.html
index feb855aa9e..baf85a37b3 100644
--- a/src/classes/ActionCable/Connection/Authorization.html
+++ b/src/classes/ActionCable/Connection/Authorization.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -97,12 +97,12 @@
# File actioncable/lib/action_cable/connection/authorization.rb, line 12
- def reject_unauthorized_connection
- logger.error "An unauthorized connection attempt was rejected"
- raise UnauthorizedError
- end
+def reject_unauthorized_connection
+ logger.error "An unauthorized connection attempt was rejected"
+ raise UnauthorizedError
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
index b63b282b0b..ff36299a28 100644
--- a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
+++ b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/Base.html b/src/classes/ActionCable/Connection/Base.html
index 36a2f1e1bb..ea0d62911f 100644
--- a/src/classes/ActionCable/Connection/Base.html
+++ b/src/classes/ActionCable/Connection/Base.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -255,21 +255,21 @@
# File actioncable/lib/action_cable/connection/base.rb, line 67
- def initialize(server, env, coder: ActiveSupport::JSON)
- @server, @env, @coder = server, env, coder
+def initialize(server, env, coder: ActiveSupport::JSON)
+ @server, @env, @coder = server, env, coder
- @worker_pool = server.worker_pool
- @logger = new_tagged_logger
+ @worker_pool = server.worker_pool
+ @logger = new_tagged_logger
- @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
+ @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
- @_internal_subscriptions = nil
- @started_at = Time.now
- end
+ @_internal_subscriptions = nil
+ @started_at = Time.now
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -304,11 +304,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 147
- def beat
- transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
- end
+def beat
+ transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -339,16 +339,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 120
- def close(reason: nil, reconnect: true)
- transmit(
- type: ActionCable::INTERNAL[:message_types][:disconnect],
- reason: reason,
- reconnect: reconnect
- )
- websocket.close
- end
+def close(reason: nil, reconnect: true)
+ transmit(
+ type: ActionCable::INTERNAL[:message_types][:disconnect],
+ reason: reason,
+ reconnect: reconnect
+ )
+ websocket.close
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -379,13 +379,13 @@
# File actioncable/lib/action_cable/connection/base.rb, line 109
- def handle_channel_command(payload)
- run_callbacks :command do
- subscriptions.execute_command payload
- end
- end
+def handle_channel_command(payload)
+ run_callbacks :command do
+ subscriptions.execute_command payload
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -416,11 +416,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 131
- def send_async(method, *arguments)
- worker_pool.async_invoke(self, method, *arguments)
- end
+def send_async(method, *arguments)
+ worker_pool.async_invoke(self, method, *arguments)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -451,16 +451,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 138
- def statistics
- {
- identifier: connection_identifier,
- started_at: @started_at,
- subscriptions: subscriptions.identifiers,
- request_id: @env["action_dispatch.request_id"]
- }
- end
+def statistics
+ {
+ identifier: connection_identifier,
+ started_at: @started_at,
+ subscriptions: subscriptions.identifiers,
+ request_id: @env["action_dispatch.request_id"]
+ }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -494,11 +494,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 187
- def cookies # :doc:
- request.cookie_jar
- end
+def cookies # :doc:
+ request.cookie_jar
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -529,14 +529,14 @@
# File actioncable/lib/action_cable/connection/base.rb, line 178
- def request # :doc:
- @request ||= begin
- environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
- ActionDispatch::Request.new(environment || env)
- end
- end
+def request # :doc:
+ @request ||= begin
+ environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
+ ActionDispatch::Request.new(environment || env)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Callbacks.html b/src/classes/ActionCable/Connection/Callbacks.html
index 818958bf81..d6504ca284 100644
--- a/src/classes/ActionCable/Connection/Callbacks.html
+++ b/src/classes/ActionCable/Connection/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
index 933056a029..6376d7195b 100644
--- a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,11 +90,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 47
- def after_command(*methods, &block)
- set_callback(:command, :after, *methods, &block)
- end
+def after_command(*methods, &block)
+ set_callback(:command, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -125,11 +125,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 51
- def around_command(*methods, &block)
- set_callback(:command, :around, *methods, &block)
- end
+def around_command(*methods, &block)
+ set_callback(:command, :around, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -160,11 +160,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 43
- def before_command(*methods, &block)
- set_callback(:command, :before, *methods, &block)
- end
+def before_command(*methods, &block)
+ set_callback(:command, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification.html b/src/classes/ActionCable/Connection/Identification.html
index f3dcea9bfc..063ca88999 100644
--- a/src/classes/ActionCable/Connection/Identification.html
+++ b/src/classes/ActionCable/Connection/Identification.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,15 +95,15 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 29
- def connection_identifier
- unless defined? @connection_identifier
- @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
- end
+def connection_identifier
+ unless defined? @connection_identifier
+ @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
+ end
- @connection_identifier
- end
+ @connection_identifier
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification/ClassMethods.html b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
index 324ded31f5..a3395ef8a3 100644
--- a/src/classes/ActionCable/Connection/Identification/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -84,12 +84,12 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 21
- def identified_by(*identifiers)
- Array(identifiers).each { |identifier| attr_accessor identifier }
- self.identifiers += identifiers
- end
+def identified_by(*identifiers)
+ Array(identifiers).each { |identifier| attr_accessor identifier }
+ self.identifiers += identifiers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/InternalChannel.html b/src/classes/ActionCable/Connection/InternalChannel.html
index 9b0144f690..cfdccceaf4 100644
--- a/src/classes/ActionCable/Connection/InternalChannel.html
+++ b/src/classes/ActionCable/Connection/InternalChannel.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
index 7167904452..bf0c696d62 100644
--- a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
+++ b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 15
- def initialize(name)
- super "Unable to determine the connection to test from #{name}. " +
- "You'll need to specify it using `tests YourConnection` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the connection to test from #{name}. " +
+ "You'll need to specify it using `tests YourConnection` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/StreamEventLoop.html b/src/classes/ActionCable/Connection/StreamEventLoop.html
index 2b71a213e3..f7c49354ef 100644
--- a/src/classes/ActionCable/Connection/StreamEventLoop.html
+++ b/src/classes/ActionCable/Connection/StreamEventLoop.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -111,16 +111,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 10
- def initialize
- @nio = @executor = @thread = nil
- @map = {}
- @stopping = false
- @todo = Queue.new
-
- @spawn_mutex = Mutex.new
- end
+def initialize
+ @nio = @executor = @thread = nil
+ @map = {}
+ @stopping = false
+ @todo = Queue.new
+
+ @spawn_mutex = Mutex.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -155,15 +155,15 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 30
- def attach(io, stream)
- @todo << lambda do
- @map[io] = @nio.register(io, :r)
- @map[io].value = stream
- end
- wakeup
- end
+def attach(io, stream)
+ @todo << lambda do
+ @map[io] = @nio.register(io, :r)
+ @map[io].value = stream
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -194,16 +194,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 38
- def detach(io, stream)
- @todo << lambda do
- @nio.deregister io
- @map.delete io
- io.close
- end
- wakeup
- end
+def detach(io, stream)
+ @todo << lambda do
+ @nio.deregister io
+ @map.delete io
+ io.close
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -234,14 +234,14 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 23
- def post(task = nil, &block)
- task ||= block
+def post(task = nil, &block)
+ task ||= block
- spawn
- @executor << task
- end
+ spawn
+ @executor << task
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,12 +272,12 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 56
- def stop
- @stopping = true
- wakeup if @nio
- end
+def stop
+ @stopping = true
+ wakeup if @nio
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -308,11 +308,11 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 19
- def timer(interval, &block)
- Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
- end
+def timer(interval, &block)
+ Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -343,16 +343,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 47
- def writes_pending(io)
- @todo << lambda do
- if monitor = @map[io]
- monitor.interests = :rw
- end
- end
- wakeup
- end
+def writes_pending(io)
+ @todo << lambda do
+ if monitor = @map[io]
+ monitor.interests = :rw
+ end
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
index f4d5cacc63..99731855fb 100644
--- a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
+++ b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -121,12 +121,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 16
- def initialize(logger, tags:)
- @logger = logger
- @tags = tags.flatten
- end
+def initialize(logger, tags:)
+ @logger = logger
+ @tags = tags.flatten
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -161,12 +161,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 21
- def add_tags(*tags)
- @tags += tags.flatten
- @tags = @tags.uniq
- end
+def add_tags(*tags)
+ @tags += tags.flatten
+ @tags = @tags.uniq
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -197,16 +197,16 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 26
- def tag(logger, &block)
- if logger.respond_to?(:tagged)
- current_tags = tags - logger.formatter.current_tags
- logger.tagged(*current_tags, &block)
- else
- yield
- end
- end
+def tag(logger, &block)
+ if logger.respond_to?(:tagged)
+ current_tags = tags - logger.formatter.current_tags
+ logger.tagged(*current_tags, &block)
+ else
+ yield
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,11 +240,11 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 42
- def log(type, message, &block) # :doc:
- tag(@logger) { @logger.send type, message, &block }
- end
+def log(type, message, &block) # :doc:
+ tag(@logger) { @logger.send type, message, &block }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase.html b/src/classes/ActionCable/Connection/TestCase.html
index 948378e491..39bc5cb056 100644
--- a/src/classes/ActionCable/Connection/TestCase.html
+++ b/src/classes/ActionCable/Connection/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior.html b/src/classes/ActionCable/Connection/TestCase/Behavior.html
index b87870becd..4ee0debbea 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -163,19 +163,19 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 192
- def connect(path = ActionCable.server.config.mount_path, **request_params)
- path ||= DEFAULT_PATH
+def connect(path = ActionCable.server.config.mount_path, **request_params)
+ path ||= DEFAULT_PATH
- connection = self.class.connection_class.allocate
- connection.singleton_class.include(TestConnection)
- connection.send(:initialize, build_test_request(path, **request_params))
- connection.connect if connection.respond_to?(:connect)
+ connection = self.class.connection_class.allocate
+ connection.singleton_class.include(TestConnection)
+ connection.send(:initialize, build_test_request(path, **request_params))
+ connection.connect if connection.respond_to?(:connect)
- # Only set instance variable if connected successfully
- @connection = connection
- end
+ # Only set instance variable if connected successfully
+ @connection = connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -206,11 +206,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 212
- def cookies
- @cookie_jar ||= TestCookieJar.new
- end
+def cookies
+ @cookie_jar ||= TestCookieJar.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -241,14 +241,14 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 205
- def disconnect
- raise "Must be connected!" if connection.nil?
+def disconnect
+ raise "Must be connected!" if connection.nil?
- connection.disconnect if connection.respond_to?(:disconnect)
- @connection = nil
- end
+ connection.disconnect if connection.respond_to?(:disconnect)
+ @connection = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
index 63444f4b27..99fc0e3f6f 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 167
- def connection_class
- if connection = self._connection_class
- connection
- else
- tests determine_default_connection(name)
- end
- end
+def connection_class
+ if connection = self._connection_class
+ connection
+ else
+ tests determine_default_connection(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 175
- def determine_default_connection(name)
- connection = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Connection::Base
- end
- raise NonInferrableConnectionError.new(name) if connection.nil?
- connection
- end
+def determine_default_connection(name)
+ connection = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Connection::Base
+ end
+ raise NonInferrableConnectionError.new(name) if connection.nil?
+ connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 137
- def stop_all_streams
- streams.each do |broadcasting, callback|
- pubsub.unsubscribe broadcasting, callback
- logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
- end.clear
- end
+def stop_all_streams
+ streams.each do |broadcasting, callback|
+ pubsub.unsubscribe broadcasting, callback
+ logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
+ end.clear
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -205,11 +205,11 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 132
- def stop_stream_for(model)
- stop_stream_from(broadcasting_for(model))
- end
+def stop_stream_for(model)
+ stop_stream_from(broadcasting_for(model))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,15 +240,15 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 123
- def stop_stream_from(broadcasting)
- callback = streams.delete(broadcasting)
- if callback
- pubsub.unsubscribe(broadcasting, callback)
- logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
- end
- end
+def stop_stream_from(broadcasting)
+ callback = streams.delete(broadcasting)
+ if callback
+ pubsub.unsubscribe(broadcasting, callback)
+ logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -281,11 +281,11 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 118
- def stream_for(broadcastables, callback = nil, coder: nil, &block)
- stream_from(broadcasting_for(broadcastables), callback || block, coder: coder)
- end
+def stream_for(broadcastables, callback = nil, coder: nil, &block)
+ stream_from(broadcasting_for(broadcastables), callback || block, coder: coder)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -316,28 +316,28 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 90
- def stream_from(broadcasting, callback = nil, coder: nil, &block)
- return if unsubscribed?
-
- broadcasting = String(broadcasting)
-
- # Don't send the confirmation until pubsub#subscribe is successful
- defer_subscription_confirmation!
-
- # Build a stream handler by wrapping the user-provided callback with a decoder
- # or defaulting to a JSON-decoding retransmitter.
- handler = worker_pool_stream_handler(broadcasting, callback || block, coder: coder)
- streams[broadcasting] = handler
-
- connection.server.event_loop.post do
- pubsub.subscribe(broadcasting, handler, lambda do
- ensure_confirmation_sent
- logger.info "#{self.class.name} is streaming from #{broadcasting}"
- end)
- end
- end
+def stream_from(broadcasting, callback = nil, coder: nil, &block)
+ return if unsubscribed?
+
+ broadcasting = String(broadcasting)
+
+ # Don't send the confirmation until pubsub#subscribe is successful
+ defer_subscription_confirmation!
+
+ # Build a stream handler by wrapping the user-provided callback with a decoder
+ # or defaulting to a JSON-decoding retransmitter.
+ handler = worker_pool_stream_handler(broadcasting, callback || block, coder: coder)
+ streams[broadcasting] = handler
+
+ connection.server.event_loop.post do
+ pubsub.subscribe(broadcasting, handler, lambda do
+ ensure_confirmation_sent
+ logger.info "#{self.class.name} is streaming from #{broadcasting}"
+ end)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -368,15 +368,15 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 146
- def stream_or_reject_for(model)
- if model
- stream_for model
- else
- reject
- end
- end
+def stream_or_reject_for(model)
+ if model
+ stream_for model
+ else
+ reject
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase.html b/src/classes/ActionCable/Channel/TestCase.html
index 08fb28c0cf..6317ff44d0 100644
--- a/src/classes/ActionCable/Channel/TestCase.html
+++ b/src/classes/ActionCable/Channel/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior.html b/src/classes/ActionCable/Channel/TestCase/Behavior.html
index b5f3a5cbb7..5a8ea0fd78 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -196,11 +196,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 282
- def assert_broadcast_on(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcast_on(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -231,11 +231,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 278
- def assert_broadcasts(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcasts(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,11 +272,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 326
- def assert_has_no_stream(stream)
- assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
- end
+def assert_has_no_stream(stream)
+ assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -313,11 +313,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 337
- def assert_has_no_stream_for(object)
- assert_has_no_stream(broadcasting_for(object))
- end
+def assert_has_no_stream_for(object)
+ assert_has_no_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -354,11 +354,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 304
- def assert_has_stream(stream)
- assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
- end
+def assert_has_stream(stream)
+ assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -395,11 +395,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 315
- def assert_has_stream_for(object)
- assert_has_stream(broadcasting_for(object))
- end
+def assert_has_stream_for(object)
+ assert_has_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -436,11 +436,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 293
- def assert_no_streams
- assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
- end
+def assert_no_streams
+ assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -473,12 +473,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 266
- def perform(action, data = {})
- check_subscribed!
- subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
- end
+def perform(action, data = {})
+ check_subscribed!
+ subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -516,11 +516,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 243
- def stub_connection(identifiers = {})
- @connection = ConnectionStub.new(identifiers)
- end
+def stub_connection(identifiers = {})
+ @connection = ConnectionStub.new(identifiers)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -551,15 +551,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 249
- def subscribe(params = {})
- @connection ||= stub_connection
- @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
- @subscription.singleton_class.include(ChannelStub)
- @subscription.subscribe_to_channel
- @subscription
- end
+def subscribe(params = {})
+ @connection ||= stub_connection
+ @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
+ @subscription.singleton_class.include(ChannelStub)
+ @subscription.subscribe_to_channel
+ @subscription
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -590,12 +590,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 272
- def transmissions
- # Return only directly sent message (via #transmit)
- connection.transmissions.filter_map { |data| data["message"] }
- end
+def transmissions
+ # Return only directly sent message (via #transmit)
+ connection.transmissions.filter_map { |data| data["message"] }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -626,12 +626,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 258
- def unsubscribe
- check_subscribed!
- subscription.unsubscribe_from_channel
- end
+def unsubscribe
+ check_subscribed!
+ subscription.unsubscribe_from_channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
index 48ea87f130..57efb4cdac 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 219
- def channel_class
- if channel = self._channel_class
- channel
- else
- tests determine_default_channel(name)
- end
- end
+def channel_class
+ if channel = self._channel_class
+ channel
+ else
+ tests determine_default_channel(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 227
- def determine_default_channel(name)
- channel = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Channel::Base
- end
- raise NonInferrableChannelError.new(name) if channel.nil?
- channel
- end
+def determine_default_channel(name)
+ channel = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Channel::Base
+ end
+ raise NonInferrableChannelError.new(name) if channel.nil?
+ channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 208
- def tests(channel)
- case channel
- when String, Symbol
- self._channel_class = channel.to_s.camelize.constantize
- when Module
- self._channel_class = channel
- else
- raise NonInferrableChannelError.new(channel)
- end
- end
+def tests(channel)
+ case channel
+ when String, Symbol
+ self._channel_class = channel.to_s.camelize.constantize
+ when Module
+ self._channel_class = channel
+ else
+ raise NonInferrableChannelError.new(channel)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection.html b/src/classes/ActionCable/Connection.html
index f832214f0e..7889c75284 100644
--- a/src/classes/ActionCable/Connection.html
+++ b/src/classes/ActionCable/Connection.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Assertions.html b/src/classes/ActionCable/Connection/Assertions.html
index 933ea80e4c..6b10ec5528 100644
--- a/src/classes/ActionCable/Connection/Assertions.html
+++ b/src/classes/ActionCable/Connection/Assertions.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 28
- def assert_reject_connection(&block)
- assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
- end
+def assert_reject_connection(&block)
+ assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization.html b/src/classes/ActionCable/Connection/Authorization.html
index feb855aa9e..baf85a37b3 100644
--- a/src/classes/ActionCable/Connection/Authorization.html
+++ b/src/classes/ActionCable/Connection/Authorization.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -97,12 +97,12 @@
# File actioncable/lib/action_cable/connection/authorization.rb, line 12
- def reject_unauthorized_connection
- logger.error "An unauthorized connection attempt was rejected"
- raise UnauthorizedError
- end
+def reject_unauthorized_connection
+ logger.error "An unauthorized connection attempt was rejected"
+ raise UnauthorizedError
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
index b63b282b0b..ff36299a28 100644
--- a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
+++ b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/Base.html b/src/classes/ActionCable/Connection/Base.html
index 36a2f1e1bb..ea0d62911f 100644
--- a/src/classes/ActionCable/Connection/Base.html
+++ b/src/classes/ActionCable/Connection/Base.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -255,21 +255,21 @@
# File actioncable/lib/action_cable/connection/base.rb, line 67
- def initialize(server, env, coder: ActiveSupport::JSON)
- @server, @env, @coder = server, env, coder
+def initialize(server, env, coder: ActiveSupport::JSON)
+ @server, @env, @coder = server, env, coder
- @worker_pool = server.worker_pool
- @logger = new_tagged_logger
+ @worker_pool = server.worker_pool
+ @logger = new_tagged_logger
- @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
+ @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
- @_internal_subscriptions = nil
- @started_at = Time.now
- end
+ @_internal_subscriptions = nil
+ @started_at = Time.now
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -304,11 +304,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 147
- def beat
- transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
- end
+def beat
+ transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -339,16 +339,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 120
- def close(reason: nil, reconnect: true)
- transmit(
- type: ActionCable::INTERNAL[:message_types][:disconnect],
- reason: reason,
- reconnect: reconnect
- )
- websocket.close
- end
+def close(reason: nil, reconnect: true)
+ transmit(
+ type: ActionCable::INTERNAL[:message_types][:disconnect],
+ reason: reason,
+ reconnect: reconnect
+ )
+ websocket.close
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -379,13 +379,13 @@
# File actioncable/lib/action_cable/connection/base.rb, line 109
- def handle_channel_command(payload)
- run_callbacks :command do
- subscriptions.execute_command payload
- end
- end
+def handle_channel_command(payload)
+ run_callbacks :command do
+ subscriptions.execute_command payload
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -416,11 +416,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 131
- def send_async(method, *arguments)
- worker_pool.async_invoke(self, method, *arguments)
- end
+def send_async(method, *arguments)
+ worker_pool.async_invoke(self, method, *arguments)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -451,16 +451,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 138
- def statistics
- {
- identifier: connection_identifier,
- started_at: @started_at,
- subscriptions: subscriptions.identifiers,
- request_id: @env["action_dispatch.request_id"]
- }
- end
+def statistics
+ {
+ identifier: connection_identifier,
+ started_at: @started_at,
+ subscriptions: subscriptions.identifiers,
+ request_id: @env["action_dispatch.request_id"]
+ }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -494,11 +494,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 187
- def cookies # :doc:
- request.cookie_jar
- end
+def cookies # :doc:
+ request.cookie_jar
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -529,14 +529,14 @@
# File actioncable/lib/action_cable/connection/base.rb, line 178
- def request # :doc:
- @request ||= begin
- environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
- ActionDispatch::Request.new(environment || env)
- end
- end
+def request # :doc:
+ @request ||= begin
+ environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
+ ActionDispatch::Request.new(environment || env)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Callbacks.html b/src/classes/ActionCable/Connection/Callbacks.html
index 818958bf81..d6504ca284 100644
--- a/src/classes/ActionCable/Connection/Callbacks.html
+++ b/src/classes/ActionCable/Connection/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
index 933056a029..6376d7195b 100644
--- a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,11 +90,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 47
- def after_command(*methods, &block)
- set_callback(:command, :after, *methods, &block)
- end
+def after_command(*methods, &block)
+ set_callback(:command, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -125,11 +125,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 51
- def around_command(*methods, &block)
- set_callback(:command, :around, *methods, &block)
- end
+def around_command(*methods, &block)
+ set_callback(:command, :around, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -160,11 +160,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 43
- def before_command(*methods, &block)
- set_callback(:command, :before, *methods, &block)
- end
+def before_command(*methods, &block)
+ set_callback(:command, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification.html b/src/classes/ActionCable/Connection/Identification.html
index f3dcea9bfc..063ca88999 100644
--- a/src/classes/ActionCable/Connection/Identification.html
+++ b/src/classes/ActionCable/Connection/Identification.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,15 +95,15 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 29
- def connection_identifier
- unless defined? @connection_identifier
- @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
- end
+def connection_identifier
+ unless defined? @connection_identifier
+ @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
+ end
- @connection_identifier
- end
+ @connection_identifier
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification/ClassMethods.html b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
index 324ded31f5..a3395ef8a3 100644
--- a/src/classes/ActionCable/Connection/Identification/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -84,12 +84,12 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 21
- def identified_by(*identifiers)
- Array(identifiers).each { |identifier| attr_accessor identifier }
- self.identifiers += identifiers
- end
+def identified_by(*identifiers)
+ Array(identifiers).each { |identifier| attr_accessor identifier }
+ self.identifiers += identifiers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/InternalChannel.html b/src/classes/ActionCable/Connection/InternalChannel.html
index 9b0144f690..cfdccceaf4 100644
--- a/src/classes/ActionCable/Connection/InternalChannel.html
+++ b/src/classes/ActionCable/Connection/InternalChannel.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
index 7167904452..bf0c696d62 100644
--- a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
+++ b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 15
- def initialize(name)
- super "Unable to determine the connection to test from #{name}. " +
- "You'll need to specify it using `tests YourConnection` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the connection to test from #{name}. " +
+ "You'll need to specify it using `tests YourConnection` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/StreamEventLoop.html b/src/classes/ActionCable/Connection/StreamEventLoop.html
index 2b71a213e3..f7c49354ef 100644
--- a/src/classes/ActionCable/Connection/StreamEventLoop.html
+++ b/src/classes/ActionCable/Connection/StreamEventLoop.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -111,16 +111,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 10
- def initialize
- @nio = @executor = @thread = nil
- @map = {}
- @stopping = false
- @todo = Queue.new
-
- @spawn_mutex = Mutex.new
- end
+def initialize
+ @nio = @executor = @thread = nil
+ @map = {}
+ @stopping = false
+ @todo = Queue.new
+
+ @spawn_mutex = Mutex.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -155,15 +155,15 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 30
- def attach(io, stream)
- @todo << lambda do
- @map[io] = @nio.register(io, :r)
- @map[io].value = stream
- end
- wakeup
- end
+def attach(io, stream)
+ @todo << lambda do
+ @map[io] = @nio.register(io, :r)
+ @map[io].value = stream
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -194,16 +194,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 38
- def detach(io, stream)
- @todo << lambda do
- @nio.deregister io
- @map.delete io
- io.close
- end
- wakeup
- end
+def detach(io, stream)
+ @todo << lambda do
+ @nio.deregister io
+ @map.delete io
+ io.close
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -234,14 +234,14 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 23
- def post(task = nil, &block)
- task ||= block
+def post(task = nil, &block)
+ task ||= block
- spawn
- @executor << task
- end
+ spawn
+ @executor << task
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,12 +272,12 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 56
- def stop
- @stopping = true
- wakeup if @nio
- end
+def stop
+ @stopping = true
+ wakeup if @nio
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -308,11 +308,11 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 19
- def timer(interval, &block)
- Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
- end
+def timer(interval, &block)
+ Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -343,16 +343,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 47
- def writes_pending(io)
- @todo << lambda do
- if monitor = @map[io]
- monitor.interests = :rw
- end
- end
- wakeup
- end
+def writes_pending(io)
+ @todo << lambda do
+ if monitor = @map[io]
+ monitor.interests = :rw
+ end
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
index f4d5cacc63..99731855fb 100644
--- a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
+++ b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -121,12 +121,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 16
- def initialize(logger, tags:)
- @logger = logger
- @tags = tags.flatten
- end
+def initialize(logger, tags:)
+ @logger = logger
+ @tags = tags.flatten
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -161,12 +161,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 21
- def add_tags(*tags)
- @tags += tags.flatten
- @tags = @tags.uniq
- end
+def add_tags(*tags)
+ @tags += tags.flatten
+ @tags = @tags.uniq
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -197,16 +197,16 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 26
- def tag(logger, &block)
- if logger.respond_to?(:tagged)
- current_tags = tags - logger.formatter.current_tags
- logger.tagged(*current_tags, &block)
- else
- yield
- end
- end
+def tag(logger, &block)
+ if logger.respond_to?(:tagged)
+ current_tags = tags - logger.formatter.current_tags
+ logger.tagged(*current_tags, &block)
+ else
+ yield
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,11 +240,11 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 42
- def log(type, message, &block) # :doc:
- tag(@logger) { @logger.send type, message, &block }
- end
+def log(type, message, &block) # :doc:
+ tag(@logger) { @logger.send type, message, &block }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase.html b/src/classes/ActionCable/Connection/TestCase.html
index 948378e491..39bc5cb056 100644
--- a/src/classes/ActionCable/Connection/TestCase.html
+++ b/src/classes/ActionCable/Connection/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior.html b/src/classes/ActionCable/Connection/TestCase/Behavior.html
index b87870becd..4ee0debbea 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -163,19 +163,19 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 192
- def connect(path = ActionCable.server.config.mount_path, **request_params)
- path ||= DEFAULT_PATH
+def connect(path = ActionCable.server.config.mount_path, **request_params)
+ path ||= DEFAULT_PATH
- connection = self.class.connection_class.allocate
- connection.singleton_class.include(TestConnection)
- connection.send(:initialize, build_test_request(path, **request_params))
- connection.connect if connection.respond_to?(:connect)
+ connection = self.class.connection_class.allocate
+ connection.singleton_class.include(TestConnection)
+ connection.send(:initialize, build_test_request(path, **request_params))
+ connection.connect if connection.respond_to?(:connect)
- # Only set instance variable if connected successfully
- @connection = connection
- end
+ # Only set instance variable if connected successfully
+ @connection = connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -206,11 +206,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 212
- def cookies
- @cookie_jar ||= TestCookieJar.new
- end
+def cookies
+ @cookie_jar ||= TestCookieJar.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -241,14 +241,14 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 205
- def disconnect
- raise "Must be connected!" if connection.nil?
+def disconnect
+ raise "Must be connected!" if connection.nil?
- connection.disconnect if connection.respond_to?(:disconnect)
- @connection = nil
- end
+ connection.disconnect if connection.respond_to?(:disconnect)
+ @connection = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
index 63444f4b27..99fc0e3f6f 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 167
- def connection_class
- if connection = self._connection_class
- connection
- else
- tests determine_default_connection(name)
- end
- end
+def connection_class
+ if connection = self._connection_class
+ connection
+ else
+ tests determine_default_connection(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 175
- def determine_default_connection(name)
- connection = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Connection::Base
- end
- raise NonInferrableConnectionError.new(name) if connection.nil?
- connection
- end
+def determine_default_connection(name)
+ connection = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Connection::Base
+ end
+ raise NonInferrableConnectionError.new(name) if connection.nil?
+ connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 132
- def stop_stream_for(model)
- stop_stream_from(broadcasting_for(model))
- end# File actioncable/lib/action_cable/channel/streams.rb, line 123
- def stop_stream_from(broadcasting)
- callback = streams.delete(broadcasting)
- if callback
- pubsub.unsubscribe(broadcasting, callback)
- logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
- end
- end
+def stop_stream_from(broadcasting)
+ callback = streams.delete(broadcasting)
+ if callback
+ pubsub.unsubscribe(broadcasting, callback)
+ logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -281,11 +281,11 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 118
- def stream_for(broadcastables, callback = nil, coder: nil, &block)
- stream_from(broadcasting_for(broadcastables), callback || block, coder: coder)
- end
+def stream_for(broadcastables, callback = nil, coder: nil, &block)
+ stream_from(broadcasting_for(broadcastables), callback || block, coder: coder)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -316,28 +316,28 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 90
- def stream_from(broadcasting, callback = nil, coder: nil, &block)
- return if unsubscribed?
-
- broadcasting = String(broadcasting)
-
- # Don't send the confirmation until pubsub#subscribe is successful
- defer_subscription_confirmation!
-
- # Build a stream handler by wrapping the user-provided callback with a decoder
- # or defaulting to a JSON-decoding retransmitter.
- handler = worker_pool_stream_handler(broadcasting, callback || block, coder: coder)
- streams[broadcasting] = handler
-
- connection.server.event_loop.post do
- pubsub.subscribe(broadcasting, handler, lambda do
- ensure_confirmation_sent
- logger.info "#{self.class.name} is streaming from #{broadcasting}"
- end)
- end
- end
+def stream_from(broadcasting, callback = nil, coder: nil, &block)
+ return if unsubscribed?
+
+ broadcasting = String(broadcasting)
+
+ # Don't send the confirmation until pubsub#subscribe is successful
+ defer_subscription_confirmation!
+
+ # Build a stream handler by wrapping the user-provided callback with a decoder
+ # or defaulting to a JSON-decoding retransmitter.
+ handler = worker_pool_stream_handler(broadcasting, callback || block, coder: coder)
+ streams[broadcasting] = handler
+
+ connection.server.event_loop.post do
+ pubsub.subscribe(broadcasting, handler, lambda do
+ ensure_confirmation_sent
+ logger.info "#{self.class.name} is streaming from #{broadcasting}"
+ end)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -368,15 +368,15 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 146
- def stream_or_reject_for(model)
- if model
- stream_for model
- else
- reject
- end
- end
+def stream_or_reject_for(model)
+ if model
+ stream_for model
+ else
+ reject
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase.html b/src/classes/ActionCable/Channel/TestCase.html
index 08fb28c0cf..6317ff44d0 100644
--- a/src/classes/ActionCable/Channel/TestCase.html
+++ b/src/classes/ActionCable/Channel/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior.html b/src/classes/ActionCable/Channel/TestCase/Behavior.html
index b5f3a5cbb7..5a8ea0fd78 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -196,11 +196,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 282
- def assert_broadcast_on(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcast_on(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -231,11 +231,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 278
- def assert_broadcasts(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcasts(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,11 +272,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 326
- def assert_has_no_stream(stream)
- assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
- end
+def assert_has_no_stream(stream)
+ assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -313,11 +313,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 337
- def assert_has_no_stream_for(object)
- assert_has_no_stream(broadcasting_for(object))
- end
+def assert_has_no_stream_for(object)
+ assert_has_no_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -354,11 +354,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 304
- def assert_has_stream(stream)
- assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
- end
+def assert_has_stream(stream)
+ assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -395,11 +395,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 315
- def assert_has_stream_for(object)
- assert_has_stream(broadcasting_for(object))
- end
+def assert_has_stream_for(object)
+ assert_has_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -436,11 +436,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 293
- def assert_no_streams
- assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
- end
+def assert_no_streams
+ assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -473,12 +473,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 266
- def perform(action, data = {})
- check_subscribed!
- subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
- end
+def perform(action, data = {})
+ check_subscribed!
+ subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -516,11 +516,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 243
- def stub_connection(identifiers = {})
- @connection = ConnectionStub.new(identifiers)
- end
+def stub_connection(identifiers = {})
+ @connection = ConnectionStub.new(identifiers)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -551,15 +551,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 249
- def subscribe(params = {})
- @connection ||= stub_connection
- @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
- @subscription.singleton_class.include(ChannelStub)
- @subscription.subscribe_to_channel
- @subscription
- end
+def subscribe(params = {})
+ @connection ||= stub_connection
+ @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
+ @subscription.singleton_class.include(ChannelStub)
+ @subscription.subscribe_to_channel
+ @subscription
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -590,12 +590,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 272
- def transmissions
- # Return only directly sent message (via #transmit)
- connection.transmissions.filter_map { |data| data["message"] }
- end
+def transmissions
+ # Return only directly sent message (via #transmit)
+ connection.transmissions.filter_map { |data| data["message"] }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -626,12 +626,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 258
- def unsubscribe
- check_subscribed!
- subscription.unsubscribe_from_channel
- end
+def unsubscribe
+ check_subscribed!
+ subscription.unsubscribe_from_channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
index 48ea87f130..57efb4cdac 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 219
- def channel_class
- if channel = self._channel_class
- channel
- else
- tests determine_default_channel(name)
- end
- end
+def channel_class
+ if channel = self._channel_class
+ channel
+ else
+ tests determine_default_channel(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 227
- def determine_default_channel(name)
- channel = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Channel::Base
- end
- raise NonInferrableChannelError.new(name) if channel.nil?
- channel
- end
+def determine_default_channel(name)
+ channel = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Channel::Base
+ end
+ raise NonInferrableChannelError.new(name) if channel.nil?
+ channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 208
- def tests(channel)
- case channel
- when String, Symbol
- self._channel_class = channel.to_s.camelize.constantize
- when Module
- self._channel_class = channel
- else
- raise NonInferrableChannelError.new(channel)
- end
- end
+def tests(channel)
+ case channel
+ when String, Symbol
+ self._channel_class = channel.to_s.camelize.constantize
+ when Module
+ self._channel_class = channel
+ else
+ raise NonInferrableChannelError.new(channel)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection.html b/src/classes/ActionCable/Connection.html
index f832214f0e..7889c75284 100644
--- a/src/classes/ActionCable/Connection.html
+++ b/src/classes/ActionCable/Connection.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Assertions.html b/src/classes/ActionCable/Connection/Assertions.html
index 933ea80e4c..6b10ec5528 100644
--- a/src/classes/ActionCable/Connection/Assertions.html
+++ b/src/classes/ActionCable/Connection/Assertions.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 28
- def assert_reject_connection(&block)
- assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
- end
+def assert_reject_connection(&block)
+ assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization.html b/src/classes/ActionCable/Connection/Authorization.html
index feb855aa9e..baf85a37b3 100644
--- a/src/classes/ActionCable/Connection/Authorization.html
+++ b/src/classes/ActionCable/Connection/Authorization.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -97,12 +97,12 @@
# File actioncable/lib/action_cable/connection/authorization.rb, line 12
- def reject_unauthorized_connection
- logger.error "An unauthorized connection attempt was rejected"
- raise UnauthorizedError
- end
+def reject_unauthorized_connection
+ logger.error "An unauthorized connection attempt was rejected"
+ raise UnauthorizedError
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
index b63b282b0b..ff36299a28 100644
--- a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
+++ b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/Base.html b/src/classes/ActionCable/Connection/Base.html
index 36a2f1e1bb..ea0d62911f 100644
--- a/src/classes/ActionCable/Connection/Base.html
+++ b/src/classes/ActionCable/Connection/Base.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -255,21 +255,21 @@
# File actioncable/lib/action_cable/connection/base.rb, line 67
- def initialize(server, env, coder: ActiveSupport::JSON)
- @server, @env, @coder = server, env, coder
+def initialize(server, env, coder: ActiveSupport::JSON)
+ @server, @env, @coder = server, env, coder
- @worker_pool = server.worker_pool
- @logger = new_tagged_logger
+ @worker_pool = server.worker_pool
+ @logger = new_tagged_logger
- @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
+ @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
- @_internal_subscriptions = nil
- @started_at = Time.now
- end
+ @_internal_subscriptions = nil
+ @started_at = Time.now
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -304,11 +304,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 147
- def beat
- transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
- end
+def beat
+ transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -339,16 +339,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 120
- def close(reason: nil, reconnect: true)
- transmit(
- type: ActionCable::INTERNAL[:message_types][:disconnect],
- reason: reason,
- reconnect: reconnect
- )
- websocket.close
- end
+def close(reason: nil, reconnect: true)
+ transmit(
+ type: ActionCable::INTERNAL[:message_types][:disconnect],
+ reason: reason,
+ reconnect: reconnect
+ )
+ websocket.close
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -379,13 +379,13 @@
# File actioncable/lib/action_cable/connection/base.rb, line 109
- def handle_channel_command(payload)
- run_callbacks :command do
- subscriptions.execute_command payload
- end
- end
+def handle_channel_command(payload)
+ run_callbacks :command do
+ subscriptions.execute_command payload
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -416,11 +416,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 131
- def send_async(method, *arguments)
- worker_pool.async_invoke(self, method, *arguments)
- end
+def send_async(method, *arguments)
+ worker_pool.async_invoke(self, method, *arguments)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -451,16 +451,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 138
- def statistics
- {
- identifier: connection_identifier,
- started_at: @started_at,
- subscriptions: subscriptions.identifiers,
- request_id: @env["action_dispatch.request_id"]
- }
- end
+def statistics
+ {
+ identifier: connection_identifier,
+ started_at: @started_at,
+ subscriptions: subscriptions.identifiers,
+ request_id: @env["action_dispatch.request_id"]
+ }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -494,11 +494,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 187
- def cookies # :doc:
- request.cookie_jar
- end
+def cookies # :doc:
+ request.cookie_jar
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -529,14 +529,14 @@
# File actioncable/lib/action_cable/connection/base.rb, line 178
- def request # :doc:
- @request ||= begin
- environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
- ActionDispatch::Request.new(environment || env)
- end
- end
+def request # :doc:
+ @request ||= begin
+ environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
+ ActionDispatch::Request.new(environment || env)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Callbacks.html b/src/classes/ActionCable/Connection/Callbacks.html
index 818958bf81..d6504ca284 100644
--- a/src/classes/ActionCable/Connection/Callbacks.html
+++ b/src/classes/ActionCable/Connection/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
index 933056a029..6376d7195b 100644
--- a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,11 +90,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 47
- def after_command(*methods, &block)
- set_callback(:command, :after, *methods, &block)
- end
+def after_command(*methods, &block)
+ set_callback(:command, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -125,11 +125,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 51
- def around_command(*methods, &block)
- set_callback(:command, :around, *methods, &block)
- end
+def around_command(*methods, &block)
+ set_callback(:command, :around, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -160,11 +160,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 43
- def before_command(*methods, &block)
- set_callback(:command, :before, *methods, &block)
- end
+def before_command(*methods, &block)
+ set_callback(:command, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification.html b/src/classes/ActionCable/Connection/Identification.html
index f3dcea9bfc..063ca88999 100644
--- a/src/classes/ActionCable/Connection/Identification.html
+++ b/src/classes/ActionCable/Connection/Identification.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,15 +95,15 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 29
- def connection_identifier
- unless defined? @connection_identifier
- @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
- end
+def connection_identifier
+ unless defined? @connection_identifier
+ @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
+ end
- @connection_identifier
- end
+ @connection_identifier
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification/ClassMethods.html b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
index 324ded31f5..a3395ef8a3 100644
--- a/src/classes/ActionCable/Connection/Identification/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -84,12 +84,12 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 21
- def identified_by(*identifiers)
- Array(identifiers).each { |identifier| attr_accessor identifier }
- self.identifiers += identifiers
- end
+def identified_by(*identifiers)
+ Array(identifiers).each { |identifier| attr_accessor identifier }
+ self.identifiers += identifiers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/InternalChannel.html b/src/classes/ActionCable/Connection/InternalChannel.html
index 9b0144f690..cfdccceaf4 100644
--- a/src/classes/ActionCable/Connection/InternalChannel.html
+++ b/src/classes/ActionCable/Connection/InternalChannel.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
index 7167904452..bf0c696d62 100644
--- a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
+++ b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 15
- def initialize(name)
- super "Unable to determine the connection to test from #{name}. " +
- "You'll need to specify it using `tests YourConnection` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the connection to test from #{name}. " +
+ "You'll need to specify it using `tests YourConnection` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/StreamEventLoop.html b/src/classes/ActionCable/Connection/StreamEventLoop.html
index 2b71a213e3..f7c49354ef 100644
--- a/src/classes/ActionCable/Connection/StreamEventLoop.html
+++ b/src/classes/ActionCable/Connection/StreamEventLoop.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -111,16 +111,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 10
- def initialize
- @nio = @executor = @thread = nil
- @map = {}
- @stopping = false
- @todo = Queue.new
-
- @spawn_mutex = Mutex.new
- end
+def initialize
+ @nio = @executor = @thread = nil
+ @map = {}
+ @stopping = false
+ @todo = Queue.new
+
+ @spawn_mutex = Mutex.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -155,15 +155,15 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 30
- def attach(io, stream)
- @todo << lambda do
- @map[io] = @nio.register(io, :r)
- @map[io].value = stream
- end
- wakeup
- end
+def attach(io, stream)
+ @todo << lambda do
+ @map[io] = @nio.register(io, :r)
+ @map[io].value = stream
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -194,16 +194,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 38
- def detach(io, stream)
- @todo << lambda do
- @nio.deregister io
- @map.delete io
- io.close
- end
- wakeup
- end
+def detach(io, stream)
+ @todo << lambda do
+ @nio.deregister io
+ @map.delete io
+ io.close
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -234,14 +234,14 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 23
- def post(task = nil, &block)
- task ||= block
+def post(task = nil, &block)
+ task ||= block
- spawn
- @executor << task
- end
+ spawn
+ @executor << task
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,12 +272,12 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 56
- def stop
- @stopping = true
- wakeup if @nio
- end
+def stop
+ @stopping = true
+ wakeup if @nio
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -308,11 +308,11 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 19
- def timer(interval, &block)
- Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
- end
+def timer(interval, &block)
+ Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -343,16 +343,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 47
- def writes_pending(io)
- @todo << lambda do
- if monitor = @map[io]
- monitor.interests = :rw
- end
- end
- wakeup
- end
+def writes_pending(io)
+ @todo << lambda do
+ if monitor = @map[io]
+ monitor.interests = :rw
+ end
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
index f4d5cacc63..99731855fb 100644
--- a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
+++ b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -121,12 +121,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 16
- def initialize(logger, tags:)
- @logger = logger
- @tags = tags.flatten
- end
+def initialize(logger, tags:)
+ @logger = logger
+ @tags = tags.flatten
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -161,12 +161,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 21
- def add_tags(*tags)
- @tags += tags.flatten
- @tags = @tags.uniq
- end
+def add_tags(*tags)
+ @tags += tags.flatten
+ @tags = @tags.uniq
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -197,16 +197,16 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 26
- def tag(logger, &block)
- if logger.respond_to?(:tagged)
- current_tags = tags - logger.formatter.current_tags
- logger.tagged(*current_tags, &block)
- else
- yield
- end
- end
+def tag(logger, &block)
+ if logger.respond_to?(:tagged)
+ current_tags = tags - logger.formatter.current_tags
+ logger.tagged(*current_tags, &block)
+ else
+ yield
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,11 +240,11 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 42
- def log(type, message, &block) # :doc:
- tag(@logger) { @logger.send type, message, &block }
- end
+def log(type, message, &block) # :doc:
+ tag(@logger) { @logger.send type, message, &block }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase.html b/src/classes/ActionCable/Connection/TestCase.html
index 948378e491..39bc5cb056 100644
--- a/src/classes/ActionCable/Connection/TestCase.html
+++ b/src/classes/ActionCable/Connection/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior.html b/src/classes/ActionCable/Connection/TestCase/Behavior.html
index b87870becd..4ee0debbea 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -163,19 +163,19 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 192
- def connect(path = ActionCable.server.config.mount_path, **request_params)
- path ||= DEFAULT_PATH
+def connect(path = ActionCable.server.config.mount_path, **request_params)
+ path ||= DEFAULT_PATH
- connection = self.class.connection_class.allocate
- connection.singleton_class.include(TestConnection)
- connection.send(:initialize, build_test_request(path, **request_params))
- connection.connect if connection.respond_to?(:connect)
+ connection = self.class.connection_class.allocate
+ connection.singleton_class.include(TestConnection)
+ connection.send(:initialize, build_test_request(path, **request_params))
+ connection.connect if connection.respond_to?(:connect)
- # Only set instance variable if connected successfully
- @connection = connection
- end
+ # Only set instance variable if connected successfully
+ @connection = connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -206,11 +206,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 212
- def cookies
- @cookie_jar ||= TestCookieJar.new
- end
+def cookies
+ @cookie_jar ||= TestCookieJar.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -241,14 +241,14 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 205
- def disconnect
- raise "Must be connected!" if connection.nil?
+def disconnect
+ raise "Must be connected!" if connection.nil?
- connection.disconnect if connection.respond_to?(:disconnect)
- @connection = nil
- end
+ connection.disconnect if connection.respond_to?(:disconnect)
+ @connection = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
index 63444f4b27..99fc0e3f6f 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 167
- def connection_class
- if connection = self._connection_class
- connection
- else
- tests determine_default_connection(name)
- end
- end
+def connection_class
+ if connection = self._connection_class
+ connection
+ else
+ tests determine_default_connection(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 175
- def determine_default_connection(name)
- connection = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Connection::Base
- end
- raise NonInferrableConnectionError.new(name) if connection.nil?
- connection
- end
+def determine_default_connection(name)
+ connection = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Connection::Base
+ end
+ raise NonInferrableConnectionError.new(name) if connection.nil?
+ connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 118
- def stream_for(broadcastables, callback = nil, coder: nil, &block)
- stream_from(broadcasting_for(broadcastables), callback || block, coder: coder)
- end# File actioncable/lib/action_cable/channel/streams.rb, line 90
- def stream_from(broadcasting, callback = nil, coder: nil, &block)
- return if unsubscribed?
-
- broadcasting = String(broadcasting)
-
- # Don't send the confirmation until pubsub#subscribe is successful
- defer_subscription_confirmation!
-
- # Build a stream handler by wrapping the user-provided callback with a decoder
- # or defaulting to a JSON-decoding retransmitter.
- handler = worker_pool_stream_handler(broadcasting, callback || block, coder: coder)
- streams[broadcasting] = handler
-
- connection.server.event_loop.post do
- pubsub.subscribe(broadcasting, handler, lambda do
- ensure_confirmation_sent
- logger.info "#{self.class.name} is streaming from #{broadcasting}"
- end)
- end
- end
+def stream_from(broadcasting, callback = nil, coder: nil, &block)
+ return if unsubscribed?
+
+ broadcasting = String(broadcasting)
+
+ # Don't send the confirmation until pubsub#subscribe is successful
+ defer_subscription_confirmation!
+
+ # Build a stream handler by wrapping the user-provided callback with a decoder
+ # or defaulting to a JSON-decoding retransmitter.
+ handler = worker_pool_stream_handler(broadcasting, callback || block, coder: coder)
+ streams[broadcasting] = handler
+
+ connection.server.event_loop.post do
+ pubsub.subscribe(broadcasting, handler, lambda do
+ ensure_confirmation_sent
+ logger.info "#{self.class.name} is streaming from #{broadcasting}"
+ end)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -368,15 +368,15 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 146
- def stream_or_reject_for(model)
- if model
- stream_for model
- else
- reject
- end
- end
+def stream_or_reject_for(model)
+ if model
+ stream_for model
+ else
+ reject
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase.html b/src/classes/ActionCable/Channel/TestCase.html
index 08fb28c0cf..6317ff44d0 100644
--- a/src/classes/ActionCable/Channel/TestCase.html
+++ b/src/classes/ActionCable/Channel/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior.html b/src/classes/ActionCable/Channel/TestCase/Behavior.html
index b5f3a5cbb7..5a8ea0fd78 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -196,11 +196,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 282
- def assert_broadcast_on(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcast_on(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -231,11 +231,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 278
- def assert_broadcasts(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcasts(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,11 +272,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 326
- def assert_has_no_stream(stream)
- assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
- end
+def assert_has_no_stream(stream)
+ assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -313,11 +313,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 337
- def assert_has_no_stream_for(object)
- assert_has_no_stream(broadcasting_for(object))
- end
+def assert_has_no_stream_for(object)
+ assert_has_no_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -354,11 +354,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 304
- def assert_has_stream(stream)
- assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
- end
+def assert_has_stream(stream)
+ assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -395,11 +395,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 315
- def assert_has_stream_for(object)
- assert_has_stream(broadcasting_for(object))
- end
+def assert_has_stream_for(object)
+ assert_has_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -436,11 +436,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 293
- def assert_no_streams
- assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
- end
+def assert_no_streams
+ assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -473,12 +473,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 266
- def perform(action, data = {})
- check_subscribed!
- subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
- end
+def perform(action, data = {})
+ check_subscribed!
+ subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -516,11 +516,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 243
- def stub_connection(identifiers = {})
- @connection = ConnectionStub.new(identifiers)
- end
+def stub_connection(identifiers = {})
+ @connection = ConnectionStub.new(identifiers)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -551,15 +551,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 249
- def subscribe(params = {})
- @connection ||= stub_connection
- @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
- @subscription.singleton_class.include(ChannelStub)
- @subscription.subscribe_to_channel
- @subscription
- end
+def subscribe(params = {})
+ @connection ||= stub_connection
+ @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
+ @subscription.singleton_class.include(ChannelStub)
+ @subscription.subscribe_to_channel
+ @subscription
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -590,12 +590,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 272
- def transmissions
- # Return only directly sent message (via #transmit)
- connection.transmissions.filter_map { |data| data["message"] }
- end
+def transmissions
+ # Return only directly sent message (via #transmit)
+ connection.transmissions.filter_map { |data| data["message"] }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -626,12 +626,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 258
- def unsubscribe
- check_subscribed!
- subscription.unsubscribe_from_channel
- end
+def unsubscribe
+ check_subscribed!
+ subscription.unsubscribe_from_channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
index 48ea87f130..57efb4cdac 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 219
- def channel_class
- if channel = self._channel_class
- channel
- else
- tests determine_default_channel(name)
- end
- end
+def channel_class
+ if channel = self._channel_class
+ channel
+ else
+ tests determine_default_channel(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 227
- def determine_default_channel(name)
- channel = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Channel::Base
- end
- raise NonInferrableChannelError.new(name) if channel.nil?
- channel
- end
+def determine_default_channel(name)
+ channel = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Channel::Base
+ end
+ raise NonInferrableChannelError.new(name) if channel.nil?
+ channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 208
- def tests(channel)
- case channel
- when String, Symbol
- self._channel_class = channel.to_s.camelize.constantize
- when Module
- self._channel_class = channel
- else
- raise NonInferrableChannelError.new(channel)
- end
- end
+def tests(channel)
+ case channel
+ when String, Symbol
+ self._channel_class = channel.to_s.camelize.constantize
+ when Module
+ self._channel_class = channel
+ else
+ raise NonInferrableChannelError.new(channel)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection.html b/src/classes/ActionCable/Connection.html
index f832214f0e..7889c75284 100644
--- a/src/classes/ActionCable/Connection.html
+++ b/src/classes/ActionCable/Connection.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Assertions.html b/src/classes/ActionCable/Connection/Assertions.html
index 933ea80e4c..6b10ec5528 100644
--- a/src/classes/ActionCable/Connection/Assertions.html
+++ b/src/classes/ActionCable/Connection/Assertions.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 28
- def assert_reject_connection(&block)
- assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
- end
+def assert_reject_connection(&block)
+ assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization.html b/src/classes/ActionCable/Connection/Authorization.html
index feb855aa9e..baf85a37b3 100644
--- a/src/classes/ActionCable/Connection/Authorization.html
+++ b/src/classes/ActionCable/Connection/Authorization.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -97,12 +97,12 @@
# File actioncable/lib/action_cable/connection/authorization.rb, line 12
- def reject_unauthorized_connection
- logger.error "An unauthorized connection attempt was rejected"
- raise UnauthorizedError
- end
+def reject_unauthorized_connection
+ logger.error "An unauthorized connection attempt was rejected"
+ raise UnauthorizedError
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
index b63b282b0b..ff36299a28 100644
--- a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
+++ b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/Base.html b/src/classes/ActionCable/Connection/Base.html
index 36a2f1e1bb..ea0d62911f 100644
--- a/src/classes/ActionCable/Connection/Base.html
+++ b/src/classes/ActionCable/Connection/Base.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -255,21 +255,21 @@
# File actioncable/lib/action_cable/connection/base.rb, line 67
- def initialize(server, env, coder: ActiveSupport::JSON)
- @server, @env, @coder = server, env, coder
+def initialize(server, env, coder: ActiveSupport::JSON)
+ @server, @env, @coder = server, env, coder
- @worker_pool = server.worker_pool
- @logger = new_tagged_logger
+ @worker_pool = server.worker_pool
+ @logger = new_tagged_logger
- @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
+ @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
- @_internal_subscriptions = nil
- @started_at = Time.now
- end
+ @_internal_subscriptions = nil
+ @started_at = Time.now
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -304,11 +304,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 147
- def beat
- transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
- end
+def beat
+ transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -339,16 +339,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 120
- def close(reason: nil, reconnect: true)
- transmit(
- type: ActionCable::INTERNAL[:message_types][:disconnect],
- reason: reason,
- reconnect: reconnect
- )
- websocket.close
- end
+def close(reason: nil, reconnect: true)
+ transmit(
+ type: ActionCable::INTERNAL[:message_types][:disconnect],
+ reason: reason,
+ reconnect: reconnect
+ )
+ websocket.close
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -379,13 +379,13 @@
# File actioncable/lib/action_cable/connection/base.rb, line 109
- def handle_channel_command(payload)
- run_callbacks :command do
- subscriptions.execute_command payload
- end
- end
+def handle_channel_command(payload)
+ run_callbacks :command do
+ subscriptions.execute_command payload
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -416,11 +416,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 131
- def send_async(method, *arguments)
- worker_pool.async_invoke(self, method, *arguments)
- end
+def send_async(method, *arguments)
+ worker_pool.async_invoke(self, method, *arguments)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -451,16 +451,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 138
- def statistics
- {
- identifier: connection_identifier,
- started_at: @started_at,
- subscriptions: subscriptions.identifiers,
- request_id: @env["action_dispatch.request_id"]
- }
- end
+def statistics
+ {
+ identifier: connection_identifier,
+ started_at: @started_at,
+ subscriptions: subscriptions.identifiers,
+ request_id: @env["action_dispatch.request_id"]
+ }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -494,11 +494,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 187
- def cookies # :doc:
- request.cookie_jar
- end
+def cookies # :doc:
+ request.cookie_jar
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -529,14 +529,14 @@
# File actioncable/lib/action_cable/connection/base.rb, line 178
- def request # :doc:
- @request ||= begin
- environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
- ActionDispatch::Request.new(environment || env)
- end
- end
+def request # :doc:
+ @request ||= begin
+ environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
+ ActionDispatch::Request.new(environment || env)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Callbacks.html b/src/classes/ActionCable/Connection/Callbacks.html
index 818958bf81..d6504ca284 100644
--- a/src/classes/ActionCable/Connection/Callbacks.html
+++ b/src/classes/ActionCable/Connection/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
index 933056a029..6376d7195b 100644
--- a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,11 +90,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 47
- def after_command(*methods, &block)
- set_callback(:command, :after, *methods, &block)
- end
+def after_command(*methods, &block)
+ set_callback(:command, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -125,11 +125,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 51
- def around_command(*methods, &block)
- set_callback(:command, :around, *methods, &block)
- end
+def around_command(*methods, &block)
+ set_callback(:command, :around, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -160,11 +160,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 43
- def before_command(*methods, &block)
- set_callback(:command, :before, *methods, &block)
- end
+def before_command(*methods, &block)
+ set_callback(:command, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification.html b/src/classes/ActionCable/Connection/Identification.html
index f3dcea9bfc..063ca88999 100644
--- a/src/classes/ActionCable/Connection/Identification.html
+++ b/src/classes/ActionCable/Connection/Identification.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,15 +95,15 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 29
- def connection_identifier
- unless defined? @connection_identifier
- @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
- end
+def connection_identifier
+ unless defined? @connection_identifier
+ @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
+ end
- @connection_identifier
- end
+ @connection_identifier
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification/ClassMethods.html b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
index 324ded31f5..a3395ef8a3 100644
--- a/src/classes/ActionCable/Connection/Identification/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -84,12 +84,12 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 21
- def identified_by(*identifiers)
- Array(identifiers).each { |identifier| attr_accessor identifier }
- self.identifiers += identifiers
- end
+def identified_by(*identifiers)
+ Array(identifiers).each { |identifier| attr_accessor identifier }
+ self.identifiers += identifiers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/InternalChannel.html b/src/classes/ActionCable/Connection/InternalChannel.html
index 9b0144f690..cfdccceaf4 100644
--- a/src/classes/ActionCable/Connection/InternalChannel.html
+++ b/src/classes/ActionCable/Connection/InternalChannel.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
index 7167904452..bf0c696d62 100644
--- a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
+++ b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 15
- def initialize(name)
- super "Unable to determine the connection to test from #{name}. " +
- "You'll need to specify it using `tests YourConnection` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the connection to test from #{name}. " +
+ "You'll need to specify it using `tests YourConnection` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/StreamEventLoop.html b/src/classes/ActionCable/Connection/StreamEventLoop.html
index 2b71a213e3..f7c49354ef 100644
--- a/src/classes/ActionCable/Connection/StreamEventLoop.html
+++ b/src/classes/ActionCable/Connection/StreamEventLoop.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -111,16 +111,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 10
- def initialize
- @nio = @executor = @thread = nil
- @map = {}
- @stopping = false
- @todo = Queue.new
-
- @spawn_mutex = Mutex.new
- end
+def initialize
+ @nio = @executor = @thread = nil
+ @map = {}
+ @stopping = false
+ @todo = Queue.new
+
+ @spawn_mutex = Mutex.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -155,15 +155,15 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 30
- def attach(io, stream)
- @todo << lambda do
- @map[io] = @nio.register(io, :r)
- @map[io].value = stream
- end
- wakeup
- end
+def attach(io, stream)
+ @todo << lambda do
+ @map[io] = @nio.register(io, :r)
+ @map[io].value = stream
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -194,16 +194,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 38
- def detach(io, stream)
- @todo << lambda do
- @nio.deregister io
- @map.delete io
- io.close
- end
- wakeup
- end
+def detach(io, stream)
+ @todo << lambda do
+ @nio.deregister io
+ @map.delete io
+ io.close
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -234,14 +234,14 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 23
- def post(task = nil, &block)
- task ||= block
+def post(task = nil, &block)
+ task ||= block
- spawn
- @executor << task
- end
+ spawn
+ @executor << task
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,12 +272,12 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 56
- def stop
- @stopping = true
- wakeup if @nio
- end
+def stop
+ @stopping = true
+ wakeup if @nio
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -308,11 +308,11 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 19
- def timer(interval, &block)
- Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
- end
+def timer(interval, &block)
+ Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -343,16 +343,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 47
- def writes_pending(io)
- @todo << lambda do
- if monitor = @map[io]
- monitor.interests = :rw
- end
- end
- wakeup
- end
+def writes_pending(io)
+ @todo << lambda do
+ if monitor = @map[io]
+ monitor.interests = :rw
+ end
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
index f4d5cacc63..99731855fb 100644
--- a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
+++ b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -121,12 +121,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 16
- def initialize(logger, tags:)
- @logger = logger
- @tags = tags.flatten
- end
+def initialize(logger, tags:)
+ @logger = logger
+ @tags = tags.flatten
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -161,12 +161,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 21
- def add_tags(*tags)
- @tags += tags.flatten
- @tags = @tags.uniq
- end
+def add_tags(*tags)
+ @tags += tags.flatten
+ @tags = @tags.uniq
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -197,16 +197,16 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 26
- def tag(logger, &block)
- if logger.respond_to?(:tagged)
- current_tags = tags - logger.formatter.current_tags
- logger.tagged(*current_tags, &block)
- else
- yield
- end
- end
+def tag(logger, &block)
+ if logger.respond_to?(:tagged)
+ current_tags = tags - logger.formatter.current_tags
+ logger.tagged(*current_tags, &block)
+ else
+ yield
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,11 +240,11 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 42
- def log(type, message, &block) # :doc:
- tag(@logger) { @logger.send type, message, &block }
- end
+def log(type, message, &block) # :doc:
+ tag(@logger) { @logger.send type, message, &block }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase.html b/src/classes/ActionCable/Connection/TestCase.html
index 948378e491..39bc5cb056 100644
--- a/src/classes/ActionCable/Connection/TestCase.html
+++ b/src/classes/ActionCable/Connection/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior.html b/src/classes/ActionCable/Connection/TestCase/Behavior.html
index b87870becd..4ee0debbea 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -163,19 +163,19 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 192
- def connect(path = ActionCable.server.config.mount_path, **request_params)
- path ||= DEFAULT_PATH
+def connect(path = ActionCable.server.config.mount_path, **request_params)
+ path ||= DEFAULT_PATH
- connection = self.class.connection_class.allocate
- connection.singleton_class.include(TestConnection)
- connection.send(:initialize, build_test_request(path, **request_params))
- connection.connect if connection.respond_to?(:connect)
+ connection = self.class.connection_class.allocate
+ connection.singleton_class.include(TestConnection)
+ connection.send(:initialize, build_test_request(path, **request_params))
+ connection.connect if connection.respond_to?(:connect)
- # Only set instance variable if connected successfully
- @connection = connection
- end
+ # Only set instance variable if connected successfully
+ @connection = connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -206,11 +206,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 212
- def cookies
- @cookie_jar ||= TestCookieJar.new
- end
+def cookies
+ @cookie_jar ||= TestCookieJar.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -241,14 +241,14 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 205
- def disconnect
- raise "Must be connected!" if connection.nil?
+def disconnect
+ raise "Must be connected!" if connection.nil?
- connection.disconnect if connection.respond_to?(:disconnect)
- @connection = nil
- end
+ connection.disconnect if connection.respond_to?(:disconnect)
+ @connection = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
index 63444f4b27..99fc0e3f6f 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 167
- def connection_class
- if connection = self._connection_class
- connection
- else
- tests determine_default_connection(name)
- end
- end
+def connection_class
+ if connection = self._connection_class
+ connection
+ else
+ tests determine_default_connection(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 175
- def determine_default_connection(name)
- connection = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Connection::Base
- end
- raise NonInferrableConnectionError.new(name) if connection.nil?
- connection
- end
+def determine_default_connection(name)
+ connection = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Connection::Base
+ end
+ raise NonInferrableConnectionError.new(name) if connection.nil?
+ connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/channel/streams.rb, line 146
- def stream_or_reject_for(model)
- if model
- stream_for model
- else
- reject
- end
- end+ Ruby on Rails 8.1.0.rc1
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior.html b/src/classes/ActionCable/Channel/TestCase/Behavior.html
index b5f3a5cbb7..5a8ea0fd78 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -196,11 +196,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 282
- def assert_broadcast_on(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcast_on(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -231,11 +231,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 278
- def assert_broadcasts(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcasts(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,11 +272,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 326
- def assert_has_no_stream(stream)
- assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
- end
+def assert_has_no_stream(stream)
+ assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -313,11 +313,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 337
- def assert_has_no_stream_for(object)
- assert_has_no_stream(broadcasting_for(object))
- end
+def assert_has_no_stream_for(object)
+ assert_has_no_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -354,11 +354,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 304
- def assert_has_stream(stream)
- assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
- end
+def assert_has_stream(stream)
+ assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -395,11 +395,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 315
- def assert_has_stream_for(object)
- assert_has_stream(broadcasting_for(object))
- end
+def assert_has_stream_for(object)
+ assert_has_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -436,11 +436,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 293
- def assert_no_streams
- assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
- end
+def assert_no_streams
+ assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -473,12 +473,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 266
- def perform(action, data = {})
- check_subscribed!
- subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
- end
+def perform(action, data = {})
+ check_subscribed!
+ subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -516,11 +516,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 243
- def stub_connection(identifiers = {})
- @connection = ConnectionStub.new(identifiers)
- end
+def stub_connection(identifiers = {})
+ @connection = ConnectionStub.new(identifiers)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -551,15 +551,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 249
- def subscribe(params = {})
- @connection ||= stub_connection
- @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
- @subscription.singleton_class.include(ChannelStub)
- @subscription.subscribe_to_channel
- @subscription
- end
+def subscribe(params = {})
+ @connection ||= stub_connection
+ @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
+ @subscription.singleton_class.include(ChannelStub)
+ @subscription.subscribe_to_channel
+ @subscription
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -590,12 +590,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 272
- def transmissions
- # Return only directly sent message (via #transmit)
- connection.transmissions.filter_map { |data| data["message"] }
- end
+def transmissions
+ # Return only directly sent message (via #transmit)
+ connection.transmissions.filter_map { |data| data["message"] }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -626,12 +626,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 258
- def unsubscribe
- check_subscribed!
- subscription.unsubscribe_from_channel
- end
+def unsubscribe
+ check_subscribed!
+ subscription.unsubscribe_from_channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
index 48ea87f130..57efb4cdac 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 219
- def channel_class
- if channel = self._channel_class
- channel
- else
- tests determine_default_channel(name)
- end
- end
+def channel_class
+ if channel = self._channel_class
+ channel
+ else
+ tests determine_default_channel(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 227
- def determine_default_channel(name)
- channel = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Channel::Base
- end
- raise NonInferrableChannelError.new(name) if channel.nil?
- channel
- end
+def determine_default_channel(name)
+ channel = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Channel::Base
+ end
+ raise NonInferrableChannelError.new(name) if channel.nil?
+ channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 208
- def tests(channel)
- case channel
- when String, Symbol
- self._channel_class = channel.to_s.camelize.constantize
- when Module
- self._channel_class = channel
- else
- raise NonInferrableChannelError.new(channel)
- end
- end
+def tests(channel)
+ case channel
+ when String, Symbol
+ self._channel_class = channel.to_s.camelize.constantize
+ when Module
+ self._channel_class = channel
+ else
+ raise NonInferrableChannelError.new(channel)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection.html b/src/classes/ActionCable/Connection.html
index f832214f0e..7889c75284 100644
--- a/src/classes/ActionCable/Connection.html
+++ b/src/classes/ActionCable/Connection.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Assertions.html b/src/classes/ActionCable/Connection/Assertions.html
index 933ea80e4c..6b10ec5528 100644
--- a/src/classes/ActionCable/Connection/Assertions.html
+++ b/src/classes/ActionCable/Connection/Assertions.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 28
- def assert_reject_connection(&block)
- assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
- end
+def assert_reject_connection(&block)
+ assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization.html b/src/classes/ActionCable/Connection/Authorization.html
index feb855aa9e..baf85a37b3 100644
--- a/src/classes/ActionCable/Connection/Authorization.html
+++ b/src/classes/ActionCable/Connection/Authorization.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -97,12 +97,12 @@
# File actioncable/lib/action_cable/connection/authorization.rb, line 12
- def reject_unauthorized_connection
- logger.error "An unauthorized connection attempt was rejected"
- raise UnauthorizedError
- end
+def reject_unauthorized_connection
+ logger.error "An unauthorized connection attempt was rejected"
+ raise UnauthorizedError
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
index b63b282b0b..ff36299a28 100644
--- a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
+++ b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/Base.html b/src/classes/ActionCable/Connection/Base.html
index 36a2f1e1bb..ea0d62911f 100644
--- a/src/classes/ActionCable/Connection/Base.html
+++ b/src/classes/ActionCable/Connection/Base.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -255,21 +255,21 @@
# File actioncable/lib/action_cable/connection/base.rb, line 67
- def initialize(server, env, coder: ActiveSupport::JSON)
- @server, @env, @coder = server, env, coder
+def initialize(server, env, coder: ActiveSupport::JSON)
+ @server, @env, @coder = server, env, coder
- @worker_pool = server.worker_pool
- @logger = new_tagged_logger
+ @worker_pool = server.worker_pool
+ @logger = new_tagged_logger
- @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
+ @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
- @_internal_subscriptions = nil
- @started_at = Time.now
- end
+ @_internal_subscriptions = nil
+ @started_at = Time.now
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -304,11 +304,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 147
- def beat
- transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
- end
+def beat
+ transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -339,16 +339,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 120
- def close(reason: nil, reconnect: true)
- transmit(
- type: ActionCable::INTERNAL[:message_types][:disconnect],
- reason: reason,
- reconnect: reconnect
- )
- websocket.close
- end
+def close(reason: nil, reconnect: true)
+ transmit(
+ type: ActionCable::INTERNAL[:message_types][:disconnect],
+ reason: reason,
+ reconnect: reconnect
+ )
+ websocket.close
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -379,13 +379,13 @@
# File actioncable/lib/action_cable/connection/base.rb, line 109
- def handle_channel_command(payload)
- run_callbacks :command do
- subscriptions.execute_command payload
- end
- end
+def handle_channel_command(payload)
+ run_callbacks :command do
+ subscriptions.execute_command payload
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -416,11 +416,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 131
- def send_async(method, *arguments)
- worker_pool.async_invoke(self, method, *arguments)
- end
+def send_async(method, *arguments)
+ worker_pool.async_invoke(self, method, *arguments)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -451,16 +451,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 138
- def statistics
- {
- identifier: connection_identifier,
- started_at: @started_at,
- subscriptions: subscriptions.identifiers,
- request_id: @env["action_dispatch.request_id"]
- }
- end
+def statistics
+ {
+ identifier: connection_identifier,
+ started_at: @started_at,
+ subscriptions: subscriptions.identifiers,
+ request_id: @env["action_dispatch.request_id"]
+ }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -494,11 +494,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 187
- def cookies # :doc:
- request.cookie_jar
- end
+def cookies # :doc:
+ request.cookie_jar
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -529,14 +529,14 @@
# File actioncable/lib/action_cable/connection/base.rb, line 178
- def request # :doc:
- @request ||= begin
- environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
- ActionDispatch::Request.new(environment || env)
- end
- end
+def request # :doc:
+ @request ||= begin
+ environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
+ ActionDispatch::Request.new(environment || env)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Callbacks.html b/src/classes/ActionCable/Connection/Callbacks.html
index 818958bf81..d6504ca284 100644
--- a/src/classes/ActionCable/Connection/Callbacks.html
+++ b/src/classes/ActionCable/Connection/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
index 933056a029..6376d7195b 100644
--- a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,11 +90,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 47
- def after_command(*methods, &block)
- set_callback(:command, :after, *methods, &block)
- end
+def after_command(*methods, &block)
+ set_callback(:command, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -125,11 +125,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 51
- def around_command(*methods, &block)
- set_callback(:command, :around, *methods, &block)
- end
+def around_command(*methods, &block)
+ set_callback(:command, :around, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -160,11 +160,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 43
- def before_command(*methods, &block)
- set_callback(:command, :before, *methods, &block)
- end
+def before_command(*methods, &block)
+ set_callback(:command, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification.html b/src/classes/ActionCable/Connection/Identification.html
index f3dcea9bfc..063ca88999 100644
--- a/src/classes/ActionCable/Connection/Identification.html
+++ b/src/classes/ActionCable/Connection/Identification.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,15 +95,15 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 29
- def connection_identifier
- unless defined? @connection_identifier
- @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
- end
+def connection_identifier
+ unless defined? @connection_identifier
+ @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
+ end
- @connection_identifier
- end
+ @connection_identifier
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification/ClassMethods.html b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
index 324ded31f5..a3395ef8a3 100644
--- a/src/classes/ActionCable/Connection/Identification/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -84,12 +84,12 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 21
- def identified_by(*identifiers)
- Array(identifiers).each { |identifier| attr_accessor identifier }
- self.identifiers += identifiers
- end
+def identified_by(*identifiers)
+ Array(identifiers).each { |identifier| attr_accessor identifier }
+ self.identifiers += identifiers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/InternalChannel.html b/src/classes/ActionCable/Connection/InternalChannel.html
index 9b0144f690..cfdccceaf4 100644
--- a/src/classes/ActionCable/Connection/InternalChannel.html
+++ b/src/classes/ActionCable/Connection/InternalChannel.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
index 7167904452..bf0c696d62 100644
--- a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
+++ b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 15
- def initialize(name)
- super "Unable to determine the connection to test from #{name}. " +
- "You'll need to specify it using `tests YourConnection` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the connection to test from #{name}. " +
+ "You'll need to specify it using `tests YourConnection` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/StreamEventLoop.html b/src/classes/ActionCable/Connection/StreamEventLoop.html
index 2b71a213e3..f7c49354ef 100644
--- a/src/classes/ActionCable/Connection/StreamEventLoop.html
+++ b/src/classes/ActionCable/Connection/StreamEventLoop.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -111,16 +111,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 10
- def initialize
- @nio = @executor = @thread = nil
- @map = {}
- @stopping = false
- @todo = Queue.new
-
- @spawn_mutex = Mutex.new
- end
+def initialize
+ @nio = @executor = @thread = nil
+ @map = {}
+ @stopping = false
+ @todo = Queue.new
+
+ @spawn_mutex = Mutex.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -155,15 +155,15 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 30
- def attach(io, stream)
- @todo << lambda do
- @map[io] = @nio.register(io, :r)
- @map[io].value = stream
- end
- wakeup
- end
+def attach(io, stream)
+ @todo << lambda do
+ @map[io] = @nio.register(io, :r)
+ @map[io].value = stream
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -194,16 +194,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 38
- def detach(io, stream)
- @todo << lambda do
- @nio.deregister io
- @map.delete io
- io.close
- end
- wakeup
- end
+def detach(io, stream)
+ @todo << lambda do
+ @nio.deregister io
+ @map.delete io
+ io.close
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -234,14 +234,14 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 23
- def post(task = nil, &block)
- task ||= block
+def post(task = nil, &block)
+ task ||= block
- spawn
- @executor << task
- end
+ spawn
+ @executor << task
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,12 +272,12 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 56
- def stop
- @stopping = true
- wakeup if @nio
- end
+def stop
+ @stopping = true
+ wakeup if @nio
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -308,11 +308,11 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 19
- def timer(interval, &block)
- Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
- end
+def timer(interval, &block)
+ Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -343,16 +343,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 47
- def writes_pending(io)
- @todo << lambda do
- if monitor = @map[io]
- monitor.interests = :rw
- end
- end
- wakeup
- end
+def writes_pending(io)
+ @todo << lambda do
+ if monitor = @map[io]
+ monitor.interests = :rw
+ end
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
index f4d5cacc63..99731855fb 100644
--- a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
+++ b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -121,12 +121,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 16
- def initialize(logger, tags:)
- @logger = logger
- @tags = tags.flatten
- end
+def initialize(logger, tags:)
+ @logger = logger
+ @tags = tags.flatten
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -161,12 +161,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 21
- def add_tags(*tags)
- @tags += tags.flatten
- @tags = @tags.uniq
- end
+def add_tags(*tags)
+ @tags += tags.flatten
+ @tags = @tags.uniq
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -197,16 +197,16 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 26
- def tag(logger, &block)
- if logger.respond_to?(:tagged)
- current_tags = tags - logger.formatter.current_tags
- logger.tagged(*current_tags, &block)
- else
- yield
- end
- end
+def tag(logger, &block)
+ if logger.respond_to?(:tagged)
+ current_tags = tags - logger.formatter.current_tags
+ logger.tagged(*current_tags, &block)
+ else
+ yield
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,11 +240,11 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 42
- def log(type, message, &block) # :doc:
- tag(@logger) { @logger.send type, message, &block }
- end
+def log(type, message, &block) # :doc:
+ tag(@logger) { @logger.send type, message, &block }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase.html b/src/classes/ActionCable/Connection/TestCase.html
index 948378e491..39bc5cb056 100644
--- a/src/classes/ActionCable/Connection/TestCase.html
+++ b/src/classes/ActionCable/Connection/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior.html b/src/classes/ActionCable/Connection/TestCase/Behavior.html
index b87870becd..4ee0debbea 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -163,19 +163,19 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 192
- def connect(path = ActionCable.server.config.mount_path, **request_params)
- path ||= DEFAULT_PATH
+def connect(path = ActionCable.server.config.mount_path, **request_params)
+ path ||= DEFAULT_PATH
- connection = self.class.connection_class.allocate
- connection.singleton_class.include(TestConnection)
- connection.send(:initialize, build_test_request(path, **request_params))
- connection.connect if connection.respond_to?(:connect)
+ connection = self.class.connection_class.allocate
+ connection.singleton_class.include(TestConnection)
+ connection.send(:initialize, build_test_request(path, **request_params))
+ connection.connect if connection.respond_to?(:connect)
- # Only set instance variable if connected successfully
- @connection = connection
- end
+ # Only set instance variable if connected successfully
+ @connection = connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -206,11 +206,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 212
- def cookies
- @cookie_jar ||= TestCookieJar.new
- end
+def cookies
+ @cookie_jar ||= TestCookieJar.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -241,14 +241,14 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 205
- def disconnect
- raise "Must be connected!" if connection.nil?
+def disconnect
+ raise "Must be connected!" if connection.nil?
- connection.disconnect if connection.respond_to?(:disconnect)
- @connection = nil
- end
+ connection.disconnect if connection.respond_to?(:disconnect)
+ @connection = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
index 63444f4b27..99fc0e3f6f 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 167
- def connection_class
- if connection = self._connection_class
- connection
- else
- tests determine_default_connection(name)
- end
- end
+def connection_class
+ if connection = self._connection_class
+ connection
+ else
+ tests determine_default_connection(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 175
- def determine_default_connection(name)
- connection = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Connection::Base
- end
- raise NonInferrableConnectionError.new(name) if connection.nil?
- connection
- end
+def determine_default_connection(name)
+ connection = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Connection::Base
+ end
+ raise NonInferrableConnectionError.new(name) if connection.nil?
+ connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
+ Ruby on Rails 8.1.0.rc1
@@ -196,11 +196,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 282
- def assert_broadcast_on(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcast_on(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -231,11 +231,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 278
- def assert_broadcasts(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcasts(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,11 +272,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 326
- def assert_has_no_stream(stream)
- assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
- end
+def assert_has_no_stream(stream)
+ assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -313,11 +313,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 337
- def assert_has_no_stream_for(object)
- assert_has_no_stream(broadcasting_for(object))
- end
+def assert_has_no_stream_for(object)
+ assert_has_no_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -354,11 +354,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 304
- def assert_has_stream(stream)
- assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
- end
+def assert_has_stream(stream)
+ assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -395,11 +395,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 315
- def assert_has_stream_for(object)
- assert_has_stream(broadcasting_for(object))
- end
+def assert_has_stream_for(object)
+ assert_has_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -436,11 +436,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 293
- def assert_no_streams
- assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
- end
+def assert_no_streams
+ assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -473,12 +473,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 266
- def perform(action, data = {})
- check_subscribed!
- subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
- end
+def perform(action, data = {})
+ check_subscribed!
+ subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -516,11 +516,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 243
- def stub_connection(identifiers = {})
- @connection = ConnectionStub.new(identifiers)
- end
+def stub_connection(identifiers = {})
+ @connection = ConnectionStub.new(identifiers)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -551,15 +551,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 249
- def subscribe(params = {})
- @connection ||= stub_connection
- @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
- @subscription.singleton_class.include(ChannelStub)
- @subscription.subscribe_to_channel
- @subscription
- end
+def subscribe(params = {})
+ @connection ||= stub_connection
+ @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
+ @subscription.singleton_class.include(ChannelStub)
+ @subscription.subscribe_to_channel
+ @subscription
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -590,12 +590,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 272
- def transmissions
- # Return only directly sent message (via #transmit)
- connection.transmissions.filter_map { |data| data["message"] }
- end
+def transmissions
+ # Return only directly sent message (via #transmit)
+ connection.transmissions.filter_map { |data| data["message"] }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -626,12 +626,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 258
- def unsubscribe
- check_subscribed!
- subscription.unsubscribe_from_channel
- end
+def unsubscribe
+ check_subscribed!
+ subscription.unsubscribe_from_channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
index 48ea87f130..57efb4cdac 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 219
- def channel_class
- if channel = self._channel_class
- channel
- else
- tests determine_default_channel(name)
- end
- end
+def channel_class
+ if channel = self._channel_class
+ channel
+ else
+ tests determine_default_channel(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 227
- def determine_default_channel(name)
- channel = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Channel::Base
- end
- raise NonInferrableChannelError.new(name) if channel.nil?
- channel
- end
+def determine_default_channel(name)
+ channel = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Channel::Base
+ end
+ raise NonInferrableChannelError.new(name) if channel.nil?
+ channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 208
- def tests(channel)
- case channel
- when String, Symbol
- self._channel_class = channel.to_s.camelize.constantize
- when Module
- self._channel_class = channel
- else
- raise NonInferrableChannelError.new(channel)
- end
- end
+def tests(channel)
+ case channel
+ when String, Symbol
+ self._channel_class = channel.to_s.camelize.constantize
+ when Module
+ self._channel_class = channel
+ else
+ raise NonInferrableChannelError.new(channel)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection.html b/src/classes/ActionCable/Connection.html
index f832214f0e..7889c75284 100644
--- a/src/classes/ActionCable/Connection.html
+++ b/src/classes/ActionCable/Connection.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Assertions.html b/src/classes/ActionCable/Connection/Assertions.html
index 933ea80e4c..6b10ec5528 100644
--- a/src/classes/ActionCable/Connection/Assertions.html
+++ b/src/classes/ActionCable/Connection/Assertions.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 28
- def assert_reject_connection(&block)
- assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
- end
+def assert_reject_connection(&block)
+ assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization.html b/src/classes/ActionCable/Connection/Authorization.html
index feb855aa9e..baf85a37b3 100644
--- a/src/classes/ActionCable/Connection/Authorization.html
+++ b/src/classes/ActionCable/Connection/Authorization.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -97,12 +97,12 @@
# File actioncable/lib/action_cable/connection/authorization.rb, line 12
- def reject_unauthorized_connection
- logger.error "An unauthorized connection attempt was rejected"
- raise UnauthorizedError
- end
+def reject_unauthorized_connection
+ logger.error "An unauthorized connection attempt was rejected"
+ raise UnauthorizedError
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
index b63b282b0b..ff36299a28 100644
--- a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
+++ b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/Base.html b/src/classes/ActionCable/Connection/Base.html
index 36a2f1e1bb..ea0d62911f 100644
--- a/src/classes/ActionCable/Connection/Base.html
+++ b/src/classes/ActionCable/Connection/Base.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -255,21 +255,21 @@
# File actioncable/lib/action_cable/connection/base.rb, line 67
- def initialize(server, env, coder: ActiveSupport::JSON)
- @server, @env, @coder = server, env, coder
+def initialize(server, env, coder: ActiveSupport::JSON)
+ @server, @env, @coder = server, env, coder
- @worker_pool = server.worker_pool
- @logger = new_tagged_logger
+ @worker_pool = server.worker_pool
+ @logger = new_tagged_logger
- @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
+ @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
- @_internal_subscriptions = nil
- @started_at = Time.now
- end
+ @_internal_subscriptions = nil
+ @started_at = Time.now
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -304,11 +304,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 147
- def beat
- transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
- end
+def beat
+ transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -339,16 +339,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 120
- def close(reason: nil, reconnect: true)
- transmit(
- type: ActionCable::INTERNAL[:message_types][:disconnect],
- reason: reason,
- reconnect: reconnect
- )
- websocket.close
- end
+def close(reason: nil, reconnect: true)
+ transmit(
+ type: ActionCable::INTERNAL[:message_types][:disconnect],
+ reason: reason,
+ reconnect: reconnect
+ )
+ websocket.close
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -379,13 +379,13 @@
# File actioncable/lib/action_cable/connection/base.rb, line 109
- def handle_channel_command(payload)
- run_callbacks :command do
- subscriptions.execute_command payload
- end
- end
+def handle_channel_command(payload)
+ run_callbacks :command do
+ subscriptions.execute_command payload
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -416,11 +416,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 131
- def send_async(method, *arguments)
- worker_pool.async_invoke(self, method, *arguments)
- end
+def send_async(method, *arguments)
+ worker_pool.async_invoke(self, method, *arguments)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -451,16 +451,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 138
- def statistics
- {
- identifier: connection_identifier,
- started_at: @started_at,
- subscriptions: subscriptions.identifiers,
- request_id: @env["action_dispatch.request_id"]
- }
- end
+def statistics
+ {
+ identifier: connection_identifier,
+ started_at: @started_at,
+ subscriptions: subscriptions.identifiers,
+ request_id: @env["action_dispatch.request_id"]
+ }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -494,11 +494,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 187
- def cookies # :doc:
- request.cookie_jar
- end
+def cookies # :doc:
+ request.cookie_jar
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -529,14 +529,14 @@
# File actioncable/lib/action_cable/connection/base.rb, line 178
- def request # :doc:
- @request ||= begin
- environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
- ActionDispatch::Request.new(environment || env)
- end
- end
+def request # :doc:
+ @request ||= begin
+ environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
+ ActionDispatch::Request.new(environment || env)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Callbacks.html b/src/classes/ActionCable/Connection/Callbacks.html
index 818958bf81..d6504ca284 100644
--- a/src/classes/ActionCable/Connection/Callbacks.html
+++ b/src/classes/ActionCable/Connection/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
index 933056a029..6376d7195b 100644
--- a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,11 +90,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 47
- def after_command(*methods, &block)
- set_callback(:command, :after, *methods, &block)
- end
+def after_command(*methods, &block)
+ set_callback(:command, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -125,11 +125,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 51
- def around_command(*methods, &block)
- set_callback(:command, :around, *methods, &block)
- end
+def around_command(*methods, &block)
+ set_callback(:command, :around, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -160,11 +160,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 43
- def before_command(*methods, &block)
- set_callback(:command, :before, *methods, &block)
- end
+def before_command(*methods, &block)
+ set_callback(:command, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification.html b/src/classes/ActionCable/Connection/Identification.html
index f3dcea9bfc..063ca88999 100644
--- a/src/classes/ActionCable/Connection/Identification.html
+++ b/src/classes/ActionCable/Connection/Identification.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,15 +95,15 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 29
- def connection_identifier
- unless defined? @connection_identifier
- @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
- end
+def connection_identifier
+ unless defined? @connection_identifier
+ @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
+ end
- @connection_identifier
- end
+ @connection_identifier
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification/ClassMethods.html b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
index 324ded31f5..a3395ef8a3 100644
--- a/src/classes/ActionCable/Connection/Identification/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -84,12 +84,12 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 21
- def identified_by(*identifiers)
- Array(identifiers).each { |identifier| attr_accessor identifier }
- self.identifiers += identifiers
- end
+def identified_by(*identifiers)
+ Array(identifiers).each { |identifier| attr_accessor identifier }
+ self.identifiers += identifiers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/InternalChannel.html b/src/classes/ActionCable/Connection/InternalChannel.html
index 9b0144f690..cfdccceaf4 100644
--- a/src/classes/ActionCable/Connection/InternalChannel.html
+++ b/src/classes/ActionCable/Connection/InternalChannel.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
index 7167904452..bf0c696d62 100644
--- a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
+++ b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 15
- def initialize(name)
- super "Unable to determine the connection to test from #{name}. " +
- "You'll need to specify it using `tests YourConnection` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the connection to test from #{name}. " +
+ "You'll need to specify it using `tests YourConnection` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/StreamEventLoop.html b/src/classes/ActionCable/Connection/StreamEventLoop.html
index 2b71a213e3..f7c49354ef 100644
--- a/src/classes/ActionCable/Connection/StreamEventLoop.html
+++ b/src/classes/ActionCable/Connection/StreamEventLoop.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -111,16 +111,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 10
- def initialize
- @nio = @executor = @thread = nil
- @map = {}
- @stopping = false
- @todo = Queue.new
-
- @spawn_mutex = Mutex.new
- end
+def initialize
+ @nio = @executor = @thread = nil
+ @map = {}
+ @stopping = false
+ @todo = Queue.new
+
+ @spawn_mutex = Mutex.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -155,15 +155,15 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 30
- def attach(io, stream)
- @todo << lambda do
- @map[io] = @nio.register(io, :r)
- @map[io].value = stream
- end
- wakeup
- end
+def attach(io, stream)
+ @todo << lambda do
+ @map[io] = @nio.register(io, :r)
+ @map[io].value = stream
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -194,16 +194,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 38
- def detach(io, stream)
- @todo << lambda do
- @nio.deregister io
- @map.delete io
- io.close
- end
- wakeup
- end
+def detach(io, stream)
+ @todo << lambda do
+ @nio.deregister io
+ @map.delete io
+ io.close
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -234,14 +234,14 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 23
- def post(task = nil, &block)
- task ||= block
+def post(task = nil, &block)
+ task ||= block
- spawn
- @executor << task
- end
+ spawn
+ @executor << task
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,12 +272,12 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 56
- def stop
- @stopping = true
- wakeup if @nio
- end
+def stop
+ @stopping = true
+ wakeup if @nio
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -308,11 +308,11 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 19
- def timer(interval, &block)
- Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
- end
+def timer(interval, &block)
+ Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -343,16 +343,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 47
- def writes_pending(io)
- @todo << lambda do
- if monitor = @map[io]
- monitor.interests = :rw
- end
- end
- wakeup
- end
+def writes_pending(io)
+ @todo << lambda do
+ if monitor = @map[io]
+ monitor.interests = :rw
+ end
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
index f4d5cacc63..99731855fb 100644
--- a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
+++ b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -121,12 +121,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 16
- def initialize(logger, tags:)
- @logger = logger
- @tags = tags.flatten
- end
+def initialize(logger, tags:)
+ @logger = logger
+ @tags = tags.flatten
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -161,12 +161,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 21
- def add_tags(*tags)
- @tags += tags.flatten
- @tags = @tags.uniq
- end
+def add_tags(*tags)
+ @tags += tags.flatten
+ @tags = @tags.uniq
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -197,16 +197,16 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 26
- def tag(logger, &block)
- if logger.respond_to?(:tagged)
- current_tags = tags - logger.formatter.current_tags
- logger.tagged(*current_tags, &block)
- else
- yield
- end
- end
+def tag(logger, &block)
+ if logger.respond_to?(:tagged)
+ current_tags = tags - logger.formatter.current_tags
+ logger.tagged(*current_tags, &block)
+ else
+ yield
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,11 +240,11 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 42
- def log(type, message, &block) # :doc:
- tag(@logger) { @logger.send type, message, &block }
- end
+def log(type, message, &block) # :doc:
+ tag(@logger) { @logger.send type, message, &block }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase.html b/src/classes/ActionCable/Connection/TestCase.html
index 948378e491..39bc5cb056 100644
--- a/src/classes/ActionCable/Connection/TestCase.html
+++ b/src/classes/ActionCable/Connection/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior.html b/src/classes/ActionCable/Connection/TestCase/Behavior.html
index b87870becd..4ee0debbea 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -163,19 +163,19 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 192
- def connect(path = ActionCable.server.config.mount_path, **request_params)
- path ||= DEFAULT_PATH
+def connect(path = ActionCable.server.config.mount_path, **request_params)
+ path ||= DEFAULT_PATH
- connection = self.class.connection_class.allocate
- connection.singleton_class.include(TestConnection)
- connection.send(:initialize, build_test_request(path, **request_params))
- connection.connect if connection.respond_to?(:connect)
+ connection = self.class.connection_class.allocate
+ connection.singleton_class.include(TestConnection)
+ connection.send(:initialize, build_test_request(path, **request_params))
+ connection.connect if connection.respond_to?(:connect)
- # Only set instance variable if connected successfully
- @connection = connection
- end
+ # Only set instance variable if connected successfully
+ @connection = connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -206,11 +206,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 212
- def cookies
- @cookie_jar ||= TestCookieJar.new
- end
+def cookies
+ @cookie_jar ||= TestCookieJar.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -241,14 +241,14 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 205
- def disconnect
- raise "Must be connected!" if connection.nil?
+def disconnect
+ raise "Must be connected!" if connection.nil?
- connection.disconnect if connection.respond_to?(:disconnect)
- @connection = nil
- end
+ connection.disconnect if connection.respond_to?(:disconnect)
+ @connection = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
index 63444f4b27..99fc0e3f6f 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 167
- def connection_class
- if connection = self._connection_class
- connection
- else
- tests determine_default_connection(name)
- end
- end
+def connection_class
+ if connection = self._connection_class
+ connection
+ else
+ tests determine_default_connection(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 175
- def determine_default_connection(name)
- connection = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Connection::Base
- end
- raise NonInferrableConnectionError.new(name) if connection.nil?
- connection
- end
+def determine_default_connection(name)
+ connection = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Connection::Base
+ end
+ raise NonInferrableConnectionError.new(name) if connection.nil?
+ connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 282
- def assert_broadcast_on(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcast_on(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -231,11 +231,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 278
- def assert_broadcasts(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end
+def assert_broadcasts(stream_or_object, *args)
+ super(broadcasting_for(stream_or_object), *args)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,11 +272,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 326
- def assert_has_no_stream(stream)
- assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
- end
+def assert_has_no_stream(stream)
+ assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -313,11 +313,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 337
- def assert_has_no_stream_for(object)
- assert_has_no_stream(broadcasting_for(object))
- end
+def assert_has_no_stream_for(object)
+ assert_has_no_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -354,11 +354,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 304
- def assert_has_stream(stream)
- assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
- end
+def assert_has_stream(stream)
+ assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -395,11 +395,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 315
- def assert_has_stream_for(object)
- assert_has_stream(broadcasting_for(object))
- end
+def assert_has_stream_for(object)
+ assert_has_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -436,11 +436,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 293
- def assert_no_streams
- assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
- end
+def assert_no_streams
+ assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -473,12 +473,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 266
- def perform(action, data = {})
- check_subscribed!
- subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
- end
+def perform(action, data = {})
+ check_subscribed!
+ subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -516,11 +516,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 243
- def stub_connection(identifiers = {})
- @connection = ConnectionStub.new(identifiers)
- end
+def stub_connection(identifiers = {})
+ @connection = ConnectionStub.new(identifiers)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -551,15 +551,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 249
- def subscribe(params = {})
- @connection ||= stub_connection
- @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
- @subscription.singleton_class.include(ChannelStub)
- @subscription.subscribe_to_channel
- @subscription
- end
+def subscribe(params = {})
+ @connection ||= stub_connection
+ @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
+ @subscription.singleton_class.include(ChannelStub)
+ @subscription.subscribe_to_channel
+ @subscription
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -590,12 +590,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 272
- def transmissions
- # Return only directly sent message (via #transmit)
- connection.transmissions.filter_map { |data| data["message"] }
- end
+def transmissions
+ # Return only directly sent message (via #transmit)
+ connection.transmissions.filter_map { |data| data["message"] }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -626,12 +626,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 258
- def unsubscribe
- check_subscribed!
- subscription.unsubscribe_from_channel
- end
+def unsubscribe
+ check_subscribed!
+ subscription.unsubscribe_from_channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
index 48ea87f130..57efb4cdac 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 219
- def channel_class
- if channel = self._channel_class
- channel
- else
- tests determine_default_channel(name)
- end
- end
+def channel_class
+ if channel = self._channel_class
+ channel
+ else
+ tests determine_default_channel(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 227
- def determine_default_channel(name)
- channel = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Channel::Base
- end
- raise NonInferrableChannelError.new(name) if channel.nil?
- channel
- end
+def determine_default_channel(name)
+ channel = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Channel::Base
+ end
+ raise NonInferrableChannelError.new(name) if channel.nil?
+ channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 208
- def tests(channel)
- case channel
- when String, Symbol
- self._channel_class = channel.to_s.camelize.constantize
- when Module
- self._channel_class = channel
- else
- raise NonInferrableChannelError.new(channel)
- end
- end
+def tests(channel)
+ case channel
+ when String, Symbol
+ self._channel_class = channel.to_s.camelize.constantize
+ when Module
+ self._channel_class = channel
+ else
+ raise NonInferrableChannelError.new(channel)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection.html b/src/classes/ActionCable/Connection.html
index f832214f0e..7889c75284 100644
--- a/src/classes/ActionCable/Connection.html
+++ b/src/classes/ActionCable/Connection.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Assertions.html b/src/classes/ActionCable/Connection/Assertions.html
index 933ea80e4c..6b10ec5528 100644
--- a/src/classes/ActionCable/Connection/Assertions.html
+++ b/src/classes/ActionCable/Connection/Assertions.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 28
- def assert_reject_connection(&block)
- assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
- end
+def assert_reject_connection(&block)
+ assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization.html b/src/classes/ActionCable/Connection/Authorization.html
index feb855aa9e..baf85a37b3 100644
--- a/src/classes/ActionCable/Connection/Authorization.html
+++ b/src/classes/ActionCable/Connection/Authorization.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -97,12 +97,12 @@
# File actioncable/lib/action_cable/connection/authorization.rb, line 12
- def reject_unauthorized_connection
- logger.error "An unauthorized connection attempt was rejected"
- raise UnauthorizedError
- end
+def reject_unauthorized_connection
+ logger.error "An unauthorized connection attempt was rejected"
+ raise UnauthorizedError
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
index b63b282b0b..ff36299a28 100644
--- a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
+++ b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/Base.html b/src/classes/ActionCable/Connection/Base.html
index 36a2f1e1bb..ea0d62911f 100644
--- a/src/classes/ActionCable/Connection/Base.html
+++ b/src/classes/ActionCable/Connection/Base.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -255,21 +255,21 @@
# File actioncable/lib/action_cable/connection/base.rb, line 67
- def initialize(server, env, coder: ActiveSupport::JSON)
- @server, @env, @coder = server, env, coder
+def initialize(server, env, coder: ActiveSupport::JSON)
+ @server, @env, @coder = server, env, coder
- @worker_pool = server.worker_pool
- @logger = new_tagged_logger
+ @worker_pool = server.worker_pool
+ @logger = new_tagged_logger
- @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
+ @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
- @_internal_subscriptions = nil
- @started_at = Time.now
- end
+ @_internal_subscriptions = nil
+ @started_at = Time.now
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -304,11 +304,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 147
- def beat
- transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
- end
+def beat
+ transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -339,16 +339,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 120
- def close(reason: nil, reconnect: true)
- transmit(
- type: ActionCable::INTERNAL[:message_types][:disconnect],
- reason: reason,
- reconnect: reconnect
- )
- websocket.close
- end
+def close(reason: nil, reconnect: true)
+ transmit(
+ type: ActionCable::INTERNAL[:message_types][:disconnect],
+ reason: reason,
+ reconnect: reconnect
+ )
+ websocket.close
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -379,13 +379,13 @@
# File actioncable/lib/action_cable/connection/base.rb, line 109
- def handle_channel_command(payload)
- run_callbacks :command do
- subscriptions.execute_command payload
- end
- end
+def handle_channel_command(payload)
+ run_callbacks :command do
+ subscriptions.execute_command payload
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -416,11 +416,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 131
- def send_async(method, *arguments)
- worker_pool.async_invoke(self, method, *arguments)
- end
+def send_async(method, *arguments)
+ worker_pool.async_invoke(self, method, *arguments)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -451,16 +451,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 138
- def statistics
- {
- identifier: connection_identifier,
- started_at: @started_at,
- subscriptions: subscriptions.identifiers,
- request_id: @env["action_dispatch.request_id"]
- }
- end
+def statistics
+ {
+ identifier: connection_identifier,
+ started_at: @started_at,
+ subscriptions: subscriptions.identifiers,
+ request_id: @env["action_dispatch.request_id"]
+ }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -494,11 +494,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 187
- def cookies # :doc:
- request.cookie_jar
- end
+def cookies # :doc:
+ request.cookie_jar
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -529,14 +529,14 @@
# File actioncable/lib/action_cable/connection/base.rb, line 178
- def request # :doc:
- @request ||= begin
- environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
- ActionDispatch::Request.new(environment || env)
- end
- end
+def request # :doc:
+ @request ||= begin
+ environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
+ ActionDispatch::Request.new(environment || env)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Callbacks.html b/src/classes/ActionCable/Connection/Callbacks.html
index 818958bf81..d6504ca284 100644
--- a/src/classes/ActionCable/Connection/Callbacks.html
+++ b/src/classes/ActionCable/Connection/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
index 933056a029..6376d7195b 100644
--- a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,11 +90,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 47
- def after_command(*methods, &block)
- set_callback(:command, :after, *methods, &block)
- end
+def after_command(*methods, &block)
+ set_callback(:command, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -125,11 +125,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 51
- def around_command(*methods, &block)
- set_callback(:command, :around, *methods, &block)
- end
+def around_command(*methods, &block)
+ set_callback(:command, :around, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -160,11 +160,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 43
- def before_command(*methods, &block)
- set_callback(:command, :before, *methods, &block)
- end
+def before_command(*methods, &block)
+ set_callback(:command, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification.html b/src/classes/ActionCable/Connection/Identification.html
index f3dcea9bfc..063ca88999 100644
--- a/src/classes/ActionCable/Connection/Identification.html
+++ b/src/classes/ActionCable/Connection/Identification.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,15 +95,15 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 29
- def connection_identifier
- unless defined? @connection_identifier
- @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
- end
+def connection_identifier
+ unless defined? @connection_identifier
+ @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
+ end
- @connection_identifier
- end
+ @connection_identifier
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification/ClassMethods.html b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
index 324ded31f5..a3395ef8a3 100644
--- a/src/classes/ActionCable/Connection/Identification/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -84,12 +84,12 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 21
- def identified_by(*identifiers)
- Array(identifiers).each { |identifier| attr_accessor identifier }
- self.identifiers += identifiers
- end
+def identified_by(*identifiers)
+ Array(identifiers).each { |identifier| attr_accessor identifier }
+ self.identifiers += identifiers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/InternalChannel.html b/src/classes/ActionCable/Connection/InternalChannel.html
index 9b0144f690..cfdccceaf4 100644
--- a/src/classes/ActionCable/Connection/InternalChannel.html
+++ b/src/classes/ActionCable/Connection/InternalChannel.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
index 7167904452..bf0c696d62 100644
--- a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
+++ b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 15
- def initialize(name)
- super "Unable to determine the connection to test from #{name}. " +
- "You'll need to specify it using `tests YourConnection` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the connection to test from #{name}. " +
+ "You'll need to specify it using `tests YourConnection` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/StreamEventLoop.html b/src/classes/ActionCable/Connection/StreamEventLoop.html
index 2b71a213e3..f7c49354ef 100644
--- a/src/classes/ActionCable/Connection/StreamEventLoop.html
+++ b/src/classes/ActionCable/Connection/StreamEventLoop.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -111,16 +111,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 10
- def initialize
- @nio = @executor = @thread = nil
- @map = {}
- @stopping = false
- @todo = Queue.new
-
- @spawn_mutex = Mutex.new
- end
+def initialize
+ @nio = @executor = @thread = nil
+ @map = {}
+ @stopping = false
+ @todo = Queue.new
+
+ @spawn_mutex = Mutex.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -155,15 +155,15 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 30
- def attach(io, stream)
- @todo << lambda do
- @map[io] = @nio.register(io, :r)
- @map[io].value = stream
- end
- wakeup
- end
+def attach(io, stream)
+ @todo << lambda do
+ @map[io] = @nio.register(io, :r)
+ @map[io].value = stream
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -194,16 +194,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 38
- def detach(io, stream)
- @todo << lambda do
- @nio.deregister io
- @map.delete io
- io.close
- end
- wakeup
- end
+def detach(io, stream)
+ @todo << lambda do
+ @nio.deregister io
+ @map.delete io
+ io.close
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -234,14 +234,14 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 23
- def post(task = nil, &block)
- task ||= block
+def post(task = nil, &block)
+ task ||= block
- spawn
- @executor << task
- end
+ spawn
+ @executor << task
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,12 +272,12 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 56
- def stop
- @stopping = true
- wakeup if @nio
- end
+def stop
+ @stopping = true
+ wakeup if @nio
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -308,11 +308,11 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 19
- def timer(interval, &block)
- Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
- end
+def timer(interval, &block)
+ Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -343,16 +343,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 47
- def writes_pending(io)
- @todo << lambda do
- if monitor = @map[io]
- monitor.interests = :rw
- end
- end
- wakeup
- end
+def writes_pending(io)
+ @todo << lambda do
+ if monitor = @map[io]
+ monitor.interests = :rw
+ end
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
index f4d5cacc63..99731855fb 100644
--- a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
+++ b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -121,12 +121,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 16
- def initialize(logger, tags:)
- @logger = logger
- @tags = tags.flatten
- end
+def initialize(logger, tags:)
+ @logger = logger
+ @tags = tags.flatten
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -161,12 +161,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 21
- def add_tags(*tags)
- @tags += tags.flatten
- @tags = @tags.uniq
- end
+def add_tags(*tags)
+ @tags += tags.flatten
+ @tags = @tags.uniq
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -197,16 +197,16 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 26
- def tag(logger, &block)
- if logger.respond_to?(:tagged)
- current_tags = tags - logger.formatter.current_tags
- logger.tagged(*current_tags, &block)
- else
- yield
- end
- end
+def tag(logger, &block)
+ if logger.respond_to?(:tagged)
+ current_tags = tags - logger.formatter.current_tags
+ logger.tagged(*current_tags, &block)
+ else
+ yield
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,11 +240,11 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 42
- def log(type, message, &block) # :doc:
- tag(@logger) { @logger.send type, message, &block }
- end
+def log(type, message, &block) # :doc:
+ tag(@logger) { @logger.send type, message, &block }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase.html b/src/classes/ActionCable/Connection/TestCase.html
index 948378e491..39bc5cb056 100644
--- a/src/classes/ActionCable/Connection/TestCase.html
+++ b/src/classes/ActionCable/Connection/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior.html b/src/classes/ActionCable/Connection/TestCase/Behavior.html
index b87870becd..4ee0debbea 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -163,19 +163,19 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 192
- def connect(path = ActionCable.server.config.mount_path, **request_params)
- path ||= DEFAULT_PATH
+def connect(path = ActionCable.server.config.mount_path, **request_params)
+ path ||= DEFAULT_PATH
- connection = self.class.connection_class.allocate
- connection.singleton_class.include(TestConnection)
- connection.send(:initialize, build_test_request(path, **request_params))
- connection.connect if connection.respond_to?(:connect)
+ connection = self.class.connection_class.allocate
+ connection.singleton_class.include(TestConnection)
+ connection.send(:initialize, build_test_request(path, **request_params))
+ connection.connect if connection.respond_to?(:connect)
- # Only set instance variable if connected successfully
- @connection = connection
- end
+ # Only set instance variable if connected successfully
+ @connection = connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -206,11 +206,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 212
- def cookies
- @cookie_jar ||= TestCookieJar.new
- end
+def cookies
+ @cookie_jar ||= TestCookieJar.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -241,14 +241,14 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 205
- def disconnect
- raise "Must be connected!" if connection.nil?
+def disconnect
+ raise "Must be connected!" if connection.nil?
- connection.disconnect if connection.respond_to?(:disconnect)
- @connection = nil
- end
+ connection.disconnect if connection.respond_to?(:disconnect)
+ @connection = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
index 63444f4b27..99fc0e3f6f 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 167
- def connection_class
- if connection = self._connection_class
- connection
- else
- tests determine_default_connection(name)
- end
- end
+def connection_class
+ if connection = self._connection_class
+ connection
+ else
+ tests determine_default_connection(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 175
- def determine_default_connection(name)
- connection = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Connection::Base
- end
- raise NonInferrableConnectionError.new(name) if connection.nil?
- connection
- end
+def determine_default_connection(name)
+ connection = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Connection::Base
+ end
+ raise NonInferrableConnectionError.new(name) if connection.nil?
+ connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 278
- def assert_broadcasts(stream_or_object, *args)
- super(broadcasting_for(stream_or_object), *args)
- end# File actioncable/lib/action_cable/channel/test_case.rb, line 326
- def assert_has_no_stream(stream)
- assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
- end
+def assert_has_no_stream(stream)
+ assert subscription.streams.exclude?(stream), "Stream #{stream} has been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -313,11 +313,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 337
- def assert_has_no_stream_for(object)
- assert_has_no_stream(broadcasting_for(object))
- end
+def assert_has_no_stream_for(object)
+ assert_has_no_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -354,11 +354,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 304
- def assert_has_stream(stream)
- assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
- end
+def assert_has_stream(stream)
+ assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -395,11 +395,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 315
- def assert_has_stream_for(object)
- assert_has_stream(broadcasting_for(object))
- end
+def assert_has_stream_for(object)
+ assert_has_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -436,11 +436,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 293
- def assert_no_streams
- assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
- end
+def assert_no_streams
+ assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -473,12 +473,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 266
- def perform(action, data = {})
- check_subscribed!
- subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
- end
+def perform(action, data = {})
+ check_subscribed!
+ subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -516,11 +516,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 243
- def stub_connection(identifiers = {})
- @connection = ConnectionStub.new(identifiers)
- end
+def stub_connection(identifiers = {})
+ @connection = ConnectionStub.new(identifiers)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -551,15 +551,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 249
- def subscribe(params = {})
- @connection ||= stub_connection
- @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
- @subscription.singleton_class.include(ChannelStub)
- @subscription.subscribe_to_channel
- @subscription
- end
+def subscribe(params = {})
+ @connection ||= stub_connection
+ @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
+ @subscription.singleton_class.include(ChannelStub)
+ @subscription.subscribe_to_channel
+ @subscription
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -590,12 +590,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 272
- def transmissions
- # Return only directly sent message (via #transmit)
- connection.transmissions.filter_map { |data| data["message"] }
- end
+def transmissions
+ # Return only directly sent message (via #transmit)
+ connection.transmissions.filter_map { |data| data["message"] }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -626,12 +626,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 258
- def unsubscribe
- check_subscribed!
- subscription.unsubscribe_from_channel
- end
+def unsubscribe
+ check_subscribed!
+ subscription.unsubscribe_from_channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
index 48ea87f130..57efb4cdac 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 219
- def channel_class
- if channel = self._channel_class
- channel
- else
- tests determine_default_channel(name)
- end
- end
+def channel_class
+ if channel = self._channel_class
+ channel
+ else
+ tests determine_default_channel(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 227
- def determine_default_channel(name)
- channel = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Channel::Base
- end
- raise NonInferrableChannelError.new(name) if channel.nil?
- channel
- end
+def determine_default_channel(name)
+ channel = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Channel::Base
+ end
+ raise NonInferrableChannelError.new(name) if channel.nil?
+ channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 208
- def tests(channel)
- case channel
- when String, Symbol
- self._channel_class = channel.to_s.camelize.constantize
- when Module
- self._channel_class = channel
- else
- raise NonInferrableChannelError.new(channel)
- end
- end
+def tests(channel)
+ case channel
+ when String, Symbol
+ self._channel_class = channel.to_s.camelize.constantize
+ when Module
+ self._channel_class = channel
+ else
+ raise NonInferrableChannelError.new(channel)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection.html b/src/classes/ActionCable/Connection.html
index f832214f0e..7889c75284 100644
--- a/src/classes/ActionCable/Connection.html
+++ b/src/classes/ActionCable/Connection.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Assertions.html b/src/classes/ActionCable/Connection/Assertions.html
index 933ea80e4c..6b10ec5528 100644
--- a/src/classes/ActionCable/Connection/Assertions.html
+++ b/src/classes/ActionCable/Connection/Assertions.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 28
- def assert_reject_connection(&block)
- assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
- end
+def assert_reject_connection(&block)
+ assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization.html b/src/classes/ActionCable/Connection/Authorization.html
index feb855aa9e..baf85a37b3 100644
--- a/src/classes/ActionCable/Connection/Authorization.html
+++ b/src/classes/ActionCable/Connection/Authorization.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -97,12 +97,12 @@
# File actioncable/lib/action_cable/connection/authorization.rb, line 12
- def reject_unauthorized_connection
- logger.error "An unauthorized connection attempt was rejected"
- raise UnauthorizedError
- end
+def reject_unauthorized_connection
+ logger.error "An unauthorized connection attempt was rejected"
+ raise UnauthorizedError
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
index b63b282b0b..ff36299a28 100644
--- a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
+++ b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/Base.html b/src/classes/ActionCable/Connection/Base.html
index 36a2f1e1bb..ea0d62911f 100644
--- a/src/classes/ActionCable/Connection/Base.html
+++ b/src/classes/ActionCable/Connection/Base.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -255,21 +255,21 @@
# File actioncable/lib/action_cable/connection/base.rb, line 67
- def initialize(server, env, coder: ActiveSupport::JSON)
- @server, @env, @coder = server, env, coder
+def initialize(server, env, coder: ActiveSupport::JSON)
+ @server, @env, @coder = server, env, coder
- @worker_pool = server.worker_pool
- @logger = new_tagged_logger
+ @worker_pool = server.worker_pool
+ @logger = new_tagged_logger
- @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
+ @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
- @_internal_subscriptions = nil
- @started_at = Time.now
- end
+ @_internal_subscriptions = nil
+ @started_at = Time.now
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -304,11 +304,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 147
- def beat
- transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
- end
+def beat
+ transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -339,16 +339,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 120
- def close(reason: nil, reconnect: true)
- transmit(
- type: ActionCable::INTERNAL[:message_types][:disconnect],
- reason: reason,
- reconnect: reconnect
- )
- websocket.close
- end
+def close(reason: nil, reconnect: true)
+ transmit(
+ type: ActionCable::INTERNAL[:message_types][:disconnect],
+ reason: reason,
+ reconnect: reconnect
+ )
+ websocket.close
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -379,13 +379,13 @@
# File actioncable/lib/action_cable/connection/base.rb, line 109
- def handle_channel_command(payload)
- run_callbacks :command do
- subscriptions.execute_command payload
- end
- end
+def handle_channel_command(payload)
+ run_callbacks :command do
+ subscriptions.execute_command payload
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -416,11 +416,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 131
- def send_async(method, *arguments)
- worker_pool.async_invoke(self, method, *arguments)
- end
+def send_async(method, *arguments)
+ worker_pool.async_invoke(self, method, *arguments)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -451,16 +451,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 138
- def statistics
- {
- identifier: connection_identifier,
- started_at: @started_at,
- subscriptions: subscriptions.identifiers,
- request_id: @env["action_dispatch.request_id"]
- }
- end
+def statistics
+ {
+ identifier: connection_identifier,
+ started_at: @started_at,
+ subscriptions: subscriptions.identifiers,
+ request_id: @env["action_dispatch.request_id"]
+ }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -494,11 +494,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 187
- def cookies # :doc:
- request.cookie_jar
- end
+def cookies # :doc:
+ request.cookie_jar
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -529,14 +529,14 @@
# File actioncable/lib/action_cable/connection/base.rb, line 178
- def request # :doc:
- @request ||= begin
- environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
- ActionDispatch::Request.new(environment || env)
- end
- end
+def request # :doc:
+ @request ||= begin
+ environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
+ ActionDispatch::Request.new(environment || env)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Callbacks.html b/src/classes/ActionCable/Connection/Callbacks.html
index 818958bf81..d6504ca284 100644
--- a/src/classes/ActionCable/Connection/Callbacks.html
+++ b/src/classes/ActionCable/Connection/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
index 933056a029..6376d7195b 100644
--- a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,11 +90,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 47
- def after_command(*methods, &block)
- set_callback(:command, :after, *methods, &block)
- end
+def after_command(*methods, &block)
+ set_callback(:command, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -125,11 +125,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 51
- def around_command(*methods, &block)
- set_callback(:command, :around, *methods, &block)
- end
+def around_command(*methods, &block)
+ set_callback(:command, :around, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -160,11 +160,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 43
- def before_command(*methods, &block)
- set_callback(:command, :before, *methods, &block)
- end
+def before_command(*methods, &block)
+ set_callback(:command, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification.html b/src/classes/ActionCable/Connection/Identification.html
index f3dcea9bfc..063ca88999 100644
--- a/src/classes/ActionCable/Connection/Identification.html
+++ b/src/classes/ActionCable/Connection/Identification.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,15 +95,15 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 29
- def connection_identifier
- unless defined? @connection_identifier
- @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
- end
+def connection_identifier
+ unless defined? @connection_identifier
+ @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
+ end
- @connection_identifier
- end
+ @connection_identifier
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification/ClassMethods.html b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
index 324ded31f5..a3395ef8a3 100644
--- a/src/classes/ActionCable/Connection/Identification/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -84,12 +84,12 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 21
- def identified_by(*identifiers)
- Array(identifiers).each { |identifier| attr_accessor identifier }
- self.identifiers += identifiers
- end
+def identified_by(*identifiers)
+ Array(identifiers).each { |identifier| attr_accessor identifier }
+ self.identifiers += identifiers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/InternalChannel.html b/src/classes/ActionCable/Connection/InternalChannel.html
index 9b0144f690..cfdccceaf4 100644
--- a/src/classes/ActionCable/Connection/InternalChannel.html
+++ b/src/classes/ActionCable/Connection/InternalChannel.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
index 7167904452..bf0c696d62 100644
--- a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
+++ b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 15
- def initialize(name)
- super "Unable to determine the connection to test from #{name}. " +
- "You'll need to specify it using `tests YourConnection` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the connection to test from #{name}. " +
+ "You'll need to specify it using `tests YourConnection` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/StreamEventLoop.html b/src/classes/ActionCable/Connection/StreamEventLoop.html
index 2b71a213e3..f7c49354ef 100644
--- a/src/classes/ActionCable/Connection/StreamEventLoop.html
+++ b/src/classes/ActionCable/Connection/StreamEventLoop.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -111,16 +111,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 10
- def initialize
- @nio = @executor = @thread = nil
- @map = {}
- @stopping = false
- @todo = Queue.new
-
- @spawn_mutex = Mutex.new
- end
+def initialize
+ @nio = @executor = @thread = nil
+ @map = {}
+ @stopping = false
+ @todo = Queue.new
+
+ @spawn_mutex = Mutex.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -155,15 +155,15 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 30
- def attach(io, stream)
- @todo << lambda do
- @map[io] = @nio.register(io, :r)
- @map[io].value = stream
- end
- wakeup
- end
+def attach(io, stream)
+ @todo << lambda do
+ @map[io] = @nio.register(io, :r)
+ @map[io].value = stream
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -194,16 +194,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 38
- def detach(io, stream)
- @todo << lambda do
- @nio.deregister io
- @map.delete io
- io.close
- end
- wakeup
- end
+def detach(io, stream)
+ @todo << lambda do
+ @nio.deregister io
+ @map.delete io
+ io.close
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -234,14 +234,14 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 23
- def post(task = nil, &block)
- task ||= block
+def post(task = nil, &block)
+ task ||= block
- spawn
- @executor << task
- end
+ spawn
+ @executor << task
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,12 +272,12 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 56
- def stop
- @stopping = true
- wakeup if @nio
- end
+def stop
+ @stopping = true
+ wakeup if @nio
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -308,11 +308,11 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 19
- def timer(interval, &block)
- Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
- end
+def timer(interval, &block)
+ Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -343,16 +343,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 47
- def writes_pending(io)
- @todo << lambda do
- if monitor = @map[io]
- monitor.interests = :rw
- end
- end
- wakeup
- end
+def writes_pending(io)
+ @todo << lambda do
+ if monitor = @map[io]
+ monitor.interests = :rw
+ end
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
index f4d5cacc63..99731855fb 100644
--- a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
+++ b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -121,12 +121,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 16
- def initialize(logger, tags:)
- @logger = logger
- @tags = tags.flatten
- end
+def initialize(logger, tags:)
+ @logger = logger
+ @tags = tags.flatten
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -161,12 +161,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 21
- def add_tags(*tags)
- @tags += tags.flatten
- @tags = @tags.uniq
- end
+def add_tags(*tags)
+ @tags += tags.flatten
+ @tags = @tags.uniq
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -197,16 +197,16 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 26
- def tag(logger, &block)
- if logger.respond_to?(:tagged)
- current_tags = tags - logger.formatter.current_tags
- logger.tagged(*current_tags, &block)
- else
- yield
- end
- end
+def tag(logger, &block)
+ if logger.respond_to?(:tagged)
+ current_tags = tags - logger.formatter.current_tags
+ logger.tagged(*current_tags, &block)
+ else
+ yield
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,11 +240,11 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 42
- def log(type, message, &block) # :doc:
- tag(@logger) { @logger.send type, message, &block }
- end
+def log(type, message, &block) # :doc:
+ tag(@logger) { @logger.send type, message, &block }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase.html b/src/classes/ActionCable/Connection/TestCase.html
index 948378e491..39bc5cb056 100644
--- a/src/classes/ActionCable/Connection/TestCase.html
+++ b/src/classes/ActionCable/Connection/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior.html b/src/classes/ActionCable/Connection/TestCase/Behavior.html
index b87870becd..4ee0debbea 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -163,19 +163,19 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 192
- def connect(path = ActionCable.server.config.mount_path, **request_params)
- path ||= DEFAULT_PATH
+def connect(path = ActionCable.server.config.mount_path, **request_params)
+ path ||= DEFAULT_PATH
- connection = self.class.connection_class.allocate
- connection.singleton_class.include(TestConnection)
- connection.send(:initialize, build_test_request(path, **request_params))
- connection.connect if connection.respond_to?(:connect)
+ connection = self.class.connection_class.allocate
+ connection.singleton_class.include(TestConnection)
+ connection.send(:initialize, build_test_request(path, **request_params))
+ connection.connect if connection.respond_to?(:connect)
- # Only set instance variable if connected successfully
- @connection = connection
- end
+ # Only set instance variable if connected successfully
+ @connection = connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -206,11 +206,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 212
- def cookies
- @cookie_jar ||= TestCookieJar.new
- end
+def cookies
+ @cookie_jar ||= TestCookieJar.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -241,14 +241,14 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 205
- def disconnect
- raise "Must be connected!" if connection.nil?
+def disconnect
+ raise "Must be connected!" if connection.nil?
- connection.disconnect if connection.respond_to?(:disconnect)
- @connection = nil
- end
+ connection.disconnect if connection.respond_to?(:disconnect)
+ @connection = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
index 63444f4b27..99fc0e3f6f 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 167
- def connection_class
- if connection = self._connection_class
- connection
- else
- tests determine_default_connection(name)
- end
- end
+def connection_class
+ if connection = self._connection_class
+ connection
+ else
+ tests determine_default_connection(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 175
- def determine_default_connection(name)
- connection = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Connection::Base
- end
- raise NonInferrableConnectionError.new(name) if connection.nil?
- connection
- end
+def determine_default_connection(name)
+ connection = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Connection::Base
+ end
+ raise NonInferrableConnectionError.new(name) if connection.nil?
+ connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 337
- def assert_has_no_stream_for(object)
- assert_has_no_stream(broadcasting_for(object))
- end# File actioncable/lib/action_cable/channel/test_case.rb, line 304
- def assert_has_stream(stream)
- assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
- end
+def assert_has_stream(stream)
+ assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -395,11 +395,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 315
- def assert_has_stream_for(object)
- assert_has_stream(broadcasting_for(object))
- end
+def assert_has_stream_for(object)
+ assert_has_stream(broadcasting_for(object))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -436,11 +436,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 293
- def assert_no_streams
- assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
- end
+def assert_no_streams
+ assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -473,12 +473,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 266
- def perform(action, data = {})
- check_subscribed!
- subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
- end
+def perform(action, data = {})
+ check_subscribed!
+ subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -516,11 +516,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 243
- def stub_connection(identifiers = {})
- @connection = ConnectionStub.new(identifiers)
- end
+def stub_connection(identifiers = {})
+ @connection = ConnectionStub.new(identifiers)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -551,15 +551,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 249
- def subscribe(params = {})
- @connection ||= stub_connection
- @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
- @subscription.singleton_class.include(ChannelStub)
- @subscription.subscribe_to_channel
- @subscription
- end
+def subscribe(params = {})
+ @connection ||= stub_connection
+ @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
+ @subscription.singleton_class.include(ChannelStub)
+ @subscription.subscribe_to_channel
+ @subscription
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -590,12 +590,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 272
- def transmissions
- # Return only directly sent message (via #transmit)
- connection.transmissions.filter_map { |data| data["message"] }
- end
+def transmissions
+ # Return only directly sent message (via #transmit)
+ connection.transmissions.filter_map { |data| data["message"] }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -626,12 +626,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 258
- def unsubscribe
- check_subscribed!
- subscription.unsubscribe_from_channel
- end
+def unsubscribe
+ check_subscribed!
+ subscription.unsubscribe_from_channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
index 48ea87f130..57efb4cdac 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 219
- def channel_class
- if channel = self._channel_class
- channel
- else
- tests determine_default_channel(name)
- end
- end
+def channel_class
+ if channel = self._channel_class
+ channel
+ else
+ tests determine_default_channel(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 227
- def determine_default_channel(name)
- channel = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Channel::Base
- end
- raise NonInferrableChannelError.new(name) if channel.nil?
- channel
- end
+def determine_default_channel(name)
+ channel = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Channel::Base
+ end
+ raise NonInferrableChannelError.new(name) if channel.nil?
+ channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 208
- def tests(channel)
- case channel
- when String, Symbol
- self._channel_class = channel.to_s.camelize.constantize
- when Module
- self._channel_class = channel
- else
- raise NonInferrableChannelError.new(channel)
- end
- end
+def tests(channel)
+ case channel
+ when String, Symbol
+ self._channel_class = channel.to_s.camelize.constantize
+ when Module
+ self._channel_class = channel
+ else
+ raise NonInferrableChannelError.new(channel)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection.html b/src/classes/ActionCable/Connection.html
index f832214f0e..7889c75284 100644
--- a/src/classes/ActionCable/Connection.html
+++ b/src/classes/ActionCable/Connection.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Assertions.html b/src/classes/ActionCable/Connection/Assertions.html
index 933ea80e4c..6b10ec5528 100644
--- a/src/classes/ActionCable/Connection/Assertions.html
+++ b/src/classes/ActionCable/Connection/Assertions.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 28
- def assert_reject_connection(&block)
- assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
- end
+def assert_reject_connection(&block)
+ assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization.html b/src/classes/ActionCable/Connection/Authorization.html
index feb855aa9e..baf85a37b3 100644
--- a/src/classes/ActionCable/Connection/Authorization.html
+++ b/src/classes/ActionCable/Connection/Authorization.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -97,12 +97,12 @@
# File actioncable/lib/action_cable/connection/authorization.rb, line 12
- def reject_unauthorized_connection
- logger.error "An unauthorized connection attempt was rejected"
- raise UnauthorizedError
- end
+def reject_unauthorized_connection
+ logger.error "An unauthorized connection attempt was rejected"
+ raise UnauthorizedError
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
index b63b282b0b..ff36299a28 100644
--- a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
+++ b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/Base.html b/src/classes/ActionCable/Connection/Base.html
index 36a2f1e1bb..ea0d62911f 100644
--- a/src/classes/ActionCable/Connection/Base.html
+++ b/src/classes/ActionCable/Connection/Base.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -255,21 +255,21 @@
# File actioncable/lib/action_cable/connection/base.rb, line 67
- def initialize(server, env, coder: ActiveSupport::JSON)
- @server, @env, @coder = server, env, coder
+def initialize(server, env, coder: ActiveSupport::JSON)
+ @server, @env, @coder = server, env, coder
- @worker_pool = server.worker_pool
- @logger = new_tagged_logger
+ @worker_pool = server.worker_pool
+ @logger = new_tagged_logger
- @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
+ @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
- @_internal_subscriptions = nil
- @started_at = Time.now
- end
+ @_internal_subscriptions = nil
+ @started_at = Time.now
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -304,11 +304,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 147
- def beat
- transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
- end
+def beat
+ transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -339,16 +339,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 120
- def close(reason: nil, reconnect: true)
- transmit(
- type: ActionCable::INTERNAL[:message_types][:disconnect],
- reason: reason,
- reconnect: reconnect
- )
- websocket.close
- end
+def close(reason: nil, reconnect: true)
+ transmit(
+ type: ActionCable::INTERNAL[:message_types][:disconnect],
+ reason: reason,
+ reconnect: reconnect
+ )
+ websocket.close
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -379,13 +379,13 @@
# File actioncable/lib/action_cable/connection/base.rb, line 109
- def handle_channel_command(payload)
- run_callbacks :command do
- subscriptions.execute_command payload
- end
- end
+def handle_channel_command(payload)
+ run_callbacks :command do
+ subscriptions.execute_command payload
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -416,11 +416,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 131
- def send_async(method, *arguments)
- worker_pool.async_invoke(self, method, *arguments)
- end
+def send_async(method, *arguments)
+ worker_pool.async_invoke(self, method, *arguments)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -451,16 +451,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 138
- def statistics
- {
- identifier: connection_identifier,
- started_at: @started_at,
- subscriptions: subscriptions.identifiers,
- request_id: @env["action_dispatch.request_id"]
- }
- end
+def statistics
+ {
+ identifier: connection_identifier,
+ started_at: @started_at,
+ subscriptions: subscriptions.identifiers,
+ request_id: @env["action_dispatch.request_id"]
+ }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -494,11 +494,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 187
- def cookies # :doc:
- request.cookie_jar
- end
+def cookies # :doc:
+ request.cookie_jar
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -529,14 +529,14 @@
# File actioncable/lib/action_cable/connection/base.rb, line 178
- def request # :doc:
- @request ||= begin
- environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
- ActionDispatch::Request.new(environment || env)
- end
- end
+def request # :doc:
+ @request ||= begin
+ environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
+ ActionDispatch::Request.new(environment || env)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Callbacks.html b/src/classes/ActionCable/Connection/Callbacks.html
index 818958bf81..d6504ca284 100644
--- a/src/classes/ActionCable/Connection/Callbacks.html
+++ b/src/classes/ActionCable/Connection/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
index 933056a029..6376d7195b 100644
--- a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,11 +90,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 47
- def after_command(*methods, &block)
- set_callback(:command, :after, *methods, &block)
- end
+def after_command(*methods, &block)
+ set_callback(:command, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -125,11 +125,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 51
- def around_command(*methods, &block)
- set_callback(:command, :around, *methods, &block)
- end
+def around_command(*methods, &block)
+ set_callback(:command, :around, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -160,11 +160,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 43
- def before_command(*methods, &block)
- set_callback(:command, :before, *methods, &block)
- end
+def before_command(*methods, &block)
+ set_callback(:command, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification.html b/src/classes/ActionCable/Connection/Identification.html
index f3dcea9bfc..063ca88999 100644
--- a/src/classes/ActionCable/Connection/Identification.html
+++ b/src/classes/ActionCable/Connection/Identification.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,15 +95,15 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 29
- def connection_identifier
- unless defined? @connection_identifier
- @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
- end
+def connection_identifier
+ unless defined? @connection_identifier
+ @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
+ end
- @connection_identifier
- end
+ @connection_identifier
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification/ClassMethods.html b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
index 324ded31f5..a3395ef8a3 100644
--- a/src/classes/ActionCable/Connection/Identification/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -84,12 +84,12 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 21
- def identified_by(*identifiers)
- Array(identifiers).each { |identifier| attr_accessor identifier }
- self.identifiers += identifiers
- end
+def identified_by(*identifiers)
+ Array(identifiers).each { |identifier| attr_accessor identifier }
+ self.identifiers += identifiers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/InternalChannel.html b/src/classes/ActionCable/Connection/InternalChannel.html
index 9b0144f690..cfdccceaf4 100644
--- a/src/classes/ActionCable/Connection/InternalChannel.html
+++ b/src/classes/ActionCable/Connection/InternalChannel.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
index 7167904452..bf0c696d62 100644
--- a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
+++ b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 15
- def initialize(name)
- super "Unable to determine the connection to test from #{name}. " +
- "You'll need to specify it using `tests YourConnection` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the connection to test from #{name}. " +
+ "You'll need to specify it using `tests YourConnection` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/StreamEventLoop.html b/src/classes/ActionCable/Connection/StreamEventLoop.html
index 2b71a213e3..f7c49354ef 100644
--- a/src/classes/ActionCable/Connection/StreamEventLoop.html
+++ b/src/classes/ActionCable/Connection/StreamEventLoop.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -111,16 +111,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 10
- def initialize
- @nio = @executor = @thread = nil
- @map = {}
- @stopping = false
- @todo = Queue.new
-
- @spawn_mutex = Mutex.new
- end
+def initialize
+ @nio = @executor = @thread = nil
+ @map = {}
+ @stopping = false
+ @todo = Queue.new
+
+ @spawn_mutex = Mutex.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -155,15 +155,15 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 30
- def attach(io, stream)
- @todo << lambda do
- @map[io] = @nio.register(io, :r)
- @map[io].value = stream
- end
- wakeup
- end
+def attach(io, stream)
+ @todo << lambda do
+ @map[io] = @nio.register(io, :r)
+ @map[io].value = stream
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -194,16 +194,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 38
- def detach(io, stream)
- @todo << lambda do
- @nio.deregister io
- @map.delete io
- io.close
- end
- wakeup
- end
+def detach(io, stream)
+ @todo << lambda do
+ @nio.deregister io
+ @map.delete io
+ io.close
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -234,14 +234,14 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 23
- def post(task = nil, &block)
- task ||= block
+def post(task = nil, &block)
+ task ||= block
- spawn
- @executor << task
- end
+ spawn
+ @executor << task
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,12 +272,12 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 56
- def stop
- @stopping = true
- wakeup if @nio
- end
+def stop
+ @stopping = true
+ wakeup if @nio
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -308,11 +308,11 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 19
- def timer(interval, &block)
- Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
- end
+def timer(interval, &block)
+ Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -343,16 +343,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 47
- def writes_pending(io)
- @todo << lambda do
- if monitor = @map[io]
- monitor.interests = :rw
- end
- end
- wakeup
- end
+def writes_pending(io)
+ @todo << lambda do
+ if monitor = @map[io]
+ monitor.interests = :rw
+ end
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
index f4d5cacc63..99731855fb 100644
--- a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
+++ b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -121,12 +121,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 16
- def initialize(logger, tags:)
- @logger = logger
- @tags = tags.flatten
- end
+def initialize(logger, tags:)
+ @logger = logger
+ @tags = tags.flatten
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -161,12 +161,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 21
- def add_tags(*tags)
- @tags += tags.flatten
- @tags = @tags.uniq
- end
+def add_tags(*tags)
+ @tags += tags.flatten
+ @tags = @tags.uniq
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -197,16 +197,16 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 26
- def tag(logger, &block)
- if logger.respond_to?(:tagged)
- current_tags = tags - logger.formatter.current_tags
- logger.tagged(*current_tags, &block)
- else
- yield
- end
- end
+def tag(logger, &block)
+ if logger.respond_to?(:tagged)
+ current_tags = tags - logger.formatter.current_tags
+ logger.tagged(*current_tags, &block)
+ else
+ yield
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,11 +240,11 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 42
- def log(type, message, &block) # :doc:
- tag(@logger) { @logger.send type, message, &block }
- end
+def log(type, message, &block) # :doc:
+ tag(@logger) { @logger.send type, message, &block }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase.html b/src/classes/ActionCable/Connection/TestCase.html
index 948378e491..39bc5cb056 100644
--- a/src/classes/ActionCable/Connection/TestCase.html
+++ b/src/classes/ActionCable/Connection/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior.html b/src/classes/ActionCable/Connection/TestCase/Behavior.html
index b87870becd..4ee0debbea 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -163,19 +163,19 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 192
- def connect(path = ActionCable.server.config.mount_path, **request_params)
- path ||= DEFAULT_PATH
+def connect(path = ActionCable.server.config.mount_path, **request_params)
+ path ||= DEFAULT_PATH
- connection = self.class.connection_class.allocate
- connection.singleton_class.include(TestConnection)
- connection.send(:initialize, build_test_request(path, **request_params))
- connection.connect if connection.respond_to?(:connect)
+ connection = self.class.connection_class.allocate
+ connection.singleton_class.include(TestConnection)
+ connection.send(:initialize, build_test_request(path, **request_params))
+ connection.connect if connection.respond_to?(:connect)
- # Only set instance variable if connected successfully
- @connection = connection
- end
+ # Only set instance variable if connected successfully
+ @connection = connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -206,11 +206,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 212
- def cookies
- @cookie_jar ||= TestCookieJar.new
- end
+def cookies
+ @cookie_jar ||= TestCookieJar.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -241,14 +241,14 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 205
- def disconnect
- raise "Must be connected!" if connection.nil?
+def disconnect
+ raise "Must be connected!" if connection.nil?
- connection.disconnect if connection.respond_to?(:disconnect)
- @connection = nil
- end
+ connection.disconnect if connection.respond_to?(:disconnect)
+ @connection = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
index 63444f4b27..99fc0e3f6f 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 167
- def connection_class
- if connection = self._connection_class
- connection
- else
- tests determine_default_connection(name)
- end
- end
+def connection_class
+ if connection = self._connection_class
+ connection
+ else
+ tests determine_default_connection(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 175
- def determine_default_connection(name)
- connection = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Connection::Base
- end
- raise NonInferrableConnectionError.new(name) if connection.nil?
- connection
- end
+def determine_default_connection(name)
+ connection = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Connection::Base
+ end
+ raise NonInferrableConnectionError.new(name) if connection.nil?
+ connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 315
- def assert_has_stream_for(object)
- assert_has_stream(broadcasting_for(object))
- end# File actioncable/lib/action_cable/channel/test_case.rb, line 293
- def assert_no_streams
- assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
- end
+def assert_no_streams
+ assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -473,12 +473,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 266
- def perform(action, data = {})
- check_subscribed!
- subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
- end
+def perform(action, data = {})
+ check_subscribed!
+ subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -516,11 +516,11 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 243
- def stub_connection(identifiers = {})
- @connection = ConnectionStub.new(identifiers)
- end
+def stub_connection(identifiers = {})
+ @connection = ConnectionStub.new(identifiers)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -551,15 +551,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 249
- def subscribe(params = {})
- @connection ||= stub_connection
- @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
- @subscription.singleton_class.include(ChannelStub)
- @subscription.subscribe_to_channel
- @subscription
- end
+def subscribe(params = {})
+ @connection ||= stub_connection
+ @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
+ @subscription.singleton_class.include(ChannelStub)
+ @subscription.subscribe_to_channel
+ @subscription
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -590,12 +590,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 272
- def transmissions
- # Return only directly sent message (via #transmit)
- connection.transmissions.filter_map { |data| data["message"] }
- end
+def transmissions
+ # Return only directly sent message (via #transmit)
+ connection.transmissions.filter_map { |data| data["message"] }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -626,12 +626,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 258
- def unsubscribe
- check_subscribed!
- subscription.unsubscribe_from_channel
- end
+def unsubscribe
+ check_subscribed!
+ subscription.unsubscribe_from_channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
index 48ea87f130..57efb4cdac 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 219
- def channel_class
- if channel = self._channel_class
- channel
- else
- tests determine_default_channel(name)
- end
- end
+def channel_class
+ if channel = self._channel_class
+ channel
+ else
+ tests determine_default_channel(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 227
- def determine_default_channel(name)
- channel = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Channel::Base
- end
- raise NonInferrableChannelError.new(name) if channel.nil?
- channel
- end
+def determine_default_channel(name)
+ channel = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Channel::Base
+ end
+ raise NonInferrableChannelError.new(name) if channel.nil?
+ channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 208
- def tests(channel)
- case channel
- when String, Symbol
- self._channel_class = channel.to_s.camelize.constantize
- when Module
- self._channel_class = channel
- else
- raise NonInferrableChannelError.new(channel)
- end
- end
+def tests(channel)
+ case channel
+ when String, Symbol
+ self._channel_class = channel.to_s.camelize.constantize
+ when Module
+ self._channel_class = channel
+ else
+ raise NonInferrableChannelError.new(channel)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection.html b/src/classes/ActionCable/Connection.html
index f832214f0e..7889c75284 100644
--- a/src/classes/ActionCable/Connection.html
+++ b/src/classes/ActionCable/Connection.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Assertions.html b/src/classes/ActionCable/Connection/Assertions.html
index 933ea80e4c..6b10ec5528 100644
--- a/src/classes/ActionCable/Connection/Assertions.html
+++ b/src/classes/ActionCable/Connection/Assertions.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 28
- def assert_reject_connection(&block)
- assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
- end
+def assert_reject_connection(&block)
+ assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization.html b/src/classes/ActionCable/Connection/Authorization.html
index feb855aa9e..baf85a37b3 100644
--- a/src/classes/ActionCable/Connection/Authorization.html
+++ b/src/classes/ActionCable/Connection/Authorization.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -97,12 +97,12 @@
# File actioncable/lib/action_cable/connection/authorization.rb, line 12
- def reject_unauthorized_connection
- logger.error "An unauthorized connection attempt was rejected"
- raise UnauthorizedError
- end
+def reject_unauthorized_connection
+ logger.error "An unauthorized connection attempt was rejected"
+ raise UnauthorizedError
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
index b63b282b0b..ff36299a28 100644
--- a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
+++ b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/Base.html b/src/classes/ActionCable/Connection/Base.html
index 36a2f1e1bb..ea0d62911f 100644
--- a/src/classes/ActionCable/Connection/Base.html
+++ b/src/classes/ActionCable/Connection/Base.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -255,21 +255,21 @@
# File actioncable/lib/action_cable/connection/base.rb, line 67
- def initialize(server, env, coder: ActiveSupport::JSON)
- @server, @env, @coder = server, env, coder
+def initialize(server, env, coder: ActiveSupport::JSON)
+ @server, @env, @coder = server, env, coder
- @worker_pool = server.worker_pool
- @logger = new_tagged_logger
+ @worker_pool = server.worker_pool
+ @logger = new_tagged_logger
- @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
+ @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
- @_internal_subscriptions = nil
- @started_at = Time.now
- end
+ @_internal_subscriptions = nil
+ @started_at = Time.now
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -304,11 +304,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 147
- def beat
- transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
- end
+def beat
+ transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -339,16 +339,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 120
- def close(reason: nil, reconnect: true)
- transmit(
- type: ActionCable::INTERNAL[:message_types][:disconnect],
- reason: reason,
- reconnect: reconnect
- )
- websocket.close
- end
+def close(reason: nil, reconnect: true)
+ transmit(
+ type: ActionCable::INTERNAL[:message_types][:disconnect],
+ reason: reason,
+ reconnect: reconnect
+ )
+ websocket.close
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -379,13 +379,13 @@
# File actioncable/lib/action_cable/connection/base.rb, line 109
- def handle_channel_command(payload)
- run_callbacks :command do
- subscriptions.execute_command payload
- end
- end
+def handle_channel_command(payload)
+ run_callbacks :command do
+ subscriptions.execute_command payload
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -416,11 +416,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 131
- def send_async(method, *arguments)
- worker_pool.async_invoke(self, method, *arguments)
- end
+def send_async(method, *arguments)
+ worker_pool.async_invoke(self, method, *arguments)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -451,16 +451,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 138
- def statistics
- {
- identifier: connection_identifier,
- started_at: @started_at,
- subscriptions: subscriptions.identifiers,
- request_id: @env["action_dispatch.request_id"]
- }
- end
+def statistics
+ {
+ identifier: connection_identifier,
+ started_at: @started_at,
+ subscriptions: subscriptions.identifiers,
+ request_id: @env["action_dispatch.request_id"]
+ }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -494,11 +494,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 187
- def cookies # :doc:
- request.cookie_jar
- end
+def cookies # :doc:
+ request.cookie_jar
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -529,14 +529,14 @@
# File actioncable/lib/action_cable/connection/base.rb, line 178
- def request # :doc:
- @request ||= begin
- environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
- ActionDispatch::Request.new(environment || env)
- end
- end
+def request # :doc:
+ @request ||= begin
+ environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
+ ActionDispatch::Request.new(environment || env)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Callbacks.html b/src/classes/ActionCable/Connection/Callbacks.html
index 818958bf81..d6504ca284 100644
--- a/src/classes/ActionCable/Connection/Callbacks.html
+++ b/src/classes/ActionCable/Connection/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
index 933056a029..6376d7195b 100644
--- a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,11 +90,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 47
- def after_command(*methods, &block)
- set_callback(:command, :after, *methods, &block)
- end
+def after_command(*methods, &block)
+ set_callback(:command, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -125,11 +125,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 51
- def around_command(*methods, &block)
- set_callback(:command, :around, *methods, &block)
- end
+def around_command(*methods, &block)
+ set_callback(:command, :around, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -160,11 +160,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 43
- def before_command(*methods, &block)
- set_callback(:command, :before, *methods, &block)
- end
+def before_command(*methods, &block)
+ set_callback(:command, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification.html b/src/classes/ActionCable/Connection/Identification.html
index f3dcea9bfc..063ca88999 100644
--- a/src/classes/ActionCable/Connection/Identification.html
+++ b/src/classes/ActionCable/Connection/Identification.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,15 +95,15 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 29
- def connection_identifier
- unless defined? @connection_identifier
- @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
- end
+def connection_identifier
+ unless defined? @connection_identifier
+ @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
+ end
- @connection_identifier
- end
+ @connection_identifier
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification/ClassMethods.html b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
index 324ded31f5..a3395ef8a3 100644
--- a/src/classes/ActionCable/Connection/Identification/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -84,12 +84,12 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 21
- def identified_by(*identifiers)
- Array(identifiers).each { |identifier| attr_accessor identifier }
- self.identifiers += identifiers
- end
+def identified_by(*identifiers)
+ Array(identifiers).each { |identifier| attr_accessor identifier }
+ self.identifiers += identifiers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/InternalChannel.html b/src/classes/ActionCable/Connection/InternalChannel.html
index 9b0144f690..cfdccceaf4 100644
--- a/src/classes/ActionCable/Connection/InternalChannel.html
+++ b/src/classes/ActionCable/Connection/InternalChannel.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
index 7167904452..bf0c696d62 100644
--- a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
+++ b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 15
- def initialize(name)
- super "Unable to determine the connection to test from #{name}. " +
- "You'll need to specify it using `tests YourConnection` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the connection to test from #{name}. " +
+ "You'll need to specify it using `tests YourConnection` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/StreamEventLoop.html b/src/classes/ActionCable/Connection/StreamEventLoop.html
index 2b71a213e3..f7c49354ef 100644
--- a/src/classes/ActionCable/Connection/StreamEventLoop.html
+++ b/src/classes/ActionCable/Connection/StreamEventLoop.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -111,16 +111,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 10
- def initialize
- @nio = @executor = @thread = nil
- @map = {}
- @stopping = false
- @todo = Queue.new
-
- @spawn_mutex = Mutex.new
- end
+def initialize
+ @nio = @executor = @thread = nil
+ @map = {}
+ @stopping = false
+ @todo = Queue.new
+
+ @spawn_mutex = Mutex.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -155,15 +155,15 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 30
- def attach(io, stream)
- @todo << lambda do
- @map[io] = @nio.register(io, :r)
- @map[io].value = stream
- end
- wakeup
- end
+def attach(io, stream)
+ @todo << lambda do
+ @map[io] = @nio.register(io, :r)
+ @map[io].value = stream
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -194,16 +194,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 38
- def detach(io, stream)
- @todo << lambda do
- @nio.deregister io
- @map.delete io
- io.close
- end
- wakeup
- end
+def detach(io, stream)
+ @todo << lambda do
+ @nio.deregister io
+ @map.delete io
+ io.close
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -234,14 +234,14 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 23
- def post(task = nil, &block)
- task ||= block
+def post(task = nil, &block)
+ task ||= block
- spawn
- @executor << task
- end
+ spawn
+ @executor << task
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,12 +272,12 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 56
- def stop
- @stopping = true
- wakeup if @nio
- end
+def stop
+ @stopping = true
+ wakeup if @nio
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -308,11 +308,11 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 19
- def timer(interval, &block)
- Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
- end
+def timer(interval, &block)
+ Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -343,16 +343,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 47
- def writes_pending(io)
- @todo << lambda do
- if monitor = @map[io]
- monitor.interests = :rw
- end
- end
- wakeup
- end
+def writes_pending(io)
+ @todo << lambda do
+ if monitor = @map[io]
+ monitor.interests = :rw
+ end
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
index f4d5cacc63..99731855fb 100644
--- a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
+++ b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -121,12 +121,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 16
- def initialize(logger, tags:)
- @logger = logger
- @tags = tags.flatten
- end
+def initialize(logger, tags:)
+ @logger = logger
+ @tags = tags.flatten
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -161,12 +161,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 21
- def add_tags(*tags)
- @tags += tags.flatten
- @tags = @tags.uniq
- end
+def add_tags(*tags)
+ @tags += tags.flatten
+ @tags = @tags.uniq
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -197,16 +197,16 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 26
- def tag(logger, &block)
- if logger.respond_to?(:tagged)
- current_tags = tags - logger.formatter.current_tags
- logger.tagged(*current_tags, &block)
- else
- yield
- end
- end
+def tag(logger, &block)
+ if logger.respond_to?(:tagged)
+ current_tags = tags - logger.formatter.current_tags
+ logger.tagged(*current_tags, &block)
+ else
+ yield
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,11 +240,11 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 42
- def log(type, message, &block) # :doc:
- tag(@logger) { @logger.send type, message, &block }
- end
+def log(type, message, &block) # :doc:
+ tag(@logger) { @logger.send type, message, &block }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase.html b/src/classes/ActionCable/Connection/TestCase.html
index 948378e491..39bc5cb056 100644
--- a/src/classes/ActionCable/Connection/TestCase.html
+++ b/src/classes/ActionCable/Connection/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior.html b/src/classes/ActionCable/Connection/TestCase/Behavior.html
index b87870becd..4ee0debbea 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -163,19 +163,19 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 192
- def connect(path = ActionCable.server.config.mount_path, **request_params)
- path ||= DEFAULT_PATH
+def connect(path = ActionCable.server.config.mount_path, **request_params)
+ path ||= DEFAULT_PATH
- connection = self.class.connection_class.allocate
- connection.singleton_class.include(TestConnection)
- connection.send(:initialize, build_test_request(path, **request_params))
- connection.connect if connection.respond_to?(:connect)
+ connection = self.class.connection_class.allocate
+ connection.singleton_class.include(TestConnection)
+ connection.send(:initialize, build_test_request(path, **request_params))
+ connection.connect if connection.respond_to?(:connect)
- # Only set instance variable if connected successfully
- @connection = connection
- end
+ # Only set instance variable if connected successfully
+ @connection = connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -206,11 +206,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 212
- def cookies
- @cookie_jar ||= TestCookieJar.new
- end
+def cookies
+ @cookie_jar ||= TestCookieJar.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -241,14 +241,14 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 205
- def disconnect
- raise "Must be connected!" if connection.nil?
+def disconnect
+ raise "Must be connected!" if connection.nil?
- connection.disconnect if connection.respond_to?(:disconnect)
- @connection = nil
- end
+ connection.disconnect if connection.respond_to?(:disconnect)
+ @connection = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
index 63444f4b27..99fc0e3f6f 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 167
- def connection_class
- if connection = self._connection_class
- connection
- else
- tests determine_default_connection(name)
- end
- end
+def connection_class
+ if connection = self._connection_class
+ connection
+ else
+ tests determine_default_connection(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 175
- def determine_default_connection(name)
- connection = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Connection::Base
- end
- raise NonInferrableConnectionError.new(name) if connection.nil?
- connection
- end
+def determine_default_connection(name)
+ connection = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Connection::Base
+ end
+ raise NonInferrableConnectionError.new(name) if connection.nil?
+ connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 266
- def perform(action, data = {})
- check_subscribed!
- subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
- end# File actioncable/lib/action_cable/channel/test_case.rb, line 243
- def stub_connection(identifiers = {})
- @connection = ConnectionStub.new(identifiers)
- end
+def stub_connection(identifiers = {})
+ @connection = ConnectionStub.new(identifiers)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -551,15 +551,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 249
- def subscribe(params = {})
- @connection ||= stub_connection
- @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
- @subscription.singleton_class.include(ChannelStub)
- @subscription.subscribe_to_channel
- @subscription
- end
+def subscribe(params = {})
+ @connection ||= stub_connection
+ @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
+ @subscription.singleton_class.include(ChannelStub)
+ @subscription.subscribe_to_channel
+ @subscription
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -590,12 +590,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 272
- def transmissions
- # Return only directly sent message (via #transmit)
- connection.transmissions.filter_map { |data| data["message"] }
- end
+def transmissions
+ # Return only directly sent message (via #transmit)
+ connection.transmissions.filter_map { |data| data["message"] }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -626,12 +626,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 258
- def unsubscribe
- check_subscribed!
- subscription.unsubscribe_from_channel
- end
+def unsubscribe
+ check_subscribed!
+ subscription.unsubscribe_from_channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
index 48ea87f130..57efb4cdac 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 219
- def channel_class
- if channel = self._channel_class
- channel
- else
- tests determine_default_channel(name)
- end
- end
+def channel_class
+ if channel = self._channel_class
+ channel
+ else
+ tests determine_default_channel(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 227
- def determine_default_channel(name)
- channel = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Channel::Base
- end
- raise NonInferrableChannelError.new(name) if channel.nil?
- channel
- end
+def determine_default_channel(name)
+ channel = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Channel::Base
+ end
+ raise NonInferrableChannelError.new(name) if channel.nil?
+ channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 208
- def tests(channel)
- case channel
- when String, Symbol
- self._channel_class = channel.to_s.camelize.constantize
- when Module
- self._channel_class = channel
- else
- raise NonInferrableChannelError.new(channel)
- end
- end
+def tests(channel)
+ case channel
+ when String, Symbol
+ self._channel_class = channel.to_s.camelize.constantize
+ when Module
+ self._channel_class = channel
+ else
+ raise NonInferrableChannelError.new(channel)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection.html b/src/classes/ActionCable/Connection.html
index f832214f0e..7889c75284 100644
--- a/src/classes/ActionCable/Connection.html
+++ b/src/classes/ActionCable/Connection.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Assertions.html b/src/classes/ActionCable/Connection/Assertions.html
index 933ea80e4c..6b10ec5528 100644
--- a/src/classes/ActionCable/Connection/Assertions.html
+++ b/src/classes/ActionCable/Connection/Assertions.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 28
- def assert_reject_connection(&block)
- assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
- end
+def assert_reject_connection(&block)
+ assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization.html b/src/classes/ActionCable/Connection/Authorization.html
index feb855aa9e..baf85a37b3 100644
--- a/src/classes/ActionCable/Connection/Authorization.html
+++ b/src/classes/ActionCable/Connection/Authorization.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -97,12 +97,12 @@
# File actioncable/lib/action_cable/connection/authorization.rb, line 12
- def reject_unauthorized_connection
- logger.error "An unauthorized connection attempt was rejected"
- raise UnauthorizedError
- end
+def reject_unauthorized_connection
+ logger.error "An unauthorized connection attempt was rejected"
+ raise UnauthorizedError
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
index b63b282b0b..ff36299a28 100644
--- a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
+++ b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/Base.html b/src/classes/ActionCable/Connection/Base.html
index 36a2f1e1bb..ea0d62911f 100644
--- a/src/classes/ActionCable/Connection/Base.html
+++ b/src/classes/ActionCable/Connection/Base.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -255,21 +255,21 @@
# File actioncable/lib/action_cable/connection/base.rb, line 67
- def initialize(server, env, coder: ActiveSupport::JSON)
- @server, @env, @coder = server, env, coder
+def initialize(server, env, coder: ActiveSupport::JSON)
+ @server, @env, @coder = server, env, coder
- @worker_pool = server.worker_pool
- @logger = new_tagged_logger
+ @worker_pool = server.worker_pool
+ @logger = new_tagged_logger
- @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
+ @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
- @_internal_subscriptions = nil
- @started_at = Time.now
- end
+ @_internal_subscriptions = nil
+ @started_at = Time.now
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -304,11 +304,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 147
- def beat
- transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
- end
+def beat
+ transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -339,16 +339,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 120
- def close(reason: nil, reconnect: true)
- transmit(
- type: ActionCable::INTERNAL[:message_types][:disconnect],
- reason: reason,
- reconnect: reconnect
- )
- websocket.close
- end
+def close(reason: nil, reconnect: true)
+ transmit(
+ type: ActionCable::INTERNAL[:message_types][:disconnect],
+ reason: reason,
+ reconnect: reconnect
+ )
+ websocket.close
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -379,13 +379,13 @@
# File actioncable/lib/action_cable/connection/base.rb, line 109
- def handle_channel_command(payload)
- run_callbacks :command do
- subscriptions.execute_command payload
- end
- end
+def handle_channel_command(payload)
+ run_callbacks :command do
+ subscriptions.execute_command payload
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -416,11 +416,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 131
- def send_async(method, *arguments)
- worker_pool.async_invoke(self, method, *arguments)
- end
+def send_async(method, *arguments)
+ worker_pool.async_invoke(self, method, *arguments)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -451,16 +451,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 138
- def statistics
- {
- identifier: connection_identifier,
- started_at: @started_at,
- subscriptions: subscriptions.identifiers,
- request_id: @env["action_dispatch.request_id"]
- }
- end
+def statistics
+ {
+ identifier: connection_identifier,
+ started_at: @started_at,
+ subscriptions: subscriptions.identifiers,
+ request_id: @env["action_dispatch.request_id"]
+ }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -494,11 +494,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 187
- def cookies # :doc:
- request.cookie_jar
- end
+def cookies # :doc:
+ request.cookie_jar
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -529,14 +529,14 @@
# File actioncable/lib/action_cable/connection/base.rb, line 178
- def request # :doc:
- @request ||= begin
- environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
- ActionDispatch::Request.new(environment || env)
- end
- end
+def request # :doc:
+ @request ||= begin
+ environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
+ ActionDispatch::Request.new(environment || env)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Callbacks.html b/src/classes/ActionCable/Connection/Callbacks.html
index 818958bf81..d6504ca284 100644
--- a/src/classes/ActionCable/Connection/Callbacks.html
+++ b/src/classes/ActionCable/Connection/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
index 933056a029..6376d7195b 100644
--- a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,11 +90,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 47
- def after_command(*methods, &block)
- set_callback(:command, :after, *methods, &block)
- end
+def after_command(*methods, &block)
+ set_callback(:command, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -125,11 +125,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 51
- def around_command(*methods, &block)
- set_callback(:command, :around, *methods, &block)
- end
+def around_command(*methods, &block)
+ set_callback(:command, :around, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -160,11 +160,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 43
- def before_command(*methods, &block)
- set_callback(:command, :before, *methods, &block)
- end
+def before_command(*methods, &block)
+ set_callback(:command, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification.html b/src/classes/ActionCable/Connection/Identification.html
index f3dcea9bfc..063ca88999 100644
--- a/src/classes/ActionCable/Connection/Identification.html
+++ b/src/classes/ActionCable/Connection/Identification.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,15 +95,15 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 29
- def connection_identifier
- unless defined? @connection_identifier
- @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
- end
+def connection_identifier
+ unless defined? @connection_identifier
+ @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
+ end
- @connection_identifier
- end
+ @connection_identifier
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification/ClassMethods.html b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
index 324ded31f5..a3395ef8a3 100644
--- a/src/classes/ActionCable/Connection/Identification/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -84,12 +84,12 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 21
- def identified_by(*identifiers)
- Array(identifiers).each { |identifier| attr_accessor identifier }
- self.identifiers += identifiers
- end
+def identified_by(*identifiers)
+ Array(identifiers).each { |identifier| attr_accessor identifier }
+ self.identifiers += identifiers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/InternalChannel.html b/src/classes/ActionCable/Connection/InternalChannel.html
index 9b0144f690..cfdccceaf4 100644
--- a/src/classes/ActionCable/Connection/InternalChannel.html
+++ b/src/classes/ActionCable/Connection/InternalChannel.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
index 7167904452..bf0c696d62 100644
--- a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
+++ b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 15
- def initialize(name)
- super "Unable to determine the connection to test from #{name}. " +
- "You'll need to specify it using `tests YourConnection` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the connection to test from #{name}. " +
+ "You'll need to specify it using `tests YourConnection` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/StreamEventLoop.html b/src/classes/ActionCable/Connection/StreamEventLoop.html
index 2b71a213e3..f7c49354ef 100644
--- a/src/classes/ActionCable/Connection/StreamEventLoop.html
+++ b/src/classes/ActionCable/Connection/StreamEventLoop.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -111,16 +111,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 10
- def initialize
- @nio = @executor = @thread = nil
- @map = {}
- @stopping = false
- @todo = Queue.new
-
- @spawn_mutex = Mutex.new
- end
+def initialize
+ @nio = @executor = @thread = nil
+ @map = {}
+ @stopping = false
+ @todo = Queue.new
+
+ @spawn_mutex = Mutex.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -155,15 +155,15 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 30
- def attach(io, stream)
- @todo << lambda do
- @map[io] = @nio.register(io, :r)
- @map[io].value = stream
- end
- wakeup
- end
+def attach(io, stream)
+ @todo << lambda do
+ @map[io] = @nio.register(io, :r)
+ @map[io].value = stream
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -194,16 +194,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 38
- def detach(io, stream)
- @todo << lambda do
- @nio.deregister io
- @map.delete io
- io.close
- end
- wakeup
- end
+def detach(io, stream)
+ @todo << lambda do
+ @nio.deregister io
+ @map.delete io
+ io.close
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -234,14 +234,14 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 23
- def post(task = nil, &block)
- task ||= block
+def post(task = nil, &block)
+ task ||= block
- spawn
- @executor << task
- end
+ spawn
+ @executor << task
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,12 +272,12 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 56
- def stop
- @stopping = true
- wakeup if @nio
- end
+def stop
+ @stopping = true
+ wakeup if @nio
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -308,11 +308,11 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 19
- def timer(interval, &block)
- Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
- end
+def timer(interval, &block)
+ Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -343,16 +343,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 47
- def writes_pending(io)
- @todo << lambda do
- if monitor = @map[io]
- monitor.interests = :rw
- end
- end
- wakeup
- end
+def writes_pending(io)
+ @todo << lambda do
+ if monitor = @map[io]
+ monitor.interests = :rw
+ end
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
index f4d5cacc63..99731855fb 100644
--- a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
+++ b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -121,12 +121,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 16
- def initialize(logger, tags:)
- @logger = logger
- @tags = tags.flatten
- end
+def initialize(logger, tags:)
+ @logger = logger
+ @tags = tags.flatten
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -161,12 +161,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 21
- def add_tags(*tags)
- @tags += tags.flatten
- @tags = @tags.uniq
- end
+def add_tags(*tags)
+ @tags += tags.flatten
+ @tags = @tags.uniq
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -197,16 +197,16 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 26
- def tag(logger, &block)
- if logger.respond_to?(:tagged)
- current_tags = tags - logger.formatter.current_tags
- logger.tagged(*current_tags, &block)
- else
- yield
- end
- end
+def tag(logger, &block)
+ if logger.respond_to?(:tagged)
+ current_tags = tags - logger.formatter.current_tags
+ logger.tagged(*current_tags, &block)
+ else
+ yield
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,11 +240,11 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 42
- def log(type, message, &block) # :doc:
- tag(@logger) { @logger.send type, message, &block }
- end
+def log(type, message, &block) # :doc:
+ tag(@logger) { @logger.send type, message, &block }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase.html b/src/classes/ActionCable/Connection/TestCase.html
index 948378e491..39bc5cb056 100644
--- a/src/classes/ActionCable/Connection/TestCase.html
+++ b/src/classes/ActionCable/Connection/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior.html b/src/classes/ActionCable/Connection/TestCase/Behavior.html
index b87870becd..4ee0debbea 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -163,19 +163,19 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 192
- def connect(path = ActionCable.server.config.mount_path, **request_params)
- path ||= DEFAULT_PATH
+def connect(path = ActionCable.server.config.mount_path, **request_params)
+ path ||= DEFAULT_PATH
- connection = self.class.connection_class.allocate
- connection.singleton_class.include(TestConnection)
- connection.send(:initialize, build_test_request(path, **request_params))
- connection.connect if connection.respond_to?(:connect)
+ connection = self.class.connection_class.allocate
+ connection.singleton_class.include(TestConnection)
+ connection.send(:initialize, build_test_request(path, **request_params))
+ connection.connect if connection.respond_to?(:connect)
- # Only set instance variable if connected successfully
- @connection = connection
- end
+ # Only set instance variable if connected successfully
+ @connection = connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -206,11 +206,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 212
- def cookies
- @cookie_jar ||= TestCookieJar.new
- end
+def cookies
+ @cookie_jar ||= TestCookieJar.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -241,14 +241,14 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 205
- def disconnect
- raise "Must be connected!" if connection.nil?
+def disconnect
+ raise "Must be connected!" if connection.nil?
- connection.disconnect if connection.respond_to?(:disconnect)
- @connection = nil
- end
+ connection.disconnect if connection.respond_to?(:disconnect)
+ @connection = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
index 63444f4b27..99fc0e3f6f 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 167
- def connection_class
- if connection = self._connection_class
- connection
- else
- tests determine_default_connection(name)
- end
- end
+def connection_class
+ if connection = self._connection_class
+ connection
+ else
+ tests determine_default_connection(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 175
- def determine_default_connection(name)
- connection = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Connection::Base
- end
- raise NonInferrableConnectionError.new(name) if connection.nil?
- connection
- end
+def determine_default_connection(name)
+ connection = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Connection::Base
+ end
+ raise NonInferrableConnectionError.new(name) if connection.nil?
+ connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 249
- def subscribe(params = {})
- @connection ||= stub_connection
- @subscription = self.class.channel_class.new(connection, CHANNEL_IDENTIFIER, params.with_indifferent_access)
- @subscription.singleton_class.include(ChannelStub)
- @subscription.subscribe_to_channel
- @subscription
- end# File actioncable/lib/action_cable/channel/test_case.rb, line 272
- def transmissions
- # Return only directly sent message (via #transmit)
- connection.transmissions.filter_map { |data| data["message"] }
- end
+def transmissions
+ # Return only directly sent message (via #transmit)
+ connection.transmissions.filter_map { |data| data["message"] }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -626,12 +626,12 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 258
- def unsubscribe
- check_subscribed!
- subscription.unsubscribe_from_channel
- end
+def unsubscribe
+ check_subscribed!
+ subscription.unsubscribe_from_channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
index 48ea87f130..57efb4cdac 100644
--- a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 219
- def channel_class
- if channel = self._channel_class
- channel
- else
- tests determine_default_channel(name)
- end
- end
+def channel_class
+ if channel = self._channel_class
+ channel
+ else
+ tests determine_default_channel(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 227
- def determine_default_channel(name)
- channel = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Channel::Base
- end
- raise NonInferrableChannelError.new(name) if channel.nil?
- channel
- end
+def determine_default_channel(name)
+ channel = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Channel::Base
+ end
+ raise NonInferrableChannelError.new(name) if channel.nil?
+ channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 208
- def tests(channel)
- case channel
- when String, Symbol
- self._channel_class = channel.to_s.camelize.constantize
- when Module
- self._channel_class = channel
- else
- raise NonInferrableChannelError.new(channel)
- end
- end
+def tests(channel)
+ case channel
+ when String, Symbol
+ self._channel_class = channel.to_s.camelize.constantize
+ when Module
+ self._channel_class = channel
+ else
+ raise NonInferrableChannelError.new(channel)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection.html b/src/classes/ActionCable/Connection.html
index f832214f0e..7889c75284 100644
--- a/src/classes/ActionCable/Connection.html
+++ b/src/classes/ActionCable/Connection.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Assertions.html b/src/classes/ActionCable/Connection/Assertions.html
index 933ea80e4c..6b10ec5528 100644
--- a/src/classes/ActionCable/Connection/Assertions.html
+++ b/src/classes/ActionCable/Connection/Assertions.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 28
- def assert_reject_connection(&block)
- assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
- end
+def assert_reject_connection(&block)
+ assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization.html b/src/classes/ActionCable/Connection/Authorization.html
index feb855aa9e..baf85a37b3 100644
--- a/src/classes/ActionCable/Connection/Authorization.html
+++ b/src/classes/ActionCable/Connection/Authorization.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -97,12 +97,12 @@
# File actioncable/lib/action_cable/connection/authorization.rb, line 12
- def reject_unauthorized_connection
- logger.error "An unauthorized connection attempt was rejected"
- raise UnauthorizedError
- end
+def reject_unauthorized_connection
+ logger.error "An unauthorized connection attempt was rejected"
+ raise UnauthorizedError
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
index b63b282b0b..ff36299a28 100644
--- a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
+++ b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/Base.html b/src/classes/ActionCable/Connection/Base.html
index 36a2f1e1bb..ea0d62911f 100644
--- a/src/classes/ActionCable/Connection/Base.html
+++ b/src/classes/ActionCable/Connection/Base.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -255,21 +255,21 @@
# File actioncable/lib/action_cable/connection/base.rb, line 67
- def initialize(server, env, coder: ActiveSupport::JSON)
- @server, @env, @coder = server, env, coder
+def initialize(server, env, coder: ActiveSupport::JSON)
+ @server, @env, @coder = server, env, coder
- @worker_pool = server.worker_pool
- @logger = new_tagged_logger
+ @worker_pool = server.worker_pool
+ @logger = new_tagged_logger
- @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
+ @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
- @_internal_subscriptions = nil
- @started_at = Time.now
- end
+ @_internal_subscriptions = nil
+ @started_at = Time.now
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -304,11 +304,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 147
- def beat
- transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
- end
+def beat
+ transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -339,16 +339,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 120
- def close(reason: nil, reconnect: true)
- transmit(
- type: ActionCable::INTERNAL[:message_types][:disconnect],
- reason: reason,
- reconnect: reconnect
- )
- websocket.close
- end
+def close(reason: nil, reconnect: true)
+ transmit(
+ type: ActionCable::INTERNAL[:message_types][:disconnect],
+ reason: reason,
+ reconnect: reconnect
+ )
+ websocket.close
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -379,13 +379,13 @@
# File actioncable/lib/action_cable/connection/base.rb, line 109
- def handle_channel_command(payload)
- run_callbacks :command do
- subscriptions.execute_command payload
- end
- end
+def handle_channel_command(payload)
+ run_callbacks :command do
+ subscriptions.execute_command payload
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -416,11 +416,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 131
- def send_async(method, *arguments)
- worker_pool.async_invoke(self, method, *arguments)
- end
+def send_async(method, *arguments)
+ worker_pool.async_invoke(self, method, *arguments)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -451,16 +451,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 138
- def statistics
- {
- identifier: connection_identifier,
- started_at: @started_at,
- subscriptions: subscriptions.identifiers,
- request_id: @env["action_dispatch.request_id"]
- }
- end
+def statistics
+ {
+ identifier: connection_identifier,
+ started_at: @started_at,
+ subscriptions: subscriptions.identifiers,
+ request_id: @env["action_dispatch.request_id"]
+ }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -494,11 +494,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 187
- def cookies # :doc:
- request.cookie_jar
- end
+def cookies # :doc:
+ request.cookie_jar
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -529,14 +529,14 @@
# File actioncable/lib/action_cable/connection/base.rb, line 178
- def request # :doc:
- @request ||= begin
- environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
- ActionDispatch::Request.new(environment || env)
- end
- end
+def request # :doc:
+ @request ||= begin
+ environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
+ ActionDispatch::Request.new(environment || env)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Callbacks.html b/src/classes/ActionCable/Connection/Callbacks.html
index 818958bf81..d6504ca284 100644
--- a/src/classes/ActionCable/Connection/Callbacks.html
+++ b/src/classes/ActionCable/Connection/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
index 933056a029..6376d7195b 100644
--- a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,11 +90,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 47
- def after_command(*methods, &block)
- set_callback(:command, :after, *methods, &block)
- end
+def after_command(*methods, &block)
+ set_callback(:command, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -125,11 +125,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 51
- def around_command(*methods, &block)
- set_callback(:command, :around, *methods, &block)
- end
+def around_command(*methods, &block)
+ set_callback(:command, :around, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -160,11 +160,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 43
- def before_command(*methods, &block)
- set_callback(:command, :before, *methods, &block)
- end
+def before_command(*methods, &block)
+ set_callback(:command, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification.html b/src/classes/ActionCable/Connection/Identification.html
index f3dcea9bfc..063ca88999 100644
--- a/src/classes/ActionCable/Connection/Identification.html
+++ b/src/classes/ActionCable/Connection/Identification.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,15 +95,15 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 29
- def connection_identifier
- unless defined? @connection_identifier
- @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
- end
+def connection_identifier
+ unless defined? @connection_identifier
+ @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
+ end
- @connection_identifier
- end
+ @connection_identifier
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification/ClassMethods.html b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
index 324ded31f5..a3395ef8a3 100644
--- a/src/classes/ActionCable/Connection/Identification/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -84,12 +84,12 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 21
- def identified_by(*identifiers)
- Array(identifiers).each { |identifier| attr_accessor identifier }
- self.identifiers += identifiers
- end
+def identified_by(*identifiers)
+ Array(identifiers).each { |identifier| attr_accessor identifier }
+ self.identifiers += identifiers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/InternalChannel.html b/src/classes/ActionCable/Connection/InternalChannel.html
index 9b0144f690..cfdccceaf4 100644
--- a/src/classes/ActionCable/Connection/InternalChannel.html
+++ b/src/classes/ActionCable/Connection/InternalChannel.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
index 7167904452..bf0c696d62 100644
--- a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
+++ b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 15
- def initialize(name)
- super "Unable to determine the connection to test from #{name}. " +
- "You'll need to specify it using `tests YourConnection` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the connection to test from #{name}. " +
+ "You'll need to specify it using `tests YourConnection` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/StreamEventLoop.html b/src/classes/ActionCable/Connection/StreamEventLoop.html
index 2b71a213e3..f7c49354ef 100644
--- a/src/classes/ActionCable/Connection/StreamEventLoop.html
+++ b/src/classes/ActionCable/Connection/StreamEventLoop.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -111,16 +111,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 10
- def initialize
- @nio = @executor = @thread = nil
- @map = {}
- @stopping = false
- @todo = Queue.new
-
- @spawn_mutex = Mutex.new
- end
+def initialize
+ @nio = @executor = @thread = nil
+ @map = {}
+ @stopping = false
+ @todo = Queue.new
+
+ @spawn_mutex = Mutex.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -155,15 +155,15 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 30
- def attach(io, stream)
- @todo << lambda do
- @map[io] = @nio.register(io, :r)
- @map[io].value = stream
- end
- wakeup
- end
+def attach(io, stream)
+ @todo << lambda do
+ @map[io] = @nio.register(io, :r)
+ @map[io].value = stream
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -194,16 +194,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 38
- def detach(io, stream)
- @todo << lambda do
- @nio.deregister io
- @map.delete io
- io.close
- end
- wakeup
- end
+def detach(io, stream)
+ @todo << lambda do
+ @nio.deregister io
+ @map.delete io
+ io.close
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -234,14 +234,14 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 23
- def post(task = nil, &block)
- task ||= block
+def post(task = nil, &block)
+ task ||= block
- spawn
- @executor << task
- end
+ spawn
+ @executor << task
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,12 +272,12 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 56
- def stop
- @stopping = true
- wakeup if @nio
- end
+def stop
+ @stopping = true
+ wakeup if @nio
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -308,11 +308,11 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 19
- def timer(interval, &block)
- Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
- end
+def timer(interval, &block)
+ Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -343,16 +343,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 47
- def writes_pending(io)
- @todo << lambda do
- if monitor = @map[io]
- monitor.interests = :rw
- end
- end
- wakeup
- end
+def writes_pending(io)
+ @todo << lambda do
+ if monitor = @map[io]
+ monitor.interests = :rw
+ end
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
index f4d5cacc63..99731855fb 100644
--- a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
+++ b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -121,12 +121,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 16
- def initialize(logger, tags:)
- @logger = logger
- @tags = tags.flatten
- end
+def initialize(logger, tags:)
+ @logger = logger
+ @tags = tags.flatten
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -161,12 +161,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 21
- def add_tags(*tags)
- @tags += tags.flatten
- @tags = @tags.uniq
- end
+def add_tags(*tags)
+ @tags += tags.flatten
+ @tags = @tags.uniq
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -197,16 +197,16 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 26
- def tag(logger, &block)
- if logger.respond_to?(:tagged)
- current_tags = tags - logger.formatter.current_tags
- logger.tagged(*current_tags, &block)
- else
- yield
- end
- end
+def tag(logger, &block)
+ if logger.respond_to?(:tagged)
+ current_tags = tags - logger.formatter.current_tags
+ logger.tagged(*current_tags, &block)
+ else
+ yield
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,11 +240,11 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 42
- def log(type, message, &block) # :doc:
- tag(@logger) { @logger.send type, message, &block }
- end
+def log(type, message, &block) # :doc:
+ tag(@logger) { @logger.send type, message, &block }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase.html b/src/classes/ActionCable/Connection/TestCase.html
index 948378e491..39bc5cb056 100644
--- a/src/classes/ActionCable/Connection/TestCase.html
+++ b/src/classes/ActionCable/Connection/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior.html b/src/classes/ActionCable/Connection/TestCase/Behavior.html
index b87870becd..4ee0debbea 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -163,19 +163,19 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 192
- def connect(path = ActionCable.server.config.mount_path, **request_params)
- path ||= DEFAULT_PATH
+def connect(path = ActionCable.server.config.mount_path, **request_params)
+ path ||= DEFAULT_PATH
- connection = self.class.connection_class.allocate
- connection.singleton_class.include(TestConnection)
- connection.send(:initialize, build_test_request(path, **request_params))
- connection.connect if connection.respond_to?(:connect)
+ connection = self.class.connection_class.allocate
+ connection.singleton_class.include(TestConnection)
+ connection.send(:initialize, build_test_request(path, **request_params))
+ connection.connect if connection.respond_to?(:connect)
- # Only set instance variable if connected successfully
- @connection = connection
- end
+ # Only set instance variable if connected successfully
+ @connection = connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -206,11 +206,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 212
- def cookies
- @cookie_jar ||= TestCookieJar.new
- end
+def cookies
+ @cookie_jar ||= TestCookieJar.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -241,14 +241,14 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 205
- def disconnect
- raise "Must be connected!" if connection.nil?
+def disconnect
+ raise "Must be connected!" if connection.nil?
- connection.disconnect if connection.respond_to?(:disconnect)
- @connection = nil
- end
+ connection.disconnect if connection.respond_to?(:disconnect)
+ @connection = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
index 63444f4b27..99fc0e3f6f 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 167
- def connection_class
- if connection = self._connection_class
- connection
- else
- tests determine_default_connection(name)
- end
- end
+def connection_class
+ if connection = self._connection_class
+ connection
+ else
+ tests determine_default_connection(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 175
- def determine_default_connection(name)
- connection = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Connection::Base
- end
- raise NonInferrableConnectionError.new(name) if connection.nil?
- connection
- end
+def determine_default_connection(name)
+ connection = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Connection::Base
+ end
+ raise NonInferrableConnectionError.new(name) if connection.nil?
+ connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 258
- def unsubscribe
- check_subscribed!
- subscription.unsubscribe_from_channel
- end+ Ruby on Rails 8.1.0.rc1
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 219
- def channel_class
- if channel = self._channel_class
- channel
- else
- tests determine_default_channel(name)
- end
- end
+def channel_class
+ if channel = self._channel_class
+ channel
+ else
+ tests determine_default_channel(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 227
- def determine_default_channel(name)
- channel = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Channel::Base
- end
- raise NonInferrableChannelError.new(name) if channel.nil?
- channel
- end
+def determine_default_channel(name)
+ channel = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Channel::Base
+ end
+ raise NonInferrableChannelError.new(name) if channel.nil?
+ channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 208
- def tests(channel)
- case channel
- when String, Symbol
- self._channel_class = channel.to_s.camelize.constantize
- when Module
- self._channel_class = channel
- else
- raise NonInferrableChannelError.new(channel)
- end
- end
+def tests(channel)
+ case channel
+ when String, Symbol
+ self._channel_class = channel.to_s.camelize.constantize
+ when Module
+ self._channel_class = channel
+ else
+ raise NonInferrableChannelError.new(channel)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection.html b/src/classes/ActionCable/Connection.html
index f832214f0e..7889c75284 100644
--- a/src/classes/ActionCable/Connection.html
+++ b/src/classes/ActionCable/Connection.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Assertions.html b/src/classes/ActionCable/Connection/Assertions.html
index 933ea80e4c..6b10ec5528 100644
--- a/src/classes/ActionCable/Connection/Assertions.html
+++ b/src/classes/ActionCable/Connection/Assertions.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 28
- def assert_reject_connection(&block)
- assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
- end
+def assert_reject_connection(&block)
+ assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization.html b/src/classes/ActionCable/Connection/Authorization.html
index feb855aa9e..baf85a37b3 100644
--- a/src/classes/ActionCable/Connection/Authorization.html
+++ b/src/classes/ActionCable/Connection/Authorization.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -97,12 +97,12 @@
# File actioncable/lib/action_cable/connection/authorization.rb, line 12
- def reject_unauthorized_connection
- logger.error "An unauthorized connection attempt was rejected"
- raise UnauthorizedError
- end
+def reject_unauthorized_connection
+ logger.error "An unauthorized connection attempt was rejected"
+ raise UnauthorizedError
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
index b63b282b0b..ff36299a28 100644
--- a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
+++ b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/Base.html b/src/classes/ActionCable/Connection/Base.html
index 36a2f1e1bb..ea0d62911f 100644
--- a/src/classes/ActionCable/Connection/Base.html
+++ b/src/classes/ActionCable/Connection/Base.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -255,21 +255,21 @@
# File actioncable/lib/action_cable/connection/base.rb, line 67
- def initialize(server, env, coder: ActiveSupport::JSON)
- @server, @env, @coder = server, env, coder
+def initialize(server, env, coder: ActiveSupport::JSON)
+ @server, @env, @coder = server, env, coder
- @worker_pool = server.worker_pool
- @logger = new_tagged_logger
+ @worker_pool = server.worker_pool
+ @logger = new_tagged_logger
- @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
+ @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
- @_internal_subscriptions = nil
- @started_at = Time.now
- end
+ @_internal_subscriptions = nil
+ @started_at = Time.now
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -304,11 +304,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 147
- def beat
- transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
- end
+def beat
+ transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -339,16 +339,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 120
- def close(reason: nil, reconnect: true)
- transmit(
- type: ActionCable::INTERNAL[:message_types][:disconnect],
- reason: reason,
- reconnect: reconnect
- )
- websocket.close
- end
+def close(reason: nil, reconnect: true)
+ transmit(
+ type: ActionCable::INTERNAL[:message_types][:disconnect],
+ reason: reason,
+ reconnect: reconnect
+ )
+ websocket.close
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -379,13 +379,13 @@
# File actioncable/lib/action_cable/connection/base.rb, line 109
- def handle_channel_command(payload)
- run_callbacks :command do
- subscriptions.execute_command payload
- end
- end
+def handle_channel_command(payload)
+ run_callbacks :command do
+ subscriptions.execute_command payload
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -416,11 +416,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 131
- def send_async(method, *arguments)
- worker_pool.async_invoke(self, method, *arguments)
- end
+def send_async(method, *arguments)
+ worker_pool.async_invoke(self, method, *arguments)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -451,16 +451,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 138
- def statistics
- {
- identifier: connection_identifier,
- started_at: @started_at,
- subscriptions: subscriptions.identifiers,
- request_id: @env["action_dispatch.request_id"]
- }
- end
+def statistics
+ {
+ identifier: connection_identifier,
+ started_at: @started_at,
+ subscriptions: subscriptions.identifiers,
+ request_id: @env["action_dispatch.request_id"]
+ }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -494,11 +494,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 187
- def cookies # :doc:
- request.cookie_jar
- end
+def cookies # :doc:
+ request.cookie_jar
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -529,14 +529,14 @@
# File actioncable/lib/action_cable/connection/base.rb, line 178
- def request # :doc:
- @request ||= begin
- environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
- ActionDispatch::Request.new(environment || env)
- end
- end
+def request # :doc:
+ @request ||= begin
+ environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
+ ActionDispatch::Request.new(environment || env)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Callbacks.html b/src/classes/ActionCable/Connection/Callbacks.html
index 818958bf81..d6504ca284 100644
--- a/src/classes/ActionCable/Connection/Callbacks.html
+++ b/src/classes/ActionCable/Connection/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
index 933056a029..6376d7195b 100644
--- a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,11 +90,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 47
- def after_command(*methods, &block)
- set_callback(:command, :after, *methods, &block)
- end
+def after_command(*methods, &block)
+ set_callback(:command, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -125,11 +125,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 51
- def around_command(*methods, &block)
- set_callback(:command, :around, *methods, &block)
- end
+def around_command(*methods, &block)
+ set_callback(:command, :around, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -160,11 +160,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 43
- def before_command(*methods, &block)
- set_callback(:command, :before, *methods, &block)
- end
+def before_command(*methods, &block)
+ set_callback(:command, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification.html b/src/classes/ActionCable/Connection/Identification.html
index f3dcea9bfc..063ca88999 100644
--- a/src/classes/ActionCable/Connection/Identification.html
+++ b/src/classes/ActionCable/Connection/Identification.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,15 +95,15 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 29
- def connection_identifier
- unless defined? @connection_identifier
- @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
- end
+def connection_identifier
+ unless defined? @connection_identifier
+ @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
+ end
- @connection_identifier
- end
+ @connection_identifier
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification/ClassMethods.html b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
index 324ded31f5..a3395ef8a3 100644
--- a/src/classes/ActionCable/Connection/Identification/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -84,12 +84,12 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 21
- def identified_by(*identifiers)
- Array(identifiers).each { |identifier| attr_accessor identifier }
- self.identifiers += identifiers
- end
+def identified_by(*identifiers)
+ Array(identifiers).each { |identifier| attr_accessor identifier }
+ self.identifiers += identifiers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/InternalChannel.html b/src/classes/ActionCable/Connection/InternalChannel.html
index 9b0144f690..cfdccceaf4 100644
--- a/src/classes/ActionCable/Connection/InternalChannel.html
+++ b/src/classes/ActionCable/Connection/InternalChannel.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
index 7167904452..bf0c696d62 100644
--- a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
+++ b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 15
- def initialize(name)
- super "Unable to determine the connection to test from #{name}. " +
- "You'll need to specify it using `tests YourConnection` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the connection to test from #{name}. " +
+ "You'll need to specify it using `tests YourConnection` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/StreamEventLoop.html b/src/classes/ActionCable/Connection/StreamEventLoop.html
index 2b71a213e3..f7c49354ef 100644
--- a/src/classes/ActionCable/Connection/StreamEventLoop.html
+++ b/src/classes/ActionCable/Connection/StreamEventLoop.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -111,16 +111,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 10
- def initialize
- @nio = @executor = @thread = nil
- @map = {}
- @stopping = false
- @todo = Queue.new
-
- @spawn_mutex = Mutex.new
- end
+def initialize
+ @nio = @executor = @thread = nil
+ @map = {}
+ @stopping = false
+ @todo = Queue.new
+
+ @spawn_mutex = Mutex.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -155,15 +155,15 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 30
- def attach(io, stream)
- @todo << lambda do
- @map[io] = @nio.register(io, :r)
- @map[io].value = stream
- end
- wakeup
- end
+def attach(io, stream)
+ @todo << lambda do
+ @map[io] = @nio.register(io, :r)
+ @map[io].value = stream
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -194,16 +194,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 38
- def detach(io, stream)
- @todo << lambda do
- @nio.deregister io
- @map.delete io
- io.close
- end
- wakeup
- end
+def detach(io, stream)
+ @todo << lambda do
+ @nio.deregister io
+ @map.delete io
+ io.close
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -234,14 +234,14 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 23
- def post(task = nil, &block)
- task ||= block
+def post(task = nil, &block)
+ task ||= block
- spawn
- @executor << task
- end
+ spawn
+ @executor << task
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,12 +272,12 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 56
- def stop
- @stopping = true
- wakeup if @nio
- end
+def stop
+ @stopping = true
+ wakeup if @nio
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -308,11 +308,11 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 19
- def timer(interval, &block)
- Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
- end
+def timer(interval, &block)
+ Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -343,16 +343,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 47
- def writes_pending(io)
- @todo << lambda do
- if monitor = @map[io]
- monitor.interests = :rw
- end
- end
- wakeup
- end
+def writes_pending(io)
+ @todo << lambda do
+ if monitor = @map[io]
+ monitor.interests = :rw
+ end
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
index f4d5cacc63..99731855fb 100644
--- a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
+++ b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -121,12 +121,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 16
- def initialize(logger, tags:)
- @logger = logger
- @tags = tags.flatten
- end
+def initialize(logger, tags:)
+ @logger = logger
+ @tags = tags.flatten
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -161,12 +161,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 21
- def add_tags(*tags)
- @tags += tags.flatten
- @tags = @tags.uniq
- end
+def add_tags(*tags)
+ @tags += tags.flatten
+ @tags = @tags.uniq
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -197,16 +197,16 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 26
- def tag(logger, &block)
- if logger.respond_to?(:tagged)
- current_tags = tags - logger.formatter.current_tags
- logger.tagged(*current_tags, &block)
- else
- yield
- end
- end
+def tag(logger, &block)
+ if logger.respond_to?(:tagged)
+ current_tags = tags - logger.formatter.current_tags
+ logger.tagged(*current_tags, &block)
+ else
+ yield
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,11 +240,11 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 42
- def log(type, message, &block) # :doc:
- tag(@logger) { @logger.send type, message, &block }
- end
+def log(type, message, &block) # :doc:
+ tag(@logger) { @logger.send type, message, &block }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase.html b/src/classes/ActionCable/Connection/TestCase.html
index 948378e491..39bc5cb056 100644
--- a/src/classes/ActionCable/Connection/TestCase.html
+++ b/src/classes/ActionCable/Connection/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior.html b/src/classes/ActionCable/Connection/TestCase/Behavior.html
index b87870becd..4ee0debbea 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -163,19 +163,19 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 192
- def connect(path = ActionCable.server.config.mount_path, **request_params)
- path ||= DEFAULT_PATH
+def connect(path = ActionCable.server.config.mount_path, **request_params)
+ path ||= DEFAULT_PATH
- connection = self.class.connection_class.allocate
- connection.singleton_class.include(TestConnection)
- connection.send(:initialize, build_test_request(path, **request_params))
- connection.connect if connection.respond_to?(:connect)
+ connection = self.class.connection_class.allocate
+ connection.singleton_class.include(TestConnection)
+ connection.send(:initialize, build_test_request(path, **request_params))
+ connection.connect if connection.respond_to?(:connect)
- # Only set instance variable if connected successfully
- @connection = connection
- end
+ # Only set instance variable if connected successfully
+ @connection = connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -206,11 +206,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 212
- def cookies
- @cookie_jar ||= TestCookieJar.new
- end
+def cookies
+ @cookie_jar ||= TestCookieJar.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -241,14 +241,14 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 205
- def disconnect
- raise "Must be connected!" if connection.nil?
+def disconnect
+ raise "Must be connected!" if connection.nil?
- connection.disconnect if connection.respond_to?(:disconnect)
- @connection = nil
- end
+ connection.disconnect if connection.respond_to?(:disconnect)
+ @connection = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
index 63444f4b27..99fc0e3f6f 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 167
- def connection_class
- if connection = self._connection_class
- connection
- else
- tests determine_default_connection(name)
- end
- end
+def connection_class
+ if connection = self._connection_class
+ connection
+ else
+ tests determine_default_connection(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 175
- def determine_default_connection(name)
- connection = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Connection::Base
- end
- raise NonInferrableConnectionError.new(name) if connection.nil?
- connection
- end
+def determine_default_connection(name)
+ connection = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Connection::Base
+ end
+ raise NonInferrableConnectionError.new(name) if connection.nil?
+ connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 219
- def channel_class
- if channel = self._channel_class
- channel
- else
- tests determine_default_channel(name)
- end
- end
+def channel_class
+ if channel = self._channel_class
+ channel
+ else
+ tests determine_default_channel(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 227
- def determine_default_channel(name)
- channel = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Channel::Base
- end
- raise NonInferrableChannelError.new(name) if channel.nil?
- channel
- end
+def determine_default_channel(name)
+ channel = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Channel::Base
+ end
+ raise NonInferrableChannelError.new(name) if channel.nil?
+ channel
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 208
- def tests(channel)
- case channel
- when String, Symbol
- self._channel_class = channel.to_s.camelize.constantize
- when Module
- self._channel_class = channel
- else
- raise NonInferrableChannelError.new(channel)
- end
- end
+def tests(channel)
+ case channel
+ when String, Symbol
+ self._channel_class = channel.to_s.camelize.constantize
+ when Module
+ self._channel_class = channel
+ else
+ raise NonInferrableChannelError.new(channel)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection.html b/src/classes/ActionCable/Connection.html
index f832214f0e..7889c75284 100644
--- a/src/classes/ActionCable/Connection.html
+++ b/src/classes/ActionCable/Connection.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Assertions.html b/src/classes/ActionCable/Connection/Assertions.html
index 933ea80e4c..6b10ec5528 100644
--- a/src/classes/ActionCable/Connection/Assertions.html
+++ b/src/classes/ActionCable/Connection/Assertions.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 28
- def assert_reject_connection(&block)
- assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
- end
+def assert_reject_connection(&block)
+ assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization.html b/src/classes/ActionCable/Connection/Authorization.html
index feb855aa9e..baf85a37b3 100644
--- a/src/classes/ActionCable/Connection/Authorization.html
+++ b/src/classes/ActionCable/Connection/Authorization.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -97,12 +97,12 @@
# File actioncable/lib/action_cable/connection/authorization.rb, line 12
- def reject_unauthorized_connection
- logger.error "An unauthorized connection attempt was rejected"
- raise UnauthorizedError
- end
+def reject_unauthorized_connection
+ logger.error "An unauthorized connection attempt was rejected"
+ raise UnauthorizedError
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
index b63b282b0b..ff36299a28 100644
--- a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
+++ b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/Base.html b/src/classes/ActionCable/Connection/Base.html
index 36a2f1e1bb..ea0d62911f 100644
--- a/src/classes/ActionCable/Connection/Base.html
+++ b/src/classes/ActionCable/Connection/Base.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -255,21 +255,21 @@
# File actioncable/lib/action_cable/connection/base.rb, line 67
- def initialize(server, env, coder: ActiveSupport::JSON)
- @server, @env, @coder = server, env, coder
+def initialize(server, env, coder: ActiveSupport::JSON)
+ @server, @env, @coder = server, env, coder
- @worker_pool = server.worker_pool
- @logger = new_tagged_logger
+ @worker_pool = server.worker_pool
+ @logger = new_tagged_logger
- @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
+ @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
- @_internal_subscriptions = nil
- @started_at = Time.now
- end
+ @_internal_subscriptions = nil
+ @started_at = Time.now
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -304,11 +304,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 147
- def beat
- transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
- end
+def beat
+ transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -339,16 +339,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 120
- def close(reason: nil, reconnect: true)
- transmit(
- type: ActionCable::INTERNAL[:message_types][:disconnect],
- reason: reason,
- reconnect: reconnect
- )
- websocket.close
- end
+def close(reason: nil, reconnect: true)
+ transmit(
+ type: ActionCable::INTERNAL[:message_types][:disconnect],
+ reason: reason,
+ reconnect: reconnect
+ )
+ websocket.close
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -379,13 +379,13 @@
# File actioncable/lib/action_cable/connection/base.rb, line 109
- def handle_channel_command(payload)
- run_callbacks :command do
- subscriptions.execute_command payload
- end
- end
+def handle_channel_command(payload)
+ run_callbacks :command do
+ subscriptions.execute_command payload
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -416,11 +416,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 131
- def send_async(method, *arguments)
- worker_pool.async_invoke(self, method, *arguments)
- end
+def send_async(method, *arguments)
+ worker_pool.async_invoke(self, method, *arguments)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -451,16 +451,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 138
- def statistics
- {
- identifier: connection_identifier,
- started_at: @started_at,
- subscriptions: subscriptions.identifiers,
- request_id: @env["action_dispatch.request_id"]
- }
- end
+def statistics
+ {
+ identifier: connection_identifier,
+ started_at: @started_at,
+ subscriptions: subscriptions.identifiers,
+ request_id: @env["action_dispatch.request_id"]
+ }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -494,11 +494,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 187
- def cookies # :doc:
- request.cookie_jar
- end
+def cookies # :doc:
+ request.cookie_jar
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -529,14 +529,14 @@
# File actioncable/lib/action_cable/connection/base.rb, line 178
- def request # :doc:
- @request ||= begin
- environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
- ActionDispatch::Request.new(environment || env)
- end
- end
+def request # :doc:
+ @request ||= begin
+ environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
+ ActionDispatch::Request.new(environment || env)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Callbacks.html b/src/classes/ActionCable/Connection/Callbacks.html
index 818958bf81..d6504ca284 100644
--- a/src/classes/ActionCable/Connection/Callbacks.html
+++ b/src/classes/ActionCable/Connection/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
index 933056a029..6376d7195b 100644
--- a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,11 +90,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 47
- def after_command(*methods, &block)
- set_callback(:command, :after, *methods, &block)
- end
+def after_command(*methods, &block)
+ set_callback(:command, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -125,11 +125,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 51
- def around_command(*methods, &block)
- set_callback(:command, :around, *methods, &block)
- end
+def around_command(*methods, &block)
+ set_callback(:command, :around, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -160,11 +160,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 43
- def before_command(*methods, &block)
- set_callback(:command, :before, *methods, &block)
- end
+def before_command(*methods, &block)
+ set_callback(:command, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification.html b/src/classes/ActionCable/Connection/Identification.html
index f3dcea9bfc..063ca88999 100644
--- a/src/classes/ActionCable/Connection/Identification.html
+++ b/src/classes/ActionCable/Connection/Identification.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,15 +95,15 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 29
- def connection_identifier
- unless defined? @connection_identifier
- @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
- end
+def connection_identifier
+ unless defined? @connection_identifier
+ @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
+ end
- @connection_identifier
- end
+ @connection_identifier
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification/ClassMethods.html b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
index 324ded31f5..a3395ef8a3 100644
--- a/src/classes/ActionCable/Connection/Identification/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -84,12 +84,12 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 21
- def identified_by(*identifiers)
- Array(identifiers).each { |identifier| attr_accessor identifier }
- self.identifiers += identifiers
- end
+def identified_by(*identifiers)
+ Array(identifiers).each { |identifier| attr_accessor identifier }
+ self.identifiers += identifiers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/InternalChannel.html b/src/classes/ActionCable/Connection/InternalChannel.html
index 9b0144f690..cfdccceaf4 100644
--- a/src/classes/ActionCable/Connection/InternalChannel.html
+++ b/src/classes/ActionCable/Connection/InternalChannel.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
index 7167904452..bf0c696d62 100644
--- a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
+++ b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 15
- def initialize(name)
- super "Unable to determine the connection to test from #{name}. " +
- "You'll need to specify it using `tests YourConnection` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the connection to test from #{name}. " +
+ "You'll need to specify it using `tests YourConnection` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/StreamEventLoop.html b/src/classes/ActionCable/Connection/StreamEventLoop.html
index 2b71a213e3..f7c49354ef 100644
--- a/src/classes/ActionCable/Connection/StreamEventLoop.html
+++ b/src/classes/ActionCable/Connection/StreamEventLoop.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -111,16 +111,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 10
- def initialize
- @nio = @executor = @thread = nil
- @map = {}
- @stopping = false
- @todo = Queue.new
-
- @spawn_mutex = Mutex.new
- end
+def initialize
+ @nio = @executor = @thread = nil
+ @map = {}
+ @stopping = false
+ @todo = Queue.new
+
+ @spawn_mutex = Mutex.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -155,15 +155,15 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 30
- def attach(io, stream)
- @todo << lambda do
- @map[io] = @nio.register(io, :r)
- @map[io].value = stream
- end
- wakeup
- end
+def attach(io, stream)
+ @todo << lambda do
+ @map[io] = @nio.register(io, :r)
+ @map[io].value = stream
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -194,16 +194,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 38
- def detach(io, stream)
- @todo << lambda do
- @nio.deregister io
- @map.delete io
- io.close
- end
- wakeup
- end
+def detach(io, stream)
+ @todo << lambda do
+ @nio.deregister io
+ @map.delete io
+ io.close
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -234,14 +234,14 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 23
- def post(task = nil, &block)
- task ||= block
+def post(task = nil, &block)
+ task ||= block
- spawn
- @executor << task
- end
+ spawn
+ @executor << task
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,12 +272,12 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 56
- def stop
- @stopping = true
- wakeup if @nio
- end
+def stop
+ @stopping = true
+ wakeup if @nio
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -308,11 +308,11 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 19
- def timer(interval, &block)
- Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
- end
+def timer(interval, &block)
+ Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -343,16 +343,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 47
- def writes_pending(io)
- @todo << lambda do
- if monitor = @map[io]
- monitor.interests = :rw
- end
- end
- wakeup
- end
+def writes_pending(io)
+ @todo << lambda do
+ if monitor = @map[io]
+ monitor.interests = :rw
+ end
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
index f4d5cacc63..99731855fb 100644
--- a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
+++ b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -121,12 +121,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 16
- def initialize(logger, tags:)
- @logger = logger
- @tags = tags.flatten
- end
+def initialize(logger, tags:)
+ @logger = logger
+ @tags = tags.flatten
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -161,12 +161,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 21
- def add_tags(*tags)
- @tags += tags.flatten
- @tags = @tags.uniq
- end
+def add_tags(*tags)
+ @tags += tags.flatten
+ @tags = @tags.uniq
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -197,16 +197,16 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 26
- def tag(logger, &block)
- if logger.respond_to?(:tagged)
- current_tags = tags - logger.formatter.current_tags
- logger.tagged(*current_tags, &block)
- else
- yield
- end
- end
+def tag(logger, &block)
+ if logger.respond_to?(:tagged)
+ current_tags = tags - logger.formatter.current_tags
+ logger.tagged(*current_tags, &block)
+ else
+ yield
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,11 +240,11 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 42
- def log(type, message, &block) # :doc:
- tag(@logger) { @logger.send type, message, &block }
- end
+def log(type, message, &block) # :doc:
+ tag(@logger) { @logger.send type, message, &block }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase.html b/src/classes/ActionCable/Connection/TestCase.html
index 948378e491..39bc5cb056 100644
--- a/src/classes/ActionCable/Connection/TestCase.html
+++ b/src/classes/ActionCable/Connection/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior.html b/src/classes/ActionCable/Connection/TestCase/Behavior.html
index b87870becd..4ee0debbea 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -163,19 +163,19 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 192
- def connect(path = ActionCable.server.config.mount_path, **request_params)
- path ||= DEFAULT_PATH
+def connect(path = ActionCable.server.config.mount_path, **request_params)
+ path ||= DEFAULT_PATH
- connection = self.class.connection_class.allocate
- connection.singleton_class.include(TestConnection)
- connection.send(:initialize, build_test_request(path, **request_params))
- connection.connect if connection.respond_to?(:connect)
+ connection = self.class.connection_class.allocate
+ connection.singleton_class.include(TestConnection)
+ connection.send(:initialize, build_test_request(path, **request_params))
+ connection.connect if connection.respond_to?(:connect)
- # Only set instance variable if connected successfully
- @connection = connection
- end
+ # Only set instance variable if connected successfully
+ @connection = connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -206,11 +206,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 212
- def cookies
- @cookie_jar ||= TestCookieJar.new
- end
+def cookies
+ @cookie_jar ||= TestCookieJar.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -241,14 +241,14 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 205
- def disconnect
- raise "Must be connected!" if connection.nil?
+def disconnect
+ raise "Must be connected!" if connection.nil?
- connection.disconnect if connection.respond_to?(:disconnect)
- @connection = nil
- end
+ connection.disconnect if connection.respond_to?(:disconnect)
+ @connection = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
index 63444f4b27..99fc0e3f6f 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 167
- def connection_class
- if connection = self._connection_class
- connection
- else
- tests determine_default_connection(name)
- end
- end
+def connection_class
+ if connection = self._connection_class
+ connection
+ else
+ tests determine_default_connection(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 175
- def determine_default_connection(name)
- connection = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Connection::Base
- end
- raise NonInferrableConnectionError.new(name) if connection.nil?
- connection
- end
+def determine_default_connection(name)
+ connection = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Connection::Base
+ end
+ raise NonInferrableConnectionError.new(name) if connection.nil?
+ connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/channel/test_case.rb, line 227
- def determine_default_channel(name)
- channel = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Channel::Base
- end
- raise NonInferrableChannelError.new(name) if channel.nil?
- channel
- end# File actioncable/lib/action_cable/channel/test_case.rb, line 208
- def tests(channel)
- case channel
- when String, Symbol
- self._channel_class = channel.to_s.camelize.constantize
- when Module
- self._channel_class = channel
- else
- raise NonInferrableChannelError.new(channel)
- end
- end
+def tests(channel)
+ case channel
+ when String, Symbol
+ self._channel_class = channel.to_s.camelize.constantize
+ when Module
+ self._channel_class = channel
+ else
+ raise NonInferrableChannelError.new(channel)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection.html b/src/classes/ActionCable/Connection.html
index f832214f0e..7889c75284 100644
--- a/src/classes/ActionCable/Connection.html
+++ b/src/classes/ActionCable/Connection.html
@@ -5,7 +5,7 @@
+ Ruby on Rails 8.1.0.rc1
diff --git a/src/classes/ActionCable/Connection/Assertions.html b/src/classes/ActionCable/Connection/Assertions.html
index 933ea80e4c..6b10ec5528 100644
--- a/src/classes/ActionCable/Connection/Assertions.html
+++ b/src/classes/ActionCable/Connection/Assertions.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -86,11 +86,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 28
- def assert_reject_connection(&block)
- assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
- end
+def assert_reject_connection(&block)
+ assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization.html b/src/classes/ActionCable/Connection/Authorization.html
index feb855aa9e..baf85a37b3 100644
--- a/src/classes/ActionCable/Connection/Authorization.html
+++ b/src/classes/ActionCable/Connection/Authorization.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -97,12 +97,12 @@
# File actioncable/lib/action_cable/connection/authorization.rb, line 12
- def reject_unauthorized_connection
- logger.error "An unauthorized connection attempt was rejected"
- raise UnauthorizedError
- end
+def reject_unauthorized_connection
+ logger.error "An unauthorized connection attempt was rejected"
+ raise UnauthorizedError
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
index b63b282b0b..ff36299a28 100644
--- a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
+++ b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/Base.html b/src/classes/ActionCable/Connection/Base.html
index 36a2f1e1bb..ea0d62911f 100644
--- a/src/classes/ActionCable/Connection/Base.html
+++ b/src/classes/ActionCable/Connection/Base.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -255,21 +255,21 @@
# File actioncable/lib/action_cable/connection/base.rb, line 67
- def initialize(server, env, coder: ActiveSupport::JSON)
- @server, @env, @coder = server, env, coder
+def initialize(server, env, coder: ActiveSupport::JSON)
+ @server, @env, @coder = server, env, coder
- @worker_pool = server.worker_pool
- @logger = new_tagged_logger
+ @worker_pool = server.worker_pool
+ @logger = new_tagged_logger
- @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
+ @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
- @_internal_subscriptions = nil
- @started_at = Time.now
- end
+ @_internal_subscriptions = nil
+ @started_at = Time.now
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -304,11 +304,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 147
- def beat
- transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
- end
+def beat
+ transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -339,16 +339,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 120
- def close(reason: nil, reconnect: true)
- transmit(
- type: ActionCable::INTERNAL[:message_types][:disconnect],
- reason: reason,
- reconnect: reconnect
- )
- websocket.close
- end
+def close(reason: nil, reconnect: true)
+ transmit(
+ type: ActionCable::INTERNAL[:message_types][:disconnect],
+ reason: reason,
+ reconnect: reconnect
+ )
+ websocket.close
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -379,13 +379,13 @@
# File actioncable/lib/action_cable/connection/base.rb, line 109
- def handle_channel_command(payload)
- run_callbacks :command do
- subscriptions.execute_command payload
- end
- end
+def handle_channel_command(payload)
+ run_callbacks :command do
+ subscriptions.execute_command payload
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -416,11 +416,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 131
- def send_async(method, *arguments)
- worker_pool.async_invoke(self, method, *arguments)
- end
+def send_async(method, *arguments)
+ worker_pool.async_invoke(self, method, *arguments)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -451,16 +451,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 138
- def statistics
- {
- identifier: connection_identifier,
- started_at: @started_at,
- subscriptions: subscriptions.identifiers,
- request_id: @env["action_dispatch.request_id"]
- }
- end
+def statistics
+ {
+ identifier: connection_identifier,
+ started_at: @started_at,
+ subscriptions: subscriptions.identifiers,
+ request_id: @env["action_dispatch.request_id"]
+ }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -494,11 +494,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 187
- def cookies # :doc:
- request.cookie_jar
- end
+def cookies # :doc:
+ request.cookie_jar
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -529,14 +529,14 @@
# File actioncable/lib/action_cable/connection/base.rb, line 178
- def request # :doc:
- @request ||= begin
- environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
- ActionDispatch::Request.new(environment || env)
- end
- end
+def request # :doc:
+ @request ||= begin
+ environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
+ ActionDispatch::Request.new(environment || env)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Callbacks.html b/src/classes/ActionCable/Connection/Callbacks.html
index 818958bf81..d6504ca284 100644
--- a/src/classes/ActionCable/Connection/Callbacks.html
+++ b/src/classes/ActionCable/Connection/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
index 933056a029..6376d7195b 100644
--- a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,11 +90,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 47
- def after_command(*methods, &block)
- set_callback(:command, :after, *methods, &block)
- end
+def after_command(*methods, &block)
+ set_callback(:command, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -125,11 +125,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 51
- def around_command(*methods, &block)
- set_callback(:command, :around, *methods, &block)
- end
+def around_command(*methods, &block)
+ set_callback(:command, :around, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -160,11 +160,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 43
- def before_command(*methods, &block)
- set_callback(:command, :before, *methods, &block)
- end
+def before_command(*methods, &block)
+ set_callback(:command, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification.html b/src/classes/ActionCable/Connection/Identification.html
index f3dcea9bfc..063ca88999 100644
--- a/src/classes/ActionCable/Connection/Identification.html
+++ b/src/classes/ActionCable/Connection/Identification.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,15 +95,15 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 29
- def connection_identifier
- unless defined? @connection_identifier
- @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
- end
+def connection_identifier
+ unless defined? @connection_identifier
+ @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
+ end
- @connection_identifier
- end
+ @connection_identifier
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification/ClassMethods.html b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
index 324ded31f5..a3395ef8a3 100644
--- a/src/classes/ActionCable/Connection/Identification/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -84,12 +84,12 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 21
- def identified_by(*identifiers)
- Array(identifiers).each { |identifier| attr_accessor identifier }
- self.identifiers += identifiers
- end
+def identified_by(*identifiers)
+ Array(identifiers).each { |identifier| attr_accessor identifier }
+ self.identifiers += identifiers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/InternalChannel.html b/src/classes/ActionCable/Connection/InternalChannel.html
index 9b0144f690..cfdccceaf4 100644
--- a/src/classes/ActionCable/Connection/InternalChannel.html
+++ b/src/classes/ActionCable/Connection/InternalChannel.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
index 7167904452..bf0c696d62 100644
--- a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
+++ b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 15
- def initialize(name)
- super "Unable to determine the connection to test from #{name}. " +
- "You'll need to specify it using `tests YourConnection` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the connection to test from #{name}. " +
+ "You'll need to specify it using `tests YourConnection` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/StreamEventLoop.html b/src/classes/ActionCable/Connection/StreamEventLoop.html
index 2b71a213e3..f7c49354ef 100644
--- a/src/classes/ActionCable/Connection/StreamEventLoop.html
+++ b/src/classes/ActionCable/Connection/StreamEventLoop.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -111,16 +111,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 10
- def initialize
- @nio = @executor = @thread = nil
- @map = {}
- @stopping = false
- @todo = Queue.new
-
- @spawn_mutex = Mutex.new
- end
+def initialize
+ @nio = @executor = @thread = nil
+ @map = {}
+ @stopping = false
+ @todo = Queue.new
+
+ @spawn_mutex = Mutex.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -155,15 +155,15 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 30
- def attach(io, stream)
- @todo << lambda do
- @map[io] = @nio.register(io, :r)
- @map[io].value = stream
- end
- wakeup
- end
+def attach(io, stream)
+ @todo << lambda do
+ @map[io] = @nio.register(io, :r)
+ @map[io].value = stream
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -194,16 +194,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 38
- def detach(io, stream)
- @todo << lambda do
- @nio.deregister io
- @map.delete io
- io.close
- end
- wakeup
- end
+def detach(io, stream)
+ @todo << lambda do
+ @nio.deregister io
+ @map.delete io
+ io.close
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -234,14 +234,14 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 23
- def post(task = nil, &block)
- task ||= block
+def post(task = nil, &block)
+ task ||= block
- spawn
- @executor << task
- end
+ spawn
+ @executor << task
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,12 +272,12 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 56
- def stop
- @stopping = true
- wakeup if @nio
- end
+def stop
+ @stopping = true
+ wakeup if @nio
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -308,11 +308,11 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 19
- def timer(interval, &block)
- Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
- end
+def timer(interval, &block)
+ Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -343,16 +343,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 47
- def writes_pending(io)
- @todo << lambda do
- if monitor = @map[io]
- monitor.interests = :rw
- end
- end
- wakeup
- end
+def writes_pending(io)
+ @todo << lambda do
+ if monitor = @map[io]
+ monitor.interests = :rw
+ end
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
index f4d5cacc63..99731855fb 100644
--- a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
+++ b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -121,12 +121,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 16
- def initialize(logger, tags:)
- @logger = logger
- @tags = tags.flatten
- end
+def initialize(logger, tags:)
+ @logger = logger
+ @tags = tags.flatten
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -161,12 +161,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 21
- def add_tags(*tags)
- @tags += tags.flatten
- @tags = @tags.uniq
- end
+def add_tags(*tags)
+ @tags += tags.flatten
+ @tags = @tags.uniq
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -197,16 +197,16 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 26
- def tag(logger, &block)
- if logger.respond_to?(:tagged)
- current_tags = tags - logger.formatter.current_tags
- logger.tagged(*current_tags, &block)
- else
- yield
- end
- end
+def tag(logger, &block)
+ if logger.respond_to?(:tagged)
+ current_tags = tags - logger.formatter.current_tags
+ logger.tagged(*current_tags, &block)
+ else
+ yield
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,11 +240,11 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 42
- def log(type, message, &block) # :doc:
- tag(@logger) { @logger.send type, message, &block }
- end
+def log(type, message, &block) # :doc:
+ tag(@logger) { @logger.send type, message, &block }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase.html b/src/classes/ActionCable/Connection/TestCase.html
index 948378e491..39bc5cb056 100644
--- a/src/classes/ActionCable/Connection/TestCase.html
+++ b/src/classes/ActionCable/Connection/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior.html b/src/classes/ActionCable/Connection/TestCase/Behavior.html
index b87870becd..4ee0debbea 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -163,19 +163,19 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 192
- def connect(path = ActionCable.server.config.mount_path, **request_params)
- path ||= DEFAULT_PATH
+def connect(path = ActionCable.server.config.mount_path, **request_params)
+ path ||= DEFAULT_PATH
- connection = self.class.connection_class.allocate
- connection.singleton_class.include(TestConnection)
- connection.send(:initialize, build_test_request(path, **request_params))
- connection.connect if connection.respond_to?(:connect)
+ connection = self.class.connection_class.allocate
+ connection.singleton_class.include(TestConnection)
+ connection.send(:initialize, build_test_request(path, **request_params))
+ connection.connect if connection.respond_to?(:connect)
- # Only set instance variable if connected successfully
- @connection = connection
- end
+ # Only set instance variable if connected successfully
+ @connection = connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -206,11 +206,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 212
- def cookies
- @cookie_jar ||= TestCookieJar.new
- end
+def cookies
+ @cookie_jar ||= TestCookieJar.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -241,14 +241,14 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 205
- def disconnect
- raise "Must be connected!" if connection.nil?
+def disconnect
+ raise "Must be connected!" if connection.nil?
- connection.disconnect if connection.respond_to?(:disconnect)
- @connection = nil
- end
+ connection.disconnect if connection.respond_to?(:disconnect)
+ @connection = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
index 63444f4b27..99fc0e3f6f 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 167
- def connection_class
- if connection = self._connection_class
- connection
- else
- tests determine_default_connection(name)
- end
- end
+def connection_class
+ if connection = self._connection_class
+ connection
+ else
+ tests determine_default_connection(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 175
- def determine_default_connection(name)
- connection = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Connection::Base
- end
- raise NonInferrableConnectionError.new(name) if connection.nil?
- connection
- end
+def determine_default_connection(name)
+ connection = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Connection::Base
+ end
+ raise NonInferrableConnectionError.new(name) if connection.nil?
+ connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
+ Ruby on Rails 8.1.0.rc1
@@ -86,11 +86,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 28
- def assert_reject_connection(&block)
- assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
- end
+def assert_reject_connection(&block)
+ assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization.html b/src/classes/ActionCable/Connection/Authorization.html
index feb855aa9e..baf85a37b3 100644
--- a/src/classes/ActionCable/Connection/Authorization.html
+++ b/src/classes/ActionCable/Connection/Authorization.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -97,12 +97,12 @@
# File actioncable/lib/action_cable/connection/authorization.rb, line 12
- def reject_unauthorized_connection
- logger.error "An unauthorized connection attempt was rejected"
- raise UnauthorizedError
- end
+def reject_unauthorized_connection
+ logger.error "An unauthorized connection attempt was rejected"
+ raise UnauthorizedError
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
index b63b282b0b..ff36299a28 100644
--- a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
+++ b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/Base.html b/src/classes/ActionCable/Connection/Base.html
index 36a2f1e1bb..ea0d62911f 100644
--- a/src/classes/ActionCable/Connection/Base.html
+++ b/src/classes/ActionCable/Connection/Base.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -255,21 +255,21 @@
# File actioncable/lib/action_cable/connection/base.rb, line 67
- def initialize(server, env, coder: ActiveSupport::JSON)
- @server, @env, @coder = server, env, coder
+def initialize(server, env, coder: ActiveSupport::JSON)
+ @server, @env, @coder = server, env, coder
- @worker_pool = server.worker_pool
- @logger = new_tagged_logger
+ @worker_pool = server.worker_pool
+ @logger = new_tagged_logger
- @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
+ @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
- @_internal_subscriptions = nil
- @started_at = Time.now
- end
+ @_internal_subscriptions = nil
+ @started_at = Time.now
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -304,11 +304,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 147
- def beat
- transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
- end
+def beat
+ transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -339,16 +339,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 120
- def close(reason: nil, reconnect: true)
- transmit(
- type: ActionCable::INTERNAL[:message_types][:disconnect],
- reason: reason,
- reconnect: reconnect
- )
- websocket.close
- end
+def close(reason: nil, reconnect: true)
+ transmit(
+ type: ActionCable::INTERNAL[:message_types][:disconnect],
+ reason: reason,
+ reconnect: reconnect
+ )
+ websocket.close
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -379,13 +379,13 @@
# File actioncable/lib/action_cable/connection/base.rb, line 109
- def handle_channel_command(payload)
- run_callbacks :command do
- subscriptions.execute_command payload
- end
- end
+def handle_channel_command(payload)
+ run_callbacks :command do
+ subscriptions.execute_command payload
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -416,11 +416,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 131
- def send_async(method, *arguments)
- worker_pool.async_invoke(self, method, *arguments)
- end
+def send_async(method, *arguments)
+ worker_pool.async_invoke(self, method, *arguments)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -451,16 +451,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 138
- def statistics
- {
- identifier: connection_identifier,
- started_at: @started_at,
- subscriptions: subscriptions.identifiers,
- request_id: @env["action_dispatch.request_id"]
- }
- end
+def statistics
+ {
+ identifier: connection_identifier,
+ started_at: @started_at,
+ subscriptions: subscriptions.identifiers,
+ request_id: @env["action_dispatch.request_id"]
+ }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -494,11 +494,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 187
- def cookies # :doc:
- request.cookie_jar
- end
+def cookies # :doc:
+ request.cookie_jar
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -529,14 +529,14 @@
# File actioncable/lib/action_cable/connection/base.rb, line 178
- def request # :doc:
- @request ||= begin
- environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
- ActionDispatch::Request.new(environment || env)
- end
- end
+def request # :doc:
+ @request ||= begin
+ environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
+ ActionDispatch::Request.new(environment || env)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Callbacks.html b/src/classes/ActionCable/Connection/Callbacks.html
index 818958bf81..d6504ca284 100644
--- a/src/classes/ActionCable/Connection/Callbacks.html
+++ b/src/classes/ActionCable/Connection/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
index 933056a029..6376d7195b 100644
--- a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,11 +90,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 47
- def after_command(*methods, &block)
- set_callback(:command, :after, *methods, &block)
- end
+def after_command(*methods, &block)
+ set_callback(:command, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -125,11 +125,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 51
- def around_command(*methods, &block)
- set_callback(:command, :around, *methods, &block)
- end
+def around_command(*methods, &block)
+ set_callback(:command, :around, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -160,11 +160,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 43
- def before_command(*methods, &block)
- set_callback(:command, :before, *methods, &block)
- end
+def before_command(*methods, &block)
+ set_callback(:command, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification.html b/src/classes/ActionCable/Connection/Identification.html
index f3dcea9bfc..063ca88999 100644
--- a/src/classes/ActionCable/Connection/Identification.html
+++ b/src/classes/ActionCable/Connection/Identification.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,15 +95,15 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 29
- def connection_identifier
- unless defined? @connection_identifier
- @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
- end
+def connection_identifier
+ unless defined? @connection_identifier
+ @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
+ end
- @connection_identifier
- end
+ @connection_identifier
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification/ClassMethods.html b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
index 324ded31f5..a3395ef8a3 100644
--- a/src/classes/ActionCable/Connection/Identification/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -84,12 +84,12 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 21
- def identified_by(*identifiers)
- Array(identifiers).each { |identifier| attr_accessor identifier }
- self.identifiers += identifiers
- end
+def identified_by(*identifiers)
+ Array(identifiers).each { |identifier| attr_accessor identifier }
+ self.identifiers += identifiers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/InternalChannel.html b/src/classes/ActionCable/Connection/InternalChannel.html
index 9b0144f690..cfdccceaf4 100644
--- a/src/classes/ActionCable/Connection/InternalChannel.html
+++ b/src/classes/ActionCable/Connection/InternalChannel.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
index 7167904452..bf0c696d62 100644
--- a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
+++ b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 15
- def initialize(name)
- super "Unable to determine the connection to test from #{name}. " +
- "You'll need to specify it using `tests YourConnection` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the connection to test from #{name}. " +
+ "You'll need to specify it using `tests YourConnection` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/StreamEventLoop.html b/src/classes/ActionCable/Connection/StreamEventLoop.html
index 2b71a213e3..f7c49354ef 100644
--- a/src/classes/ActionCable/Connection/StreamEventLoop.html
+++ b/src/classes/ActionCable/Connection/StreamEventLoop.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -111,16 +111,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 10
- def initialize
- @nio = @executor = @thread = nil
- @map = {}
- @stopping = false
- @todo = Queue.new
-
- @spawn_mutex = Mutex.new
- end
+def initialize
+ @nio = @executor = @thread = nil
+ @map = {}
+ @stopping = false
+ @todo = Queue.new
+
+ @spawn_mutex = Mutex.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -155,15 +155,15 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 30
- def attach(io, stream)
- @todo << lambda do
- @map[io] = @nio.register(io, :r)
- @map[io].value = stream
- end
- wakeup
- end
+def attach(io, stream)
+ @todo << lambda do
+ @map[io] = @nio.register(io, :r)
+ @map[io].value = stream
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -194,16 +194,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 38
- def detach(io, stream)
- @todo << lambda do
- @nio.deregister io
- @map.delete io
- io.close
- end
- wakeup
- end
+def detach(io, stream)
+ @todo << lambda do
+ @nio.deregister io
+ @map.delete io
+ io.close
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -234,14 +234,14 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 23
- def post(task = nil, &block)
- task ||= block
+def post(task = nil, &block)
+ task ||= block
- spawn
- @executor << task
- end
+ spawn
+ @executor << task
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,12 +272,12 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 56
- def stop
- @stopping = true
- wakeup if @nio
- end
+def stop
+ @stopping = true
+ wakeup if @nio
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -308,11 +308,11 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 19
- def timer(interval, &block)
- Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
- end
+def timer(interval, &block)
+ Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -343,16 +343,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 47
- def writes_pending(io)
- @todo << lambda do
- if monitor = @map[io]
- monitor.interests = :rw
- end
- end
- wakeup
- end
+def writes_pending(io)
+ @todo << lambda do
+ if monitor = @map[io]
+ monitor.interests = :rw
+ end
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
index f4d5cacc63..99731855fb 100644
--- a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
+++ b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -121,12 +121,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 16
- def initialize(logger, tags:)
- @logger = logger
- @tags = tags.flatten
- end
+def initialize(logger, tags:)
+ @logger = logger
+ @tags = tags.flatten
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -161,12 +161,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 21
- def add_tags(*tags)
- @tags += tags.flatten
- @tags = @tags.uniq
- end
+def add_tags(*tags)
+ @tags += tags.flatten
+ @tags = @tags.uniq
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -197,16 +197,16 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 26
- def tag(logger, &block)
- if logger.respond_to?(:tagged)
- current_tags = tags - logger.formatter.current_tags
- logger.tagged(*current_tags, &block)
- else
- yield
- end
- end
+def tag(logger, &block)
+ if logger.respond_to?(:tagged)
+ current_tags = tags - logger.formatter.current_tags
+ logger.tagged(*current_tags, &block)
+ else
+ yield
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,11 +240,11 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 42
- def log(type, message, &block) # :doc:
- tag(@logger) { @logger.send type, message, &block }
- end
+def log(type, message, &block) # :doc:
+ tag(@logger) { @logger.send type, message, &block }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase.html b/src/classes/ActionCable/Connection/TestCase.html
index 948378e491..39bc5cb056 100644
--- a/src/classes/ActionCable/Connection/TestCase.html
+++ b/src/classes/ActionCable/Connection/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior.html b/src/classes/ActionCable/Connection/TestCase/Behavior.html
index b87870becd..4ee0debbea 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -163,19 +163,19 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 192
- def connect(path = ActionCable.server.config.mount_path, **request_params)
- path ||= DEFAULT_PATH
+def connect(path = ActionCable.server.config.mount_path, **request_params)
+ path ||= DEFAULT_PATH
- connection = self.class.connection_class.allocate
- connection.singleton_class.include(TestConnection)
- connection.send(:initialize, build_test_request(path, **request_params))
- connection.connect if connection.respond_to?(:connect)
+ connection = self.class.connection_class.allocate
+ connection.singleton_class.include(TestConnection)
+ connection.send(:initialize, build_test_request(path, **request_params))
+ connection.connect if connection.respond_to?(:connect)
- # Only set instance variable if connected successfully
- @connection = connection
- end
+ # Only set instance variable if connected successfully
+ @connection = connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -206,11 +206,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 212
- def cookies
- @cookie_jar ||= TestCookieJar.new
- end
+def cookies
+ @cookie_jar ||= TestCookieJar.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -241,14 +241,14 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 205
- def disconnect
- raise "Must be connected!" if connection.nil?
+def disconnect
+ raise "Must be connected!" if connection.nil?
- connection.disconnect if connection.respond_to?(:disconnect)
- @connection = nil
- end
+ connection.disconnect if connection.respond_to?(:disconnect)
+ @connection = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
index 63444f4b27..99fc0e3f6f 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 167
- def connection_class
- if connection = self._connection_class
- connection
- else
- tests determine_default_connection(name)
- end
- end
+def connection_class
+ if connection = self._connection_class
+ connection
+ else
+ tests determine_default_connection(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 175
- def determine_default_connection(name)
- connection = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Connection::Base
- end
- raise NonInferrableConnectionError.new(name) if connection.nil?
- connection
- end
+def determine_default_connection(name)
+ connection = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Connection::Base
+ end
+ raise NonInferrableConnectionError.new(name) if connection.nil?
+ connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 28
- def assert_reject_connection(&block)
- assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
- end
+def assert_reject_connection(&block)
+ assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization.html b/src/classes/ActionCable/Connection/Authorization.html
index feb855aa9e..baf85a37b3 100644
--- a/src/classes/ActionCable/Connection/Authorization.html
+++ b/src/classes/ActionCable/Connection/Authorization.html
@@ -5,7 +5,7 @@
+ Ruby on Rails 8.1.0.rc1
@@ -97,12 +97,12 @@
# File actioncable/lib/action_cable/connection/authorization.rb, line 12
- def reject_unauthorized_connection
- logger.error "An unauthorized connection attempt was rejected"
- raise UnauthorizedError
- end
+def reject_unauthorized_connection
+ logger.error "An unauthorized connection attempt was rejected"
+ raise UnauthorizedError
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
index b63b282b0b..ff36299a28 100644
--- a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
+++ b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/Base.html b/src/classes/ActionCable/Connection/Base.html
index 36a2f1e1bb..ea0d62911f 100644
--- a/src/classes/ActionCable/Connection/Base.html
+++ b/src/classes/ActionCable/Connection/Base.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -255,21 +255,21 @@
# File actioncable/lib/action_cable/connection/base.rb, line 67
- def initialize(server, env, coder: ActiveSupport::JSON)
- @server, @env, @coder = server, env, coder
+def initialize(server, env, coder: ActiveSupport::JSON)
+ @server, @env, @coder = server, env, coder
- @worker_pool = server.worker_pool
- @logger = new_tagged_logger
+ @worker_pool = server.worker_pool
+ @logger = new_tagged_logger
- @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
+ @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
- @_internal_subscriptions = nil
- @started_at = Time.now
- end
+ @_internal_subscriptions = nil
+ @started_at = Time.now
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -304,11 +304,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 147
- def beat
- transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
- end
+def beat
+ transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -339,16 +339,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 120
- def close(reason: nil, reconnect: true)
- transmit(
- type: ActionCable::INTERNAL[:message_types][:disconnect],
- reason: reason,
- reconnect: reconnect
- )
- websocket.close
- end
+def close(reason: nil, reconnect: true)
+ transmit(
+ type: ActionCable::INTERNAL[:message_types][:disconnect],
+ reason: reason,
+ reconnect: reconnect
+ )
+ websocket.close
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -379,13 +379,13 @@
# File actioncable/lib/action_cable/connection/base.rb, line 109
- def handle_channel_command(payload)
- run_callbacks :command do
- subscriptions.execute_command payload
- end
- end
+def handle_channel_command(payload)
+ run_callbacks :command do
+ subscriptions.execute_command payload
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -416,11 +416,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 131
- def send_async(method, *arguments)
- worker_pool.async_invoke(self, method, *arguments)
- end
+def send_async(method, *arguments)
+ worker_pool.async_invoke(self, method, *arguments)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -451,16 +451,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 138
- def statistics
- {
- identifier: connection_identifier,
- started_at: @started_at,
- subscriptions: subscriptions.identifiers,
- request_id: @env["action_dispatch.request_id"]
- }
- end
+def statistics
+ {
+ identifier: connection_identifier,
+ started_at: @started_at,
+ subscriptions: subscriptions.identifiers,
+ request_id: @env["action_dispatch.request_id"]
+ }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -494,11 +494,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 187
- def cookies # :doc:
- request.cookie_jar
- end
+def cookies # :doc:
+ request.cookie_jar
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -529,14 +529,14 @@
# File actioncable/lib/action_cable/connection/base.rb, line 178
- def request # :doc:
- @request ||= begin
- environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
- ActionDispatch::Request.new(environment || env)
- end
- end
+def request # :doc:
+ @request ||= begin
+ environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
+ ActionDispatch::Request.new(environment || env)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Callbacks.html b/src/classes/ActionCable/Connection/Callbacks.html
index 818958bf81..d6504ca284 100644
--- a/src/classes/ActionCable/Connection/Callbacks.html
+++ b/src/classes/ActionCable/Connection/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
index 933056a029..6376d7195b 100644
--- a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,11 +90,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 47
- def after_command(*methods, &block)
- set_callback(:command, :after, *methods, &block)
- end
+def after_command(*methods, &block)
+ set_callback(:command, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -125,11 +125,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 51
- def around_command(*methods, &block)
- set_callback(:command, :around, *methods, &block)
- end
+def around_command(*methods, &block)
+ set_callback(:command, :around, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -160,11 +160,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 43
- def before_command(*methods, &block)
- set_callback(:command, :before, *methods, &block)
- end
+def before_command(*methods, &block)
+ set_callback(:command, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification.html b/src/classes/ActionCable/Connection/Identification.html
index f3dcea9bfc..063ca88999 100644
--- a/src/classes/ActionCable/Connection/Identification.html
+++ b/src/classes/ActionCable/Connection/Identification.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,15 +95,15 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 29
- def connection_identifier
- unless defined? @connection_identifier
- @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
- end
+def connection_identifier
+ unless defined? @connection_identifier
+ @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
+ end
- @connection_identifier
- end
+ @connection_identifier
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification/ClassMethods.html b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
index 324ded31f5..a3395ef8a3 100644
--- a/src/classes/ActionCable/Connection/Identification/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -84,12 +84,12 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 21
- def identified_by(*identifiers)
- Array(identifiers).each { |identifier| attr_accessor identifier }
- self.identifiers += identifiers
- end
+def identified_by(*identifiers)
+ Array(identifiers).each { |identifier| attr_accessor identifier }
+ self.identifiers += identifiers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/InternalChannel.html b/src/classes/ActionCable/Connection/InternalChannel.html
index 9b0144f690..cfdccceaf4 100644
--- a/src/classes/ActionCable/Connection/InternalChannel.html
+++ b/src/classes/ActionCable/Connection/InternalChannel.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
index 7167904452..bf0c696d62 100644
--- a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
+++ b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 15
- def initialize(name)
- super "Unable to determine the connection to test from #{name}. " +
- "You'll need to specify it using `tests YourConnection` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the connection to test from #{name}. " +
+ "You'll need to specify it using `tests YourConnection` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/StreamEventLoop.html b/src/classes/ActionCable/Connection/StreamEventLoop.html
index 2b71a213e3..f7c49354ef 100644
--- a/src/classes/ActionCable/Connection/StreamEventLoop.html
+++ b/src/classes/ActionCable/Connection/StreamEventLoop.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -111,16 +111,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 10
- def initialize
- @nio = @executor = @thread = nil
- @map = {}
- @stopping = false
- @todo = Queue.new
-
- @spawn_mutex = Mutex.new
- end
+def initialize
+ @nio = @executor = @thread = nil
+ @map = {}
+ @stopping = false
+ @todo = Queue.new
+
+ @spawn_mutex = Mutex.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -155,15 +155,15 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 30
- def attach(io, stream)
- @todo << lambda do
- @map[io] = @nio.register(io, :r)
- @map[io].value = stream
- end
- wakeup
- end
+def attach(io, stream)
+ @todo << lambda do
+ @map[io] = @nio.register(io, :r)
+ @map[io].value = stream
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -194,16 +194,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 38
- def detach(io, stream)
- @todo << lambda do
- @nio.deregister io
- @map.delete io
- io.close
- end
- wakeup
- end
+def detach(io, stream)
+ @todo << lambda do
+ @nio.deregister io
+ @map.delete io
+ io.close
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -234,14 +234,14 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 23
- def post(task = nil, &block)
- task ||= block
+def post(task = nil, &block)
+ task ||= block
- spawn
- @executor << task
- end
+ spawn
+ @executor << task
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,12 +272,12 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 56
- def stop
- @stopping = true
- wakeup if @nio
- end
+def stop
+ @stopping = true
+ wakeup if @nio
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -308,11 +308,11 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 19
- def timer(interval, &block)
- Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
- end
+def timer(interval, &block)
+ Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -343,16 +343,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 47
- def writes_pending(io)
- @todo << lambda do
- if monitor = @map[io]
- monitor.interests = :rw
- end
- end
- wakeup
- end
+def writes_pending(io)
+ @todo << lambda do
+ if monitor = @map[io]
+ monitor.interests = :rw
+ end
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
index f4d5cacc63..99731855fb 100644
--- a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
+++ b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -121,12 +121,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 16
- def initialize(logger, tags:)
- @logger = logger
- @tags = tags.flatten
- end
+def initialize(logger, tags:)
+ @logger = logger
+ @tags = tags.flatten
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -161,12 +161,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 21
- def add_tags(*tags)
- @tags += tags.flatten
- @tags = @tags.uniq
- end
+def add_tags(*tags)
+ @tags += tags.flatten
+ @tags = @tags.uniq
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -197,16 +197,16 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 26
- def tag(logger, &block)
- if logger.respond_to?(:tagged)
- current_tags = tags - logger.formatter.current_tags
- logger.tagged(*current_tags, &block)
- else
- yield
- end
- end
+def tag(logger, &block)
+ if logger.respond_to?(:tagged)
+ current_tags = tags - logger.formatter.current_tags
+ logger.tagged(*current_tags, &block)
+ else
+ yield
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,11 +240,11 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 42
- def log(type, message, &block) # :doc:
- tag(@logger) { @logger.send type, message, &block }
- end
+def log(type, message, &block) # :doc:
+ tag(@logger) { @logger.send type, message, &block }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase.html b/src/classes/ActionCable/Connection/TestCase.html
index 948378e491..39bc5cb056 100644
--- a/src/classes/ActionCable/Connection/TestCase.html
+++ b/src/classes/ActionCable/Connection/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior.html b/src/classes/ActionCable/Connection/TestCase/Behavior.html
index b87870becd..4ee0debbea 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -163,19 +163,19 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 192
- def connect(path = ActionCable.server.config.mount_path, **request_params)
- path ||= DEFAULT_PATH
+def connect(path = ActionCable.server.config.mount_path, **request_params)
+ path ||= DEFAULT_PATH
- connection = self.class.connection_class.allocate
- connection.singleton_class.include(TestConnection)
- connection.send(:initialize, build_test_request(path, **request_params))
- connection.connect if connection.respond_to?(:connect)
+ connection = self.class.connection_class.allocate
+ connection.singleton_class.include(TestConnection)
+ connection.send(:initialize, build_test_request(path, **request_params))
+ connection.connect if connection.respond_to?(:connect)
- # Only set instance variable if connected successfully
- @connection = connection
- end
+ # Only set instance variable if connected successfully
+ @connection = connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -206,11 +206,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 212
- def cookies
- @cookie_jar ||= TestCookieJar.new
- end
+def cookies
+ @cookie_jar ||= TestCookieJar.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -241,14 +241,14 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 205
- def disconnect
- raise "Must be connected!" if connection.nil?
+def disconnect
+ raise "Must be connected!" if connection.nil?
- connection.disconnect if connection.respond_to?(:disconnect)
- @connection = nil
- end
+ connection.disconnect if connection.respond_to?(:disconnect)
+ @connection = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
index 63444f4b27..99fc0e3f6f 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 167
- def connection_class
- if connection = self._connection_class
- connection
- else
- tests determine_default_connection(name)
- end
- end
+def connection_class
+ if connection = self._connection_class
+ connection
+ else
+ tests determine_default_connection(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 175
- def determine_default_connection(name)
- connection = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Connection::Base
- end
- raise NonInferrableConnectionError.new(name) if connection.nil?
- connection
- end
+def determine_default_connection(name)
+ connection = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Connection::Base
+ end
+ raise NonInferrableConnectionError.new(name) if connection.nil?
+ connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/connection/authorization.rb, line 12
- def reject_unauthorized_connection
- logger.error "An unauthorized connection attempt was rejected"
- raise UnauthorizedError
- end
+def reject_unauthorized_connection
+ logger.error "An unauthorized connection attempt was rejected"
+ raise UnauthorizedError
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
index b63b282b0b..ff36299a28 100644
--- a/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
+++ b/src/classes/ActionCable/Connection/Authorization/UnauthorizedError.html
@@ -5,7 +5,7 @@
+ Ruby on Rails 8.1.0.rc1
diff --git a/src/classes/ActionCable/Connection/Base.html b/src/classes/ActionCable/Connection/Base.html
index 36a2f1e1bb..ea0d62911f 100644
--- a/src/classes/ActionCable/Connection/Base.html
+++ b/src/classes/ActionCable/Connection/Base.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -255,21 +255,21 @@
# File actioncable/lib/action_cable/connection/base.rb, line 67
- def initialize(server, env, coder: ActiveSupport::JSON)
- @server, @env, @coder = server, env, coder
+def initialize(server, env, coder: ActiveSupport::JSON)
+ @server, @env, @coder = server, env, coder
- @worker_pool = server.worker_pool
- @logger = new_tagged_logger
+ @worker_pool = server.worker_pool
+ @logger = new_tagged_logger
- @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
+ @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
- @_internal_subscriptions = nil
- @started_at = Time.now
- end
+ @_internal_subscriptions = nil
+ @started_at = Time.now
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -304,11 +304,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 147
- def beat
- transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
- end
+def beat
+ transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -339,16 +339,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 120
- def close(reason: nil, reconnect: true)
- transmit(
- type: ActionCable::INTERNAL[:message_types][:disconnect],
- reason: reason,
- reconnect: reconnect
- )
- websocket.close
- end
+def close(reason: nil, reconnect: true)
+ transmit(
+ type: ActionCable::INTERNAL[:message_types][:disconnect],
+ reason: reason,
+ reconnect: reconnect
+ )
+ websocket.close
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -379,13 +379,13 @@
# File actioncable/lib/action_cable/connection/base.rb, line 109
- def handle_channel_command(payload)
- run_callbacks :command do
- subscriptions.execute_command payload
- end
- end
+def handle_channel_command(payload)
+ run_callbacks :command do
+ subscriptions.execute_command payload
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -416,11 +416,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 131
- def send_async(method, *arguments)
- worker_pool.async_invoke(self, method, *arguments)
- end
+def send_async(method, *arguments)
+ worker_pool.async_invoke(self, method, *arguments)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -451,16 +451,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 138
- def statistics
- {
- identifier: connection_identifier,
- started_at: @started_at,
- subscriptions: subscriptions.identifiers,
- request_id: @env["action_dispatch.request_id"]
- }
- end
+def statistics
+ {
+ identifier: connection_identifier,
+ started_at: @started_at,
+ subscriptions: subscriptions.identifiers,
+ request_id: @env["action_dispatch.request_id"]
+ }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -494,11 +494,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 187
- def cookies # :doc:
- request.cookie_jar
- end
+def cookies # :doc:
+ request.cookie_jar
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -529,14 +529,14 @@
# File actioncable/lib/action_cable/connection/base.rb, line 178
- def request # :doc:
- @request ||= begin
- environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
- ActionDispatch::Request.new(environment || env)
- end
- end
+def request # :doc:
+ @request ||= begin
+ environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
+ ActionDispatch::Request.new(environment || env)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Callbacks.html b/src/classes/ActionCable/Connection/Callbacks.html
index 818958bf81..d6504ca284 100644
--- a/src/classes/ActionCable/Connection/Callbacks.html
+++ b/src/classes/ActionCable/Connection/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
index 933056a029..6376d7195b 100644
--- a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,11 +90,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 47
- def after_command(*methods, &block)
- set_callback(:command, :after, *methods, &block)
- end
+def after_command(*methods, &block)
+ set_callback(:command, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -125,11 +125,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 51
- def around_command(*methods, &block)
- set_callback(:command, :around, *methods, &block)
- end
+def around_command(*methods, &block)
+ set_callback(:command, :around, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -160,11 +160,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 43
- def before_command(*methods, &block)
- set_callback(:command, :before, *methods, &block)
- end
+def before_command(*methods, &block)
+ set_callback(:command, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification.html b/src/classes/ActionCable/Connection/Identification.html
index f3dcea9bfc..063ca88999 100644
--- a/src/classes/ActionCable/Connection/Identification.html
+++ b/src/classes/ActionCable/Connection/Identification.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,15 +95,15 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 29
- def connection_identifier
- unless defined? @connection_identifier
- @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
- end
+def connection_identifier
+ unless defined? @connection_identifier
+ @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
+ end
- @connection_identifier
- end
+ @connection_identifier
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification/ClassMethods.html b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
index 324ded31f5..a3395ef8a3 100644
--- a/src/classes/ActionCable/Connection/Identification/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -84,12 +84,12 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 21
- def identified_by(*identifiers)
- Array(identifiers).each { |identifier| attr_accessor identifier }
- self.identifiers += identifiers
- end
+def identified_by(*identifiers)
+ Array(identifiers).each { |identifier| attr_accessor identifier }
+ self.identifiers += identifiers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/InternalChannel.html b/src/classes/ActionCable/Connection/InternalChannel.html
index 9b0144f690..cfdccceaf4 100644
--- a/src/classes/ActionCable/Connection/InternalChannel.html
+++ b/src/classes/ActionCable/Connection/InternalChannel.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
index 7167904452..bf0c696d62 100644
--- a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
+++ b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 15
- def initialize(name)
- super "Unable to determine the connection to test from #{name}. " +
- "You'll need to specify it using `tests YourConnection` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the connection to test from #{name}. " +
+ "You'll need to specify it using `tests YourConnection` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/StreamEventLoop.html b/src/classes/ActionCable/Connection/StreamEventLoop.html
index 2b71a213e3..f7c49354ef 100644
--- a/src/classes/ActionCable/Connection/StreamEventLoop.html
+++ b/src/classes/ActionCable/Connection/StreamEventLoop.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -111,16 +111,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 10
- def initialize
- @nio = @executor = @thread = nil
- @map = {}
- @stopping = false
- @todo = Queue.new
-
- @spawn_mutex = Mutex.new
- end
+def initialize
+ @nio = @executor = @thread = nil
+ @map = {}
+ @stopping = false
+ @todo = Queue.new
+
+ @spawn_mutex = Mutex.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -155,15 +155,15 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 30
- def attach(io, stream)
- @todo << lambda do
- @map[io] = @nio.register(io, :r)
- @map[io].value = stream
- end
- wakeup
- end
+def attach(io, stream)
+ @todo << lambda do
+ @map[io] = @nio.register(io, :r)
+ @map[io].value = stream
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -194,16 +194,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 38
- def detach(io, stream)
- @todo << lambda do
- @nio.deregister io
- @map.delete io
- io.close
- end
- wakeup
- end
+def detach(io, stream)
+ @todo << lambda do
+ @nio.deregister io
+ @map.delete io
+ io.close
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -234,14 +234,14 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 23
- def post(task = nil, &block)
- task ||= block
+def post(task = nil, &block)
+ task ||= block
- spawn
- @executor << task
- end
+ spawn
+ @executor << task
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,12 +272,12 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 56
- def stop
- @stopping = true
- wakeup if @nio
- end
+def stop
+ @stopping = true
+ wakeup if @nio
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -308,11 +308,11 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 19
- def timer(interval, &block)
- Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
- end
+def timer(interval, &block)
+ Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -343,16 +343,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 47
- def writes_pending(io)
- @todo << lambda do
- if monitor = @map[io]
- monitor.interests = :rw
- end
- end
- wakeup
- end
+def writes_pending(io)
+ @todo << lambda do
+ if monitor = @map[io]
+ monitor.interests = :rw
+ end
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
index f4d5cacc63..99731855fb 100644
--- a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
+++ b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -121,12 +121,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 16
- def initialize(logger, tags:)
- @logger = logger
- @tags = tags.flatten
- end
+def initialize(logger, tags:)
+ @logger = logger
+ @tags = tags.flatten
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -161,12 +161,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 21
- def add_tags(*tags)
- @tags += tags.flatten
- @tags = @tags.uniq
- end
+def add_tags(*tags)
+ @tags += tags.flatten
+ @tags = @tags.uniq
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -197,16 +197,16 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 26
- def tag(logger, &block)
- if logger.respond_to?(:tagged)
- current_tags = tags - logger.formatter.current_tags
- logger.tagged(*current_tags, &block)
- else
- yield
- end
- end
+def tag(logger, &block)
+ if logger.respond_to?(:tagged)
+ current_tags = tags - logger.formatter.current_tags
+ logger.tagged(*current_tags, &block)
+ else
+ yield
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,11 +240,11 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 42
- def log(type, message, &block) # :doc:
- tag(@logger) { @logger.send type, message, &block }
- end
+def log(type, message, &block) # :doc:
+ tag(@logger) { @logger.send type, message, &block }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase.html b/src/classes/ActionCable/Connection/TestCase.html
index 948378e491..39bc5cb056 100644
--- a/src/classes/ActionCable/Connection/TestCase.html
+++ b/src/classes/ActionCable/Connection/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior.html b/src/classes/ActionCable/Connection/TestCase/Behavior.html
index b87870becd..4ee0debbea 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -163,19 +163,19 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 192
- def connect(path = ActionCable.server.config.mount_path, **request_params)
- path ||= DEFAULT_PATH
+def connect(path = ActionCable.server.config.mount_path, **request_params)
+ path ||= DEFAULT_PATH
- connection = self.class.connection_class.allocate
- connection.singleton_class.include(TestConnection)
- connection.send(:initialize, build_test_request(path, **request_params))
- connection.connect if connection.respond_to?(:connect)
+ connection = self.class.connection_class.allocate
+ connection.singleton_class.include(TestConnection)
+ connection.send(:initialize, build_test_request(path, **request_params))
+ connection.connect if connection.respond_to?(:connect)
- # Only set instance variable if connected successfully
- @connection = connection
- end
+ # Only set instance variable if connected successfully
+ @connection = connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -206,11 +206,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 212
- def cookies
- @cookie_jar ||= TestCookieJar.new
- end
+def cookies
+ @cookie_jar ||= TestCookieJar.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -241,14 +241,14 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 205
- def disconnect
- raise "Must be connected!" if connection.nil?
+def disconnect
+ raise "Must be connected!" if connection.nil?
- connection.disconnect if connection.respond_to?(:disconnect)
- @connection = nil
- end
+ connection.disconnect if connection.respond_to?(:disconnect)
+ @connection = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
index 63444f4b27..99fc0e3f6f 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 167
- def connection_class
- if connection = self._connection_class
- connection
- else
- tests determine_default_connection(name)
- end
- end
+def connection_class
+ if connection = self._connection_class
+ connection
+ else
+ tests determine_default_connection(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 175
- def determine_default_connection(name)
- connection = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Connection::Base
- end
- raise NonInferrableConnectionError.new(name) if connection.nil?
- connection
- end
+def determine_default_connection(name)
+ connection = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Connection::Base
+ end
+ raise NonInferrableConnectionError.new(name) if connection.nil?
+ connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
+ Ruby on Rails 8.1.0.rc1
@@ -255,21 +255,21 @@
# File actioncable/lib/action_cable/connection/base.rb, line 67
- def initialize(server, env, coder: ActiveSupport::JSON)
- @server, @env, @coder = server, env, coder
+def initialize(server, env, coder: ActiveSupport::JSON)
+ @server, @env, @coder = server, env, coder
- @worker_pool = server.worker_pool
- @logger = new_tagged_logger
+ @worker_pool = server.worker_pool
+ @logger = new_tagged_logger
- @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
+ @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
- @_internal_subscriptions = nil
- @started_at = Time.now
- end
+ @_internal_subscriptions = nil
+ @started_at = Time.now
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -304,11 +304,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 147
- def beat
- transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
- end
+def beat
+ transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -339,16 +339,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 120
- def close(reason: nil, reconnect: true)
- transmit(
- type: ActionCable::INTERNAL[:message_types][:disconnect],
- reason: reason,
- reconnect: reconnect
- )
- websocket.close
- end
+def close(reason: nil, reconnect: true)
+ transmit(
+ type: ActionCable::INTERNAL[:message_types][:disconnect],
+ reason: reason,
+ reconnect: reconnect
+ )
+ websocket.close
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -379,13 +379,13 @@
# File actioncable/lib/action_cable/connection/base.rb, line 109
- def handle_channel_command(payload)
- run_callbacks :command do
- subscriptions.execute_command payload
- end
- end
+def handle_channel_command(payload)
+ run_callbacks :command do
+ subscriptions.execute_command payload
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -416,11 +416,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 131
- def send_async(method, *arguments)
- worker_pool.async_invoke(self, method, *arguments)
- end
+def send_async(method, *arguments)
+ worker_pool.async_invoke(self, method, *arguments)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -451,16 +451,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 138
- def statistics
- {
- identifier: connection_identifier,
- started_at: @started_at,
- subscriptions: subscriptions.identifiers,
- request_id: @env["action_dispatch.request_id"]
- }
- end
+def statistics
+ {
+ identifier: connection_identifier,
+ started_at: @started_at,
+ subscriptions: subscriptions.identifiers,
+ request_id: @env["action_dispatch.request_id"]
+ }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -494,11 +494,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 187
- def cookies # :doc:
- request.cookie_jar
- end
+def cookies # :doc:
+ request.cookie_jar
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -529,14 +529,14 @@
# File actioncable/lib/action_cable/connection/base.rb, line 178
- def request # :doc:
- @request ||= begin
- environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
- ActionDispatch::Request.new(environment || env)
- end
- end
+def request # :doc:
+ @request ||= begin
+ environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
+ ActionDispatch::Request.new(environment || env)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Callbacks.html b/src/classes/ActionCable/Connection/Callbacks.html
index 818958bf81..d6504ca284 100644
--- a/src/classes/ActionCable/Connection/Callbacks.html
+++ b/src/classes/ActionCable/Connection/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
index 933056a029..6376d7195b 100644
--- a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,11 +90,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 47
- def after_command(*methods, &block)
- set_callback(:command, :after, *methods, &block)
- end
+def after_command(*methods, &block)
+ set_callback(:command, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -125,11 +125,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 51
- def around_command(*methods, &block)
- set_callback(:command, :around, *methods, &block)
- end
+def around_command(*methods, &block)
+ set_callback(:command, :around, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -160,11 +160,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 43
- def before_command(*methods, &block)
- set_callback(:command, :before, *methods, &block)
- end
+def before_command(*methods, &block)
+ set_callback(:command, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification.html b/src/classes/ActionCable/Connection/Identification.html
index f3dcea9bfc..063ca88999 100644
--- a/src/classes/ActionCable/Connection/Identification.html
+++ b/src/classes/ActionCable/Connection/Identification.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,15 +95,15 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 29
- def connection_identifier
- unless defined? @connection_identifier
- @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
- end
+def connection_identifier
+ unless defined? @connection_identifier
+ @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
+ end
- @connection_identifier
- end
+ @connection_identifier
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification/ClassMethods.html b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
index 324ded31f5..a3395ef8a3 100644
--- a/src/classes/ActionCable/Connection/Identification/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -84,12 +84,12 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 21
- def identified_by(*identifiers)
- Array(identifiers).each { |identifier| attr_accessor identifier }
- self.identifiers += identifiers
- end
+def identified_by(*identifiers)
+ Array(identifiers).each { |identifier| attr_accessor identifier }
+ self.identifiers += identifiers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/InternalChannel.html b/src/classes/ActionCable/Connection/InternalChannel.html
index 9b0144f690..cfdccceaf4 100644
--- a/src/classes/ActionCable/Connection/InternalChannel.html
+++ b/src/classes/ActionCable/Connection/InternalChannel.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
index 7167904452..bf0c696d62 100644
--- a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
+++ b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 15
- def initialize(name)
- super "Unable to determine the connection to test from #{name}. " +
- "You'll need to specify it using `tests YourConnection` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the connection to test from #{name}. " +
+ "You'll need to specify it using `tests YourConnection` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/StreamEventLoop.html b/src/classes/ActionCable/Connection/StreamEventLoop.html
index 2b71a213e3..f7c49354ef 100644
--- a/src/classes/ActionCable/Connection/StreamEventLoop.html
+++ b/src/classes/ActionCable/Connection/StreamEventLoop.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -111,16 +111,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 10
- def initialize
- @nio = @executor = @thread = nil
- @map = {}
- @stopping = false
- @todo = Queue.new
-
- @spawn_mutex = Mutex.new
- end
+def initialize
+ @nio = @executor = @thread = nil
+ @map = {}
+ @stopping = false
+ @todo = Queue.new
+
+ @spawn_mutex = Mutex.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -155,15 +155,15 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 30
- def attach(io, stream)
- @todo << lambda do
- @map[io] = @nio.register(io, :r)
- @map[io].value = stream
- end
- wakeup
- end
+def attach(io, stream)
+ @todo << lambda do
+ @map[io] = @nio.register(io, :r)
+ @map[io].value = stream
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -194,16 +194,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 38
- def detach(io, stream)
- @todo << lambda do
- @nio.deregister io
- @map.delete io
- io.close
- end
- wakeup
- end
+def detach(io, stream)
+ @todo << lambda do
+ @nio.deregister io
+ @map.delete io
+ io.close
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -234,14 +234,14 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 23
- def post(task = nil, &block)
- task ||= block
+def post(task = nil, &block)
+ task ||= block
- spawn
- @executor << task
- end
+ spawn
+ @executor << task
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,12 +272,12 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 56
- def stop
- @stopping = true
- wakeup if @nio
- end
+def stop
+ @stopping = true
+ wakeup if @nio
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -308,11 +308,11 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 19
- def timer(interval, &block)
- Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
- end
+def timer(interval, &block)
+ Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -343,16 +343,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 47
- def writes_pending(io)
- @todo << lambda do
- if monitor = @map[io]
- monitor.interests = :rw
- end
- end
- wakeup
- end
+def writes_pending(io)
+ @todo << lambda do
+ if monitor = @map[io]
+ monitor.interests = :rw
+ end
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
index f4d5cacc63..99731855fb 100644
--- a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
+++ b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -121,12 +121,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 16
- def initialize(logger, tags:)
- @logger = logger
- @tags = tags.flatten
- end
+def initialize(logger, tags:)
+ @logger = logger
+ @tags = tags.flatten
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -161,12 +161,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 21
- def add_tags(*tags)
- @tags += tags.flatten
- @tags = @tags.uniq
- end
+def add_tags(*tags)
+ @tags += tags.flatten
+ @tags = @tags.uniq
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -197,16 +197,16 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 26
- def tag(logger, &block)
- if logger.respond_to?(:tagged)
- current_tags = tags - logger.formatter.current_tags
- logger.tagged(*current_tags, &block)
- else
- yield
- end
- end
+def tag(logger, &block)
+ if logger.respond_to?(:tagged)
+ current_tags = tags - logger.formatter.current_tags
+ logger.tagged(*current_tags, &block)
+ else
+ yield
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,11 +240,11 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 42
- def log(type, message, &block) # :doc:
- tag(@logger) { @logger.send type, message, &block }
- end
+def log(type, message, &block) # :doc:
+ tag(@logger) { @logger.send type, message, &block }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase.html b/src/classes/ActionCable/Connection/TestCase.html
index 948378e491..39bc5cb056 100644
--- a/src/classes/ActionCable/Connection/TestCase.html
+++ b/src/classes/ActionCable/Connection/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior.html b/src/classes/ActionCable/Connection/TestCase/Behavior.html
index b87870becd..4ee0debbea 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -163,19 +163,19 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 192
- def connect(path = ActionCable.server.config.mount_path, **request_params)
- path ||= DEFAULT_PATH
+def connect(path = ActionCable.server.config.mount_path, **request_params)
+ path ||= DEFAULT_PATH
- connection = self.class.connection_class.allocate
- connection.singleton_class.include(TestConnection)
- connection.send(:initialize, build_test_request(path, **request_params))
- connection.connect if connection.respond_to?(:connect)
+ connection = self.class.connection_class.allocate
+ connection.singleton_class.include(TestConnection)
+ connection.send(:initialize, build_test_request(path, **request_params))
+ connection.connect if connection.respond_to?(:connect)
- # Only set instance variable if connected successfully
- @connection = connection
- end
+ # Only set instance variable if connected successfully
+ @connection = connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -206,11 +206,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 212
- def cookies
- @cookie_jar ||= TestCookieJar.new
- end
+def cookies
+ @cookie_jar ||= TestCookieJar.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -241,14 +241,14 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 205
- def disconnect
- raise "Must be connected!" if connection.nil?
+def disconnect
+ raise "Must be connected!" if connection.nil?
- connection.disconnect if connection.respond_to?(:disconnect)
- @connection = nil
- end
+ connection.disconnect if connection.respond_to?(:disconnect)
+ @connection = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
index 63444f4b27..99fc0e3f6f 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 167
- def connection_class
- if connection = self._connection_class
- connection
- else
- tests determine_default_connection(name)
- end
- end
+def connection_class
+ if connection = self._connection_class
+ connection
+ else
+ tests determine_default_connection(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 175
- def determine_default_connection(name)
- connection = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Connection::Base
- end
- raise NonInferrableConnectionError.new(name) if connection.nil?
- connection
- end
+def determine_default_connection(name)
+ connection = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Connection::Base
+ end
+ raise NonInferrableConnectionError.new(name) if connection.nil?
+ connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/connection/base.rb, line 67
- def initialize(server, env, coder: ActiveSupport::JSON)
- @server, @env, @coder = server, env, coder
+def initialize(server, env, coder: ActiveSupport::JSON)
+ @server, @env, @coder = server, env, coder
- @worker_pool = server.worker_pool
- @logger = new_tagged_logger
+ @worker_pool = server.worker_pool
+ @logger = new_tagged_logger
- @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
- @subscriptions = ActionCable::Connection::Subscriptions.new(self)
- @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
+ @websocket = ActionCable::Connection::WebSocket.new(env, self, event_loop)
+ @subscriptions = ActionCable::Connection::Subscriptions.new(self)
+ @message_buffer = ActionCable::Connection::MessageBuffer.new(self)
- @_internal_subscriptions = nil
- @started_at = Time.now
- end
+ @_internal_subscriptions = nil
+ @started_at = Time.now
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -304,11 +304,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 147
- def beat
- transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
- end
+def beat
+ transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -339,16 +339,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 120
- def close(reason: nil, reconnect: true)
- transmit(
- type: ActionCable::INTERNAL[:message_types][:disconnect],
- reason: reason,
- reconnect: reconnect
- )
- websocket.close
- end
+def close(reason: nil, reconnect: true)
+ transmit(
+ type: ActionCable::INTERNAL[:message_types][:disconnect],
+ reason: reason,
+ reconnect: reconnect
+ )
+ websocket.close
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -379,13 +379,13 @@
# File actioncable/lib/action_cable/connection/base.rb, line 109
- def handle_channel_command(payload)
- run_callbacks :command do
- subscriptions.execute_command payload
- end
- end
+def handle_channel_command(payload)
+ run_callbacks :command do
+ subscriptions.execute_command payload
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -416,11 +416,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 131
- def send_async(method, *arguments)
- worker_pool.async_invoke(self, method, *arguments)
- end
+def send_async(method, *arguments)
+ worker_pool.async_invoke(self, method, *arguments)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -451,16 +451,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 138
- def statistics
- {
- identifier: connection_identifier,
- started_at: @started_at,
- subscriptions: subscriptions.identifiers,
- request_id: @env["action_dispatch.request_id"]
- }
- end
+def statistics
+ {
+ identifier: connection_identifier,
+ started_at: @started_at,
+ subscriptions: subscriptions.identifiers,
+ request_id: @env["action_dispatch.request_id"]
+ }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -494,11 +494,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 187
- def cookies # :doc:
- request.cookie_jar
- end
+def cookies # :doc:
+ request.cookie_jar
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -529,14 +529,14 @@
# File actioncable/lib/action_cable/connection/base.rb, line 178
- def request # :doc:
- @request ||= begin
- environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
- ActionDispatch::Request.new(environment || env)
- end
- end
+def request # :doc:
+ @request ||= begin
+ environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
+ ActionDispatch::Request.new(environment || env)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Callbacks.html b/src/classes/ActionCable/Connection/Callbacks.html
index 818958bf81..d6504ca284 100644
--- a/src/classes/ActionCable/Connection/Callbacks.html
+++ b/src/classes/ActionCable/Connection/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
index 933056a029..6376d7195b 100644
--- a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,11 +90,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 47
- def after_command(*methods, &block)
- set_callback(:command, :after, *methods, &block)
- end
+def after_command(*methods, &block)
+ set_callback(:command, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -125,11 +125,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 51
- def around_command(*methods, &block)
- set_callback(:command, :around, *methods, &block)
- end
+def around_command(*methods, &block)
+ set_callback(:command, :around, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -160,11 +160,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 43
- def before_command(*methods, &block)
- set_callback(:command, :before, *methods, &block)
- end
+def before_command(*methods, &block)
+ set_callback(:command, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification.html b/src/classes/ActionCable/Connection/Identification.html
index f3dcea9bfc..063ca88999 100644
--- a/src/classes/ActionCable/Connection/Identification.html
+++ b/src/classes/ActionCable/Connection/Identification.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,15 +95,15 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 29
- def connection_identifier
- unless defined? @connection_identifier
- @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
- end
+def connection_identifier
+ unless defined? @connection_identifier
+ @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
+ end
- @connection_identifier
- end
+ @connection_identifier
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification/ClassMethods.html b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
index 324ded31f5..a3395ef8a3 100644
--- a/src/classes/ActionCable/Connection/Identification/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -84,12 +84,12 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 21
- def identified_by(*identifiers)
- Array(identifiers).each { |identifier| attr_accessor identifier }
- self.identifiers += identifiers
- end
+def identified_by(*identifiers)
+ Array(identifiers).each { |identifier| attr_accessor identifier }
+ self.identifiers += identifiers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/InternalChannel.html b/src/classes/ActionCable/Connection/InternalChannel.html
index 9b0144f690..cfdccceaf4 100644
--- a/src/classes/ActionCable/Connection/InternalChannel.html
+++ b/src/classes/ActionCable/Connection/InternalChannel.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
index 7167904452..bf0c696d62 100644
--- a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
+++ b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 15
- def initialize(name)
- super "Unable to determine the connection to test from #{name}. " +
- "You'll need to specify it using `tests YourConnection` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the connection to test from #{name}. " +
+ "You'll need to specify it using `tests YourConnection` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/StreamEventLoop.html b/src/classes/ActionCable/Connection/StreamEventLoop.html
index 2b71a213e3..f7c49354ef 100644
--- a/src/classes/ActionCable/Connection/StreamEventLoop.html
+++ b/src/classes/ActionCable/Connection/StreamEventLoop.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -111,16 +111,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 10
- def initialize
- @nio = @executor = @thread = nil
- @map = {}
- @stopping = false
- @todo = Queue.new
-
- @spawn_mutex = Mutex.new
- end
+def initialize
+ @nio = @executor = @thread = nil
+ @map = {}
+ @stopping = false
+ @todo = Queue.new
+
+ @spawn_mutex = Mutex.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -155,15 +155,15 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 30
- def attach(io, stream)
- @todo << lambda do
- @map[io] = @nio.register(io, :r)
- @map[io].value = stream
- end
- wakeup
- end
+def attach(io, stream)
+ @todo << lambda do
+ @map[io] = @nio.register(io, :r)
+ @map[io].value = stream
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -194,16 +194,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 38
- def detach(io, stream)
- @todo << lambda do
- @nio.deregister io
- @map.delete io
- io.close
- end
- wakeup
- end
+def detach(io, stream)
+ @todo << lambda do
+ @nio.deregister io
+ @map.delete io
+ io.close
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -234,14 +234,14 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 23
- def post(task = nil, &block)
- task ||= block
+def post(task = nil, &block)
+ task ||= block
- spawn
- @executor << task
- end
+ spawn
+ @executor << task
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,12 +272,12 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 56
- def stop
- @stopping = true
- wakeup if @nio
- end
+def stop
+ @stopping = true
+ wakeup if @nio
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -308,11 +308,11 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 19
- def timer(interval, &block)
- Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
- end
+def timer(interval, &block)
+ Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -343,16 +343,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 47
- def writes_pending(io)
- @todo << lambda do
- if monitor = @map[io]
- monitor.interests = :rw
- end
- end
- wakeup
- end
+def writes_pending(io)
+ @todo << lambda do
+ if monitor = @map[io]
+ monitor.interests = :rw
+ end
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
index f4d5cacc63..99731855fb 100644
--- a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
+++ b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -121,12 +121,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 16
- def initialize(logger, tags:)
- @logger = logger
- @tags = tags.flatten
- end
+def initialize(logger, tags:)
+ @logger = logger
+ @tags = tags.flatten
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -161,12 +161,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 21
- def add_tags(*tags)
- @tags += tags.flatten
- @tags = @tags.uniq
- end
+def add_tags(*tags)
+ @tags += tags.flatten
+ @tags = @tags.uniq
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -197,16 +197,16 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 26
- def tag(logger, &block)
- if logger.respond_to?(:tagged)
- current_tags = tags - logger.formatter.current_tags
- logger.tagged(*current_tags, &block)
- else
- yield
- end
- end
+def tag(logger, &block)
+ if logger.respond_to?(:tagged)
+ current_tags = tags - logger.formatter.current_tags
+ logger.tagged(*current_tags, &block)
+ else
+ yield
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,11 +240,11 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 42
- def log(type, message, &block) # :doc:
- tag(@logger) { @logger.send type, message, &block }
- end
+def log(type, message, &block) # :doc:
+ tag(@logger) { @logger.send type, message, &block }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase.html b/src/classes/ActionCable/Connection/TestCase.html
index 948378e491..39bc5cb056 100644
--- a/src/classes/ActionCable/Connection/TestCase.html
+++ b/src/classes/ActionCable/Connection/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior.html b/src/classes/ActionCable/Connection/TestCase/Behavior.html
index b87870becd..4ee0debbea 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -163,19 +163,19 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 192
- def connect(path = ActionCable.server.config.mount_path, **request_params)
- path ||= DEFAULT_PATH
+def connect(path = ActionCable.server.config.mount_path, **request_params)
+ path ||= DEFAULT_PATH
- connection = self.class.connection_class.allocate
- connection.singleton_class.include(TestConnection)
- connection.send(:initialize, build_test_request(path, **request_params))
- connection.connect if connection.respond_to?(:connect)
+ connection = self.class.connection_class.allocate
+ connection.singleton_class.include(TestConnection)
+ connection.send(:initialize, build_test_request(path, **request_params))
+ connection.connect if connection.respond_to?(:connect)
- # Only set instance variable if connected successfully
- @connection = connection
- end
+ # Only set instance variable if connected successfully
+ @connection = connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -206,11 +206,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 212
- def cookies
- @cookie_jar ||= TestCookieJar.new
- end
+def cookies
+ @cookie_jar ||= TestCookieJar.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -241,14 +241,14 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 205
- def disconnect
- raise "Must be connected!" if connection.nil?
+def disconnect
+ raise "Must be connected!" if connection.nil?
- connection.disconnect if connection.respond_to?(:disconnect)
- @connection = nil
- end
+ connection.disconnect if connection.respond_to?(:disconnect)
+ @connection = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
index 63444f4b27..99fc0e3f6f 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 167
- def connection_class
- if connection = self._connection_class
- connection
- else
- tests determine_default_connection(name)
- end
- end
+def connection_class
+ if connection = self._connection_class
+ connection
+ else
+ tests determine_default_connection(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 175
- def determine_default_connection(name)
- connection = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Connection::Base
- end
- raise NonInferrableConnectionError.new(name) if connection.nil?
- connection
- end
+def determine_default_connection(name)
+ connection = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Connection::Base
+ end
+ raise NonInferrableConnectionError.new(name) if connection.nil?
+ connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/connection/base.rb, line 147
- def beat
- transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i
- end# File actioncable/lib/action_cable/connection/base.rb, line 120
- def close(reason: nil, reconnect: true)
- transmit(
- type: ActionCable::INTERNAL[:message_types][:disconnect],
- reason: reason,
- reconnect: reconnect
- )
- websocket.close
- end
+def close(reason: nil, reconnect: true)
+ transmit(
+ type: ActionCable::INTERNAL[:message_types][:disconnect],
+ reason: reason,
+ reconnect: reconnect
+ )
+ websocket.close
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -379,13 +379,13 @@
# File actioncable/lib/action_cable/connection/base.rb, line 109
- def handle_channel_command(payload)
- run_callbacks :command do
- subscriptions.execute_command payload
- end
- end
+def handle_channel_command(payload)
+ run_callbacks :command do
+ subscriptions.execute_command payload
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -416,11 +416,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 131
- def send_async(method, *arguments)
- worker_pool.async_invoke(self, method, *arguments)
- end
+def send_async(method, *arguments)
+ worker_pool.async_invoke(self, method, *arguments)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -451,16 +451,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 138
- def statistics
- {
- identifier: connection_identifier,
- started_at: @started_at,
- subscriptions: subscriptions.identifiers,
- request_id: @env["action_dispatch.request_id"]
- }
- end
+def statistics
+ {
+ identifier: connection_identifier,
+ started_at: @started_at,
+ subscriptions: subscriptions.identifiers,
+ request_id: @env["action_dispatch.request_id"]
+ }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -494,11 +494,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 187
- def cookies # :doc:
- request.cookie_jar
- end
+def cookies # :doc:
+ request.cookie_jar
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -529,14 +529,14 @@
# File actioncable/lib/action_cable/connection/base.rb, line 178
- def request # :doc:
- @request ||= begin
- environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
- ActionDispatch::Request.new(environment || env)
- end
- end
+def request # :doc:
+ @request ||= begin
+ environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
+ ActionDispatch::Request.new(environment || env)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Callbacks.html b/src/classes/ActionCable/Connection/Callbacks.html
index 818958bf81..d6504ca284 100644
--- a/src/classes/ActionCable/Connection/Callbacks.html
+++ b/src/classes/ActionCable/Connection/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
index 933056a029..6376d7195b 100644
--- a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,11 +90,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 47
- def after_command(*methods, &block)
- set_callback(:command, :after, *methods, &block)
- end
+def after_command(*methods, &block)
+ set_callback(:command, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -125,11 +125,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 51
- def around_command(*methods, &block)
- set_callback(:command, :around, *methods, &block)
- end
+def around_command(*methods, &block)
+ set_callback(:command, :around, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -160,11 +160,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 43
- def before_command(*methods, &block)
- set_callback(:command, :before, *methods, &block)
- end
+def before_command(*methods, &block)
+ set_callback(:command, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification.html b/src/classes/ActionCable/Connection/Identification.html
index f3dcea9bfc..063ca88999 100644
--- a/src/classes/ActionCable/Connection/Identification.html
+++ b/src/classes/ActionCable/Connection/Identification.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,15 +95,15 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 29
- def connection_identifier
- unless defined? @connection_identifier
- @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
- end
+def connection_identifier
+ unless defined? @connection_identifier
+ @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
+ end
- @connection_identifier
- end
+ @connection_identifier
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification/ClassMethods.html b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
index 324ded31f5..a3395ef8a3 100644
--- a/src/classes/ActionCable/Connection/Identification/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -84,12 +84,12 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 21
- def identified_by(*identifiers)
- Array(identifiers).each { |identifier| attr_accessor identifier }
- self.identifiers += identifiers
- end
+def identified_by(*identifiers)
+ Array(identifiers).each { |identifier| attr_accessor identifier }
+ self.identifiers += identifiers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/InternalChannel.html b/src/classes/ActionCable/Connection/InternalChannel.html
index 9b0144f690..cfdccceaf4 100644
--- a/src/classes/ActionCable/Connection/InternalChannel.html
+++ b/src/classes/ActionCable/Connection/InternalChannel.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
index 7167904452..bf0c696d62 100644
--- a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
+++ b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 15
- def initialize(name)
- super "Unable to determine the connection to test from #{name}. " +
- "You'll need to specify it using `tests YourConnection` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the connection to test from #{name}. " +
+ "You'll need to specify it using `tests YourConnection` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/StreamEventLoop.html b/src/classes/ActionCable/Connection/StreamEventLoop.html
index 2b71a213e3..f7c49354ef 100644
--- a/src/classes/ActionCable/Connection/StreamEventLoop.html
+++ b/src/classes/ActionCable/Connection/StreamEventLoop.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -111,16 +111,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 10
- def initialize
- @nio = @executor = @thread = nil
- @map = {}
- @stopping = false
- @todo = Queue.new
-
- @spawn_mutex = Mutex.new
- end
+def initialize
+ @nio = @executor = @thread = nil
+ @map = {}
+ @stopping = false
+ @todo = Queue.new
+
+ @spawn_mutex = Mutex.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -155,15 +155,15 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 30
- def attach(io, stream)
- @todo << lambda do
- @map[io] = @nio.register(io, :r)
- @map[io].value = stream
- end
- wakeup
- end
+def attach(io, stream)
+ @todo << lambda do
+ @map[io] = @nio.register(io, :r)
+ @map[io].value = stream
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -194,16 +194,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 38
- def detach(io, stream)
- @todo << lambda do
- @nio.deregister io
- @map.delete io
- io.close
- end
- wakeup
- end
+def detach(io, stream)
+ @todo << lambda do
+ @nio.deregister io
+ @map.delete io
+ io.close
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -234,14 +234,14 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 23
- def post(task = nil, &block)
- task ||= block
+def post(task = nil, &block)
+ task ||= block
- spawn
- @executor << task
- end
+ spawn
+ @executor << task
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,12 +272,12 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 56
- def stop
- @stopping = true
- wakeup if @nio
- end
+def stop
+ @stopping = true
+ wakeup if @nio
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -308,11 +308,11 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 19
- def timer(interval, &block)
- Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
- end
+def timer(interval, &block)
+ Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -343,16 +343,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 47
- def writes_pending(io)
- @todo << lambda do
- if monitor = @map[io]
- monitor.interests = :rw
- end
- end
- wakeup
- end
+def writes_pending(io)
+ @todo << lambda do
+ if monitor = @map[io]
+ monitor.interests = :rw
+ end
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
index f4d5cacc63..99731855fb 100644
--- a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
+++ b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -121,12 +121,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 16
- def initialize(logger, tags:)
- @logger = logger
- @tags = tags.flatten
- end
+def initialize(logger, tags:)
+ @logger = logger
+ @tags = tags.flatten
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -161,12 +161,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 21
- def add_tags(*tags)
- @tags += tags.flatten
- @tags = @tags.uniq
- end
+def add_tags(*tags)
+ @tags += tags.flatten
+ @tags = @tags.uniq
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -197,16 +197,16 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 26
- def tag(logger, &block)
- if logger.respond_to?(:tagged)
- current_tags = tags - logger.formatter.current_tags
- logger.tagged(*current_tags, &block)
- else
- yield
- end
- end
+def tag(logger, &block)
+ if logger.respond_to?(:tagged)
+ current_tags = tags - logger.formatter.current_tags
+ logger.tagged(*current_tags, &block)
+ else
+ yield
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,11 +240,11 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 42
- def log(type, message, &block) # :doc:
- tag(@logger) { @logger.send type, message, &block }
- end
+def log(type, message, &block) # :doc:
+ tag(@logger) { @logger.send type, message, &block }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase.html b/src/classes/ActionCable/Connection/TestCase.html
index 948378e491..39bc5cb056 100644
--- a/src/classes/ActionCable/Connection/TestCase.html
+++ b/src/classes/ActionCable/Connection/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior.html b/src/classes/ActionCable/Connection/TestCase/Behavior.html
index b87870becd..4ee0debbea 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -163,19 +163,19 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 192
- def connect(path = ActionCable.server.config.mount_path, **request_params)
- path ||= DEFAULT_PATH
+def connect(path = ActionCable.server.config.mount_path, **request_params)
+ path ||= DEFAULT_PATH
- connection = self.class.connection_class.allocate
- connection.singleton_class.include(TestConnection)
- connection.send(:initialize, build_test_request(path, **request_params))
- connection.connect if connection.respond_to?(:connect)
+ connection = self.class.connection_class.allocate
+ connection.singleton_class.include(TestConnection)
+ connection.send(:initialize, build_test_request(path, **request_params))
+ connection.connect if connection.respond_to?(:connect)
- # Only set instance variable if connected successfully
- @connection = connection
- end
+ # Only set instance variable if connected successfully
+ @connection = connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -206,11 +206,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 212
- def cookies
- @cookie_jar ||= TestCookieJar.new
- end
+def cookies
+ @cookie_jar ||= TestCookieJar.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -241,14 +241,14 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 205
- def disconnect
- raise "Must be connected!" if connection.nil?
+def disconnect
+ raise "Must be connected!" if connection.nil?
- connection.disconnect if connection.respond_to?(:disconnect)
- @connection = nil
- end
+ connection.disconnect if connection.respond_to?(:disconnect)
+ @connection = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
index 63444f4b27..99fc0e3f6f 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 167
- def connection_class
- if connection = self._connection_class
- connection
- else
- tests determine_default_connection(name)
- end
- end
+def connection_class
+ if connection = self._connection_class
+ connection
+ else
+ tests determine_default_connection(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 175
- def determine_default_connection(name)
- connection = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Connection::Base
- end
- raise NonInferrableConnectionError.new(name) if connection.nil?
- connection
- end
+def determine_default_connection(name)
+ connection = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Connection::Base
+ end
+ raise NonInferrableConnectionError.new(name) if connection.nil?
+ connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/connection/base.rb, line 109
- def handle_channel_command(payload)
- run_callbacks :command do
- subscriptions.execute_command payload
- end
- end# File actioncable/lib/action_cable/connection/base.rb, line 131
- def send_async(method, *arguments)
- worker_pool.async_invoke(self, method, *arguments)
- end
+def send_async(method, *arguments)
+ worker_pool.async_invoke(self, method, *arguments)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -451,16 +451,16 @@
# File actioncable/lib/action_cable/connection/base.rb, line 138
- def statistics
- {
- identifier: connection_identifier,
- started_at: @started_at,
- subscriptions: subscriptions.identifiers,
- request_id: @env["action_dispatch.request_id"]
- }
- end
+def statistics
+ {
+ identifier: connection_identifier,
+ started_at: @started_at,
+ subscriptions: subscriptions.identifiers,
+ request_id: @env["action_dispatch.request_id"]
+ }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -494,11 +494,11 @@
# File actioncable/lib/action_cable/connection/base.rb, line 187
- def cookies # :doc:
- request.cookie_jar
- end
+def cookies # :doc:
+ request.cookie_jar
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -529,14 +529,14 @@
# File actioncable/lib/action_cable/connection/base.rb, line 178
- def request # :doc:
- @request ||= begin
- environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
- ActionDispatch::Request.new(environment || env)
- end
- end
+def request # :doc:
+ @request ||= begin
+ environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
+ ActionDispatch::Request.new(environment || env)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Callbacks.html b/src/classes/ActionCable/Connection/Callbacks.html
index 818958bf81..d6504ca284 100644
--- a/src/classes/ActionCable/Connection/Callbacks.html
+++ b/src/classes/ActionCable/Connection/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
index 933056a029..6376d7195b 100644
--- a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,11 +90,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 47
- def after_command(*methods, &block)
- set_callback(:command, :after, *methods, &block)
- end
+def after_command(*methods, &block)
+ set_callback(:command, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -125,11 +125,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 51
- def around_command(*methods, &block)
- set_callback(:command, :around, *methods, &block)
- end
+def around_command(*methods, &block)
+ set_callback(:command, :around, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -160,11 +160,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 43
- def before_command(*methods, &block)
- set_callback(:command, :before, *methods, &block)
- end
+def before_command(*methods, &block)
+ set_callback(:command, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification.html b/src/classes/ActionCable/Connection/Identification.html
index f3dcea9bfc..063ca88999 100644
--- a/src/classes/ActionCable/Connection/Identification.html
+++ b/src/classes/ActionCable/Connection/Identification.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,15 +95,15 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 29
- def connection_identifier
- unless defined? @connection_identifier
- @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
- end
+def connection_identifier
+ unless defined? @connection_identifier
+ @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
+ end
- @connection_identifier
- end
+ @connection_identifier
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification/ClassMethods.html b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
index 324ded31f5..a3395ef8a3 100644
--- a/src/classes/ActionCable/Connection/Identification/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -84,12 +84,12 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 21
- def identified_by(*identifiers)
- Array(identifiers).each { |identifier| attr_accessor identifier }
- self.identifiers += identifiers
- end
+def identified_by(*identifiers)
+ Array(identifiers).each { |identifier| attr_accessor identifier }
+ self.identifiers += identifiers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/InternalChannel.html b/src/classes/ActionCable/Connection/InternalChannel.html
index 9b0144f690..cfdccceaf4 100644
--- a/src/classes/ActionCable/Connection/InternalChannel.html
+++ b/src/classes/ActionCable/Connection/InternalChannel.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
index 7167904452..bf0c696d62 100644
--- a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
+++ b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 15
- def initialize(name)
- super "Unable to determine the connection to test from #{name}. " +
- "You'll need to specify it using `tests YourConnection` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the connection to test from #{name}. " +
+ "You'll need to specify it using `tests YourConnection` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/StreamEventLoop.html b/src/classes/ActionCable/Connection/StreamEventLoop.html
index 2b71a213e3..f7c49354ef 100644
--- a/src/classes/ActionCable/Connection/StreamEventLoop.html
+++ b/src/classes/ActionCable/Connection/StreamEventLoop.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -111,16 +111,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 10
- def initialize
- @nio = @executor = @thread = nil
- @map = {}
- @stopping = false
- @todo = Queue.new
-
- @spawn_mutex = Mutex.new
- end
+def initialize
+ @nio = @executor = @thread = nil
+ @map = {}
+ @stopping = false
+ @todo = Queue.new
+
+ @spawn_mutex = Mutex.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -155,15 +155,15 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 30
- def attach(io, stream)
- @todo << lambda do
- @map[io] = @nio.register(io, :r)
- @map[io].value = stream
- end
- wakeup
- end
+def attach(io, stream)
+ @todo << lambda do
+ @map[io] = @nio.register(io, :r)
+ @map[io].value = stream
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -194,16 +194,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 38
- def detach(io, stream)
- @todo << lambda do
- @nio.deregister io
- @map.delete io
- io.close
- end
- wakeup
- end
+def detach(io, stream)
+ @todo << lambda do
+ @nio.deregister io
+ @map.delete io
+ io.close
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -234,14 +234,14 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 23
- def post(task = nil, &block)
- task ||= block
+def post(task = nil, &block)
+ task ||= block
- spawn
- @executor << task
- end
+ spawn
+ @executor << task
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,12 +272,12 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 56
- def stop
- @stopping = true
- wakeup if @nio
- end
+def stop
+ @stopping = true
+ wakeup if @nio
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -308,11 +308,11 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 19
- def timer(interval, &block)
- Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
- end
+def timer(interval, &block)
+ Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -343,16 +343,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 47
- def writes_pending(io)
- @todo << lambda do
- if monitor = @map[io]
- monitor.interests = :rw
- end
- end
- wakeup
- end
+def writes_pending(io)
+ @todo << lambda do
+ if monitor = @map[io]
+ monitor.interests = :rw
+ end
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
index f4d5cacc63..99731855fb 100644
--- a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
+++ b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -121,12 +121,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 16
- def initialize(logger, tags:)
- @logger = logger
- @tags = tags.flatten
- end
+def initialize(logger, tags:)
+ @logger = logger
+ @tags = tags.flatten
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -161,12 +161,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 21
- def add_tags(*tags)
- @tags += tags.flatten
- @tags = @tags.uniq
- end
+def add_tags(*tags)
+ @tags += tags.flatten
+ @tags = @tags.uniq
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -197,16 +197,16 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 26
- def tag(logger, &block)
- if logger.respond_to?(:tagged)
- current_tags = tags - logger.formatter.current_tags
- logger.tagged(*current_tags, &block)
- else
- yield
- end
- end
+def tag(logger, &block)
+ if logger.respond_to?(:tagged)
+ current_tags = tags - logger.formatter.current_tags
+ logger.tagged(*current_tags, &block)
+ else
+ yield
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,11 +240,11 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 42
- def log(type, message, &block) # :doc:
- tag(@logger) { @logger.send type, message, &block }
- end
+def log(type, message, &block) # :doc:
+ tag(@logger) { @logger.send type, message, &block }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase.html b/src/classes/ActionCable/Connection/TestCase.html
index 948378e491..39bc5cb056 100644
--- a/src/classes/ActionCable/Connection/TestCase.html
+++ b/src/classes/ActionCable/Connection/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior.html b/src/classes/ActionCable/Connection/TestCase/Behavior.html
index b87870becd..4ee0debbea 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -163,19 +163,19 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 192
- def connect(path = ActionCable.server.config.mount_path, **request_params)
- path ||= DEFAULT_PATH
+def connect(path = ActionCable.server.config.mount_path, **request_params)
+ path ||= DEFAULT_PATH
- connection = self.class.connection_class.allocate
- connection.singleton_class.include(TestConnection)
- connection.send(:initialize, build_test_request(path, **request_params))
- connection.connect if connection.respond_to?(:connect)
+ connection = self.class.connection_class.allocate
+ connection.singleton_class.include(TestConnection)
+ connection.send(:initialize, build_test_request(path, **request_params))
+ connection.connect if connection.respond_to?(:connect)
- # Only set instance variable if connected successfully
- @connection = connection
- end
+ # Only set instance variable if connected successfully
+ @connection = connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -206,11 +206,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 212
- def cookies
- @cookie_jar ||= TestCookieJar.new
- end
+def cookies
+ @cookie_jar ||= TestCookieJar.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -241,14 +241,14 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 205
- def disconnect
- raise "Must be connected!" if connection.nil?
+def disconnect
+ raise "Must be connected!" if connection.nil?
- connection.disconnect if connection.respond_to?(:disconnect)
- @connection = nil
- end
+ connection.disconnect if connection.respond_to?(:disconnect)
+ @connection = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
index 63444f4b27..99fc0e3f6f 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 167
- def connection_class
- if connection = self._connection_class
- connection
- else
- tests determine_default_connection(name)
- end
- end
+def connection_class
+ if connection = self._connection_class
+ connection
+ else
+ tests determine_default_connection(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 175
- def determine_default_connection(name)
- connection = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Connection::Base
- end
- raise NonInferrableConnectionError.new(name) if connection.nil?
- connection
- end
+def determine_default_connection(name)
+ connection = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Connection::Base
+ end
+ raise NonInferrableConnectionError.new(name) if connection.nil?
+ connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/connection/base.rb, line 138
- def statistics
- {
- identifier: connection_identifier,
- started_at: @started_at,
- subscriptions: subscriptions.identifiers,
- request_id: @env["action_dispatch.request_id"]
- }
- end# File actioncable/lib/action_cable/connection/base.rb, line 187
- def cookies # :doc:
- request.cookie_jar
- end
+def cookies # :doc:
+ request.cookie_jar
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -529,14 +529,14 @@
# File actioncable/lib/action_cable/connection/base.rb, line 178
- def request # :doc:
- @request ||= begin
- environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
- ActionDispatch::Request.new(environment || env)
- end
- end
+def request # :doc:
+ @request ||= begin
+ environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
+ ActionDispatch::Request.new(environment || env)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Callbacks.html b/src/classes/ActionCable/Connection/Callbacks.html
index 818958bf81..d6504ca284 100644
--- a/src/classes/ActionCable/Connection/Callbacks.html
+++ b/src/classes/ActionCable/Connection/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
index 933056a029..6376d7195b 100644
--- a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,11 +90,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 47
- def after_command(*methods, &block)
- set_callback(:command, :after, *methods, &block)
- end
+def after_command(*methods, &block)
+ set_callback(:command, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -125,11 +125,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 51
- def around_command(*methods, &block)
- set_callback(:command, :around, *methods, &block)
- end
+def around_command(*methods, &block)
+ set_callback(:command, :around, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -160,11 +160,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 43
- def before_command(*methods, &block)
- set_callback(:command, :before, *methods, &block)
- end
+def before_command(*methods, &block)
+ set_callback(:command, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification.html b/src/classes/ActionCable/Connection/Identification.html
index f3dcea9bfc..063ca88999 100644
--- a/src/classes/ActionCable/Connection/Identification.html
+++ b/src/classes/ActionCable/Connection/Identification.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,15 +95,15 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 29
- def connection_identifier
- unless defined? @connection_identifier
- @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
- end
+def connection_identifier
+ unless defined? @connection_identifier
+ @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
+ end
- @connection_identifier
- end
+ @connection_identifier
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification/ClassMethods.html b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
index 324ded31f5..a3395ef8a3 100644
--- a/src/classes/ActionCable/Connection/Identification/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -84,12 +84,12 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 21
- def identified_by(*identifiers)
- Array(identifiers).each { |identifier| attr_accessor identifier }
- self.identifiers += identifiers
- end
+def identified_by(*identifiers)
+ Array(identifiers).each { |identifier| attr_accessor identifier }
+ self.identifiers += identifiers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/InternalChannel.html b/src/classes/ActionCable/Connection/InternalChannel.html
index 9b0144f690..cfdccceaf4 100644
--- a/src/classes/ActionCable/Connection/InternalChannel.html
+++ b/src/classes/ActionCable/Connection/InternalChannel.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
index 7167904452..bf0c696d62 100644
--- a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
+++ b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 15
- def initialize(name)
- super "Unable to determine the connection to test from #{name}. " +
- "You'll need to specify it using `tests YourConnection` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the connection to test from #{name}. " +
+ "You'll need to specify it using `tests YourConnection` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/StreamEventLoop.html b/src/classes/ActionCable/Connection/StreamEventLoop.html
index 2b71a213e3..f7c49354ef 100644
--- a/src/classes/ActionCable/Connection/StreamEventLoop.html
+++ b/src/classes/ActionCable/Connection/StreamEventLoop.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -111,16 +111,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 10
- def initialize
- @nio = @executor = @thread = nil
- @map = {}
- @stopping = false
- @todo = Queue.new
-
- @spawn_mutex = Mutex.new
- end
+def initialize
+ @nio = @executor = @thread = nil
+ @map = {}
+ @stopping = false
+ @todo = Queue.new
+
+ @spawn_mutex = Mutex.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -155,15 +155,15 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 30
- def attach(io, stream)
- @todo << lambda do
- @map[io] = @nio.register(io, :r)
- @map[io].value = stream
- end
- wakeup
- end
+def attach(io, stream)
+ @todo << lambda do
+ @map[io] = @nio.register(io, :r)
+ @map[io].value = stream
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -194,16 +194,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 38
- def detach(io, stream)
- @todo << lambda do
- @nio.deregister io
- @map.delete io
- io.close
- end
- wakeup
- end
+def detach(io, stream)
+ @todo << lambda do
+ @nio.deregister io
+ @map.delete io
+ io.close
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -234,14 +234,14 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 23
- def post(task = nil, &block)
- task ||= block
+def post(task = nil, &block)
+ task ||= block
- spawn
- @executor << task
- end
+ spawn
+ @executor << task
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,12 +272,12 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 56
- def stop
- @stopping = true
- wakeup if @nio
- end
+def stop
+ @stopping = true
+ wakeup if @nio
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -308,11 +308,11 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 19
- def timer(interval, &block)
- Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
- end
+def timer(interval, &block)
+ Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -343,16 +343,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 47
- def writes_pending(io)
- @todo << lambda do
- if monitor = @map[io]
- monitor.interests = :rw
- end
- end
- wakeup
- end
+def writes_pending(io)
+ @todo << lambda do
+ if monitor = @map[io]
+ monitor.interests = :rw
+ end
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
index f4d5cacc63..99731855fb 100644
--- a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
+++ b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -121,12 +121,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 16
- def initialize(logger, tags:)
- @logger = logger
- @tags = tags.flatten
- end
+def initialize(logger, tags:)
+ @logger = logger
+ @tags = tags.flatten
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -161,12 +161,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 21
- def add_tags(*tags)
- @tags += tags.flatten
- @tags = @tags.uniq
- end
+def add_tags(*tags)
+ @tags += tags.flatten
+ @tags = @tags.uniq
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -197,16 +197,16 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 26
- def tag(logger, &block)
- if logger.respond_to?(:tagged)
- current_tags = tags - logger.formatter.current_tags
- logger.tagged(*current_tags, &block)
- else
- yield
- end
- end
+def tag(logger, &block)
+ if logger.respond_to?(:tagged)
+ current_tags = tags - logger.formatter.current_tags
+ logger.tagged(*current_tags, &block)
+ else
+ yield
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,11 +240,11 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 42
- def log(type, message, &block) # :doc:
- tag(@logger) { @logger.send type, message, &block }
- end
+def log(type, message, &block) # :doc:
+ tag(@logger) { @logger.send type, message, &block }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase.html b/src/classes/ActionCable/Connection/TestCase.html
index 948378e491..39bc5cb056 100644
--- a/src/classes/ActionCable/Connection/TestCase.html
+++ b/src/classes/ActionCable/Connection/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior.html b/src/classes/ActionCable/Connection/TestCase/Behavior.html
index b87870becd..4ee0debbea 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -163,19 +163,19 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 192
- def connect(path = ActionCable.server.config.mount_path, **request_params)
- path ||= DEFAULT_PATH
+def connect(path = ActionCable.server.config.mount_path, **request_params)
+ path ||= DEFAULT_PATH
- connection = self.class.connection_class.allocate
- connection.singleton_class.include(TestConnection)
- connection.send(:initialize, build_test_request(path, **request_params))
- connection.connect if connection.respond_to?(:connect)
+ connection = self.class.connection_class.allocate
+ connection.singleton_class.include(TestConnection)
+ connection.send(:initialize, build_test_request(path, **request_params))
+ connection.connect if connection.respond_to?(:connect)
- # Only set instance variable if connected successfully
- @connection = connection
- end
+ # Only set instance variable if connected successfully
+ @connection = connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -206,11 +206,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 212
- def cookies
- @cookie_jar ||= TestCookieJar.new
- end
+def cookies
+ @cookie_jar ||= TestCookieJar.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -241,14 +241,14 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 205
- def disconnect
- raise "Must be connected!" if connection.nil?
+def disconnect
+ raise "Must be connected!" if connection.nil?
- connection.disconnect if connection.respond_to?(:disconnect)
- @connection = nil
- end
+ connection.disconnect if connection.respond_to?(:disconnect)
+ @connection = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
index 63444f4b27..99fc0e3f6f 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 167
- def connection_class
- if connection = self._connection_class
- connection
- else
- tests determine_default_connection(name)
- end
- end
+def connection_class
+ if connection = self._connection_class
+ connection
+ else
+ tests determine_default_connection(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 175
- def determine_default_connection(name)
- connection = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Connection::Base
- end
- raise NonInferrableConnectionError.new(name) if connection.nil?
- connection
- end
+def determine_default_connection(name)
+ connection = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Connection::Base
+ end
+ raise NonInferrableConnectionError.new(name) if connection.nil?
+ connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/connection/base.rb, line 178
- def request # :doc:
- @request ||= begin
- environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
- ActionDispatch::Request.new(environment || env)
- end
- end+ Ruby on Rails 8.1.0.rc1
diff --git a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
index 933056a029..6376d7195b 100644
--- a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,11 +90,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 47
- def after_command(*methods, &block)
- set_callback(:command, :after, *methods, &block)
- end
+def after_command(*methods, &block)
+ set_callback(:command, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -125,11 +125,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 51
- def around_command(*methods, &block)
- set_callback(:command, :around, *methods, &block)
- end
+def around_command(*methods, &block)
+ set_callback(:command, :around, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -160,11 +160,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 43
- def before_command(*methods, &block)
- set_callback(:command, :before, *methods, &block)
- end
+def before_command(*methods, &block)
+ set_callback(:command, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification.html b/src/classes/ActionCable/Connection/Identification.html
index f3dcea9bfc..063ca88999 100644
--- a/src/classes/ActionCable/Connection/Identification.html
+++ b/src/classes/ActionCable/Connection/Identification.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,15 +95,15 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 29
- def connection_identifier
- unless defined? @connection_identifier
- @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
- end
+def connection_identifier
+ unless defined? @connection_identifier
+ @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
+ end
- @connection_identifier
- end
+ @connection_identifier
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification/ClassMethods.html b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
index 324ded31f5..a3395ef8a3 100644
--- a/src/classes/ActionCable/Connection/Identification/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -84,12 +84,12 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 21
- def identified_by(*identifiers)
- Array(identifiers).each { |identifier| attr_accessor identifier }
- self.identifiers += identifiers
- end
+def identified_by(*identifiers)
+ Array(identifiers).each { |identifier| attr_accessor identifier }
+ self.identifiers += identifiers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/InternalChannel.html b/src/classes/ActionCable/Connection/InternalChannel.html
index 9b0144f690..cfdccceaf4 100644
--- a/src/classes/ActionCable/Connection/InternalChannel.html
+++ b/src/classes/ActionCable/Connection/InternalChannel.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
index 7167904452..bf0c696d62 100644
--- a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
+++ b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 15
- def initialize(name)
- super "Unable to determine the connection to test from #{name}. " +
- "You'll need to specify it using `tests YourConnection` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the connection to test from #{name}. " +
+ "You'll need to specify it using `tests YourConnection` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/StreamEventLoop.html b/src/classes/ActionCable/Connection/StreamEventLoop.html
index 2b71a213e3..f7c49354ef 100644
--- a/src/classes/ActionCable/Connection/StreamEventLoop.html
+++ b/src/classes/ActionCable/Connection/StreamEventLoop.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -111,16 +111,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 10
- def initialize
- @nio = @executor = @thread = nil
- @map = {}
- @stopping = false
- @todo = Queue.new
-
- @spawn_mutex = Mutex.new
- end
+def initialize
+ @nio = @executor = @thread = nil
+ @map = {}
+ @stopping = false
+ @todo = Queue.new
+
+ @spawn_mutex = Mutex.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -155,15 +155,15 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 30
- def attach(io, stream)
- @todo << lambda do
- @map[io] = @nio.register(io, :r)
- @map[io].value = stream
- end
- wakeup
- end
+def attach(io, stream)
+ @todo << lambda do
+ @map[io] = @nio.register(io, :r)
+ @map[io].value = stream
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -194,16 +194,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 38
- def detach(io, stream)
- @todo << lambda do
- @nio.deregister io
- @map.delete io
- io.close
- end
- wakeup
- end
+def detach(io, stream)
+ @todo << lambda do
+ @nio.deregister io
+ @map.delete io
+ io.close
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -234,14 +234,14 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 23
- def post(task = nil, &block)
- task ||= block
+def post(task = nil, &block)
+ task ||= block
- spawn
- @executor << task
- end
+ spawn
+ @executor << task
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,12 +272,12 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 56
- def stop
- @stopping = true
- wakeup if @nio
- end
+def stop
+ @stopping = true
+ wakeup if @nio
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -308,11 +308,11 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 19
- def timer(interval, &block)
- Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
- end
+def timer(interval, &block)
+ Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -343,16 +343,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 47
- def writes_pending(io)
- @todo << lambda do
- if monitor = @map[io]
- monitor.interests = :rw
- end
- end
- wakeup
- end
+def writes_pending(io)
+ @todo << lambda do
+ if monitor = @map[io]
+ monitor.interests = :rw
+ end
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
index f4d5cacc63..99731855fb 100644
--- a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
+++ b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -121,12 +121,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 16
- def initialize(logger, tags:)
- @logger = logger
- @tags = tags.flatten
- end
+def initialize(logger, tags:)
+ @logger = logger
+ @tags = tags.flatten
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -161,12 +161,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 21
- def add_tags(*tags)
- @tags += tags.flatten
- @tags = @tags.uniq
- end
+def add_tags(*tags)
+ @tags += tags.flatten
+ @tags = @tags.uniq
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -197,16 +197,16 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 26
- def tag(logger, &block)
- if logger.respond_to?(:tagged)
- current_tags = tags - logger.formatter.current_tags
- logger.tagged(*current_tags, &block)
- else
- yield
- end
- end
+def tag(logger, &block)
+ if logger.respond_to?(:tagged)
+ current_tags = tags - logger.formatter.current_tags
+ logger.tagged(*current_tags, &block)
+ else
+ yield
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,11 +240,11 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 42
- def log(type, message, &block) # :doc:
- tag(@logger) { @logger.send type, message, &block }
- end
+def log(type, message, &block) # :doc:
+ tag(@logger) { @logger.send type, message, &block }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase.html b/src/classes/ActionCable/Connection/TestCase.html
index 948378e491..39bc5cb056 100644
--- a/src/classes/ActionCable/Connection/TestCase.html
+++ b/src/classes/ActionCable/Connection/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior.html b/src/classes/ActionCable/Connection/TestCase/Behavior.html
index b87870becd..4ee0debbea 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -163,19 +163,19 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 192
- def connect(path = ActionCable.server.config.mount_path, **request_params)
- path ||= DEFAULT_PATH
+def connect(path = ActionCable.server.config.mount_path, **request_params)
+ path ||= DEFAULT_PATH
- connection = self.class.connection_class.allocate
- connection.singleton_class.include(TestConnection)
- connection.send(:initialize, build_test_request(path, **request_params))
- connection.connect if connection.respond_to?(:connect)
+ connection = self.class.connection_class.allocate
+ connection.singleton_class.include(TestConnection)
+ connection.send(:initialize, build_test_request(path, **request_params))
+ connection.connect if connection.respond_to?(:connect)
- # Only set instance variable if connected successfully
- @connection = connection
- end
+ # Only set instance variable if connected successfully
+ @connection = connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -206,11 +206,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 212
- def cookies
- @cookie_jar ||= TestCookieJar.new
- end
+def cookies
+ @cookie_jar ||= TestCookieJar.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -241,14 +241,14 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 205
- def disconnect
- raise "Must be connected!" if connection.nil?
+def disconnect
+ raise "Must be connected!" if connection.nil?
- connection.disconnect if connection.respond_to?(:disconnect)
- @connection = nil
- end
+ connection.disconnect if connection.respond_to?(:disconnect)
+ @connection = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
index 63444f4b27..99fc0e3f6f 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 167
- def connection_class
- if connection = self._connection_class
- connection
- else
- tests determine_default_connection(name)
- end
- end
+def connection_class
+ if connection = self._connection_class
+ connection
+ else
+ tests determine_default_connection(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 175
- def determine_default_connection(name)
- connection = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Connection::Base
- end
- raise NonInferrableConnectionError.new(name) if connection.nil?
- connection
- end
+def determine_default_connection(name)
+ connection = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Connection::Base
+ end
+ raise NonInferrableConnectionError.new(name) if connection.nil?
+ connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
+ Ruby on Rails 8.1.0.rc1
@@ -90,11 +90,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 47
- def after_command(*methods, &block)
- set_callback(:command, :after, *methods, &block)
- end
+def after_command(*methods, &block)
+ set_callback(:command, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -125,11 +125,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 51
- def around_command(*methods, &block)
- set_callback(:command, :around, *methods, &block)
- end
+def around_command(*methods, &block)
+ set_callback(:command, :around, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -160,11 +160,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 43
- def before_command(*methods, &block)
- set_callback(:command, :before, *methods, &block)
- end
+def before_command(*methods, &block)
+ set_callback(:command, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification.html b/src/classes/ActionCable/Connection/Identification.html
index f3dcea9bfc..063ca88999 100644
--- a/src/classes/ActionCable/Connection/Identification.html
+++ b/src/classes/ActionCable/Connection/Identification.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,15 +95,15 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 29
- def connection_identifier
- unless defined? @connection_identifier
- @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
- end
+def connection_identifier
+ unless defined? @connection_identifier
+ @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
+ end
- @connection_identifier
- end
+ @connection_identifier
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification/ClassMethods.html b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
index 324ded31f5..a3395ef8a3 100644
--- a/src/classes/ActionCable/Connection/Identification/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -84,12 +84,12 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 21
- def identified_by(*identifiers)
- Array(identifiers).each { |identifier| attr_accessor identifier }
- self.identifiers += identifiers
- end
+def identified_by(*identifiers)
+ Array(identifiers).each { |identifier| attr_accessor identifier }
+ self.identifiers += identifiers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/InternalChannel.html b/src/classes/ActionCable/Connection/InternalChannel.html
index 9b0144f690..cfdccceaf4 100644
--- a/src/classes/ActionCable/Connection/InternalChannel.html
+++ b/src/classes/ActionCable/Connection/InternalChannel.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
index 7167904452..bf0c696d62 100644
--- a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
+++ b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 15
- def initialize(name)
- super "Unable to determine the connection to test from #{name}. " +
- "You'll need to specify it using `tests YourConnection` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the connection to test from #{name}. " +
+ "You'll need to specify it using `tests YourConnection` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/StreamEventLoop.html b/src/classes/ActionCable/Connection/StreamEventLoop.html
index 2b71a213e3..f7c49354ef 100644
--- a/src/classes/ActionCable/Connection/StreamEventLoop.html
+++ b/src/classes/ActionCable/Connection/StreamEventLoop.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -111,16 +111,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 10
- def initialize
- @nio = @executor = @thread = nil
- @map = {}
- @stopping = false
- @todo = Queue.new
-
- @spawn_mutex = Mutex.new
- end
+def initialize
+ @nio = @executor = @thread = nil
+ @map = {}
+ @stopping = false
+ @todo = Queue.new
+
+ @spawn_mutex = Mutex.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -155,15 +155,15 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 30
- def attach(io, stream)
- @todo << lambda do
- @map[io] = @nio.register(io, :r)
- @map[io].value = stream
- end
- wakeup
- end
+def attach(io, stream)
+ @todo << lambda do
+ @map[io] = @nio.register(io, :r)
+ @map[io].value = stream
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -194,16 +194,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 38
- def detach(io, stream)
- @todo << lambda do
- @nio.deregister io
- @map.delete io
- io.close
- end
- wakeup
- end
+def detach(io, stream)
+ @todo << lambda do
+ @nio.deregister io
+ @map.delete io
+ io.close
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -234,14 +234,14 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 23
- def post(task = nil, &block)
- task ||= block
+def post(task = nil, &block)
+ task ||= block
- spawn
- @executor << task
- end
+ spawn
+ @executor << task
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,12 +272,12 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 56
- def stop
- @stopping = true
- wakeup if @nio
- end
+def stop
+ @stopping = true
+ wakeup if @nio
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -308,11 +308,11 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 19
- def timer(interval, &block)
- Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
- end
+def timer(interval, &block)
+ Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -343,16 +343,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 47
- def writes_pending(io)
- @todo << lambda do
- if monitor = @map[io]
- monitor.interests = :rw
- end
- end
- wakeup
- end
+def writes_pending(io)
+ @todo << lambda do
+ if monitor = @map[io]
+ monitor.interests = :rw
+ end
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
index f4d5cacc63..99731855fb 100644
--- a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
+++ b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -121,12 +121,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 16
- def initialize(logger, tags:)
- @logger = logger
- @tags = tags.flatten
- end
+def initialize(logger, tags:)
+ @logger = logger
+ @tags = tags.flatten
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -161,12 +161,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 21
- def add_tags(*tags)
- @tags += tags.flatten
- @tags = @tags.uniq
- end
+def add_tags(*tags)
+ @tags += tags.flatten
+ @tags = @tags.uniq
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -197,16 +197,16 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 26
- def tag(logger, &block)
- if logger.respond_to?(:tagged)
- current_tags = tags - logger.formatter.current_tags
- logger.tagged(*current_tags, &block)
- else
- yield
- end
- end
+def tag(logger, &block)
+ if logger.respond_to?(:tagged)
+ current_tags = tags - logger.formatter.current_tags
+ logger.tagged(*current_tags, &block)
+ else
+ yield
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,11 +240,11 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 42
- def log(type, message, &block) # :doc:
- tag(@logger) { @logger.send type, message, &block }
- end
+def log(type, message, &block) # :doc:
+ tag(@logger) { @logger.send type, message, &block }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase.html b/src/classes/ActionCable/Connection/TestCase.html
index 948378e491..39bc5cb056 100644
--- a/src/classes/ActionCable/Connection/TestCase.html
+++ b/src/classes/ActionCable/Connection/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior.html b/src/classes/ActionCable/Connection/TestCase/Behavior.html
index b87870becd..4ee0debbea 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -163,19 +163,19 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 192
- def connect(path = ActionCable.server.config.mount_path, **request_params)
- path ||= DEFAULT_PATH
+def connect(path = ActionCable.server.config.mount_path, **request_params)
+ path ||= DEFAULT_PATH
- connection = self.class.connection_class.allocate
- connection.singleton_class.include(TestConnection)
- connection.send(:initialize, build_test_request(path, **request_params))
- connection.connect if connection.respond_to?(:connect)
+ connection = self.class.connection_class.allocate
+ connection.singleton_class.include(TestConnection)
+ connection.send(:initialize, build_test_request(path, **request_params))
+ connection.connect if connection.respond_to?(:connect)
- # Only set instance variable if connected successfully
- @connection = connection
- end
+ # Only set instance variable if connected successfully
+ @connection = connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -206,11 +206,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 212
- def cookies
- @cookie_jar ||= TestCookieJar.new
- end
+def cookies
+ @cookie_jar ||= TestCookieJar.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -241,14 +241,14 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 205
- def disconnect
- raise "Must be connected!" if connection.nil?
+def disconnect
+ raise "Must be connected!" if connection.nil?
- connection.disconnect if connection.respond_to?(:disconnect)
- @connection = nil
- end
+ connection.disconnect if connection.respond_to?(:disconnect)
+ @connection = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
index 63444f4b27..99fc0e3f6f 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 167
- def connection_class
- if connection = self._connection_class
- connection
- else
- tests determine_default_connection(name)
- end
- end
+def connection_class
+ if connection = self._connection_class
+ connection
+ else
+ tests determine_default_connection(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 175
- def determine_default_connection(name)
- connection = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Connection::Base
- end
- raise NonInferrableConnectionError.new(name) if connection.nil?
- connection
- end
+def determine_default_connection(name)
+ connection = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Connection::Base
+ end
+ raise NonInferrableConnectionError.new(name) if connection.nil?
+ connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 47
- def after_command(*methods, &block)
- set_callback(:command, :after, *methods, &block)
- end
+def after_command(*methods, &block)
+ set_callback(:command, :after, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -125,11 +125,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 51
- def around_command(*methods, &block)
- set_callback(:command, :around, *methods, &block)
- end
+def around_command(*methods, &block)
+ set_callback(:command, :around, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -160,11 +160,11 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 43
- def before_command(*methods, &block)
- set_callback(:command, :before, *methods, &block)
- end
+def before_command(*methods, &block)
+ set_callback(:command, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification.html b/src/classes/ActionCable/Connection/Identification.html
index f3dcea9bfc..063ca88999 100644
--- a/src/classes/ActionCable/Connection/Identification.html
+++ b/src/classes/ActionCable/Connection/Identification.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -95,15 +95,15 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 29
- def connection_identifier
- unless defined? @connection_identifier
- @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
- end
+def connection_identifier
+ unless defined? @connection_identifier
+ @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
+ end
- @connection_identifier
- end
+ @connection_identifier
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification/ClassMethods.html b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
index 324ded31f5..a3395ef8a3 100644
--- a/src/classes/ActionCable/Connection/Identification/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -84,12 +84,12 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 21
- def identified_by(*identifiers)
- Array(identifiers).each { |identifier| attr_accessor identifier }
- self.identifiers += identifiers
- end
+def identified_by(*identifiers)
+ Array(identifiers).each { |identifier| attr_accessor identifier }
+ self.identifiers += identifiers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/InternalChannel.html b/src/classes/ActionCable/Connection/InternalChannel.html
index 9b0144f690..cfdccceaf4 100644
--- a/src/classes/ActionCable/Connection/InternalChannel.html
+++ b/src/classes/ActionCable/Connection/InternalChannel.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
index 7167904452..bf0c696d62 100644
--- a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
+++ b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 15
- def initialize(name)
- super "Unable to determine the connection to test from #{name}. " +
- "You'll need to specify it using `tests YourConnection` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the connection to test from #{name}. " +
+ "You'll need to specify it using `tests YourConnection` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/StreamEventLoop.html b/src/classes/ActionCable/Connection/StreamEventLoop.html
index 2b71a213e3..f7c49354ef 100644
--- a/src/classes/ActionCable/Connection/StreamEventLoop.html
+++ b/src/classes/ActionCable/Connection/StreamEventLoop.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -111,16 +111,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 10
- def initialize
- @nio = @executor = @thread = nil
- @map = {}
- @stopping = false
- @todo = Queue.new
-
- @spawn_mutex = Mutex.new
- end
+def initialize
+ @nio = @executor = @thread = nil
+ @map = {}
+ @stopping = false
+ @todo = Queue.new
+
+ @spawn_mutex = Mutex.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -155,15 +155,15 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 30
- def attach(io, stream)
- @todo << lambda do
- @map[io] = @nio.register(io, :r)
- @map[io].value = stream
- end
- wakeup
- end
+def attach(io, stream)
+ @todo << lambda do
+ @map[io] = @nio.register(io, :r)
+ @map[io].value = stream
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -194,16 +194,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 38
- def detach(io, stream)
- @todo << lambda do
- @nio.deregister io
- @map.delete io
- io.close
- end
- wakeup
- end
+def detach(io, stream)
+ @todo << lambda do
+ @nio.deregister io
+ @map.delete io
+ io.close
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -234,14 +234,14 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 23
- def post(task = nil, &block)
- task ||= block
+def post(task = nil, &block)
+ task ||= block
- spawn
- @executor << task
- end
+ spawn
+ @executor << task
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,12 +272,12 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 56
- def stop
- @stopping = true
- wakeup if @nio
- end
+def stop
+ @stopping = true
+ wakeup if @nio
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -308,11 +308,11 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 19
- def timer(interval, &block)
- Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
- end
+def timer(interval, &block)
+ Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -343,16 +343,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 47
- def writes_pending(io)
- @todo << lambda do
- if monitor = @map[io]
- monitor.interests = :rw
- end
- end
- wakeup
- end
+def writes_pending(io)
+ @todo << lambda do
+ if monitor = @map[io]
+ monitor.interests = :rw
+ end
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
index f4d5cacc63..99731855fb 100644
--- a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
+++ b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -121,12 +121,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 16
- def initialize(logger, tags:)
- @logger = logger
- @tags = tags.flatten
- end
+def initialize(logger, tags:)
+ @logger = logger
+ @tags = tags.flatten
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -161,12 +161,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 21
- def add_tags(*tags)
- @tags += tags.flatten
- @tags = @tags.uniq
- end
+def add_tags(*tags)
+ @tags += tags.flatten
+ @tags = @tags.uniq
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -197,16 +197,16 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 26
- def tag(logger, &block)
- if logger.respond_to?(:tagged)
- current_tags = tags - logger.formatter.current_tags
- logger.tagged(*current_tags, &block)
- else
- yield
- end
- end
+def tag(logger, &block)
+ if logger.respond_to?(:tagged)
+ current_tags = tags - logger.formatter.current_tags
+ logger.tagged(*current_tags, &block)
+ else
+ yield
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,11 +240,11 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 42
- def log(type, message, &block) # :doc:
- tag(@logger) { @logger.send type, message, &block }
- end
+def log(type, message, &block) # :doc:
+ tag(@logger) { @logger.send type, message, &block }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase.html b/src/classes/ActionCable/Connection/TestCase.html
index 948378e491..39bc5cb056 100644
--- a/src/classes/ActionCable/Connection/TestCase.html
+++ b/src/classes/ActionCable/Connection/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior.html b/src/classes/ActionCable/Connection/TestCase/Behavior.html
index b87870becd..4ee0debbea 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -163,19 +163,19 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 192
- def connect(path = ActionCable.server.config.mount_path, **request_params)
- path ||= DEFAULT_PATH
+def connect(path = ActionCable.server.config.mount_path, **request_params)
+ path ||= DEFAULT_PATH
- connection = self.class.connection_class.allocate
- connection.singleton_class.include(TestConnection)
- connection.send(:initialize, build_test_request(path, **request_params))
- connection.connect if connection.respond_to?(:connect)
+ connection = self.class.connection_class.allocate
+ connection.singleton_class.include(TestConnection)
+ connection.send(:initialize, build_test_request(path, **request_params))
+ connection.connect if connection.respond_to?(:connect)
- # Only set instance variable if connected successfully
- @connection = connection
- end
+ # Only set instance variable if connected successfully
+ @connection = connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -206,11 +206,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 212
- def cookies
- @cookie_jar ||= TestCookieJar.new
- end
+def cookies
+ @cookie_jar ||= TestCookieJar.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -241,14 +241,14 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 205
- def disconnect
- raise "Must be connected!" if connection.nil?
+def disconnect
+ raise "Must be connected!" if connection.nil?
- connection.disconnect if connection.respond_to?(:disconnect)
- @connection = nil
- end
+ connection.disconnect if connection.respond_to?(:disconnect)
+ @connection = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
index 63444f4b27..99fc0e3f6f 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 167
- def connection_class
- if connection = self._connection_class
- connection
- else
- tests determine_default_connection(name)
- end
- end
+def connection_class
+ if connection = self._connection_class
+ connection
+ else
+ tests determine_default_connection(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 175
- def determine_default_connection(name)
- connection = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Connection::Base
- end
- raise NonInferrableConnectionError.new(name) if connection.nil?
- connection
- end
+def determine_default_connection(name)
+ connection = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Connection::Base
+ end
+ raise NonInferrableConnectionError.new(name) if connection.nil?
+ connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/connection/callbacks.rb, line 51
- def around_command(*methods, &block)
- set_callback(:command, :around, *methods, &block)
- end# File actioncable/lib/action_cable/connection/callbacks.rb, line 43
- def before_command(*methods, &block)
- set_callback(:command, :before, *methods, &block)
- end
+def before_command(*methods, &block)
+ set_callback(:command, :before, *methods, &block)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification.html b/src/classes/ActionCable/Connection/Identification.html
index f3dcea9bfc..063ca88999 100644
--- a/src/classes/ActionCable/Connection/Identification.html
+++ b/src/classes/ActionCable/Connection/Identification.html
@@ -5,7 +5,7 @@
+ Ruby on Rails 8.1.0.rc1
@@ -95,15 +95,15 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 29
- def connection_identifier
- unless defined? @connection_identifier
- @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
- end
+def connection_identifier
+ unless defined? @connection_identifier
+ @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
+ end
- @connection_identifier
- end
+ @connection_identifier
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification/ClassMethods.html b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
index 324ded31f5..a3395ef8a3 100644
--- a/src/classes/ActionCable/Connection/Identification/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -84,12 +84,12 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 21
- def identified_by(*identifiers)
- Array(identifiers).each { |identifier| attr_accessor identifier }
- self.identifiers += identifiers
- end
+def identified_by(*identifiers)
+ Array(identifiers).each { |identifier| attr_accessor identifier }
+ self.identifiers += identifiers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/InternalChannel.html b/src/classes/ActionCable/Connection/InternalChannel.html
index 9b0144f690..cfdccceaf4 100644
--- a/src/classes/ActionCable/Connection/InternalChannel.html
+++ b/src/classes/ActionCable/Connection/InternalChannel.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
index 7167904452..bf0c696d62 100644
--- a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
+++ b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 15
- def initialize(name)
- super "Unable to determine the connection to test from #{name}. " +
- "You'll need to specify it using `tests YourConnection` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the connection to test from #{name}. " +
+ "You'll need to specify it using `tests YourConnection` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/StreamEventLoop.html b/src/classes/ActionCable/Connection/StreamEventLoop.html
index 2b71a213e3..f7c49354ef 100644
--- a/src/classes/ActionCable/Connection/StreamEventLoop.html
+++ b/src/classes/ActionCable/Connection/StreamEventLoop.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -111,16 +111,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 10
- def initialize
- @nio = @executor = @thread = nil
- @map = {}
- @stopping = false
- @todo = Queue.new
-
- @spawn_mutex = Mutex.new
- end
+def initialize
+ @nio = @executor = @thread = nil
+ @map = {}
+ @stopping = false
+ @todo = Queue.new
+
+ @spawn_mutex = Mutex.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -155,15 +155,15 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 30
- def attach(io, stream)
- @todo << lambda do
- @map[io] = @nio.register(io, :r)
- @map[io].value = stream
- end
- wakeup
- end
+def attach(io, stream)
+ @todo << lambda do
+ @map[io] = @nio.register(io, :r)
+ @map[io].value = stream
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -194,16 +194,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 38
- def detach(io, stream)
- @todo << lambda do
- @nio.deregister io
- @map.delete io
- io.close
- end
- wakeup
- end
+def detach(io, stream)
+ @todo << lambda do
+ @nio.deregister io
+ @map.delete io
+ io.close
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -234,14 +234,14 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 23
- def post(task = nil, &block)
- task ||= block
+def post(task = nil, &block)
+ task ||= block
- spawn
- @executor << task
- end
+ spawn
+ @executor << task
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,12 +272,12 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 56
- def stop
- @stopping = true
- wakeup if @nio
- end
+def stop
+ @stopping = true
+ wakeup if @nio
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -308,11 +308,11 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 19
- def timer(interval, &block)
- Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
- end
+def timer(interval, &block)
+ Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -343,16 +343,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 47
- def writes_pending(io)
- @todo << lambda do
- if monitor = @map[io]
- monitor.interests = :rw
- end
- end
- wakeup
- end
+def writes_pending(io)
+ @todo << lambda do
+ if monitor = @map[io]
+ monitor.interests = :rw
+ end
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
index f4d5cacc63..99731855fb 100644
--- a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
+++ b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -121,12 +121,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 16
- def initialize(logger, tags:)
- @logger = logger
- @tags = tags.flatten
- end
+def initialize(logger, tags:)
+ @logger = logger
+ @tags = tags.flatten
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -161,12 +161,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 21
- def add_tags(*tags)
- @tags += tags.flatten
- @tags = @tags.uniq
- end
+def add_tags(*tags)
+ @tags += tags.flatten
+ @tags = @tags.uniq
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -197,16 +197,16 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 26
- def tag(logger, &block)
- if logger.respond_to?(:tagged)
- current_tags = tags - logger.formatter.current_tags
- logger.tagged(*current_tags, &block)
- else
- yield
- end
- end
+def tag(logger, &block)
+ if logger.respond_to?(:tagged)
+ current_tags = tags - logger.formatter.current_tags
+ logger.tagged(*current_tags, &block)
+ else
+ yield
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,11 +240,11 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 42
- def log(type, message, &block) # :doc:
- tag(@logger) { @logger.send type, message, &block }
- end
+def log(type, message, &block) # :doc:
+ tag(@logger) { @logger.send type, message, &block }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase.html b/src/classes/ActionCable/Connection/TestCase.html
index 948378e491..39bc5cb056 100644
--- a/src/classes/ActionCable/Connection/TestCase.html
+++ b/src/classes/ActionCable/Connection/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior.html b/src/classes/ActionCable/Connection/TestCase/Behavior.html
index b87870becd..4ee0debbea 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -163,19 +163,19 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 192
- def connect(path = ActionCable.server.config.mount_path, **request_params)
- path ||= DEFAULT_PATH
+def connect(path = ActionCable.server.config.mount_path, **request_params)
+ path ||= DEFAULT_PATH
- connection = self.class.connection_class.allocate
- connection.singleton_class.include(TestConnection)
- connection.send(:initialize, build_test_request(path, **request_params))
- connection.connect if connection.respond_to?(:connect)
+ connection = self.class.connection_class.allocate
+ connection.singleton_class.include(TestConnection)
+ connection.send(:initialize, build_test_request(path, **request_params))
+ connection.connect if connection.respond_to?(:connect)
- # Only set instance variable if connected successfully
- @connection = connection
- end
+ # Only set instance variable if connected successfully
+ @connection = connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -206,11 +206,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 212
- def cookies
- @cookie_jar ||= TestCookieJar.new
- end
+def cookies
+ @cookie_jar ||= TestCookieJar.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -241,14 +241,14 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 205
- def disconnect
- raise "Must be connected!" if connection.nil?
+def disconnect
+ raise "Must be connected!" if connection.nil?
- connection.disconnect if connection.respond_to?(:disconnect)
- @connection = nil
- end
+ connection.disconnect if connection.respond_to?(:disconnect)
+ @connection = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
index 63444f4b27..99fc0e3f6f 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 167
- def connection_class
- if connection = self._connection_class
- connection
- else
- tests determine_default_connection(name)
- end
- end
+def connection_class
+ if connection = self._connection_class
+ connection
+ else
+ tests determine_default_connection(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 175
- def determine_default_connection(name)
- connection = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Connection::Base
- end
- raise NonInferrableConnectionError.new(name) if connection.nil?
- connection
- end
+def determine_default_connection(name)
+ connection = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Connection::Base
+ end
+ raise NonInferrableConnectionError.new(name) if connection.nil?
+ connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 29
- def connection_identifier
- unless defined? @connection_identifier
- @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
- end
+def connection_identifier
+ unless defined? @connection_identifier
+ @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
+ end
- @connection_identifier
- end
+ @connection_identifier
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification/ClassMethods.html b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
index 324ded31f5..a3395ef8a3 100644
--- a/src/classes/ActionCable/Connection/Identification/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/Identification/ClassMethods.html
@@ -5,7 +5,7 @@
+ Ruby on Rails 8.1.0.rc1
@@ -84,12 +84,12 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 21
- def identified_by(*identifiers)
- Array(identifiers).each { |identifier| attr_accessor identifier }
- self.identifiers += identifiers
- end
+def identified_by(*identifiers)
+ Array(identifiers).each { |identifier| attr_accessor identifier }
+ self.identifiers += identifiers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/InternalChannel.html b/src/classes/ActionCable/Connection/InternalChannel.html
index 9b0144f690..cfdccceaf4 100644
--- a/src/classes/ActionCable/Connection/InternalChannel.html
+++ b/src/classes/ActionCable/Connection/InternalChannel.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
diff --git a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
index 7167904452..bf0c696d62 100644
--- a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
+++ b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 15
- def initialize(name)
- super "Unable to determine the connection to test from #{name}. " +
- "You'll need to specify it using `tests YourConnection` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the connection to test from #{name}. " +
+ "You'll need to specify it using `tests YourConnection` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/StreamEventLoop.html b/src/classes/ActionCable/Connection/StreamEventLoop.html
index 2b71a213e3..f7c49354ef 100644
--- a/src/classes/ActionCable/Connection/StreamEventLoop.html
+++ b/src/classes/ActionCable/Connection/StreamEventLoop.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -111,16 +111,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 10
- def initialize
- @nio = @executor = @thread = nil
- @map = {}
- @stopping = false
- @todo = Queue.new
-
- @spawn_mutex = Mutex.new
- end
+def initialize
+ @nio = @executor = @thread = nil
+ @map = {}
+ @stopping = false
+ @todo = Queue.new
+
+ @spawn_mutex = Mutex.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -155,15 +155,15 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 30
- def attach(io, stream)
- @todo << lambda do
- @map[io] = @nio.register(io, :r)
- @map[io].value = stream
- end
- wakeup
- end
+def attach(io, stream)
+ @todo << lambda do
+ @map[io] = @nio.register(io, :r)
+ @map[io].value = stream
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -194,16 +194,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 38
- def detach(io, stream)
- @todo << lambda do
- @nio.deregister io
- @map.delete io
- io.close
- end
- wakeup
- end
+def detach(io, stream)
+ @todo << lambda do
+ @nio.deregister io
+ @map.delete io
+ io.close
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -234,14 +234,14 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 23
- def post(task = nil, &block)
- task ||= block
+def post(task = nil, &block)
+ task ||= block
- spawn
- @executor << task
- end
+ spawn
+ @executor << task
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,12 +272,12 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 56
- def stop
- @stopping = true
- wakeup if @nio
- end
+def stop
+ @stopping = true
+ wakeup if @nio
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -308,11 +308,11 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 19
- def timer(interval, &block)
- Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
- end
+def timer(interval, &block)
+ Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -343,16 +343,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 47
- def writes_pending(io)
- @todo << lambda do
- if monitor = @map[io]
- monitor.interests = :rw
- end
- end
- wakeup
- end
+def writes_pending(io)
+ @todo << lambda do
+ if monitor = @map[io]
+ monitor.interests = :rw
+ end
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
index f4d5cacc63..99731855fb 100644
--- a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
+++ b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -121,12 +121,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 16
- def initialize(logger, tags:)
- @logger = logger
- @tags = tags.flatten
- end
+def initialize(logger, tags:)
+ @logger = logger
+ @tags = tags.flatten
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -161,12 +161,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 21
- def add_tags(*tags)
- @tags += tags.flatten
- @tags = @tags.uniq
- end
+def add_tags(*tags)
+ @tags += tags.flatten
+ @tags = @tags.uniq
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -197,16 +197,16 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 26
- def tag(logger, &block)
- if logger.respond_to?(:tagged)
- current_tags = tags - logger.formatter.current_tags
- logger.tagged(*current_tags, &block)
- else
- yield
- end
- end
+def tag(logger, &block)
+ if logger.respond_to?(:tagged)
+ current_tags = tags - logger.formatter.current_tags
+ logger.tagged(*current_tags, &block)
+ else
+ yield
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,11 +240,11 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 42
- def log(type, message, &block) # :doc:
- tag(@logger) { @logger.send type, message, &block }
- end
+def log(type, message, &block) # :doc:
+ tag(@logger) { @logger.send type, message, &block }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase.html b/src/classes/ActionCable/Connection/TestCase.html
index 948378e491..39bc5cb056 100644
--- a/src/classes/ActionCable/Connection/TestCase.html
+++ b/src/classes/ActionCable/Connection/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior.html b/src/classes/ActionCable/Connection/TestCase/Behavior.html
index b87870becd..4ee0debbea 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -163,19 +163,19 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 192
- def connect(path = ActionCable.server.config.mount_path, **request_params)
- path ||= DEFAULT_PATH
+def connect(path = ActionCable.server.config.mount_path, **request_params)
+ path ||= DEFAULT_PATH
- connection = self.class.connection_class.allocate
- connection.singleton_class.include(TestConnection)
- connection.send(:initialize, build_test_request(path, **request_params))
- connection.connect if connection.respond_to?(:connect)
+ connection = self.class.connection_class.allocate
+ connection.singleton_class.include(TestConnection)
+ connection.send(:initialize, build_test_request(path, **request_params))
+ connection.connect if connection.respond_to?(:connect)
- # Only set instance variable if connected successfully
- @connection = connection
- end
+ # Only set instance variable if connected successfully
+ @connection = connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -206,11 +206,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 212
- def cookies
- @cookie_jar ||= TestCookieJar.new
- end
+def cookies
+ @cookie_jar ||= TestCookieJar.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -241,14 +241,14 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 205
- def disconnect
- raise "Must be connected!" if connection.nil?
+def disconnect
+ raise "Must be connected!" if connection.nil?
- connection.disconnect if connection.respond_to?(:disconnect)
- @connection = nil
- end
+ connection.disconnect if connection.respond_to?(:disconnect)
+ @connection = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
index 63444f4b27..99fc0e3f6f 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 167
- def connection_class
- if connection = self._connection_class
- connection
- else
- tests determine_default_connection(name)
- end
- end
+def connection_class
+ if connection = self._connection_class
+ connection
+ else
+ tests determine_default_connection(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 175
- def determine_default_connection(name)
- connection = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Connection::Base
- end
- raise NonInferrableConnectionError.new(name) if connection.nil?
- connection
- end
+def determine_default_connection(name)
+ connection = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Connection::Base
+ end
+ raise NonInferrableConnectionError.new(name) if connection.nil?
+ connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/connection/identification.rb, line 21
- def identified_by(*identifiers)
- Array(identifiers).each { |identifier| attr_accessor identifier }
- self.identifiers += identifiers
- end
+def identified_by(*identifiers)
+ Array(identifiers).each { |identifier| attr_accessor identifier }
+ self.identifiers += identifiers
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/InternalChannel.html b/src/classes/ActionCable/Connection/InternalChannel.html
index 9b0144f690..cfdccceaf4 100644
--- a/src/classes/ActionCable/Connection/InternalChannel.html
+++ b/src/classes/ActionCable/Connection/InternalChannel.html
@@ -5,7 +5,7 @@
+ Ruby on Rails 8.1.0.rc1
diff --git a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
index 7167904452..bf0c696d62 100644
--- a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
+++ b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 15
- def initialize(name)
- super "Unable to determine the connection to test from #{name}. " +
- "You'll need to specify it using `tests YourConnection` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the connection to test from #{name}. " +
+ "You'll need to specify it using `tests YourConnection` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/StreamEventLoop.html b/src/classes/ActionCable/Connection/StreamEventLoop.html
index 2b71a213e3..f7c49354ef 100644
--- a/src/classes/ActionCable/Connection/StreamEventLoop.html
+++ b/src/classes/ActionCable/Connection/StreamEventLoop.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -111,16 +111,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 10
- def initialize
- @nio = @executor = @thread = nil
- @map = {}
- @stopping = false
- @todo = Queue.new
-
- @spawn_mutex = Mutex.new
- end
+def initialize
+ @nio = @executor = @thread = nil
+ @map = {}
+ @stopping = false
+ @todo = Queue.new
+
+ @spawn_mutex = Mutex.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -155,15 +155,15 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 30
- def attach(io, stream)
- @todo << lambda do
- @map[io] = @nio.register(io, :r)
- @map[io].value = stream
- end
- wakeup
- end
+def attach(io, stream)
+ @todo << lambda do
+ @map[io] = @nio.register(io, :r)
+ @map[io].value = stream
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -194,16 +194,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 38
- def detach(io, stream)
- @todo << lambda do
- @nio.deregister io
- @map.delete io
- io.close
- end
- wakeup
- end
+def detach(io, stream)
+ @todo << lambda do
+ @nio.deregister io
+ @map.delete io
+ io.close
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -234,14 +234,14 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 23
- def post(task = nil, &block)
- task ||= block
+def post(task = nil, &block)
+ task ||= block
- spawn
- @executor << task
- end
+ spawn
+ @executor << task
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,12 +272,12 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 56
- def stop
- @stopping = true
- wakeup if @nio
- end
+def stop
+ @stopping = true
+ wakeup if @nio
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -308,11 +308,11 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 19
- def timer(interval, &block)
- Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
- end
+def timer(interval, &block)
+ Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -343,16 +343,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 47
- def writes_pending(io)
- @todo << lambda do
- if monitor = @map[io]
- monitor.interests = :rw
- end
- end
- wakeup
- end
+def writes_pending(io)
+ @todo << lambda do
+ if monitor = @map[io]
+ monitor.interests = :rw
+ end
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
index f4d5cacc63..99731855fb 100644
--- a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
+++ b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -121,12 +121,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 16
- def initialize(logger, tags:)
- @logger = logger
- @tags = tags.flatten
- end
+def initialize(logger, tags:)
+ @logger = logger
+ @tags = tags.flatten
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -161,12 +161,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 21
- def add_tags(*tags)
- @tags += tags.flatten
- @tags = @tags.uniq
- end
+def add_tags(*tags)
+ @tags += tags.flatten
+ @tags = @tags.uniq
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -197,16 +197,16 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 26
- def tag(logger, &block)
- if logger.respond_to?(:tagged)
- current_tags = tags - logger.formatter.current_tags
- logger.tagged(*current_tags, &block)
- else
- yield
- end
- end
+def tag(logger, &block)
+ if logger.respond_to?(:tagged)
+ current_tags = tags - logger.formatter.current_tags
+ logger.tagged(*current_tags, &block)
+ else
+ yield
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,11 +240,11 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 42
- def log(type, message, &block) # :doc:
- tag(@logger) { @logger.send type, message, &block }
- end
+def log(type, message, &block) # :doc:
+ tag(@logger) { @logger.send type, message, &block }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase.html b/src/classes/ActionCable/Connection/TestCase.html
index 948378e491..39bc5cb056 100644
--- a/src/classes/ActionCable/Connection/TestCase.html
+++ b/src/classes/ActionCable/Connection/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior.html b/src/classes/ActionCable/Connection/TestCase/Behavior.html
index b87870becd..4ee0debbea 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -163,19 +163,19 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 192
- def connect(path = ActionCable.server.config.mount_path, **request_params)
- path ||= DEFAULT_PATH
+def connect(path = ActionCable.server.config.mount_path, **request_params)
+ path ||= DEFAULT_PATH
- connection = self.class.connection_class.allocate
- connection.singleton_class.include(TestConnection)
- connection.send(:initialize, build_test_request(path, **request_params))
- connection.connect if connection.respond_to?(:connect)
+ connection = self.class.connection_class.allocate
+ connection.singleton_class.include(TestConnection)
+ connection.send(:initialize, build_test_request(path, **request_params))
+ connection.connect if connection.respond_to?(:connect)
- # Only set instance variable if connected successfully
- @connection = connection
- end
+ # Only set instance variable if connected successfully
+ @connection = connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -206,11 +206,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 212
- def cookies
- @cookie_jar ||= TestCookieJar.new
- end
+def cookies
+ @cookie_jar ||= TestCookieJar.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -241,14 +241,14 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 205
- def disconnect
- raise "Must be connected!" if connection.nil?
+def disconnect
+ raise "Must be connected!" if connection.nil?
- connection.disconnect if connection.respond_to?(:disconnect)
- @connection = nil
- end
+ connection.disconnect if connection.respond_to?(:disconnect)
+ @connection = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
index 63444f4b27..99fc0e3f6f 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 167
- def connection_class
- if connection = self._connection_class
- connection
- else
- tests determine_default_connection(name)
- end
- end
+def connection_class
+ if connection = self._connection_class
+ connection
+ else
+ tests determine_default_connection(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 175
- def determine_default_connection(name)
- connection = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Connection::Base
- end
- raise NonInferrableConnectionError.new(name) if connection.nil?
- connection
- end
+def determine_default_connection(name)
+ connection = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Connection::Base
+ end
+ raise NonInferrableConnectionError.new(name) if connection.nil?
+ connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
+ Ruby on Rails 8.1.0.rc1
@@ -87,13 +87,13 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 15
- def initialize(name)
- super "Unable to determine the connection to test from #{name}. " +
- "You'll need to specify it using `tests YourConnection` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the connection to test from #{name}. " +
+ "You'll need to specify it using `tests YourConnection` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/StreamEventLoop.html b/src/classes/ActionCable/Connection/StreamEventLoop.html
index 2b71a213e3..f7c49354ef 100644
--- a/src/classes/ActionCable/Connection/StreamEventLoop.html
+++ b/src/classes/ActionCable/Connection/StreamEventLoop.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -111,16 +111,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 10
- def initialize
- @nio = @executor = @thread = nil
- @map = {}
- @stopping = false
- @todo = Queue.new
-
- @spawn_mutex = Mutex.new
- end
+def initialize
+ @nio = @executor = @thread = nil
+ @map = {}
+ @stopping = false
+ @todo = Queue.new
+
+ @spawn_mutex = Mutex.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -155,15 +155,15 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 30
- def attach(io, stream)
- @todo << lambda do
- @map[io] = @nio.register(io, :r)
- @map[io].value = stream
- end
- wakeup
- end
+def attach(io, stream)
+ @todo << lambda do
+ @map[io] = @nio.register(io, :r)
+ @map[io].value = stream
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -194,16 +194,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 38
- def detach(io, stream)
- @todo << lambda do
- @nio.deregister io
- @map.delete io
- io.close
- end
- wakeup
- end
+def detach(io, stream)
+ @todo << lambda do
+ @nio.deregister io
+ @map.delete io
+ io.close
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -234,14 +234,14 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 23
- def post(task = nil, &block)
- task ||= block
+def post(task = nil, &block)
+ task ||= block
- spawn
- @executor << task
- end
+ spawn
+ @executor << task
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,12 +272,12 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 56
- def stop
- @stopping = true
- wakeup if @nio
- end
+def stop
+ @stopping = true
+ wakeup if @nio
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -308,11 +308,11 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 19
- def timer(interval, &block)
- Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
- end
+def timer(interval, &block)
+ Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -343,16 +343,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 47
- def writes_pending(io)
- @todo << lambda do
- if monitor = @map[io]
- monitor.interests = :rw
- end
- end
- wakeup
- end
+def writes_pending(io)
+ @todo << lambda do
+ if monitor = @map[io]
+ monitor.interests = :rw
+ end
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
index f4d5cacc63..99731855fb 100644
--- a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
+++ b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -121,12 +121,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 16
- def initialize(logger, tags:)
- @logger = logger
- @tags = tags.flatten
- end
+def initialize(logger, tags:)
+ @logger = logger
+ @tags = tags.flatten
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -161,12 +161,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 21
- def add_tags(*tags)
- @tags += tags.flatten
- @tags = @tags.uniq
- end
+def add_tags(*tags)
+ @tags += tags.flatten
+ @tags = @tags.uniq
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -197,16 +197,16 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 26
- def tag(logger, &block)
- if logger.respond_to?(:tagged)
- current_tags = tags - logger.formatter.current_tags
- logger.tagged(*current_tags, &block)
- else
- yield
- end
- end
+def tag(logger, &block)
+ if logger.respond_to?(:tagged)
+ current_tags = tags - logger.formatter.current_tags
+ logger.tagged(*current_tags, &block)
+ else
+ yield
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,11 +240,11 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 42
- def log(type, message, &block) # :doc:
- tag(@logger) { @logger.send type, message, &block }
- end
+def log(type, message, &block) # :doc:
+ tag(@logger) { @logger.send type, message, &block }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase.html b/src/classes/ActionCable/Connection/TestCase.html
index 948378e491..39bc5cb056 100644
--- a/src/classes/ActionCable/Connection/TestCase.html
+++ b/src/classes/ActionCable/Connection/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior.html b/src/classes/ActionCable/Connection/TestCase/Behavior.html
index b87870becd..4ee0debbea 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -163,19 +163,19 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 192
- def connect(path = ActionCable.server.config.mount_path, **request_params)
- path ||= DEFAULT_PATH
+def connect(path = ActionCable.server.config.mount_path, **request_params)
+ path ||= DEFAULT_PATH
- connection = self.class.connection_class.allocate
- connection.singleton_class.include(TestConnection)
- connection.send(:initialize, build_test_request(path, **request_params))
- connection.connect if connection.respond_to?(:connect)
+ connection = self.class.connection_class.allocate
+ connection.singleton_class.include(TestConnection)
+ connection.send(:initialize, build_test_request(path, **request_params))
+ connection.connect if connection.respond_to?(:connect)
- # Only set instance variable if connected successfully
- @connection = connection
- end
+ # Only set instance variable if connected successfully
+ @connection = connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -206,11 +206,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 212
- def cookies
- @cookie_jar ||= TestCookieJar.new
- end
+def cookies
+ @cookie_jar ||= TestCookieJar.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -241,14 +241,14 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 205
- def disconnect
- raise "Must be connected!" if connection.nil?
+def disconnect
+ raise "Must be connected!" if connection.nil?
- connection.disconnect if connection.respond_to?(:disconnect)
- @connection = nil
- end
+ connection.disconnect if connection.respond_to?(:disconnect)
+ @connection = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
index 63444f4b27..99fc0e3f6f 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 167
- def connection_class
- if connection = self._connection_class
- connection
- else
- tests determine_default_connection(name)
- end
- end
+def connection_class
+ if connection = self._connection_class
+ connection
+ else
+ tests determine_default_connection(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 175
- def determine_default_connection(name)
- connection = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Connection::Base
- end
- raise NonInferrableConnectionError.new(name) if connection.nil?
- connection
- end
+def determine_default_connection(name)
+ connection = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Connection::Base
+ end
+ raise NonInferrableConnectionError.new(name) if connection.nil?
+ connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 15
- def initialize(name)
- super "Unable to determine the connection to test from #{name}. " +
- "You'll need to specify it using `tests YourConnection` in your " +
- "test case definition."
- end
+def initialize(name)
+ super "Unable to determine the connection to test from #{name}. " +
+ "You'll need to specify it using `tests YourConnection` in your " +
+ "test case definition."
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/StreamEventLoop.html b/src/classes/ActionCable/Connection/StreamEventLoop.html
index 2b71a213e3..f7c49354ef 100644
--- a/src/classes/ActionCable/Connection/StreamEventLoop.html
+++ b/src/classes/ActionCable/Connection/StreamEventLoop.html
@@ -5,7 +5,7 @@
+ Ruby on Rails 8.1.0.rc1
@@ -111,16 +111,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 10
- def initialize
- @nio = @executor = @thread = nil
- @map = {}
- @stopping = false
- @todo = Queue.new
-
- @spawn_mutex = Mutex.new
- end
+def initialize
+ @nio = @executor = @thread = nil
+ @map = {}
+ @stopping = false
+ @todo = Queue.new
+
+ @spawn_mutex = Mutex.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -155,15 +155,15 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 30
- def attach(io, stream)
- @todo << lambda do
- @map[io] = @nio.register(io, :r)
- @map[io].value = stream
- end
- wakeup
- end
+def attach(io, stream)
+ @todo << lambda do
+ @map[io] = @nio.register(io, :r)
+ @map[io].value = stream
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -194,16 +194,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 38
- def detach(io, stream)
- @todo << lambda do
- @nio.deregister io
- @map.delete io
- io.close
- end
- wakeup
- end
+def detach(io, stream)
+ @todo << lambda do
+ @nio.deregister io
+ @map.delete io
+ io.close
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -234,14 +234,14 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 23
- def post(task = nil, &block)
- task ||= block
+def post(task = nil, &block)
+ task ||= block
- spawn
- @executor << task
- end
+ spawn
+ @executor << task
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,12 +272,12 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 56
- def stop
- @stopping = true
- wakeup if @nio
- end
+def stop
+ @stopping = true
+ wakeup if @nio
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -308,11 +308,11 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 19
- def timer(interval, &block)
- Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
- end
+def timer(interval, &block)
+ Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -343,16 +343,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 47
- def writes_pending(io)
- @todo << lambda do
- if monitor = @map[io]
- monitor.interests = :rw
- end
- end
- wakeup
- end
+def writes_pending(io)
+ @todo << lambda do
+ if monitor = @map[io]
+ monitor.interests = :rw
+ end
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
index f4d5cacc63..99731855fb 100644
--- a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
+++ b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -121,12 +121,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 16
- def initialize(logger, tags:)
- @logger = logger
- @tags = tags.flatten
- end
+def initialize(logger, tags:)
+ @logger = logger
+ @tags = tags.flatten
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -161,12 +161,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 21
- def add_tags(*tags)
- @tags += tags.flatten
- @tags = @tags.uniq
- end
+def add_tags(*tags)
+ @tags += tags.flatten
+ @tags = @tags.uniq
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -197,16 +197,16 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 26
- def tag(logger, &block)
- if logger.respond_to?(:tagged)
- current_tags = tags - logger.formatter.current_tags
- logger.tagged(*current_tags, &block)
- else
- yield
- end
- end
+def tag(logger, &block)
+ if logger.respond_to?(:tagged)
+ current_tags = tags - logger.formatter.current_tags
+ logger.tagged(*current_tags, &block)
+ else
+ yield
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,11 +240,11 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 42
- def log(type, message, &block) # :doc:
- tag(@logger) { @logger.send type, message, &block }
- end
+def log(type, message, &block) # :doc:
+ tag(@logger) { @logger.send type, message, &block }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase.html b/src/classes/ActionCable/Connection/TestCase.html
index 948378e491..39bc5cb056 100644
--- a/src/classes/ActionCable/Connection/TestCase.html
+++ b/src/classes/ActionCable/Connection/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior.html b/src/classes/ActionCable/Connection/TestCase/Behavior.html
index b87870becd..4ee0debbea 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -163,19 +163,19 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 192
- def connect(path = ActionCable.server.config.mount_path, **request_params)
- path ||= DEFAULT_PATH
+def connect(path = ActionCable.server.config.mount_path, **request_params)
+ path ||= DEFAULT_PATH
- connection = self.class.connection_class.allocate
- connection.singleton_class.include(TestConnection)
- connection.send(:initialize, build_test_request(path, **request_params))
- connection.connect if connection.respond_to?(:connect)
+ connection = self.class.connection_class.allocate
+ connection.singleton_class.include(TestConnection)
+ connection.send(:initialize, build_test_request(path, **request_params))
+ connection.connect if connection.respond_to?(:connect)
- # Only set instance variable if connected successfully
- @connection = connection
- end
+ # Only set instance variable if connected successfully
+ @connection = connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -206,11 +206,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 212
- def cookies
- @cookie_jar ||= TestCookieJar.new
- end
+def cookies
+ @cookie_jar ||= TestCookieJar.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -241,14 +241,14 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 205
- def disconnect
- raise "Must be connected!" if connection.nil?
+def disconnect
+ raise "Must be connected!" if connection.nil?
- connection.disconnect if connection.respond_to?(:disconnect)
- @connection = nil
- end
+ connection.disconnect if connection.respond_to?(:disconnect)
+ @connection = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
index 63444f4b27..99fc0e3f6f 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 167
- def connection_class
- if connection = self._connection_class
- connection
- else
- tests determine_default_connection(name)
- end
- end
+def connection_class
+ if connection = self._connection_class
+ connection
+ else
+ tests determine_default_connection(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 175
- def determine_default_connection(name)
- connection = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Connection::Base
- end
- raise NonInferrableConnectionError.new(name) if connection.nil?
- connection
- end
+def determine_default_connection(name)
+ connection = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Connection::Base
+ end
+ raise NonInferrableConnectionError.new(name) if connection.nil?
+ connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 10
- def initialize
- @nio = @executor = @thread = nil
- @map = {}
- @stopping = false
- @todo = Queue.new
-
- @spawn_mutex = Mutex.new
- end
+def initialize
+ @nio = @executor = @thread = nil
+ @map = {}
+ @stopping = false
+ @todo = Queue.new
+
+ @spawn_mutex = Mutex.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -155,15 +155,15 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 30
- def attach(io, stream)
- @todo << lambda do
- @map[io] = @nio.register(io, :r)
- @map[io].value = stream
- end
- wakeup
- end
+def attach(io, stream)
+ @todo << lambda do
+ @map[io] = @nio.register(io, :r)
+ @map[io].value = stream
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -194,16 +194,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 38
- def detach(io, stream)
- @todo << lambda do
- @nio.deregister io
- @map.delete io
- io.close
- end
- wakeup
- end
+def detach(io, stream)
+ @todo << lambda do
+ @nio.deregister io
+ @map.delete io
+ io.close
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -234,14 +234,14 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 23
- def post(task = nil, &block)
- task ||= block
+def post(task = nil, &block)
+ task ||= block
- spawn
- @executor << task
- end
+ spawn
+ @executor << task
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,12 +272,12 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 56
- def stop
- @stopping = true
- wakeup if @nio
- end
+def stop
+ @stopping = true
+ wakeup if @nio
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -308,11 +308,11 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 19
- def timer(interval, &block)
- Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
- end
+def timer(interval, &block)
+ Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -343,16 +343,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 47
- def writes_pending(io)
- @todo << lambda do
- if monitor = @map[io]
- monitor.interests = :rw
- end
- end
- wakeup
- end
+def writes_pending(io)
+ @todo << lambda do
+ if monitor = @map[io]
+ monitor.interests = :rw
+ end
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
index f4d5cacc63..99731855fb 100644
--- a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
+++ b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -121,12 +121,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 16
- def initialize(logger, tags:)
- @logger = logger
- @tags = tags.flatten
- end
+def initialize(logger, tags:)
+ @logger = logger
+ @tags = tags.flatten
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -161,12 +161,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 21
- def add_tags(*tags)
- @tags += tags.flatten
- @tags = @tags.uniq
- end
+def add_tags(*tags)
+ @tags += tags.flatten
+ @tags = @tags.uniq
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -197,16 +197,16 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 26
- def tag(logger, &block)
- if logger.respond_to?(:tagged)
- current_tags = tags - logger.formatter.current_tags
- logger.tagged(*current_tags, &block)
- else
- yield
- end
- end
+def tag(logger, &block)
+ if logger.respond_to?(:tagged)
+ current_tags = tags - logger.formatter.current_tags
+ logger.tagged(*current_tags, &block)
+ else
+ yield
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,11 +240,11 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 42
- def log(type, message, &block) # :doc:
- tag(@logger) { @logger.send type, message, &block }
- end
+def log(type, message, &block) # :doc:
+ tag(@logger) { @logger.send type, message, &block }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase.html b/src/classes/ActionCable/Connection/TestCase.html
index 948378e491..39bc5cb056 100644
--- a/src/classes/ActionCable/Connection/TestCase.html
+++ b/src/classes/ActionCable/Connection/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior.html b/src/classes/ActionCable/Connection/TestCase/Behavior.html
index b87870becd..4ee0debbea 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -163,19 +163,19 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 192
- def connect(path = ActionCable.server.config.mount_path, **request_params)
- path ||= DEFAULT_PATH
+def connect(path = ActionCable.server.config.mount_path, **request_params)
+ path ||= DEFAULT_PATH
- connection = self.class.connection_class.allocate
- connection.singleton_class.include(TestConnection)
- connection.send(:initialize, build_test_request(path, **request_params))
- connection.connect if connection.respond_to?(:connect)
+ connection = self.class.connection_class.allocate
+ connection.singleton_class.include(TestConnection)
+ connection.send(:initialize, build_test_request(path, **request_params))
+ connection.connect if connection.respond_to?(:connect)
- # Only set instance variable if connected successfully
- @connection = connection
- end
+ # Only set instance variable if connected successfully
+ @connection = connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -206,11 +206,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 212
- def cookies
- @cookie_jar ||= TestCookieJar.new
- end
+def cookies
+ @cookie_jar ||= TestCookieJar.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -241,14 +241,14 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 205
- def disconnect
- raise "Must be connected!" if connection.nil?
+def disconnect
+ raise "Must be connected!" if connection.nil?
- connection.disconnect if connection.respond_to?(:disconnect)
- @connection = nil
- end
+ connection.disconnect if connection.respond_to?(:disconnect)
+ @connection = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
index 63444f4b27..99fc0e3f6f 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 167
- def connection_class
- if connection = self._connection_class
- connection
- else
- tests determine_default_connection(name)
- end
- end
+def connection_class
+ if connection = self._connection_class
+ connection
+ else
+ tests determine_default_connection(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 175
- def determine_default_connection(name)
- connection = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Connection::Base
- end
- raise NonInferrableConnectionError.new(name) if connection.nil?
- connection
- end
+def determine_default_connection(name)
+ connection = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Connection::Base
+ end
+ raise NonInferrableConnectionError.new(name) if connection.nil?
+ connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 30
- def attach(io, stream)
- @todo << lambda do
- @map[io] = @nio.register(io, :r)
- @map[io].value = stream
- end
- wakeup
- end# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 38
- def detach(io, stream)
- @todo << lambda do
- @nio.deregister io
- @map.delete io
- io.close
- end
- wakeup
- end
+def detach(io, stream)
+ @todo << lambda do
+ @nio.deregister io
+ @map.delete io
+ io.close
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -234,14 +234,14 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 23
- def post(task = nil, &block)
- task ||= block
+def post(task = nil, &block)
+ task ||= block
- spawn
- @executor << task
- end
+ spawn
+ @executor << task
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -272,12 +272,12 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 56
- def stop
- @stopping = true
- wakeup if @nio
- end
+def stop
+ @stopping = true
+ wakeup if @nio
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -308,11 +308,11 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 19
- def timer(interval, &block)
- Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
- end
+def timer(interval, &block)
+ Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -343,16 +343,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 47
- def writes_pending(io)
- @todo << lambda do
- if monitor = @map[io]
- monitor.interests = :rw
- end
- end
- wakeup
- end
+def writes_pending(io)
+ @todo << lambda do
+ if monitor = @map[io]
+ monitor.interests = :rw
+ end
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
index f4d5cacc63..99731855fb 100644
--- a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
+++ b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -121,12 +121,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 16
- def initialize(logger, tags:)
- @logger = logger
- @tags = tags.flatten
- end
+def initialize(logger, tags:)
+ @logger = logger
+ @tags = tags.flatten
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -161,12 +161,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 21
- def add_tags(*tags)
- @tags += tags.flatten
- @tags = @tags.uniq
- end
+def add_tags(*tags)
+ @tags += tags.flatten
+ @tags = @tags.uniq
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -197,16 +197,16 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 26
- def tag(logger, &block)
- if logger.respond_to?(:tagged)
- current_tags = tags - logger.formatter.current_tags
- logger.tagged(*current_tags, &block)
- else
- yield
- end
- end
+def tag(logger, &block)
+ if logger.respond_to?(:tagged)
+ current_tags = tags - logger.formatter.current_tags
+ logger.tagged(*current_tags, &block)
+ else
+ yield
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,11 +240,11 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 42
- def log(type, message, &block) # :doc:
- tag(@logger) { @logger.send type, message, &block }
- end
+def log(type, message, &block) # :doc:
+ tag(@logger) { @logger.send type, message, &block }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase.html b/src/classes/ActionCable/Connection/TestCase.html
index 948378e491..39bc5cb056 100644
--- a/src/classes/ActionCable/Connection/TestCase.html
+++ b/src/classes/ActionCable/Connection/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior.html b/src/classes/ActionCable/Connection/TestCase/Behavior.html
index b87870becd..4ee0debbea 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -163,19 +163,19 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 192
- def connect(path = ActionCable.server.config.mount_path, **request_params)
- path ||= DEFAULT_PATH
+def connect(path = ActionCable.server.config.mount_path, **request_params)
+ path ||= DEFAULT_PATH
- connection = self.class.connection_class.allocate
- connection.singleton_class.include(TestConnection)
- connection.send(:initialize, build_test_request(path, **request_params))
- connection.connect if connection.respond_to?(:connect)
+ connection = self.class.connection_class.allocate
+ connection.singleton_class.include(TestConnection)
+ connection.send(:initialize, build_test_request(path, **request_params))
+ connection.connect if connection.respond_to?(:connect)
- # Only set instance variable if connected successfully
- @connection = connection
- end
+ # Only set instance variable if connected successfully
+ @connection = connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -206,11 +206,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 212
- def cookies
- @cookie_jar ||= TestCookieJar.new
- end
+def cookies
+ @cookie_jar ||= TestCookieJar.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -241,14 +241,14 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 205
- def disconnect
- raise "Must be connected!" if connection.nil?
+def disconnect
+ raise "Must be connected!" if connection.nil?
- connection.disconnect if connection.respond_to?(:disconnect)
- @connection = nil
- end
+ connection.disconnect if connection.respond_to?(:disconnect)
+ @connection = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
index 63444f4b27..99fc0e3f6f 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 167
- def connection_class
- if connection = self._connection_class
- connection
- else
- tests determine_default_connection(name)
- end
- end
+def connection_class
+ if connection = self._connection_class
+ connection
+ else
+ tests determine_default_connection(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 175
- def determine_default_connection(name)
- connection = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Connection::Base
- end
- raise NonInferrableConnectionError.new(name) if connection.nil?
- connection
- end
+def determine_default_connection(name)
+ connection = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Connection::Base
+ end
+ raise NonInferrableConnectionError.new(name) if connection.nil?
+ connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 23
- def post(task = nil, &block)
- task ||= block
+def post(task = nil, &block)
+ task ||= block
- spawn
- @executor << task
- end# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 56
- def stop
- @stopping = true
- wakeup if @nio
- end
+def stop
+ @stopping = true
+ wakeup if @nio
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -308,11 +308,11 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 19
- def timer(interval, &block)
- Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
- end
+def timer(interval, &block)
+ Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -343,16 +343,16 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 47
- def writes_pending(io)
- @todo << lambda do
- if monitor = @map[io]
- monitor.interests = :rw
- end
- end
- wakeup
- end
+def writes_pending(io)
+ @todo << lambda do
+ if monitor = @map[io]
+ monitor.interests = :rw
+ end
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
index f4d5cacc63..99731855fb 100644
--- a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
+++ b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
@@ -121,12 +121,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 16
- def initialize(logger, tags:)
- @logger = logger
- @tags = tags.flatten
- end
+def initialize(logger, tags:)
+ @logger = logger
+ @tags = tags.flatten
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -161,12 +161,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 21
- def add_tags(*tags)
- @tags += tags.flatten
- @tags = @tags.uniq
- end
+def add_tags(*tags)
+ @tags += tags.flatten
+ @tags = @tags.uniq
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -197,16 +197,16 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 26
- def tag(logger, &block)
- if logger.respond_to?(:tagged)
- current_tags = tags - logger.formatter.current_tags
- logger.tagged(*current_tags, &block)
- else
- yield
- end
- end
+def tag(logger, &block)
+ if logger.respond_to?(:tagged)
+ current_tags = tags - logger.formatter.current_tags
+ logger.tagged(*current_tags, &block)
+ else
+ yield
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,11 +240,11 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 42
- def log(type, message, &block) # :doc:
- tag(@logger) { @logger.send type, message, &block }
- end
+def log(type, message, &block) # :doc:
+ tag(@logger) { @logger.send type, message, &block }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase.html b/src/classes/ActionCable/Connection/TestCase.html
index 948378e491..39bc5cb056 100644
--- a/src/classes/ActionCable/Connection/TestCase.html
+++ b/src/classes/ActionCable/Connection/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior.html b/src/classes/ActionCable/Connection/TestCase/Behavior.html
index b87870becd..4ee0debbea 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -163,19 +163,19 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 192
- def connect(path = ActionCable.server.config.mount_path, **request_params)
- path ||= DEFAULT_PATH
+def connect(path = ActionCable.server.config.mount_path, **request_params)
+ path ||= DEFAULT_PATH
- connection = self.class.connection_class.allocate
- connection.singleton_class.include(TestConnection)
- connection.send(:initialize, build_test_request(path, **request_params))
- connection.connect if connection.respond_to?(:connect)
+ connection = self.class.connection_class.allocate
+ connection.singleton_class.include(TestConnection)
+ connection.send(:initialize, build_test_request(path, **request_params))
+ connection.connect if connection.respond_to?(:connect)
- # Only set instance variable if connected successfully
- @connection = connection
- end
+ # Only set instance variable if connected successfully
+ @connection = connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -206,11 +206,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 212
- def cookies
- @cookie_jar ||= TestCookieJar.new
- end
+def cookies
+ @cookie_jar ||= TestCookieJar.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -241,14 +241,14 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 205
- def disconnect
- raise "Must be connected!" if connection.nil?
+def disconnect
+ raise "Must be connected!" if connection.nil?
- connection.disconnect if connection.respond_to?(:disconnect)
- @connection = nil
- end
+ connection.disconnect if connection.respond_to?(:disconnect)
+ @connection = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
index 63444f4b27..99fc0e3f6f 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 167
- def connection_class
- if connection = self._connection_class
- connection
- else
- tests determine_default_connection(name)
- end
- end
+def connection_class
+ if connection = self._connection_class
+ connection
+ else
+ tests determine_default_connection(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 175
- def determine_default_connection(name)
- connection = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Connection::Base
- end
- raise NonInferrableConnectionError.new(name) if connection.nil?
- connection
- end
+def determine_default_connection(name)
+ connection = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Connection::Base
+ end
+ raise NonInferrableConnectionError.new(name) if connection.nil?
+ connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 19
- def timer(interval, &block)
- Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
- end# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 47
- def writes_pending(io)
- @todo << lambda do
- if monitor = @map[io]
- monitor.interests = :rw
- end
- end
- wakeup
- end
+def writes_pending(io)
+ @todo << lambda do
+ if monitor = @map[io]
+ monitor.interests = :rw
+ end
+ end
+ wakeup
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
index f4d5cacc63..99731855fb 100644
--- a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
+++ b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html
@@ -5,7 +5,7 @@
+ Ruby on Rails 8.1.0.rc1
@@ -121,12 +121,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 16
- def initialize(logger, tags:)
- @logger = logger
- @tags = tags.flatten
- end
+def initialize(logger, tags:)
+ @logger = logger
+ @tags = tags.flatten
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -161,12 +161,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 21
- def add_tags(*tags)
- @tags += tags.flatten
- @tags = @tags.uniq
- end
+def add_tags(*tags)
+ @tags += tags.flatten
+ @tags = @tags.uniq
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -197,16 +197,16 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 26
- def tag(logger, &block)
- if logger.respond_to?(:tagged)
- current_tags = tags - logger.formatter.current_tags
- logger.tagged(*current_tags, &block)
- else
- yield
- end
- end
+def tag(logger, &block)
+ if logger.respond_to?(:tagged)
+ current_tags = tags - logger.formatter.current_tags
+ logger.tagged(*current_tags, &block)
+ else
+ yield
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,11 +240,11 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 42
- def log(type, message, &block) # :doc:
- tag(@logger) { @logger.send type, message, &block }
- end
+def log(type, message, &block) # :doc:
+ tag(@logger) { @logger.send type, message, &block }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase.html b/src/classes/ActionCable/Connection/TestCase.html
index 948378e491..39bc5cb056 100644
--- a/src/classes/ActionCable/Connection/TestCase.html
+++ b/src/classes/ActionCable/Connection/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior.html b/src/classes/ActionCable/Connection/TestCase/Behavior.html
index b87870becd..4ee0debbea 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -163,19 +163,19 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 192
- def connect(path = ActionCable.server.config.mount_path, **request_params)
- path ||= DEFAULT_PATH
+def connect(path = ActionCable.server.config.mount_path, **request_params)
+ path ||= DEFAULT_PATH
- connection = self.class.connection_class.allocate
- connection.singleton_class.include(TestConnection)
- connection.send(:initialize, build_test_request(path, **request_params))
- connection.connect if connection.respond_to?(:connect)
+ connection = self.class.connection_class.allocate
+ connection.singleton_class.include(TestConnection)
+ connection.send(:initialize, build_test_request(path, **request_params))
+ connection.connect if connection.respond_to?(:connect)
- # Only set instance variable if connected successfully
- @connection = connection
- end
+ # Only set instance variable if connected successfully
+ @connection = connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -206,11 +206,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 212
- def cookies
- @cookie_jar ||= TestCookieJar.new
- end
+def cookies
+ @cookie_jar ||= TestCookieJar.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -241,14 +241,14 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 205
- def disconnect
- raise "Must be connected!" if connection.nil?
+def disconnect
+ raise "Must be connected!" if connection.nil?
- connection.disconnect if connection.respond_to?(:disconnect)
- @connection = nil
- end
+ connection.disconnect if connection.respond_to?(:disconnect)
+ @connection = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
index 63444f4b27..99fc0e3f6f 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 167
- def connection_class
- if connection = self._connection_class
- connection
- else
- tests determine_default_connection(name)
- end
- end
+def connection_class
+ if connection = self._connection_class
+ connection
+ else
+ tests determine_default_connection(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 175
- def determine_default_connection(name)
- connection = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Connection::Base
- end
- raise NonInferrableConnectionError.new(name) if connection.nil?
- connection
- end
+def determine_default_connection(name)
+ connection = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Connection::Base
+ end
+ raise NonInferrableConnectionError.new(name) if connection.nil?
+ connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 16
- def initialize(logger, tags:)
- @logger = logger
- @tags = tags.flatten
- end
+def initialize(logger, tags:)
+ @logger = logger
+ @tags = tags.flatten
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -161,12 +161,12 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 21
- def add_tags(*tags)
- @tags += tags.flatten
- @tags = @tags.uniq
- end
+def add_tags(*tags)
+ @tags += tags.flatten
+ @tags = @tags.uniq
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -197,16 +197,16 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 26
- def tag(logger, &block)
- if logger.respond_to?(:tagged)
- current_tags = tags - logger.formatter.current_tags
- logger.tagged(*current_tags, &block)
- else
- yield
- end
- end
+def tag(logger, &block)
+ if logger.respond_to?(:tagged)
+ current_tags = tags - logger.formatter.current_tags
+ logger.tagged(*current_tags, &block)
+ else
+ yield
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,11 +240,11 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 42
- def log(type, message, &block) # :doc:
- tag(@logger) { @logger.send type, message, &block }
- end
+def log(type, message, &block) # :doc:
+ tag(@logger) { @logger.send type, message, &block }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase.html b/src/classes/ActionCable/Connection/TestCase.html
index 948378e491..39bc5cb056 100644
--- a/src/classes/ActionCable/Connection/TestCase.html
+++ b/src/classes/ActionCable/Connection/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior.html b/src/classes/ActionCable/Connection/TestCase/Behavior.html
index b87870becd..4ee0debbea 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -163,19 +163,19 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 192
- def connect(path = ActionCable.server.config.mount_path, **request_params)
- path ||= DEFAULT_PATH
+def connect(path = ActionCable.server.config.mount_path, **request_params)
+ path ||= DEFAULT_PATH
- connection = self.class.connection_class.allocate
- connection.singleton_class.include(TestConnection)
- connection.send(:initialize, build_test_request(path, **request_params))
- connection.connect if connection.respond_to?(:connect)
+ connection = self.class.connection_class.allocate
+ connection.singleton_class.include(TestConnection)
+ connection.send(:initialize, build_test_request(path, **request_params))
+ connection.connect if connection.respond_to?(:connect)
- # Only set instance variable if connected successfully
- @connection = connection
- end
+ # Only set instance variable if connected successfully
+ @connection = connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -206,11 +206,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 212
- def cookies
- @cookie_jar ||= TestCookieJar.new
- end
+def cookies
+ @cookie_jar ||= TestCookieJar.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -241,14 +241,14 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 205
- def disconnect
- raise "Must be connected!" if connection.nil?
+def disconnect
+ raise "Must be connected!" if connection.nil?
- connection.disconnect if connection.respond_to?(:disconnect)
- @connection = nil
- end
+ connection.disconnect if connection.respond_to?(:disconnect)
+ @connection = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
index 63444f4b27..99fc0e3f6f 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 167
- def connection_class
- if connection = self._connection_class
- connection
- else
- tests determine_default_connection(name)
- end
- end
+def connection_class
+ if connection = self._connection_class
+ connection
+ else
+ tests determine_default_connection(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 175
- def determine_default_connection(name)
- connection = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Connection::Base
- end
- raise NonInferrableConnectionError.new(name) if connection.nil?
- connection
- end
+def determine_default_connection(name)
+ connection = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Connection::Base
+ end
+ raise NonInferrableConnectionError.new(name) if connection.nil?
+ connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 21
- def add_tags(*tags)
- @tags += tags.flatten
- @tags = @tags.uniq
- end# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 26
- def tag(logger, &block)
- if logger.respond_to?(:tagged)
- current_tags = tags - logger.formatter.current_tags
- logger.tagged(*current_tags, &block)
- else
- yield
- end
- end
+def tag(logger, &block)
+ if logger.respond_to?(:tagged)
+ current_tags = tags - logger.formatter.current_tags
+ logger.tagged(*current_tags, &block)
+ else
+ yield
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -240,11 +240,11 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 42
- def log(type, message, &block) # :doc:
- tag(@logger) { @logger.send type, message, &block }
- end
+def log(type, message, &block) # :doc:
+ tag(@logger) { @logger.send type, message, &block }
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase.html b/src/classes/ActionCable/Connection/TestCase.html
index 948378e491..39bc5cb056 100644
--- a/src/classes/ActionCable/Connection/TestCase.html
+++ b/src/classes/ActionCable/Connection/TestCase.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Class
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior.html b/src/classes/ActionCable/Connection/TestCase/Behavior.html
index b87870becd..4ee0debbea 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -163,19 +163,19 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 192
- def connect(path = ActionCable.server.config.mount_path, **request_params)
- path ||= DEFAULT_PATH
+def connect(path = ActionCable.server.config.mount_path, **request_params)
+ path ||= DEFAULT_PATH
- connection = self.class.connection_class.allocate
- connection.singleton_class.include(TestConnection)
- connection.send(:initialize, build_test_request(path, **request_params))
- connection.connect if connection.respond_to?(:connect)
+ connection = self.class.connection_class.allocate
+ connection.singleton_class.include(TestConnection)
+ connection.send(:initialize, build_test_request(path, **request_params))
+ connection.connect if connection.respond_to?(:connect)
- # Only set instance variable if connected successfully
- @connection = connection
- end
+ # Only set instance variable if connected successfully
+ @connection = connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -206,11 +206,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 212
- def cookies
- @cookie_jar ||= TestCookieJar.new
- end
+def cookies
+ @cookie_jar ||= TestCookieJar.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -241,14 +241,14 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 205
- def disconnect
- raise "Must be connected!" if connection.nil?
+def disconnect
+ raise "Must be connected!" if connection.nil?
- connection.disconnect if connection.respond_to?(:disconnect)
- @connection = nil
- end
+ connection.disconnect if connection.respond_to?(:disconnect)
+ @connection = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
index 63444f4b27..99fc0e3f6f 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 167
- def connection_class
- if connection = self._connection_class
- connection
- else
- tests determine_default_connection(name)
- end
- end
+def connection_class
+ if connection = self._connection_class
+ connection
+ else
+ tests determine_default_connection(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 175
- def determine_default_connection(name)
- connection = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Connection::Base
- end
- raise NonInferrableConnectionError.new(name) if connection.nil?
- connection
- end
+def determine_default_connection(name)
+ connection = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Connection::Base
+ end
+ raise NonInferrableConnectionError.new(name) if connection.nil?
+ connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 42
- def log(type, message, &block) # :doc:
- tag(@logger) { @logger.send type, message, &block }
- end+ Ruby on Rails 8.1.0.rc1
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior.html b/src/classes/ActionCable/Connection/TestCase/Behavior.html
index b87870becd..4ee0debbea 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -163,19 +163,19 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 192
- def connect(path = ActionCable.server.config.mount_path, **request_params)
- path ||= DEFAULT_PATH
+def connect(path = ActionCable.server.config.mount_path, **request_params)
+ path ||= DEFAULT_PATH
- connection = self.class.connection_class.allocate
- connection.singleton_class.include(TestConnection)
- connection.send(:initialize, build_test_request(path, **request_params))
- connection.connect if connection.respond_to?(:connect)
+ connection = self.class.connection_class.allocate
+ connection.singleton_class.include(TestConnection)
+ connection.send(:initialize, build_test_request(path, **request_params))
+ connection.connect if connection.respond_to?(:connect)
- # Only set instance variable if connected successfully
- @connection = connection
- end
+ # Only set instance variable if connected successfully
+ @connection = connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -206,11 +206,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 212
- def cookies
- @cookie_jar ||= TestCookieJar.new
- end
+def cookies
+ @cookie_jar ||= TestCookieJar.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -241,14 +241,14 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 205
- def disconnect
- raise "Must be connected!" if connection.nil?
+def disconnect
+ raise "Must be connected!" if connection.nil?
- connection.disconnect if connection.respond_to?(:disconnect)
- @connection = nil
- end
+ connection.disconnect if connection.respond_to?(:disconnect)
+ @connection = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
index 63444f4b27..99fc0e3f6f 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 167
- def connection_class
- if connection = self._connection_class
- connection
- else
- tests determine_default_connection(name)
- end
- end
+def connection_class
+ if connection = self._connection_class
+ connection
+ else
+ tests determine_default_connection(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 175
- def determine_default_connection(name)
- connection = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Connection::Base
- end
- raise NonInferrableConnectionError.new(name) if connection.nil?
- connection
- end
+def determine_default_connection(name)
+ connection = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Connection::Base
+ end
+ raise NonInferrableConnectionError.new(name) if connection.nil?
+ connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
+ Ruby on Rails 8.1.0.rc1
@@ -163,19 +163,19 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 192
- def connect(path = ActionCable.server.config.mount_path, **request_params)
- path ||= DEFAULT_PATH
+def connect(path = ActionCable.server.config.mount_path, **request_params)
+ path ||= DEFAULT_PATH
- connection = self.class.connection_class.allocate
- connection.singleton_class.include(TestConnection)
- connection.send(:initialize, build_test_request(path, **request_params))
- connection.connect if connection.respond_to?(:connect)
+ connection = self.class.connection_class.allocate
+ connection.singleton_class.include(TestConnection)
+ connection.send(:initialize, build_test_request(path, **request_params))
+ connection.connect if connection.respond_to?(:connect)
- # Only set instance variable if connected successfully
- @connection = connection
- end
+ # Only set instance variable if connected successfully
+ @connection = connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -206,11 +206,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 212
- def cookies
- @cookie_jar ||= TestCookieJar.new
- end
+def cookies
+ @cookie_jar ||= TestCookieJar.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -241,14 +241,14 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 205
- def disconnect
- raise "Must be connected!" if connection.nil?
+def disconnect
+ raise "Must be connected!" if connection.nil?
- connection.disconnect if connection.respond_to?(:disconnect)
- @connection = nil
- end
+ connection.disconnect if connection.respond_to?(:disconnect)
+ @connection = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
index 63444f4b27..99fc0e3f6f 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 167
- def connection_class
- if connection = self._connection_class
- connection
- else
- tests determine_default_connection(name)
- end
- end
+def connection_class
+ if connection = self._connection_class
+ connection
+ else
+ tests determine_default_connection(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 175
- def determine_default_connection(name)
- connection = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Connection::Base
- end
- raise NonInferrableConnectionError.new(name) if connection.nil?
- connection
- end
+def determine_default_connection(name)
+ connection = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Connection::Base
+ end
+ raise NonInferrableConnectionError.new(name) if connection.nil?
+ connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 192
- def connect(path = ActionCable.server.config.mount_path, **request_params)
- path ||= DEFAULT_PATH
+def connect(path = ActionCable.server.config.mount_path, **request_params)
+ path ||= DEFAULT_PATH
- connection = self.class.connection_class.allocate
- connection.singleton_class.include(TestConnection)
- connection.send(:initialize, build_test_request(path, **request_params))
- connection.connect if connection.respond_to?(:connect)
+ connection = self.class.connection_class.allocate
+ connection.singleton_class.include(TestConnection)
+ connection.send(:initialize, build_test_request(path, **request_params))
+ connection.connect if connection.respond_to?(:connect)
- # Only set instance variable if connected successfully
- @connection = connection
- end
+ # Only set instance variable if connected successfully
+ @connection = connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -206,11 +206,11 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 212
- def cookies
- @cookie_jar ||= TestCookieJar.new
- end
+def cookies
+ @cookie_jar ||= TestCookieJar.new
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -241,14 +241,14 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 205
- def disconnect
- raise "Must be connected!" if connection.nil?
+def disconnect
+ raise "Must be connected!" if connection.nil?
- connection.disconnect if connection.respond_to?(:disconnect)
- @connection = nil
- end
+ connection.disconnect if connection.respond_to?(:disconnect)
+ @connection = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
index 63444f4b27..99fc0e3f6f 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 8.1.0.beta1
+ Ruby on Rails 8.1.0.rc1
Module
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 167
- def connection_class
- if connection = self._connection_class
- connection
- else
- tests determine_default_connection(name)
- end
- end
+def connection_class
+ if connection = self._connection_class
+ connection
+ else
+ tests determine_default_connection(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 175
- def determine_default_connection(name)
- connection = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Connection::Base
- end
- raise NonInferrableConnectionError.new(name) if connection.nil?
- connection
- end
+def determine_default_connection(name)
+ connection = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Connection::Base
+ end
+ raise NonInferrableConnectionError.new(name) if connection.nil?
+ connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 212
- def cookies
- @cookie_jar ||= TestCookieJar.new
- end# File actioncable/lib/action_cable/connection/test_case.rb, line 205
- def disconnect
- raise "Must be connected!" if connection.nil?
+def disconnect
+ raise "Must be connected!" if connection.nil?
- connection.disconnect if connection.respond_to?(:disconnect)
- @connection = nil
- end
+ connection.disconnect if connection.respond_to?(:disconnect)
+ @connection = nil
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
index 63444f4b27..99fc0e3f6f 100644
--- a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
+++ b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html
@@ -5,7 +5,7 @@
+ Ruby on Rails 8.1.0.rc1
@@ -90,15 +90,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 167
- def connection_class
- if connection = self._connection_class
- connection
- else
- tests determine_default_connection(name)
- end
- end
+def connection_class
+ if connection = self._connection_class
+ connection
+ else
+ tests determine_default_connection(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 175
- def determine_default_connection(name)
- connection = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Connection::Base
- end
- raise NonInferrableConnectionError.new(name) if connection.nil?
- connection
- end
+def determine_default_connection(name)
+ connection = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Connection::Base
+ end
+ raise NonInferrableConnectionError.new(name) if connection.nil?
+ connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 167
- def connection_class
- if connection = self._connection_class
- connection
- else
- tests determine_default_connection(name)
- end
- end
+def connection_class
+ if connection = self._connection_class
+ connection
+ else
+ tests determine_default_connection(name)
+ end
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -129,15 +129,15 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 175
- def determine_default_connection(name)
- connection = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Connection::Base
- end
- raise NonInferrableConnectionError.new(name) if connection.nil?
- connection
- end
+def determine_default_connection(name)
+ connection = determine_constant_from_test_name(name) do |constant|
+ Class === constant && constant < ActionCable::Connection::Base
+ end
+ raise NonInferrableConnectionError.new(name) if connection.nil?
+ connection
+end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -168,18 +168,18 @@
# File actioncable/lib/action_cable/connection/test_case.rb, line 175
- def determine_default_connection(name)
- connection = determine_constant_from_test_name(name) do |constant|
- Class === constant && constant < ActionCable::Connection::Base
- end
- raise NonInferrableConnectionError.new(name) if connection.nil?
- connection
- end