+ Ruby on Rails 7.2.0.beta2
diff --git a/src/classes/AbstractController/ActionNotFound.html b/src/classes/AbstractController/ActionNotFound.html
index b315279511..d284e26915 100644
--- a/src/classes/AbstractController/ActionNotFound.html
+++ b/src/classes/AbstractController/ActionNotFound.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Class
diff --git a/src/classes/AbstractController/Base.html b/src/classes/AbstractController/Base.html
index fa56d50242..aaa717e0be 100644
--- a/src/classes/AbstractController/Base.html
+++ b/src/classes/AbstractController/Base.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Class
@@ -29,7 +29,7 @@
-Abstract Controller Base
+Abstract Controller Base
AbstractController::Base
is a low-level API. Nobody should be using it directly, and subclasses (like ActionController::Base
) are expected to provide their own render
method, since rendering means different things depending on the context.
@@ -73,11 +73,11 @@ Methods
- controller_path
+ controller_path
- controller_path
+ controller_path
@@ -186,12 +186,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 57
+ # File actionpack/lib/abstract_controller/base.rb, line 58
def abstract!
@abstract = true
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -226,11 +226,11 @@ Returns
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 96
+ # File actionpack/lib/abstract_controller/base.rb, line 97
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.
+ # 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))
@@ -239,7 +239,7 @@ Returns
end
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -269,12 +269,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 111
+ # File actionpack/lib/abstract_controller/base.rb, line 112
def clear_action_methods!
@action_methods = nil
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -316,12 +316,12 @@ Returns
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 125
+ # File actionpack/lib/abstract_controller/base.rb, line 127
def controller_path
@controller_path ||= name.delete_suffix("Controller").underscore unless anonymous?
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -351,7 +351,7 @@
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 76
+ # File actionpack/lib/abstract_controller/base.rb, line 77
def internal_methods
controller = self
methods = []
@@ -364,7 +364,7 @@
controller.public_instance_methods(true) - methods
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -394,13 +394,13 @@
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 130
+ # File actionpack/lib/abstract_controller/base.rb, line 132
def method_added(name)
super
clear_action_methods!
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -430,12 +430,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 199
+ # File actionpack/lib/abstract_controller/base.rb, line 200
def self.supports_path?
true
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -469,12 +469,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 170
+ # File actionpack/lib/abstract_controller/base.rb, line 172
def action_methods
self.class.action_methods
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -504,11 +504,11 @@
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 42
+ # File actionpack/lib/abstract_controller/base.rb, line 44
attr_internal :action_name
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -545,12 +545,12 @@ Parameters
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 184
+ # File actionpack/lib/abstract_controller/base.rb, line 187
def available_action?(action_name)
_find_action_name(action_name)
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -580,12 +580,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 165
+ # File actionpack/lib/abstract_controller/base.rb, line 167
def controller_path
self.class.controller_path
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -615,11 +615,11 @@
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 46
+ # File actionpack/lib/abstract_controller/base.rb, line 48
attr_internal :formats
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -649,12 +649,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 191
+ # File actionpack/lib/abstract_controller/base.rb, line 193
def performed?
response_body
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -663,7 +663,7 @@
- process(action, *args)
+ process(action, ...)
@@ -691,8 +691,8 @@ Returns
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 151
- def process(action, *args)
+ # File actionpack/lib/abstract_controller/base.rb, line 154
+ def process(action, ...)
@_action_name = action.to_s
unless action_name = _find_action_name(@_action_name)
@@ -701,10 +701,10 @@ Returns
@_response_body = nil
- process_action(action_name, *args)
+ process_action(action_name, ...)
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -734,11 +734,11 @@
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 38
+ # File actionpack/lib/abstract_controller/base.rb, line 40
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 aff27b6732..a968072fde 100644
--- a/src/classes/AbstractController/Caching.html
+++ b/src/classes/AbstractController/Caching.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
@@ -126,12 +126,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/caching.rb, line 52
+ # File actionpack/lib/abstract_controller/caching.rb, line 54
def view_cache_dependencies
self.class._view_cache_dependencies.filter_map { |dep| instance_exec(&dep) }
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -164,7 +164,7 @@
📝 Source code
- # File actionpack/lib/abstract_controller/caching.rb, line 58
+ # File actionpack/lib/abstract_controller/caching.rb, line 60
def cache(key, options = {}, &block) # :doc:
if cache_configured?
cache_store.fetch(ActiveSupport::Cache.expand_cache_key(key, :controller), options, &block)
@@ -173,7 +173,7 @@
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 2dcce76018..c7aa561a2b 100644
--- a/src/classes/AbstractController/Caching/ClassMethods.html
+++ b/src/classes/AbstractController/Caching/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
@@ -81,12 +81,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/caching.rb, line 47
+ # File actionpack/lib/abstract_controller/caching.rb, line 49
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 ca1881a982..23af10ec6f 100644
--- a/src/classes/AbstractController/Caching/ConfigMethods.html
+++ b/src/classes/AbstractController/Caching/ConfigMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
@@ -85,12 +85,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/caching.rb, line 13
+ # File actionpack/lib/abstract_controller/caching.rb, line 15
def cache_store
config.cache_store
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -120,12 +120,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/caching.rb, line 17
+ # File actionpack/lib/abstract_controller/caching.rb, line 19
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 4a4477a519..188661a389 100644
--- a/src/classes/AbstractController/Caching/Fragments.html
+++ b/src/classes/AbstractController/Caching/Fragments.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
@@ -23,7 +23,7 @@
-Abstract Controller Caching
Fragments
+Abstract Controller Caching
Fragments
Fragment caching is used for caching various blocks within views without caching the entire action as a whole. This is useful when certain elements of an action change frequently or depend on complicated state while other parts rarely change or can be shared amongst multiple parties. The caching is done using the cache
helper available in the Action View. See ActionView::Helpers::CacheHelper
for more information.
@@ -123,7 +123,7 @@
📝 Source code
- # File actionpack/lib/abstract_controller/caching/fragments.rb, line 70
+ # 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
@@ -134,7 +134,7 @@
cache_key
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -175,7 +175,7 @@
📝 Source code
- # File actionpack/lib/abstract_controller/caching/fragments.rb, line 134
+ # 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)
@@ -189,7 +189,7 @@
end
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -219,7 +219,7 @@
📝 Source code
- # File actionpack/lib/abstract_controller/caching/fragments.rb, line 107
+ # 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)
@@ -229,7 +229,7 @@
end
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -259,7 +259,7 @@
📝 Source code
- # File actionpack/lib/abstract_controller/caching/fragments.rb, line 95
+ # File actionpack/lib/abstract_controller/caching/fragments.rb, line 93
def read_fragment(key, options = nil)
return unless cache_configured?
@@ -270,7 +270,7 @@
end
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -300,7 +300,7 @@
📝 Source code
- # File actionpack/lib/abstract_controller/caching/fragments.rb, line 82
+ # File actionpack/lib/abstract_controller/caching/fragments.rb, line 80
def write_fragment(key, content, options = nil)
return content unless cache_configured?
@@ -312,7 +312,7 @@
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 c3c06e0721..0dabaf1cfb 100644
--- a/src/classes/AbstractController/Caching/Fragments/ClassMethods.html
+++ b/src/classes/AbstractController/Caching/Fragments/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
@@ -97,12 +97,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/caching/fragments.rb, line 59
+ # File actionpack/lib/abstract_controller/caching/fragments.rb, line 58
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 e3d13b12bb..36aad58b81 100644
--- a/src/classes/AbstractController/Callbacks.html
+++ b/src/classes/AbstractController/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
@@ -23,7 +23,7 @@
-Abstract Controller Callbacks
+Abstract Controller Callbacks
Abstract Controller provides hooks during the life cycle of a controller action. Callbacks
allow you to trigger logic during this cycle. Available callbacks are:
-
@@ -52,8 +52,6 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
@@ -124,14 +124,14 @@ Parameters
-
callbacks
- An array of callbacks, with an optional options hash as the last parameter.
-
-
block
- A proc that should be added to the callbacks.
+block
- A proc that should be added to the callbacks.
Block Parameters
-
-
name
- The callback to be added.
+name
- The callback to be added.
-
-
options
- A hash of options to be used when adding the callback.
+options
- A hash of options to be used when adding the callback.
@@ -147,7 +147,7 @@ Block Parameters
📝 Source code
- # File actionpack/lib/abstract_controller/callbacks.rb, line 119
+ # File actionpack/lib/abstract_controller/callbacks.rb, line 120
def _insert_callbacks(callbacks, block = nil)
options = callbacks.extract_options!
callbacks.push(block) if block
@@ -159,7 +159,7 @@ Block Parameters
end
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -190,9 +190,9 @@
Options
-
-
only
- The callback should be run only for this action.
+only
- The callback should be run only for this action.
-
-
except
- The callback should be run for all actions except this action.
+except
- The callback should be run for all actions except this action.
@@ -208,13 +208,13 @@ Options
📝 Source code
- # File actionpack/lib/abstract_controller/callbacks.rb, line 94
+ # 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
@@ -240,7 +240,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -264,7 +264,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -278,7 +278,7 @@
- Append a callback around actions. See _insert_callbacks
for parameter details.
+ Append a callback around actions. See _insert_callbacks
for parameter details. set up before_action
, prepend_before_action
, skip_before_action
, etc. for each of before, after, and around.
@@ -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 1a46aa6b34..4f6f607ce0 100644
--- a/src/classes/AbstractController/Collector.html
+++ b/src/classes/AbstractController/Collector.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
@@ -80,18 +80,17 @@
📝 Source code
- # File actionpack/lib/abstract_controller/collector.rb, line 7
+ # 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}(*args, &block)
- custom(Mime[:#{sym}], *args, &block)
+ def #{sym}(...)
+ custom(Mime[:#{sym}], ...)
end
- ruby2_keywords(:#{sym})
RUBY
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/DoubleRenderError.html b/src/classes/AbstractController/DoubleRenderError.html
index b874652177..0918e35e97 100644
--- a/src/classes/AbstractController/DoubleRenderError.html
+++ b/src/classes/AbstractController/DoubleRenderError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Class
@@ -99,12 +99,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/rendering.rb, line 12
+ # File actionpack/lib/abstract_controller/rendering.rb, line 14
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 e5a7e6f463..68aea1e4b8 100644
--- a/src/classes/AbstractController/Helpers.html
+++ b/src/classes/AbstractController/Helpers.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
@@ -41,13 +41,6 @@ Module
- Class
-
-
@@ -62,20 +55,6 @@ Methods
-
- Included Modules
-
-
- -
-
-
- ActiveSupport::Deprecation::DeprecatedConstantAccessor
-
-
-
-
-
-
@@ -115,12 +94,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/helpers.rb, line 44
+ # File actionpack/lib/abstract_controller/helpers.rb, line 28
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 fc440f9f86..77083dba36 100644
--- a/src/classes/AbstractController/Helpers/ClassMethods.html
+++ b/src/classes/AbstractController/Helpers/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
@@ -35,11 +35,11 @@ Methods
-
- _helpers_for_modification
+ #
-
- all_helpers_from_path
+ _helpers_for_modification
-
@@ -96,15 +96,20 @@
Attributes
Instance Public methods
-
+
- _helpers_for_modification()
+ all_helpers_from_path(path)
+
-
+ Returns a list of helper names in a given path.
+
+ActionController::Base.all_helpers_from_path 'app/helpers'
+# => ["application", "chart", "rubygems"]
+
@@ -114,40 +119,20 @@
-
-
- 📝 Source code
-
-
- # File actionpack/lib/abstract_controller/helpers.rb, line 231
- def _helpers_for_modification
- unless @_helpers
- self._helpers = define_helpers_module(self, superclass._helpers)
- end
- _helpers
- end
-
- 🔎 See on GitHub
-
-
+ 🔎 See on GitHub
-
+
- all_helpers_from_path(path)
-
+ _helpers_for_modification()
- Returns a list of helper names in a given path.
-
-ActionController::Base.all_helpers_from_path 'app/helpers'
-# => ["application", "chart", "rubygems"]
-
+
@@ -157,7 +142,22 @@
- 🔎 See on GitHub
+
+
+ 📝 Source code
+
+
+ # File actionpack/lib/abstract_controller/helpers.rb, line 216
+ def _helpers_for_modification
+ unless @_helpers
+ self._helpers = define_helpers_module(self, superclass._helpers)
+ end
+ _helpers
+ end
+
+ 🔎 See on GitHub
+
+
@@ -185,7 +185,7 @@
📝 Source code
- # File actionpack/lib/abstract_controller/helpers.rb, line 222
+ # File actionpack/lib/abstract_controller/helpers.rb, line 207
def clear_helpers
inherited_helper_methods = _helper_methods
self._helpers = Module.new
@@ -195,7 +195,7 @@
default_helper_module! unless anonymous?
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -273,7 +273,7 @@
📝 Source code
- # File actionpack/lib/abstract_controller/helpers.rb, line 211
+ # File actionpack/lib/abstract_controller/helpers.rb, line 196
def helper(*args, &block)
modules_for_helpers(args).each do |mod|
next if _helpers.include?(mod)
@@ -283,7 +283,7 @@
_helpers_for_modification.module_eval(&block) if block_given?
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -298,12 +298,9 @@
- Declare a controller method as a helper. For example, the following makes the current_user
and logged_in?
controller methods available to the view:
-
-class ApplicationController < ActionController::Base
- helper_method :current_user, :logged_in?
+ Declare a controller method as a helper. For example, the following makes the current_user
and logged_in?
controller methods available to the view: class ApplicationController < ActionController::Base
helper_method
:current_user, :logged_in?
- private
+ private
def current_user
@current_user ||= User.find_by(id: session[:user])
end
@@ -314,10 +311,7 @@
end
-In a view:
-
-<% if logged_in? -%>Welcome, <%= current_user.name %><% end -%>
-
+In a view: <% if logged_in? -%>Welcome, <%= current_user.name %><% end -%>
Parameters
-
@@ -337,7 +331,7 @@
Parameters
📝 Source code
- # File actionpack/lib/abstract_controller/helpers.rb, line 140
+ # File actionpack/lib/abstract_controller/helpers.rb, line 126
def helper_method(*methods)
methods.flatten!
self._helper_methods += methods
@@ -346,19 +340,18 @@ Parameters
file, line = location.path, location.lineno
methods.each do |method|
- # def current_user(*args, &block)
- # controller.send(:'current_user', *args, &block)
+ # def current_user(...)
+ # controller.send(:'current_user', ...)
# end
_helpers_for_modification.class_eval <<~ruby_eval.lines.map(&:strip).join(";"), file, line
- def #{method}(*args, &block)
- controller.send(:'#{method}', *args, &block)
+ def #{method}(...)
+ controller.send(:'#{method}', ...)
end
- ruby2_keywords(:'#{method}')
ruby_eval
end
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -388,7 +381,7 @@
📝 Source code
- # File actionpack/lib/abstract_controller/helpers.rb, line 84
+ # File actionpack/lib/abstract_controller/helpers.rb, line 68
def inherited(klass)
# Inherited from parent by default
klass._helpers = nil
@@ -397,7 +390,7 @@
super
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -414,6 +407,10 @@
Given an array of values like the ones accepted by helper
, this method returns an array with the corresponding modules, in the same order.
+
+ActionController::Base.modules_for_helpers(["application", "chart", "rubygems"])
+# => [ApplicationHelper, ChartHelper, RubygemsHelper]
+
@@ -423,7 +420,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Railties.html b/src/classes/AbstractController/Railties.html
index 3f2bad0332..522875a95b 100644
--- a/src/classes/AbstractController/Railties.html
+++ b/src/classes/AbstractController/Railties.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
diff --git a/src/classes/AbstractController/Railties/RoutesHelpers.html b/src/classes/AbstractController/Railties/RoutesHelpers.html
index bcc721931e..de6113d941 100644
--- a/src/classes/AbstractController/Railties/RoutesHelpers.html
+++ b/src/classes/AbstractController/Railties/RoutesHelpers.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
@@ -80,7 +80,7 @@
📝 Source code
- # File actionpack/lib/abstract_controller/railties/routes_helpers.rb, line 8
+ # 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|
@@ -95,7 +95,7 @@
end
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Rendering.html b/src/classes/AbstractController/Rendering.html
index 7a0e28da22..510b9aaf61 100644
--- a/src/classes/AbstractController/Rendering.html
+++ b/src/classes/AbstractController/Rendering.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
@@ -138,7 +138,7 @@
📝 Source code
- # File actionpack/lib/abstract_controller/rendering.rb, line 25
+ # File actionpack/lib/abstract_controller/rendering.rb, line 27
def render(*args, &block)
options = _normalize_render(*args, &block)
rendered_body = render_to_body(options)
@@ -151,7 +151,7 @@
self.response_body = rendered_body
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -181,11 +181,11 @@
📝 Source code
- # File actionpack/lib/abstract_controller/rendering.rb, line 49
+ # File actionpack/lib/abstract_controller/rendering.rb, line 51
def render_to_body(options = {})
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -217,13 +217,13 @@
📝 Source code
- # File actionpack/lib/abstract_controller/rendering.rb, line 43
+ # File actionpack/lib/abstract_controller/rendering.rb, line 45
def render_to_string(*args, &block)
options = _normalize_render(*args, &block)
render_to_body(options)
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -253,12 +253,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/rendering.rb, line 53
+ # File actionpack/lib/abstract_controller/rendering.rb, line 55
def rendered_format
Mime[:text]
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -288,7 +288,7 @@
📝 Source code
- # File actionpack/lib/abstract_controller/rendering.rb, line 61
+ # File actionpack/lib/abstract_controller/rendering.rb, line 63
def view_assigns
variables = instance_variables - _protected_ivars
@@ -297,7 +297,7 @@
end
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -330,7 +330,7 @@
📝 Source code
- # File actionpack/lib/abstract_controller/rendering.rb, line 73
+ # File actionpack/lib/abstract_controller/rendering.rb, line 74
def _normalize_args(action = nil, options = {}) # :doc:
if action.respond_to?(:permitted?)
if action.permitted?
@@ -345,7 +345,7 @@
end
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -375,12 +375,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/rendering.rb, line 88
+ # File actionpack/lib/abstract_controller/rendering.rb, line 89
def _normalize_options(options) # :doc:
options
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -410,12 +410,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/rendering.rb, line 93
+ # File actionpack/lib/abstract_controller/rendering.rb, line 94
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 87aa62830b..367f8c4346 100644
--- a/src/classes/AbstractController/Translation.html
+++ b/src/classes/AbstractController/Translation.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
@@ -122,12 +122,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/translation.rb, line 29
+ # File actionpack/lib/abstract_controller/translation.rb, line 37
def localize(object, **options)
I18n.localize(object, **options)
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -188,7 +188,7 @@
📝 Source code
- # File actionpack/lib/abstract_controller/translation.rb, line 15
+ # File actionpack/lib/abstract_controller/translation.rb, line 17
def translate(key, **options)
if key&.start_with?(".")
path = controller_path.tr("/", ".")
@@ -198,10 +198,16 @@
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 2604544166..35bf1bfa7d 100644
--- a/src/classes/AbstractController/UrlFor.html
+++ b/src/classes/AbstractController/UrlFor.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
@@ -118,13 +118,13 @@
📝 Source code
- # File actionpack/lib/abstract_controller/url_for.rb, line 16
+ # 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
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/UrlFor/ClassMethods.html b/src/classes/AbstractController/UrlFor/ClassMethods.html
index 298c513236..b7e4e48f64 100644
--- a/src/classes/AbstractController/UrlFor/ClassMethods.html
+++ b/src/classes/AbstractController/UrlFor/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
@@ -85,12 +85,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/url_for.rb, line 22
+ # File actionpack/lib/abstract_controller/url_for.rb, line 24
def _routes
nil
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -120,7 +120,7 @@
📝 Source code
- # File actionpack/lib/abstract_controller/url_for.rb, line 26
+ # File actionpack/lib/abstract_controller/url_for.rb, line 28
def action_methods
@action_methods ||= if _routes
super - _routes.named_routes.helper_names
@@ -129,7 +129,7 @@
end
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable.html b/src/classes/ActionCable.html
index dae1e7745e..d74ad29ceb 100644
--- a/src/classes/ActionCable.html
+++ b/src/classes/ActionCable.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
@@ -100,7 +100,7 @@
- actioncable/lib/action_cable/version.rb
- - railties/lib/rails/app_updater.rb
+ - railties/lib/rails/commands/app/update_command.rb
@@ -264,12 +264,12 @@
📝 Source code
- # File actioncable/lib/action_cable/gem_version.rb, line 5
+ # File actioncable/lib/action_cable/gem_version.rb, line 7
def self.gem_version
Gem::Version.new VERSION::STRING
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -299,12 +299,12 @@
📝 Source code
- # File actioncable/lib/action_cable/version.rb, line 7
+ # File actioncable/lib/action_cable/version.rb, line 9
def self.version
gem_version
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -338,12 +338,12 @@
📝 Source code
- # File actioncable/lib/action_cable.rb, line 71
+ # File actioncable/lib/action_cable.rb, line 72
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 42d3430957..79658f057e 100644
--- a/src/classes/ActionCable/Channel.html
+++ b/src/classes/ActionCable/Channel.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
diff --git a/src/classes/ActionCable/Channel/Base.html b/src/classes/ActionCable/Channel/Base.html
index 40c8fc885e..a9b86c4697 100644
--- a/src/classes/ActionCable/Channel/Base.html
+++ b/src/classes/ActionCable/Channel/Base.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Class
@@ -29,7 +29,7 @@
-Action Cable Channel Base
+Action Cable Channel
Base
The channel provides the basic structure of grouping behavior into logical units when communicating over the WebSocket connection. You can think of a channel like a form of controller, but one that’s capable of pushing content to the subscriber in addition to simply responding to the subscriber’s direct requests.
@@ -306,7 +306,7 @@ Returns
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 120
+ # File actioncable/lib/action_cable/channel/base.rb, line 129
def action_methods
@action_methods ||= begin
# All public instance methods of this class, including ancestors
@@ -319,7 +319,7 @@ Returns
end
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -349,7 +349,7 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 147
+ # File actioncable/lib/action_cable/channel/base.rb, line 156
def initialize(connection, identifier, params = {})
@connection = connection
@identifier = identifier
@@ -367,7 +367,7 @@
delegate_connection_identifiers
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -400,12 +400,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 136
+ # File actioncable/lib/action_cable/channel/base.rb, line 145
def clear_action_methods! # :doc:
@action_methods = nil
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -435,13 +435,13 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 141
+ # File actioncable/lib/action_cable/channel/base.rb, line 150
def method_added(name) # :doc:
super
clear_action_methods!
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -475,7 +475,7 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 167
+ # File actioncable/lib/action_cable/channel/base.rb, line 176
def perform_action(data)
action = extract_action(data)
@@ -489,7 +489,7 @@
end
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -519,7 +519,7 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 182
+ # File actioncable/lib/action_cable/channel/base.rb, line 191
def subscribe_to_channel
run_callbacks :subscribe do
subscribed
@@ -529,7 +529,7 @@
ensure_confirmation_sent
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -562,12 +562,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 233
+ # File actioncable/lib/action_cable/channel/base.rb, line 245
def defer_subscription_confirmation! # :doc:
@defer_subscription_confirmation_counter.increment
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -597,12 +597,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 237
+ # File actioncable/lib/action_cable/channel/base.rb, line 249
def defer_subscription_confirmation? # :doc:
@defer_subscription_confirmation_counter.value > 0
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -632,14 +632,14 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 227
+ # File actioncable/lib/action_cable/channel/base.rb, line 239
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
@@ -669,12 +669,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 245
+ # File actioncable/lib/action_cable/channel/base.rb, line 257
def reject # :doc:
@reject_subscription = true
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -704,12 +704,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 202
+ # File actioncable/lib/action_cable/channel/base.rb, line 213
def subscribed # :doc:
# Override in subclasses
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -739,12 +739,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 241
+ # File actioncable/lib/action_cable/channel/base.rb, line 253
def subscription_confirmation_sent? # :doc:
@subscription_confirmation_sent
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -774,12 +774,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 249
+ # File actioncable/lib/action_cable/channel/base.rb, line 261
def subscription_rejected? # :doc:
@reject_subscription
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -809,7 +809,7 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 214
+ # File actioncable/lib/action_cable/channel/base.rb, line 226
def transmit(data, via: nil) # :doc:
logger.debug do
status = "#{self.class.name} transmitting #{data.inspect.truncate(300)}"
@@ -823,7 +823,7 @@
end
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -853,12 +853,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 208
+ # File actioncable/lib/action_cable/channel/base.rb, line 219
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 9462052e71..4c8d1cde6c 100644
--- a/src/classes/ActionCable/Channel/Broadcasting.html
+++ b/src/classes/ActionCable/Channel/Broadcasting.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
@@ -44,6 +44,19 @@ Module
+ Methods
+
+
+ -
+ broadcast_to
+
+
+ -
+ broadcasting_for
+
+
+
+
@@ -59,6 +72,79 @@ Module
+ Instance Public methods
+
+
+
+
+ broadcast_to(model, message)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 📝 Source code
+
+
+ # File actioncable/lib/action_cable/channel/broadcasting.rb, line 45
+ def broadcast_to(model, message)
+ self.class.broadcast_to(model, message)
+ end
+
+ 🔎 See on GitHub
+
+
+
+
+
+
+
+
+ broadcasting_for(model)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 📝 Source code
+
+
+ # File actioncable/lib/action_cable/channel/broadcasting.rb, line 41
+ def broadcasting_for(model)
+ self.class.broadcasting_for(model)
+ end
+
+ 🔎 See on GitHub
+
+
+
+
+
+
diff --git a/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html b/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
index 22b96e928e..02e1b0b4cf 100644
--- a/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
@@ -85,12 +85,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/broadcasting.rb, line 16
+ # File actioncable/lib/action_cable/channel/broadcasting.rb, line 14
def broadcast_to(model, message)
ActionCable.server.broadcast(broadcasting_for(model), message)
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -125,12 +125,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/broadcasting.rb, line 26
+ # File actioncable/lib/action_cable/channel/broadcasting.rb, line 24
def broadcasting_for(model)
serialize_broadcasting([ channel_name, model ])
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Callbacks.html b/src/classes/ActionCable/Channel/Callbacks.html
index 45f2aa1e5f..8147df2b03 100644
--- a/src/classes/ActionCable/Channel/Callbacks.html
+++ b/src/classes/ActionCable/Channel/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
@@ -23,7 +23,7 @@
-Action Cable Channel Callbacks
+Action Cable Channel
Callbacks
Action Cable Channel
provides callback hooks that are invoked during the life cycle of a channel:
-
diff --git a/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html b/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
index dd71b042af..d8f850d2ea 100644
--- a/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
@@ -110,12 +110,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/callbacks.rb, line 58
+ # File actioncable/lib/action_cable/channel/callbacks.rb, line 60
def after_subscribe(*methods, &block)
set_callback(:subscribe, :after, *methods, &block)
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -149,12 +149,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/callbacks.rb, line 67
+ # File actioncable/lib/action_cable/channel/callbacks.rb, line 69
def after_unsubscribe(*methods, &block)
set_callback(:unsubscribe, :after, *methods, &block)
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -184,12 +184,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/callbacks.rb, line 45
+ # File actioncable/lib/action_cable/channel/callbacks.rb, line 48
def before_subscribe(*methods, &block)
set_callback(:subscribe, :before, *methods, &block)
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -219,12 +219,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/callbacks.rb, line 63
+ # File actioncable/lib/action_cable/channel/callbacks.rb, line 65
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 93d9cc96d9..0d3ba59746 100644
--- a/src/classes/ActionCable/Channel/ChannelStub.html
+++ b/src/classes/ActionCable/Channel/ChannelStub.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
@@ -23,7 +23,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?
.
@@ -113,12 +113,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/test_case.rb, line 24
+ # File actioncable/lib/action_cable/channel/test_case.rb, line 25
def confirmed?
subscription_confirmation_sent?
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -148,12 +148,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/test_case.rb, line 28
+ # File actioncable/lib/action_cable/channel/test_case.rb, line 29
def rejected?
subscription_rejected?
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -187,10 +187,10 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/test_case.rb, line 45
+
+ Ruby on Rails 7.2.0.beta2
diff --git a/src/classes/AbstractController/Base.html b/src/classes/AbstractController/Base.html
index fa56d50242..aaa717e0be 100644
--- a/src/classes/AbstractController/Base.html
+++ b/src/classes/AbstractController/Base.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Class
@@ -29,7 +29,7 @@
-Abstract Controller Base
+Abstract Controller Base
AbstractController::Base
is a low-level API. Nobody should be using it directly, and subclasses (like ActionController::Base
) are expected to provide their own render
method, since rendering means different things depending on the context.
@@ -73,11 +73,11 @@ Methods
- controller_path
+ controller_path
- controller_path
+ controller_path
@@ -186,12 +186,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 57
+ # File actionpack/lib/abstract_controller/base.rb, line 58
def abstract!
@abstract = true
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -226,11 +226,11 @@ Returns
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 96
+ # File actionpack/lib/abstract_controller/base.rb, line 97
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.
+ # 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))
@@ -239,7 +239,7 @@ Returns
end
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -269,12 +269,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 111
+ # File actionpack/lib/abstract_controller/base.rb, line 112
def clear_action_methods!
@action_methods = nil
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -316,12 +316,12 @@ Returns
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 125
+ # File actionpack/lib/abstract_controller/base.rb, line 127
def controller_path
@controller_path ||= name.delete_suffix("Controller").underscore unless anonymous?
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -351,7 +351,7 @@
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 76
+ # File actionpack/lib/abstract_controller/base.rb, line 77
def internal_methods
controller = self
methods = []
@@ -364,7 +364,7 @@
controller.public_instance_methods(true) - methods
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -394,13 +394,13 @@
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 130
+ # File actionpack/lib/abstract_controller/base.rb, line 132
def method_added(name)
super
clear_action_methods!
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -430,12 +430,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 199
+ # File actionpack/lib/abstract_controller/base.rb, line 200
def self.supports_path?
true
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -469,12 +469,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 170
+ # File actionpack/lib/abstract_controller/base.rb, line 172
def action_methods
self.class.action_methods
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -504,11 +504,11 @@
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 42
+ # File actionpack/lib/abstract_controller/base.rb, line 44
attr_internal :action_name
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -545,12 +545,12 @@ Parameters
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 184
+ # File actionpack/lib/abstract_controller/base.rb, line 187
def available_action?(action_name)
_find_action_name(action_name)
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -580,12 +580,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 165
+ # File actionpack/lib/abstract_controller/base.rb, line 167
def controller_path
self.class.controller_path
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -615,11 +615,11 @@
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 46
+ # File actionpack/lib/abstract_controller/base.rb, line 48
attr_internal :formats
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -649,12 +649,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 191
+ # File actionpack/lib/abstract_controller/base.rb, line 193
def performed?
response_body
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -663,7 +663,7 @@
- process(action, *args)
+ process(action, ...)
@@ -691,8 +691,8 @@ Returns
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 151
- def process(action, *args)
+ # File actionpack/lib/abstract_controller/base.rb, line 154
+ def process(action, ...)
@_action_name = action.to_s
unless action_name = _find_action_name(@_action_name)
@@ -701,10 +701,10 @@ Returns
@_response_body = nil
- process_action(action_name, *args)
+ process_action(action_name, ...)
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -734,11 +734,11 @@
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 38
+ # File actionpack/lib/abstract_controller/base.rb, line 40
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 aff27b6732..a968072fde 100644
--- a/src/classes/AbstractController/Caching.html
+++ b/src/classes/AbstractController/Caching.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
@@ -126,12 +126,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/caching.rb, line 52
+ # File actionpack/lib/abstract_controller/caching.rb, line 54
def view_cache_dependencies
self.class._view_cache_dependencies.filter_map { |dep| instance_exec(&dep) }
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -164,7 +164,7 @@
📝 Source code
- # File actionpack/lib/abstract_controller/caching.rb, line 58
+ # File actionpack/lib/abstract_controller/caching.rb, line 60
def cache(key, options = {}, &block) # :doc:
if cache_configured?
cache_store.fetch(ActiveSupport::Cache.expand_cache_key(key, :controller), options, &block)
@@ -173,7 +173,7 @@
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 2dcce76018..c7aa561a2b 100644
--- a/src/classes/AbstractController/Caching/ClassMethods.html
+++ b/src/classes/AbstractController/Caching/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
@@ -81,12 +81,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/caching.rb, line 47
+ # File actionpack/lib/abstract_controller/caching.rb, line 49
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 ca1881a982..23af10ec6f 100644
--- a/src/classes/AbstractController/Caching/ConfigMethods.html
+++ b/src/classes/AbstractController/Caching/ConfigMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
@@ -85,12 +85,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/caching.rb, line 13
+ # File actionpack/lib/abstract_controller/caching.rb, line 15
def cache_store
config.cache_store
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -120,12 +120,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/caching.rb, line 17
+ # File actionpack/lib/abstract_controller/caching.rb, line 19
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 4a4477a519..188661a389 100644
--- a/src/classes/AbstractController/Caching/Fragments.html
+++ b/src/classes/AbstractController/Caching/Fragments.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
@@ -23,7 +23,7 @@
-Abstract Controller Caching
Fragments
+Abstract Controller Caching
Fragments
Fragment caching is used for caching various blocks within views without caching the entire action as a whole. This is useful when certain elements of an action change frequently or depend on complicated state while other parts rarely change or can be shared amongst multiple parties. The caching is done using the cache
helper available in the Action View. See ActionView::Helpers::CacheHelper
for more information.
@@ -123,7 +123,7 @@
📝 Source code
- # File actionpack/lib/abstract_controller/caching/fragments.rb, line 70
+ # 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
@@ -134,7 +134,7 @@
cache_key
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -175,7 +175,7 @@
📝 Source code
- # File actionpack/lib/abstract_controller/caching/fragments.rb, line 134
+ # 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)
@@ -189,7 +189,7 @@
end
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -219,7 +219,7 @@
📝 Source code
- # File actionpack/lib/abstract_controller/caching/fragments.rb, line 107
+ # 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)
@@ -229,7 +229,7 @@
end
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -259,7 +259,7 @@
📝 Source code
- # File actionpack/lib/abstract_controller/caching/fragments.rb, line 95
+ # File actionpack/lib/abstract_controller/caching/fragments.rb, line 93
def read_fragment(key, options = nil)
return unless cache_configured?
@@ -270,7 +270,7 @@
end
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -300,7 +300,7 @@
📝 Source code
- # File actionpack/lib/abstract_controller/caching/fragments.rb, line 82
+ # File actionpack/lib/abstract_controller/caching/fragments.rb, line 80
def write_fragment(key, content, options = nil)
return content unless cache_configured?
@@ -312,7 +312,7 @@
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 c3c06e0721..0dabaf1cfb 100644
--- a/src/classes/AbstractController/Caching/Fragments/ClassMethods.html
+++ b/src/classes/AbstractController/Caching/Fragments/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
@@ -97,12 +97,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/caching/fragments.rb, line 59
+ # File actionpack/lib/abstract_controller/caching/fragments.rb, line 58
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 e3d13b12bb..36aad58b81 100644
--- a/src/classes/AbstractController/Callbacks.html
+++ b/src/classes/AbstractController/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
@@ -23,7 +23,7 @@
-Abstract Controller Callbacks
+Abstract Controller Callbacks
Abstract Controller provides hooks during the life cycle of a controller action. Callbacks
allow you to trigger logic during this cycle. Available callbacks are:
-
@@ -52,8 +52,6 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
@@ -124,14 +124,14 @@ Parameters
-
callbacks
- An array of callbacks, with an optional options hash as the last parameter.
-
-
block
- A proc that should be added to the callbacks.
+block
- A proc that should be added to the callbacks.
Block Parameters
-
-
name
- The callback to be added.
+name
- The callback to be added.
-
-
options
- A hash of options to be used when adding the callback.
+options
- A hash of options to be used when adding the callback.
@@ -147,7 +147,7 @@ Block Parameters
📝 Source code
- # File actionpack/lib/abstract_controller/callbacks.rb, line 119
+ # File actionpack/lib/abstract_controller/callbacks.rb, line 120
def _insert_callbacks(callbacks, block = nil)
options = callbacks.extract_options!
callbacks.push(block) if block
@@ -159,7 +159,7 @@ Block Parameters
end
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -190,9 +190,9 @@
Options
-
-
only
- The callback should be run only for this action.
+only
- The callback should be run only for this action.
-
-
except
- The callback should be run for all actions except this action.
+except
- The callback should be run for all actions except this action.
@@ -208,13 +208,13 @@ Options
📝 Source code
- # File actionpack/lib/abstract_controller/callbacks.rb, line 94
+ # 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
@@ -240,7 +240,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -264,7 +264,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -278,7 +278,7 @@
- Append a callback around actions. See _insert_callbacks
for parameter details.
+ Append a callback around actions. See _insert_callbacks
for parameter details. set up before_action
, prepend_before_action
, skip_before_action
, etc. for each of before, after, and around.
@@ -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 1a46aa6b34..4f6f607ce0 100644
--- a/src/classes/AbstractController/Collector.html
+++ b/src/classes/AbstractController/Collector.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
@@ -80,18 +80,17 @@
📝 Source code
- # File actionpack/lib/abstract_controller/collector.rb, line 7
+ # 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}(*args, &block)
- custom(Mime[:#{sym}], *args, &block)
+ def #{sym}(...)
+ custom(Mime[:#{sym}], ...)
end
- ruby2_keywords(:#{sym})
RUBY
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/DoubleRenderError.html b/src/classes/AbstractController/DoubleRenderError.html
index b874652177..0918e35e97 100644
--- a/src/classes/AbstractController/DoubleRenderError.html
+++ b/src/classes/AbstractController/DoubleRenderError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Class
@@ -99,12 +99,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/rendering.rb, line 12
+ # File actionpack/lib/abstract_controller/rendering.rb, line 14
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 e5a7e6f463..68aea1e4b8 100644
--- a/src/classes/AbstractController/Helpers.html
+++ b/src/classes/AbstractController/Helpers.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
@@ -41,13 +41,6 @@ Module
- Class
-
-
@@ -62,20 +55,6 @@ Methods
-
- Included Modules
-
-
- -
-
-
- ActiveSupport::Deprecation::DeprecatedConstantAccessor
-
-
-
-
-
-
@@ -115,12 +94,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/helpers.rb, line 44
+ # File actionpack/lib/abstract_controller/helpers.rb, line 28
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 fc440f9f86..77083dba36 100644
--- a/src/classes/AbstractController/Helpers/ClassMethods.html
+++ b/src/classes/AbstractController/Helpers/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
@@ -35,11 +35,11 @@ Methods
-
- _helpers_for_modification
+ #
-
- all_helpers_from_path
+ _helpers_for_modification
-
@@ -96,15 +96,20 @@
Attributes
Instance Public methods
-
+
- _helpers_for_modification()
+ all_helpers_from_path(path)
+
-
+ Returns a list of helper names in a given path.
+
+ActionController::Base.all_helpers_from_path 'app/helpers'
+# => ["application", "chart", "rubygems"]
+
@@ -114,40 +119,20 @@
-
-
- 📝 Source code
-
-
- # File actionpack/lib/abstract_controller/helpers.rb, line 231
- def _helpers_for_modification
- unless @_helpers
- self._helpers = define_helpers_module(self, superclass._helpers)
- end
- _helpers
- end
-
- 🔎 See on GitHub
-
-
+ 🔎 See on GitHub
-
+
- all_helpers_from_path(path)
-
+ _helpers_for_modification()
- Returns a list of helper names in a given path.
-
-ActionController::Base.all_helpers_from_path 'app/helpers'
-# => ["application", "chart", "rubygems"]
-
+
@@ -157,7 +142,22 @@
- 🔎 See on GitHub
+
+
+ 📝 Source code
+
+
+ # File actionpack/lib/abstract_controller/helpers.rb, line 216
+ def _helpers_for_modification
+ unless @_helpers
+ self._helpers = define_helpers_module(self, superclass._helpers)
+ end
+ _helpers
+ end
+
+ 🔎 See on GitHub
+
+
@@ -185,7 +185,7 @@
📝 Source code
- # File actionpack/lib/abstract_controller/helpers.rb, line 222
+ # File actionpack/lib/abstract_controller/helpers.rb, line 207
def clear_helpers
inherited_helper_methods = _helper_methods
self._helpers = Module.new
@@ -195,7 +195,7 @@
default_helper_module! unless anonymous?
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -273,7 +273,7 @@
📝 Source code
- # File actionpack/lib/abstract_controller/helpers.rb, line 211
+ # File actionpack/lib/abstract_controller/helpers.rb, line 196
def helper(*args, &block)
modules_for_helpers(args).each do |mod|
next if _helpers.include?(mod)
@@ -283,7 +283,7 @@
_helpers_for_modification.module_eval(&block) if block_given?
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -298,12 +298,9 @@
- Declare a controller method as a helper. For example, the following makes the current_user
and logged_in?
controller methods available to the view:
-
-class ApplicationController < ActionController::Base
- helper_method :current_user, :logged_in?
+ Declare a controller method as a helper. For example, the following makes the current_user
and logged_in?
controller methods available to the view: class ApplicationController < ActionController::Base
helper_method
:current_user, :logged_in?
- private
+ private
def current_user
@current_user ||= User.find_by(id: session[:user])
end
@@ -314,10 +311,7 @@
end
-In a view:
-
-<% if logged_in? -%>Welcome, <%= current_user.name %><% end -%>
-
+In a view: <% if logged_in? -%>Welcome, <%= current_user.name %><% end -%>
Parameters
-
@@ -337,7 +331,7 @@
Parameters
📝 Source code
- # File actionpack/lib/abstract_controller/helpers.rb, line 140
+ # File actionpack/lib/abstract_controller/helpers.rb, line 126
def helper_method(*methods)
methods.flatten!
self._helper_methods += methods
@@ -346,19 +340,18 @@ Parameters
file, line = location.path, location.lineno
methods.each do |method|
- # def current_user(*args, &block)
- # controller.send(:'current_user', *args, &block)
+ # def current_user(...)
+ # controller.send(:'current_user', ...)
# end
_helpers_for_modification.class_eval <<~ruby_eval.lines.map(&:strip).join(";"), file, line
- def #{method}(*args, &block)
- controller.send(:'#{method}', *args, &block)
+ def #{method}(...)
+ controller.send(:'#{method}', ...)
end
- ruby2_keywords(:'#{method}')
ruby_eval
end
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -388,7 +381,7 @@
📝 Source code
- # File actionpack/lib/abstract_controller/helpers.rb, line 84
+ # File actionpack/lib/abstract_controller/helpers.rb, line 68
def inherited(klass)
# Inherited from parent by default
klass._helpers = nil
@@ -397,7 +390,7 @@
super
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -414,6 +407,10 @@
Given an array of values like the ones accepted by helper
, this method returns an array with the corresponding modules, in the same order.
+
+ActionController::Base.modules_for_helpers(["application", "chart", "rubygems"])
+# => [ApplicationHelper, ChartHelper, RubygemsHelper]
+
@@ -423,7 +420,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Railties.html b/src/classes/AbstractController/Railties.html
index 3f2bad0332..522875a95b 100644
--- a/src/classes/AbstractController/Railties.html
+++ b/src/classes/AbstractController/Railties.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
diff --git a/src/classes/AbstractController/Railties/RoutesHelpers.html b/src/classes/AbstractController/Railties/RoutesHelpers.html
index bcc721931e..de6113d941 100644
--- a/src/classes/AbstractController/Railties/RoutesHelpers.html
+++ b/src/classes/AbstractController/Railties/RoutesHelpers.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
@@ -80,7 +80,7 @@
📝 Source code
- # File actionpack/lib/abstract_controller/railties/routes_helpers.rb, line 8
+ # 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|
@@ -95,7 +95,7 @@
end
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Rendering.html b/src/classes/AbstractController/Rendering.html
index 7a0e28da22..510b9aaf61 100644
--- a/src/classes/AbstractController/Rendering.html
+++ b/src/classes/AbstractController/Rendering.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
@@ -138,7 +138,7 @@
📝 Source code
- # File actionpack/lib/abstract_controller/rendering.rb, line 25
+ # File actionpack/lib/abstract_controller/rendering.rb, line 27
def render(*args, &block)
options = _normalize_render(*args, &block)
rendered_body = render_to_body(options)
@@ -151,7 +151,7 @@
self.response_body = rendered_body
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -181,11 +181,11 @@
📝 Source code
- # File actionpack/lib/abstract_controller/rendering.rb, line 49
+ # File actionpack/lib/abstract_controller/rendering.rb, line 51
def render_to_body(options = {})
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -217,13 +217,13 @@
📝 Source code
- # File actionpack/lib/abstract_controller/rendering.rb, line 43
+ # File actionpack/lib/abstract_controller/rendering.rb, line 45
def render_to_string(*args, &block)
options = _normalize_render(*args, &block)
render_to_body(options)
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -253,12 +253,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/rendering.rb, line 53
+ # File actionpack/lib/abstract_controller/rendering.rb, line 55
def rendered_format
Mime[:text]
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -288,7 +288,7 @@
📝 Source code
- # File actionpack/lib/abstract_controller/rendering.rb, line 61
+ # File actionpack/lib/abstract_controller/rendering.rb, line 63
def view_assigns
variables = instance_variables - _protected_ivars
@@ -297,7 +297,7 @@
end
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -330,7 +330,7 @@
📝 Source code
- # File actionpack/lib/abstract_controller/rendering.rb, line 73
+ # File actionpack/lib/abstract_controller/rendering.rb, line 74
def _normalize_args(action = nil, options = {}) # :doc:
if action.respond_to?(:permitted?)
if action.permitted?
@@ -345,7 +345,7 @@
end
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -375,12 +375,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/rendering.rb, line 88
+ # File actionpack/lib/abstract_controller/rendering.rb, line 89
def _normalize_options(options) # :doc:
options
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -410,12 +410,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/rendering.rb, line 93
+ # File actionpack/lib/abstract_controller/rendering.rb, line 94
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 87aa62830b..367f8c4346 100644
--- a/src/classes/AbstractController/Translation.html
+++ b/src/classes/AbstractController/Translation.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
@@ -122,12 +122,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/translation.rb, line 29
+ # File actionpack/lib/abstract_controller/translation.rb, line 37
def localize(object, **options)
I18n.localize(object, **options)
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -188,7 +188,7 @@
📝 Source code
- # File actionpack/lib/abstract_controller/translation.rb, line 15
+ # File actionpack/lib/abstract_controller/translation.rb, line 17
def translate(key, **options)
if key&.start_with?(".")
path = controller_path.tr("/", ".")
@@ -198,10 +198,16 @@
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 2604544166..35bf1bfa7d 100644
--- a/src/classes/AbstractController/UrlFor.html
+++ b/src/classes/AbstractController/UrlFor.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
@@ -118,13 +118,13 @@
📝 Source code
- # File actionpack/lib/abstract_controller/url_for.rb, line 16
+ # 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
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/UrlFor/ClassMethods.html b/src/classes/AbstractController/UrlFor/ClassMethods.html
index 298c513236..b7e4e48f64 100644
--- a/src/classes/AbstractController/UrlFor/ClassMethods.html
+++ b/src/classes/AbstractController/UrlFor/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
@@ -85,12 +85,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/url_for.rb, line 22
+ # File actionpack/lib/abstract_controller/url_for.rb, line 24
def _routes
nil
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -120,7 +120,7 @@
📝 Source code
- # File actionpack/lib/abstract_controller/url_for.rb, line 26
+ # File actionpack/lib/abstract_controller/url_for.rb, line 28
def action_methods
@action_methods ||= if _routes
super - _routes.named_routes.helper_names
@@ -129,7 +129,7 @@
end
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable.html b/src/classes/ActionCable.html
index dae1e7745e..d74ad29ceb 100644
--- a/src/classes/ActionCable.html
+++ b/src/classes/ActionCable.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
@@ -100,7 +100,7 @@
- actioncable/lib/action_cable/version.rb
- - railties/lib/rails/app_updater.rb
+ - railties/lib/rails/commands/app/update_command.rb
@@ -264,12 +264,12 @@
📝 Source code
- # File actioncable/lib/action_cable/gem_version.rb, line 5
+ # File actioncable/lib/action_cable/gem_version.rb, line 7
def self.gem_version
Gem::Version.new VERSION::STRING
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -299,12 +299,12 @@
📝 Source code
- # File actioncable/lib/action_cable/version.rb, line 7
+ # File actioncable/lib/action_cable/version.rb, line 9
def self.version
gem_version
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -338,12 +338,12 @@
📝 Source code
- # File actioncable/lib/action_cable.rb, line 71
+ # File actioncable/lib/action_cable.rb, line 72
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 42d3430957..79658f057e 100644
--- a/src/classes/ActionCable/Channel.html
+++ b/src/classes/ActionCable/Channel.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
diff --git a/src/classes/ActionCable/Channel/Base.html b/src/classes/ActionCable/Channel/Base.html
index 40c8fc885e..a9b86c4697 100644
--- a/src/classes/ActionCable/Channel/Base.html
+++ b/src/classes/ActionCable/Channel/Base.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Class
@@ -29,7 +29,7 @@
-Action Cable Channel Base
+Action Cable Channel
Base
The channel provides the basic structure of grouping behavior into logical units when communicating over the WebSocket connection. You can think of a channel like a form of controller, but one that’s capable of pushing content to the subscriber in addition to simply responding to the subscriber’s direct requests.
@@ -306,7 +306,7 @@ Returns
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 120
+ # File actioncable/lib/action_cable/channel/base.rb, line 129
def action_methods
@action_methods ||= begin
# All public instance methods of this class, including ancestors
@@ -319,7 +319,7 @@ Returns
end
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -349,7 +349,7 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 147
+ # File actioncable/lib/action_cable/channel/base.rb, line 156
def initialize(connection, identifier, params = {})
@connection = connection
@identifier = identifier
@@ -367,7 +367,7 @@
delegate_connection_identifiers
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -400,12 +400,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 136
+ # File actioncable/lib/action_cable/channel/base.rb, line 145
def clear_action_methods! # :doc:
@action_methods = nil
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -435,13 +435,13 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 141
+ # File actioncable/lib/action_cable/channel/base.rb, line 150
def method_added(name) # :doc:
super
clear_action_methods!
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -475,7 +475,7 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 167
+ # File actioncable/lib/action_cable/channel/base.rb, line 176
def perform_action(data)
action = extract_action(data)
@@ -489,7 +489,7 @@
end
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -519,7 +519,7 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 182
+ # File actioncable/lib/action_cable/channel/base.rb, line 191
def subscribe_to_channel
run_callbacks :subscribe do
subscribed
@@ -529,7 +529,7 @@
ensure_confirmation_sent
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -562,12 +562,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 233
+ # File actioncable/lib/action_cable/channel/base.rb, line 245
def defer_subscription_confirmation! # :doc:
@defer_subscription_confirmation_counter.increment
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -597,12 +597,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 237
+ # File actioncable/lib/action_cable/channel/base.rb, line 249
def defer_subscription_confirmation? # :doc:
@defer_subscription_confirmation_counter.value > 0
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -632,14 +632,14 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 227
+ # File actioncable/lib/action_cable/channel/base.rb, line 239
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
@@ -669,12 +669,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 245
+ # File actioncable/lib/action_cable/channel/base.rb, line 257
def reject # :doc:
@reject_subscription = true
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -704,12 +704,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 202
+ # File actioncable/lib/action_cable/channel/base.rb, line 213
def subscribed # :doc:
# Override in subclasses
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -739,12 +739,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 241
+ # File actioncable/lib/action_cable/channel/base.rb, line 253
def subscription_confirmation_sent? # :doc:
@subscription_confirmation_sent
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -774,12 +774,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 249
+ # File actioncable/lib/action_cable/channel/base.rb, line 261
def subscription_rejected? # :doc:
@reject_subscription
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -809,7 +809,7 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 214
+ # File actioncable/lib/action_cable/channel/base.rb, line 226
def transmit(data, via: nil) # :doc:
logger.debug do
status = "#{self.class.name} transmitting #{data.inspect.truncate(300)}"
@@ -823,7 +823,7 @@
end
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -853,12 +853,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 208
+ # File actioncable/lib/action_cable/channel/base.rb, line 219
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 9462052e71..4c8d1cde6c 100644
--- a/src/classes/ActionCable/Channel/Broadcasting.html
+++ b/src/classes/ActionCable/Channel/Broadcasting.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
@@ -44,6 +44,19 @@ Module
+ Methods
+
+
+ -
+ broadcast_to
+
+
+ -
+ broadcasting_for
+
+
+
+
@@ -59,6 +72,79 @@ Module
+ Instance Public methods
+
+
+
+
+ broadcast_to(model, message)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 📝 Source code
+
+
+ # File actioncable/lib/action_cable/channel/broadcasting.rb, line 45
+ def broadcast_to(model, message)
+ self.class.broadcast_to(model, message)
+ end
+
+ 🔎 See on GitHub
+
+
+
+
+
+
+
+
+ broadcasting_for(model)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 📝 Source code
+
+
+ # File actioncable/lib/action_cable/channel/broadcasting.rb, line 41
+ def broadcasting_for(model)
+ self.class.broadcasting_for(model)
+ end
+
+ 🔎 See on GitHub
+
+
+
+
+
+
diff --git a/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html b/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
index 22b96e928e..02e1b0b4cf 100644
--- a/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
@@ -85,12 +85,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/broadcasting.rb, line 16
+ # File actioncable/lib/action_cable/channel/broadcasting.rb, line 14
def broadcast_to(model, message)
ActionCable.server.broadcast(broadcasting_for(model), message)
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -125,12 +125,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/broadcasting.rb, line 26
+ # File actioncable/lib/action_cable/channel/broadcasting.rb, line 24
def broadcasting_for(model)
serialize_broadcasting([ channel_name, model ])
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Callbacks.html b/src/classes/ActionCable/Channel/Callbacks.html
index 45f2aa1e5f..8147df2b03 100644
--- a/src/classes/ActionCable/Channel/Callbacks.html
+++ b/src/classes/ActionCable/Channel/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
@@ -23,7 +23,7 @@
-Action Cable Channel Callbacks
+Action Cable Channel
Callbacks
Action Cable Channel
provides callback hooks that are invoked during the life cycle of a channel:
-
diff --git a/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html b/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
index dd71b042af..d8f850d2ea 100644
--- a/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
@@ -110,12 +110,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/callbacks.rb, line 58
+ # File actioncable/lib/action_cable/channel/callbacks.rb, line 60
def after_subscribe(*methods, &block)
set_callback(:subscribe, :after, *methods, &block)
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -149,12 +149,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/callbacks.rb, line 67
+ # File actioncable/lib/action_cable/channel/callbacks.rb, line 69
def after_unsubscribe(*methods, &block)
set_callback(:unsubscribe, :after, *methods, &block)
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -184,12 +184,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/callbacks.rb, line 45
+ # File actioncable/lib/action_cable/channel/callbacks.rb, line 48
def before_subscribe(*methods, &block)
set_callback(:subscribe, :before, *methods, &block)
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -219,12 +219,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/callbacks.rb, line 63
+ # File actioncable/lib/action_cable/channel/callbacks.rb, line 65
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 93d9cc96d9..0d3ba59746 100644
--- a/src/classes/ActionCable/Channel/ChannelStub.html
+++ b/src/classes/ActionCable/Channel/ChannelStub.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
@@ -23,7 +23,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?
.
@@ -113,12 +113,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/test_case.rb, line 24
+ # File actioncable/lib/action_cable/channel/test_case.rb, line 25
def confirmed?
subscription_confirmation_sent?
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -148,12 +148,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/test_case.rb, line 28
+ # File actioncable/lib/action_cable/channel/test_case.rb, line 29
def rejected?
subscription_rejected?
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -187,10 +187,10 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/test_case.rb, line 45
+
+ Ruby on Rails 7.2.0.beta2
@@ -29,7 +29,7 @@
-Abstract Controller Base
+Abstract Controller Base
AbstractController::Base
is a low-level API. Nobody should be using it directly, and subclasses (like ActionController::Base
) are expected to provide their own render
method, since rendering means different things depending on the context.
@@ -73,11 +73,11 @@ Methods
- controller_path
+ controller_path
- controller_path
+ controller_path
@@ -186,12 +186,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 57
+ # File actionpack/lib/abstract_controller/base.rb, line 58
def abstract!
@abstract = true
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -226,11 +226,11 @@ Returns
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 96
+ # File actionpack/lib/abstract_controller/base.rb, line 97
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.
+ # 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))
@@ -239,7 +239,7 @@ Returns
end
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -269,12 +269,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 111
+ # File actionpack/lib/abstract_controller/base.rb, line 112
def clear_action_methods!
@action_methods = nil
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -316,12 +316,12 @@ Returns
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 125
+ # File actionpack/lib/abstract_controller/base.rb, line 127
def controller_path
@controller_path ||= name.delete_suffix("Controller").underscore unless anonymous?
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -351,7 +351,7 @@
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 76
+ # File actionpack/lib/abstract_controller/base.rb, line 77
def internal_methods
controller = self
methods = []
@@ -364,7 +364,7 @@
controller.public_instance_methods(true) - methods
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -394,13 +394,13 @@
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 130
+ # File actionpack/lib/abstract_controller/base.rb, line 132
def method_added(name)
super
clear_action_methods!
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -430,12 +430,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 199
+ # File actionpack/lib/abstract_controller/base.rb, line 200
def self.supports_path?
true
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -469,12 +469,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 170
+ # File actionpack/lib/abstract_controller/base.rb, line 172
def action_methods
self.class.action_methods
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -504,11 +504,11 @@
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 42
+ # File actionpack/lib/abstract_controller/base.rb, line 44
attr_internal :action_name
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -545,12 +545,12 @@ Parameters
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 184
+ # File actionpack/lib/abstract_controller/base.rb, line 187
def available_action?(action_name)
_find_action_name(action_name)
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -580,12 +580,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 165
+ # File actionpack/lib/abstract_controller/base.rb, line 167
def controller_path
self.class.controller_path
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -615,11 +615,11 @@
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 46
+ # File actionpack/lib/abstract_controller/base.rb, line 48
attr_internal :formats
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -649,12 +649,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 191
+ # File actionpack/lib/abstract_controller/base.rb, line 193
def performed?
response_body
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -663,7 +663,7 @@
- process(action, *args)
+ process(action, ...)
@@ -691,8 +691,8 @@ Returns
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 151
- def process(action, *args)
+ # File actionpack/lib/abstract_controller/base.rb, line 154
+ def process(action, ...)
@_action_name = action.to_s
unless action_name = _find_action_name(@_action_name)
@@ -701,10 +701,10 @@ Returns
@_response_body = nil
- process_action(action_name, *args)
+ process_action(action_name, ...)
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -734,11 +734,11 @@
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 38
+ # File actionpack/lib/abstract_controller/base.rb, line 40
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 aff27b6732..a968072fde 100644
--- a/src/classes/AbstractController/Caching.html
+++ b/src/classes/AbstractController/Caching.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
@@ -126,12 +126,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/caching.rb, line 52
+ # File actionpack/lib/abstract_controller/caching.rb, line 54
def view_cache_dependencies
self.class._view_cache_dependencies.filter_map { |dep| instance_exec(&dep) }
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -164,7 +164,7 @@
📝 Source code
- # File actionpack/lib/abstract_controller/caching.rb, line 58
+ # File actionpack/lib/abstract_controller/caching.rb, line 60
def cache(key, options = {}, &block) # :doc:
if cache_configured?
cache_store.fetch(ActiveSupport::Cache.expand_cache_key(key, :controller), options, &block)
@@ -173,7 +173,7 @@
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 2dcce76018..c7aa561a2b 100644
--- a/src/classes/AbstractController/Caching/ClassMethods.html
+++ b/src/classes/AbstractController/Caching/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
@@ -81,12 +81,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/caching.rb, line 47
+ # File actionpack/lib/abstract_controller/caching.rb, line 49
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 ca1881a982..23af10ec6f 100644
--- a/src/classes/AbstractController/Caching/ConfigMethods.html
+++ b/src/classes/AbstractController/Caching/ConfigMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
@@ -85,12 +85,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/caching.rb, line 13
+ # File actionpack/lib/abstract_controller/caching.rb, line 15
def cache_store
config.cache_store
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -120,12 +120,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/caching.rb, line 17
+ # File actionpack/lib/abstract_controller/caching.rb, line 19
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 4a4477a519..188661a389 100644
--- a/src/classes/AbstractController/Caching/Fragments.html
+++ b/src/classes/AbstractController/Caching/Fragments.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
@@ -23,7 +23,7 @@
-Abstract Controller Caching
Fragments
+Abstract Controller Caching
Fragments
Fragment caching is used for caching various blocks within views without caching the entire action as a whole. This is useful when certain elements of an action change frequently or depend on complicated state while other parts rarely change or can be shared amongst multiple parties. The caching is done using the cache
helper available in the Action View. See ActionView::Helpers::CacheHelper
for more information.
@@ -123,7 +123,7 @@
📝 Source code
- # File actionpack/lib/abstract_controller/caching/fragments.rb, line 70
+ # 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
@@ -134,7 +134,7 @@
cache_key
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -175,7 +175,7 @@
📝 Source code
- # File actionpack/lib/abstract_controller/caching/fragments.rb, line 134
+ # 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)
@@ -189,7 +189,7 @@
end
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -219,7 +219,7 @@
📝 Source code
- # File actionpack/lib/abstract_controller/caching/fragments.rb, line 107
+ # 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)
@@ -229,7 +229,7 @@
end
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -259,7 +259,7 @@
📝 Source code
- # File actionpack/lib/abstract_controller/caching/fragments.rb, line 95
+ # File actionpack/lib/abstract_controller/caching/fragments.rb, line 93
def read_fragment(key, options = nil)
return unless cache_configured?
@@ -270,7 +270,7 @@
end
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -300,7 +300,7 @@
📝 Source code
- # File actionpack/lib/abstract_controller/caching/fragments.rb, line 82
+ # File actionpack/lib/abstract_controller/caching/fragments.rb, line 80
def write_fragment(key, content, options = nil)
return content unless cache_configured?
@@ -312,7 +312,7 @@
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 c3c06e0721..0dabaf1cfb 100644
--- a/src/classes/AbstractController/Caching/Fragments/ClassMethods.html
+++ b/src/classes/AbstractController/Caching/Fragments/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
@@ -97,12 +97,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/caching/fragments.rb, line 59
+ # File actionpack/lib/abstract_controller/caching/fragments.rb, line 58
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 e3d13b12bb..36aad58b81 100644
--- a/src/classes/AbstractController/Callbacks.html
+++ b/src/classes/AbstractController/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
@@ -23,7 +23,7 @@
-Abstract Controller Callbacks
+Abstract Controller Callbacks
Abstract Controller provides hooks during the life cycle of a controller action. Callbacks
allow you to trigger logic during this cycle. Available callbacks are:
-
@@ -52,8 +52,6 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
@@ -124,14 +124,14 @@ Parameters
-
callbacks
- An array of callbacks, with an optional options hash as the last parameter.
-
-
block
- A proc that should be added to the callbacks.
+block
- A proc that should be added to the callbacks.
Block Parameters
-
-
name
- The callback to be added.
+name
- The callback to be added.
-
-
options
- A hash of options to be used when adding the callback.
+options
- A hash of options to be used when adding the callback.
@@ -147,7 +147,7 @@ Block Parameters
📝 Source code
- # File actionpack/lib/abstract_controller/callbacks.rb, line 119
+ # File actionpack/lib/abstract_controller/callbacks.rb, line 120
def _insert_callbacks(callbacks, block = nil)
options = callbacks.extract_options!
callbacks.push(block) if block
@@ -159,7 +159,7 @@ Block Parameters
end
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -190,9 +190,9 @@
Options
-
-
only
- The callback should be run only for this action.
+only
- The callback should be run only for this action.
-
-
except
- The callback should be run for all actions except this action.
+except
- The callback should be run for all actions except this action.
@@ -208,13 +208,13 @@ Options
📝 Source code
- # File actionpack/lib/abstract_controller/callbacks.rb, line 94
+ # 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
@@ -240,7 +240,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -264,7 +264,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -278,7 +278,7 @@
- Append a callback around actions. See _insert_callbacks
for parameter details.
+ Append a callback around actions. See _insert_callbacks
for parameter details. set up before_action
, prepend_before_action
, skip_before_action
, etc. for each of before, after, and around.
@@ -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 1a46aa6b34..4f6f607ce0 100644
--- a/src/classes/AbstractController/Collector.html
+++ b/src/classes/AbstractController/Collector.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
@@ -80,18 +80,17 @@
📝 Source code
- # File actionpack/lib/abstract_controller/collector.rb, line 7
+ # 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}(*args, &block)
- custom(Mime[:#{sym}], *args, &block)
+ def #{sym}(...)
+ custom(Mime[:#{sym}], ...)
end
- ruby2_keywords(:#{sym})
RUBY
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/DoubleRenderError.html b/src/classes/AbstractController/DoubleRenderError.html
index b874652177..0918e35e97 100644
--- a/src/classes/AbstractController/DoubleRenderError.html
+++ b/src/classes/AbstractController/DoubleRenderError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Class
@@ -99,12 +99,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/rendering.rb, line 12
+ # File actionpack/lib/abstract_controller/rendering.rb, line 14
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 e5a7e6f463..68aea1e4b8 100644
--- a/src/classes/AbstractController/Helpers.html
+++ b/src/classes/AbstractController/Helpers.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
@@ -41,13 +41,6 @@ Module
- Class
-
-
@@ -62,20 +55,6 @@ Methods
-
- Included Modules
-
-
- -
-
-
- ActiveSupport::Deprecation::DeprecatedConstantAccessor
-
-
-
-
-
-
@@ -115,12 +94,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/helpers.rb, line 44
+ # File actionpack/lib/abstract_controller/helpers.rb, line 28
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 fc440f9f86..77083dba36 100644
--- a/src/classes/AbstractController/Helpers/ClassMethods.html
+++ b/src/classes/AbstractController/Helpers/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
@@ -35,11 +35,11 @@ Methods
-
- _helpers_for_modification
+ #
-
- all_helpers_from_path
+ _helpers_for_modification
-
@@ -96,15 +96,20 @@
Attributes
Instance Public methods
-
+
- _helpers_for_modification()
+ all_helpers_from_path(path)
+
-
+ Returns a list of helper names in a given path.
+
+ActionController::Base.all_helpers_from_path 'app/helpers'
+# => ["application", "chart", "rubygems"]
+
@@ -114,40 +119,20 @@
-
-
- 📝 Source code
-
-
- # File actionpack/lib/abstract_controller/helpers.rb, line 231
- def _helpers_for_modification
- unless @_helpers
- self._helpers = define_helpers_module(self, superclass._helpers)
- end
- _helpers
- end
-
- 🔎 See on GitHub
-
-
+ 🔎 See on GitHub
-
+
- all_helpers_from_path(path)
-
+ _helpers_for_modification()
- Returns a list of helper names in a given path.
-
-ActionController::Base.all_helpers_from_path 'app/helpers'
-# => ["application", "chart", "rubygems"]
-
+
@@ -157,7 +142,22 @@
- 🔎 See on GitHub
+
+
+ 📝 Source code
+
+
+ # File actionpack/lib/abstract_controller/helpers.rb, line 216
+ def _helpers_for_modification
+ unless @_helpers
+ self._helpers = define_helpers_module(self, superclass._helpers)
+ end
+ _helpers
+ end
+
+ 🔎 See on GitHub
+
+
@@ -185,7 +185,7 @@
📝 Source code
- # File actionpack/lib/abstract_controller/helpers.rb, line 222
+ # File actionpack/lib/abstract_controller/helpers.rb, line 207
def clear_helpers
inherited_helper_methods = _helper_methods
self._helpers = Module.new
@@ -195,7 +195,7 @@
default_helper_module! unless anonymous?
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -273,7 +273,7 @@
📝 Source code
- # File actionpack/lib/abstract_controller/helpers.rb, line 211
+ # File actionpack/lib/abstract_controller/helpers.rb, line 196
def helper(*args, &block)
modules_for_helpers(args).each do |mod|
next if _helpers.include?(mod)
@@ -283,7 +283,7 @@
_helpers_for_modification.module_eval(&block) if block_given?
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -298,12 +298,9 @@
- Declare a controller method as a helper. For example, the following makes the current_user
and logged_in?
controller methods available to the view:
-
-class ApplicationController < ActionController::Base
- helper_method :current_user, :logged_in?
+ Declare a controller method as a helper. For example, the following makes the current_user
and logged_in?
controller methods available to the view: class ApplicationController < ActionController::Base
helper_method
:current_user, :logged_in?
- private
+ private
def current_user
@current_user ||= User.find_by(id: session[:user])
end
@@ -314,10 +311,7 @@
end
-In a view:
-
-<% if logged_in? -%>Welcome, <%= current_user.name %><% end -%>
-
+In a view: <% if logged_in? -%>Welcome, <%= current_user.name %><% end -%>
Parameters
-
@@ -337,7 +331,7 @@
Parameters
📝 Source code
- # File actionpack/lib/abstract_controller/helpers.rb, line 140
+ # File actionpack/lib/abstract_controller/helpers.rb, line 126
def helper_method(*methods)
methods.flatten!
self._helper_methods += methods
@@ -346,19 +340,18 @@ Parameters
file, line = location.path, location.lineno
methods.each do |method|
- # def current_user(*args, &block)
- # controller.send(:'current_user', *args, &block)
+ # def current_user(...)
+ # controller.send(:'current_user', ...)
# end
_helpers_for_modification.class_eval <<~ruby_eval.lines.map(&:strip).join(";"), file, line
- def #{method}(*args, &block)
- controller.send(:'#{method}', *args, &block)
+ def #{method}(...)
+ controller.send(:'#{method}', ...)
end
- ruby2_keywords(:'#{method}')
ruby_eval
end
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -388,7 +381,7 @@
📝 Source code
- # File actionpack/lib/abstract_controller/helpers.rb, line 84
+ # File actionpack/lib/abstract_controller/helpers.rb, line 68
def inherited(klass)
# Inherited from parent by default
klass._helpers = nil
@@ -397,7 +390,7 @@
super
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -414,6 +407,10 @@
Given an array of values like the ones accepted by helper
, this method returns an array with the corresponding modules, in the same order.
+
+ActionController::Base.modules_for_helpers(["application", "chart", "rubygems"])
+# => [ApplicationHelper, ChartHelper, RubygemsHelper]
+
@@ -423,7 +420,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Railties.html b/src/classes/AbstractController/Railties.html
index 3f2bad0332..522875a95b 100644
--- a/src/classes/AbstractController/Railties.html
+++ b/src/classes/AbstractController/Railties.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
diff --git a/src/classes/AbstractController/Railties/RoutesHelpers.html b/src/classes/AbstractController/Railties/RoutesHelpers.html
index bcc721931e..de6113d941 100644
--- a/src/classes/AbstractController/Railties/RoutesHelpers.html
+++ b/src/classes/AbstractController/Railties/RoutesHelpers.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
@@ -80,7 +80,7 @@
📝 Source code
- # File actionpack/lib/abstract_controller/railties/routes_helpers.rb, line 8
+ # 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|
@@ -95,7 +95,7 @@
end
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Rendering.html b/src/classes/AbstractController/Rendering.html
index 7a0e28da22..510b9aaf61 100644
--- a/src/classes/AbstractController/Rendering.html
+++ b/src/classes/AbstractController/Rendering.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
@@ -138,7 +138,7 @@
📝 Source code
- # File actionpack/lib/abstract_controller/rendering.rb, line 25
+ # File actionpack/lib/abstract_controller/rendering.rb, line 27
def render(*args, &block)
options = _normalize_render(*args, &block)
rendered_body = render_to_body(options)
@@ -151,7 +151,7 @@
self.response_body = rendered_body
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -181,11 +181,11 @@
📝 Source code
- # File actionpack/lib/abstract_controller/rendering.rb, line 49
+ # File actionpack/lib/abstract_controller/rendering.rb, line 51
def render_to_body(options = {})
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -217,13 +217,13 @@
📝 Source code
- # File actionpack/lib/abstract_controller/rendering.rb, line 43
+ # File actionpack/lib/abstract_controller/rendering.rb, line 45
def render_to_string(*args, &block)
options = _normalize_render(*args, &block)
render_to_body(options)
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -253,12 +253,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/rendering.rb, line 53
+ # File actionpack/lib/abstract_controller/rendering.rb, line 55
def rendered_format
Mime[:text]
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -288,7 +288,7 @@
📝 Source code
- # File actionpack/lib/abstract_controller/rendering.rb, line 61
+ # File actionpack/lib/abstract_controller/rendering.rb, line 63
def view_assigns
variables = instance_variables - _protected_ivars
@@ -297,7 +297,7 @@
end
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -330,7 +330,7 @@
📝 Source code
- # File actionpack/lib/abstract_controller/rendering.rb, line 73
+ # File actionpack/lib/abstract_controller/rendering.rb, line 74
def _normalize_args(action = nil, options = {}) # :doc:
if action.respond_to?(:permitted?)
if action.permitted?
@@ -345,7 +345,7 @@
end
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -375,12 +375,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/rendering.rb, line 88
+ # File actionpack/lib/abstract_controller/rendering.rb, line 89
def _normalize_options(options) # :doc:
options
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -410,12 +410,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/rendering.rb, line 93
+ # File actionpack/lib/abstract_controller/rendering.rb, line 94
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 87aa62830b..367f8c4346 100644
--- a/src/classes/AbstractController/Translation.html
+++ b/src/classes/AbstractController/Translation.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
@@ -122,12 +122,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/translation.rb, line 29
+ # File actionpack/lib/abstract_controller/translation.rb, line 37
def localize(object, **options)
I18n.localize(object, **options)
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -188,7 +188,7 @@
📝 Source code
- # File actionpack/lib/abstract_controller/translation.rb, line 15
+ # File actionpack/lib/abstract_controller/translation.rb, line 17
def translate(key, **options)
if key&.start_with?(".")
path = controller_path.tr("/", ".")
@@ -198,10 +198,16 @@
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 2604544166..35bf1bfa7d 100644
--- a/src/classes/AbstractController/UrlFor.html
+++ b/src/classes/AbstractController/UrlFor.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
@@ -118,13 +118,13 @@
📝 Source code
- # File actionpack/lib/abstract_controller/url_for.rb, line 16
+ # 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
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/UrlFor/ClassMethods.html b/src/classes/AbstractController/UrlFor/ClassMethods.html
index 298c513236..b7e4e48f64 100644
--- a/src/classes/AbstractController/UrlFor/ClassMethods.html
+++ b/src/classes/AbstractController/UrlFor/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
@@ -85,12 +85,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/url_for.rb, line 22
+ # File actionpack/lib/abstract_controller/url_for.rb, line 24
def _routes
nil
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -120,7 +120,7 @@
📝 Source code
- # File actionpack/lib/abstract_controller/url_for.rb, line 26
+ # File actionpack/lib/abstract_controller/url_for.rb, line 28
def action_methods
@action_methods ||= if _routes
super - _routes.named_routes.helper_names
@@ -129,7 +129,7 @@
end
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable.html b/src/classes/ActionCable.html
index dae1e7745e..d74ad29ceb 100644
--- a/src/classes/ActionCable.html
+++ b/src/classes/ActionCable.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
@@ -100,7 +100,7 @@
- actioncable/lib/action_cable/version.rb
- - railties/lib/rails/app_updater.rb
+ - railties/lib/rails/commands/app/update_command.rb
@@ -264,12 +264,12 @@
📝 Source code
- # File actioncable/lib/action_cable/gem_version.rb, line 5
+ # File actioncable/lib/action_cable/gem_version.rb, line 7
def self.gem_version
Gem::Version.new VERSION::STRING
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -299,12 +299,12 @@
📝 Source code
- # File actioncable/lib/action_cable/version.rb, line 7
+ # File actioncable/lib/action_cable/version.rb, line 9
def self.version
gem_version
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -338,12 +338,12 @@
📝 Source code
- # File actioncable/lib/action_cable.rb, line 71
+ # File actioncable/lib/action_cable.rb, line 72
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 42d3430957..79658f057e 100644
--- a/src/classes/ActionCable/Channel.html
+++ b/src/classes/ActionCable/Channel.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
diff --git a/src/classes/ActionCable/Channel/Base.html b/src/classes/ActionCable/Channel/Base.html
index 40c8fc885e..a9b86c4697 100644
--- a/src/classes/ActionCable/Channel/Base.html
+++ b/src/classes/ActionCable/Channel/Base.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Class
@@ -29,7 +29,7 @@
-Action Cable Channel Base
+Action Cable Channel
Base
The channel provides the basic structure of grouping behavior into logical units when communicating over the WebSocket connection. You can think of a channel like a form of controller, but one that’s capable of pushing content to the subscriber in addition to simply responding to the subscriber’s direct requests.
@@ -306,7 +306,7 @@ Returns
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 120
+ # File actioncable/lib/action_cable/channel/base.rb, line 129
def action_methods
@action_methods ||= begin
# All public instance methods of this class, including ancestors
@@ -319,7 +319,7 @@ Returns
end
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -349,7 +349,7 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 147
+ # File actioncable/lib/action_cable/channel/base.rb, line 156
def initialize(connection, identifier, params = {})
@connection = connection
@identifier = identifier
@@ -367,7 +367,7 @@
delegate_connection_identifiers
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -400,12 +400,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 136
+ # File actioncable/lib/action_cable/channel/base.rb, line 145
def clear_action_methods! # :doc:
@action_methods = nil
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -435,13 +435,13 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 141
+ # File actioncable/lib/action_cable/channel/base.rb, line 150
def method_added(name) # :doc:
super
clear_action_methods!
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -475,7 +475,7 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 167
+ # File actioncable/lib/action_cable/channel/base.rb, line 176
def perform_action(data)
action = extract_action(data)
@@ -489,7 +489,7 @@
end
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -519,7 +519,7 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 182
+ # File actioncable/lib/action_cable/channel/base.rb, line 191
def subscribe_to_channel
run_callbacks :subscribe do
subscribed
@@ -529,7 +529,7 @@
ensure_confirmation_sent
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -562,12 +562,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 233
+ # File actioncable/lib/action_cable/channel/base.rb, line 245
def defer_subscription_confirmation! # :doc:
@defer_subscription_confirmation_counter.increment
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -597,12 +597,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 237
+ # File actioncable/lib/action_cable/channel/base.rb, line 249
def defer_subscription_confirmation? # :doc:
@defer_subscription_confirmation_counter.value > 0
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -632,14 +632,14 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 227
+ # File actioncable/lib/action_cable/channel/base.rb, line 239
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
@@ -669,12 +669,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 245
+ # File actioncable/lib/action_cable/channel/base.rb, line 257
def reject # :doc:
@reject_subscription = true
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -704,12 +704,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 202
+ # File actioncable/lib/action_cable/channel/base.rb, line 213
def subscribed # :doc:
# Override in subclasses
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -739,12 +739,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 241
+ # File actioncable/lib/action_cable/channel/base.rb, line 253
def subscription_confirmation_sent? # :doc:
@subscription_confirmation_sent
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -774,12 +774,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 249
+ # File actioncable/lib/action_cable/channel/base.rb, line 261
def subscription_rejected? # :doc:
@reject_subscription
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -809,7 +809,7 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 214
+ # File actioncable/lib/action_cable/channel/base.rb, line 226
def transmit(data, via: nil) # :doc:
logger.debug do
status = "#{self.class.name} transmitting #{data.inspect.truncate(300)}"
@@ -823,7 +823,7 @@
end
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -853,12 +853,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 208
+ # File actioncable/lib/action_cable/channel/base.rb, line 219
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 9462052e71..4c8d1cde6c 100644
--- a/src/classes/ActionCable/Channel/Broadcasting.html
+++ b/src/classes/ActionCable/Channel/Broadcasting.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
@@ -44,6 +44,19 @@ Module
+ Methods
+
+
+ -
+ broadcast_to
+
+
+ -
+ broadcasting_for
+
+
+
+
@@ -59,6 +72,79 @@ Module
+ Instance Public methods
+
+
+
+
+ broadcast_to(model, message)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 📝 Source code
+
+
+ # File actioncable/lib/action_cable/channel/broadcasting.rb, line 45
+ def broadcast_to(model, message)
+ self.class.broadcast_to(model, message)
+ end
+
+ 🔎 See on GitHub
+
+
+
+
+
+
+
+
+ broadcasting_for(model)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 📝 Source code
+
+
+ # File actioncable/lib/action_cable/channel/broadcasting.rb, line 41
+ def broadcasting_for(model)
+ self.class.broadcasting_for(model)
+ end
+
+ 🔎 See on GitHub
+
+
+
+
+
+
diff --git a/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html b/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
index 22b96e928e..02e1b0b4cf 100644
--- a/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
@@ -85,12 +85,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/broadcasting.rb, line 16
+ # File actioncable/lib/action_cable/channel/broadcasting.rb, line 14
def broadcast_to(model, message)
ActionCable.server.broadcast(broadcasting_for(model), message)
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -125,12 +125,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/broadcasting.rb, line 26
+ # File actioncable/lib/action_cable/channel/broadcasting.rb, line 24
def broadcasting_for(model)
serialize_broadcasting([ channel_name, model ])
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Callbacks.html b/src/classes/ActionCable/Channel/Callbacks.html
index 45f2aa1e5f..8147df2b03 100644
--- a/src/classes/ActionCable/Channel/Callbacks.html
+++ b/src/classes/ActionCable/Channel/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
@@ -23,7 +23,7 @@
-Action Cable Channel Callbacks
+Action Cable Channel
Callbacks
Action Cable Channel
provides callback hooks that are invoked during the life cycle of a channel:
-
diff --git a/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html b/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
index dd71b042af..d8f850d2ea 100644
--- a/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
@@ -110,12 +110,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/callbacks.rb, line 58
+ # File actioncable/lib/action_cable/channel/callbacks.rb, line 60
def after_subscribe(*methods, &block)
set_callback(:subscribe, :after, *methods, &block)
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -149,12 +149,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/callbacks.rb, line 67
+ # File actioncable/lib/action_cable/channel/callbacks.rb, line 69
def after_unsubscribe(*methods, &block)
set_callback(:unsubscribe, :after, *methods, &block)
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -184,12 +184,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/callbacks.rb, line 45
+ # File actioncable/lib/action_cable/channel/callbacks.rb, line 48
def before_subscribe(*methods, &block)
set_callback(:subscribe, :before, *methods, &block)
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -219,12 +219,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/callbacks.rb, line 63
+ # File actioncable/lib/action_cable/channel/callbacks.rb, line 65
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 93d9cc96d9..0d3ba59746 100644
--- a/src/classes/ActionCable/Channel/ChannelStub.html
+++ b/src/classes/ActionCable/Channel/ChannelStub.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
@@ -23,7 +23,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?
.
@@ -113,12 +113,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/test_case.rb, line 24
+ # File actioncable/lib/action_cable/channel/test_case.rb, line 25
def confirmed?
subscription_confirmation_sent?
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -148,12 +148,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/test_case.rb, line 28
+ # File actioncable/lib/action_cable/channel/test_case.rb, line 29
def rejected?
subscription_rejected?
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -187,10 +187,10 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/test_case.rb, line 45
+
Abstract Controller Base
+Abstract Controller Base
AbstractController::Base
is a low-level API. Nobody should be using it directly, and subclasses (like ActionController::Base
) are expected to provide their own render
method, since rendering means different things depending on the context.
Methods
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 57
+ # File actionpack/lib/abstract_controller/base.rb, line 58
def abstract!
@abstract = true
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -226,11 +226,11 @@ Returns
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 96
+ # File actionpack/lib/abstract_controller/base.rb, line 97
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.
+ # 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))
@@ -239,7 +239,7 @@ Returns
end
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -269,12 +269,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 111
+ # File actionpack/lib/abstract_controller/base.rb, line 112
def clear_action_methods!
@action_methods = nil
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -316,12 +316,12 @@ Returns
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 125
+ # File actionpack/lib/abstract_controller/base.rb, line 127
def controller_path
@controller_path ||= name.delete_suffix("Controller").underscore unless anonymous?
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -351,7 +351,7 @@
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 76
+ # File actionpack/lib/abstract_controller/base.rb, line 77
def internal_methods
controller = self
methods = []
@@ -364,7 +364,7 @@
controller.public_instance_methods(true) - methods
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -394,13 +394,13 @@
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 130
+ # File actionpack/lib/abstract_controller/base.rb, line 132
def method_added(name)
super
clear_action_methods!
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -430,12 +430,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 199
+ # File actionpack/lib/abstract_controller/base.rb, line 200
def self.supports_path?
true
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -469,12 +469,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 170
+ # File actionpack/lib/abstract_controller/base.rb, line 172
def action_methods
self.class.action_methods
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -504,11 +504,11 @@
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 42
+ # File actionpack/lib/abstract_controller/base.rb, line 44
attr_internal :action_name
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -545,12 +545,12 @@ Parameters
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 184
+ # File actionpack/lib/abstract_controller/base.rb, line 187
def available_action?(action_name)
_find_action_name(action_name)
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -580,12 +580,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 165
+ # File actionpack/lib/abstract_controller/base.rb, line 167
def controller_path
self.class.controller_path
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -615,11 +615,11 @@
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 46
+ # File actionpack/lib/abstract_controller/base.rb, line 48
attr_internal :formats
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -649,12 +649,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 191
+ # File actionpack/lib/abstract_controller/base.rb, line 193
def performed?
response_body
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -663,7 +663,7 @@
- process(action, *args)
+ process(action, ...)
@@ -691,8 +691,8 @@ Returns
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 151
- def process(action, *args)
+ # File actionpack/lib/abstract_controller/base.rb, line 154
+ def process(action, ...)
@_action_name = action.to_s
unless action_name = _find_action_name(@_action_name)
@@ -701,10 +701,10 @@ Returns
@_response_body = nil
- process_action(action_name, *args)
+ process_action(action_name, ...)
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -734,11 +734,11 @@
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 38
+ # File actionpack/lib/abstract_controller/base.rb, line 40
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 aff27b6732..a968072fde 100644
--- a/src/classes/AbstractController/Caching.html
+++ b/src/classes/AbstractController/Caching.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
@@ -126,12 +126,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/caching.rb, line 52
+ # File actionpack/lib/abstract_controller/caching.rb, line 54
def view_cache_dependencies
self.class._view_cache_dependencies.filter_map { |dep| instance_exec(&dep) }
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -164,7 +164,7 @@
📝 Source code
- # File actionpack/lib/abstract_controller/caching.rb, line 58
+ # File actionpack/lib/abstract_controller/caching.rb, line 60
def cache(key, options = {}, &block) # :doc:
if cache_configured?
cache_store.fetch(ActiveSupport::Cache.expand_cache_key(key, :controller), options, &block)
@@ -173,7 +173,7 @@
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 2dcce76018..c7aa561a2b 100644
--- a/src/classes/AbstractController/Caching/ClassMethods.html
+++ b/src/classes/AbstractController/Caching/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
@@ -81,12 +81,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/caching.rb, line 47
+ # File actionpack/lib/abstract_controller/caching.rb, line 49
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 ca1881a982..23af10ec6f 100644
--- a/src/classes/AbstractController/Caching/ConfigMethods.html
+++ b/src/classes/AbstractController/Caching/ConfigMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
@@ -85,12 +85,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/caching.rb, line 13
+ # File actionpack/lib/abstract_controller/caching.rb, line 15
def cache_store
config.cache_store
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -120,12 +120,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/caching.rb, line 17
+ # File actionpack/lib/abstract_controller/caching.rb, line 19
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 4a4477a519..188661a389 100644
--- a/src/classes/AbstractController/Caching/Fragments.html
+++ b/src/classes/AbstractController/Caching/Fragments.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
@@ -23,7 +23,7 @@
-Abstract Controller Caching
Fragments
+Abstract Controller Caching
Fragments
Fragment caching is used for caching various blocks within views without caching the entire action as a whole. This is useful when certain elements of an action change frequently or depend on complicated state while other parts rarely change or can be shared amongst multiple parties. The caching is done using the cache
helper available in the Action View. See ActionView::Helpers::CacheHelper
for more information.
@@ -123,7 +123,7 @@
📝 Source code
- # File actionpack/lib/abstract_controller/caching/fragments.rb, line 70
+ # 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
@@ -134,7 +134,7 @@
cache_key
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -175,7 +175,7 @@
📝 Source code
- # File actionpack/lib/abstract_controller/caching/fragments.rb, line 134
+ # 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)
@@ -189,7 +189,7 @@
end
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -219,7 +219,7 @@
📝 Source code
- # File actionpack/lib/abstract_controller/caching/fragments.rb, line 107
+ # 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)
@@ -229,7 +229,7 @@
end
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -259,7 +259,7 @@
📝 Source code
- # File actionpack/lib/abstract_controller/caching/fragments.rb, line 95
+ # File actionpack/lib/abstract_controller/caching/fragments.rb, line 93
def read_fragment(key, options = nil)
return unless cache_configured?
@@ -270,7 +270,7 @@
end
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -300,7 +300,7 @@
📝 Source code
- # File actionpack/lib/abstract_controller/caching/fragments.rb, line 82
+ # File actionpack/lib/abstract_controller/caching/fragments.rb, line 80
def write_fragment(key, content, options = nil)
return content unless cache_configured?
@@ -312,7 +312,7 @@
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 c3c06e0721..0dabaf1cfb 100644
--- a/src/classes/AbstractController/Caching/Fragments/ClassMethods.html
+++ b/src/classes/AbstractController/Caching/Fragments/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
@@ -97,12 +97,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/caching/fragments.rb, line 59
+ # File actionpack/lib/abstract_controller/caching/fragments.rb, line 58
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 e3d13b12bb..36aad58b81 100644
--- a/src/classes/AbstractController/Callbacks.html
+++ b/src/classes/AbstractController/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
@@ -23,7 +23,7 @@
-Abstract Controller Callbacks
+Abstract Controller Callbacks
Abstract Controller provides hooks during the life cycle of a controller action. Callbacks
allow you to trigger logic during this cycle. Available callbacks are:
-
@@ -52,8 +52,6 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
@@ -124,14 +124,14 @@ Parameters
-
callbacks
- An array of callbacks, with an optional options hash as the last parameter.
-
-
block
- A proc that should be added to the callbacks.
+block
- A proc that should be added to the callbacks.
Block Parameters
-
-
name
- The callback to be added.
+name
- The callback to be added.
-
-
options
- A hash of options to be used when adding the callback.
+options
- A hash of options to be used when adding the callback.
@@ -147,7 +147,7 @@ Block Parameters
📝 Source code
- # File actionpack/lib/abstract_controller/callbacks.rb, line 119
+ # File actionpack/lib/abstract_controller/callbacks.rb, line 120
def _insert_callbacks(callbacks, block = nil)
options = callbacks.extract_options!
callbacks.push(block) if block
@@ -159,7 +159,7 @@ Block Parameters
end
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -190,9 +190,9 @@
Options
-
-
only
- The callback should be run only for this action.
+only
- The callback should be run only for this action.
-
-
except
- The callback should be run for all actions except this action.
+except
- The callback should be run for all actions except this action.
@@ -208,13 +208,13 @@ Options
📝 Source code
- # File actionpack/lib/abstract_controller/callbacks.rb, line 94
+ # 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
@@ -240,7 +240,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -264,7 +264,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -278,7 +278,7 @@
- Append a callback around actions. See _insert_callbacks
for parameter details.
+ Append a callback around actions. See _insert_callbacks
for parameter details. set up before_action
, prepend_before_action
, skip_before_action
, etc. for each of before, after, and around.
@@ -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 1a46aa6b34..4f6f607ce0 100644
--- a/src/classes/AbstractController/Collector.html
+++ b/src/classes/AbstractController/Collector.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
@@ -80,18 +80,17 @@
📝 Source code
- # File actionpack/lib/abstract_controller/collector.rb, line 7
+ # 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}(*args, &block)
- custom(Mime[:#{sym}], *args, &block)
+ def #{sym}(...)
+ custom(Mime[:#{sym}], ...)
end
- ruby2_keywords(:#{sym})
RUBY
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/DoubleRenderError.html b/src/classes/AbstractController/DoubleRenderError.html
index b874652177..0918e35e97 100644
--- a/src/classes/AbstractController/DoubleRenderError.html
+++ b/src/classes/AbstractController/DoubleRenderError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Class
@@ -99,12 +99,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/rendering.rb, line 12
+ # File actionpack/lib/abstract_controller/rendering.rb, line 14
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 e5a7e6f463..68aea1e4b8 100644
--- a/src/classes/AbstractController/Helpers.html
+++ b/src/classes/AbstractController/Helpers.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
@@ -41,13 +41,6 @@ Module
- Class
-
-
@@ -62,20 +55,6 @@ Methods
-
- Included Modules
-
-
- -
-
-
- ActiveSupport::Deprecation::DeprecatedConstantAccessor
-
-
-
-
-
-
@@ -115,12 +94,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/helpers.rb, line 44
+ # File actionpack/lib/abstract_controller/helpers.rb, line 28
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 fc440f9f86..77083dba36 100644
--- a/src/classes/AbstractController/Helpers/ClassMethods.html
+++ b/src/classes/AbstractController/Helpers/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
@@ -35,11 +35,11 @@ Methods
-
- _helpers_for_modification
+ #
-
- all_helpers_from_path
+ _helpers_for_modification
-
@@ -96,15 +96,20 @@
Attributes
Instance Public methods
-
+
- _helpers_for_modification()
+ all_helpers_from_path(path)
+
-
+ Returns a list of helper names in a given path.
+
+ActionController::Base.all_helpers_from_path 'app/helpers'
+# => ["application", "chart", "rubygems"]
+
@@ -114,40 +119,20 @@
-
-
- 📝 Source code
-
-
- # File actionpack/lib/abstract_controller/helpers.rb, line 231
- def _helpers_for_modification
- unless @_helpers
- self._helpers = define_helpers_module(self, superclass._helpers)
- end
- _helpers
- end
-
- 🔎 See on GitHub
-
-
+ 🔎 See on GitHub
-
+
- all_helpers_from_path(path)
-
+ _helpers_for_modification()
- Returns a list of helper names in a given path.
-
-ActionController::Base.all_helpers_from_path 'app/helpers'
-# => ["application", "chart", "rubygems"]
-
+
@@ -157,7 +142,22 @@
- 🔎 See on GitHub
+
+
+ 📝 Source code
+
+
+ # File actionpack/lib/abstract_controller/helpers.rb, line 216
+ def _helpers_for_modification
+ unless @_helpers
+ self._helpers = define_helpers_module(self, superclass._helpers)
+ end
+ _helpers
+ end
+
+ 🔎 See on GitHub
+
+
@@ -185,7 +185,7 @@
📝 Source code
- # File actionpack/lib/abstract_controller/helpers.rb, line 222
+ # File actionpack/lib/abstract_controller/helpers.rb, line 207
def clear_helpers
inherited_helper_methods = _helper_methods
self._helpers = Module.new
@@ -195,7 +195,7 @@
default_helper_module! unless anonymous?
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -273,7 +273,7 @@
📝 Source code
- # File actionpack/lib/abstract_controller/helpers.rb, line 211
+ # File actionpack/lib/abstract_controller/helpers.rb, line 196
def helper(*args, &block)
modules_for_helpers(args).each do |mod|
next if _helpers.include?(mod)
@@ -283,7 +283,7 @@
_helpers_for_modification.module_eval(&block) if block_given?
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -298,12 +298,9 @@
- Declare a controller method as a helper. For example, the following makes the current_user
and logged_in?
controller methods available to the view:
-
-class ApplicationController < ActionController::Base
- helper_method :current_user, :logged_in?
+ Declare a controller method as a helper. For example, the following makes the current_user
and logged_in?
controller methods available to the view: class ApplicationController < ActionController::Base
helper_method
:current_user, :logged_in?
- private
+ private
def current_user
@current_user ||= User.find_by(id: session[:user])
end
@@ -314,10 +311,7 @@
end
-In a view:
-
-<% if logged_in? -%>Welcome, <%= current_user.name %><% end -%>
-
+In a view: <% if logged_in? -%>Welcome, <%= current_user.name %><% end -%>
Parameters
-
@@ -337,7 +331,7 @@
Parameters
📝 Source code
- # File actionpack/lib/abstract_controller/helpers.rb, line 140
+ # File actionpack/lib/abstract_controller/helpers.rb, line 126
def helper_method(*methods)
methods.flatten!
self._helper_methods += methods
@@ -346,19 +340,18 @@ Parameters
file, line = location.path, location.lineno
methods.each do |method|
- # def current_user(*args, &block)
- # controller.send(:'current_user', *args, &block)
+ # def current_user(...)
+ # controller.send(:'current_user', ...)
# end
_helpers_for_modification.class_eval <<~ruby_eval.lines.map(&:strip).join(";"), file, line
- def #{method}(*args, &block)
- controller.send(:'#{method}', *args, &block)
+ def #{method}(...)
+ controller.send(:'#{method}', ...)
end
- ruby2_keywords(:'#{method}')
ruby_eval
end
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -388,7 +381,7 @@
📝 Source code
- # File actionpack/lib/abstract_controller/helpers.rb, line 84
+ # File actionpack/lib/abstract_controller/helpers.rb, line 68
def inherited(klass)
# Inherited from parent by default
klass._helpers = nil
@@ -397,7 +390,7 @@
super
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -414,6 +407,10 @@
Given an array of values like the ones accepted by helper
, this method returns an array with the corresponding modules, in the same order.
+
+ActionController::Base.modules_for_helpers(["application", "chart", "rubygems"])
+# => [ApplicationHelper, ChartHelper, RubygemsHelper]
+
@@ -423,7 +420,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Railties.html b/src/classes/AbstractController/Railties.html
index 3f2bad0332..522875a95b 100644
--- a/src/classes/AbstractController/Railties.html
+++ b/src/classes/AbstractController/Railties.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
diff --git a/src/classes/AbstractController/Railties/RoutesHelpers.html b/src/classes/AbstractController/Railties/RoutesHelpers.html
index bcc721931e..de6113d941 100644
--- a/src/classes/AbstractController/Railties/RoutesHelpers.html
+++ b/src/classes/AbstractController/Railties/RoutesHelpers.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
@@ -80,7 +80,7 @@
📝 Source code
- # File actionpack/lib/abstract_controller/railties/routes_helpers.rb, line 8
+ # 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|
@@ -95,7 +95,7 @@
end
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Rendering.html b/src/classes/AbstractController/Rendering.html
index 7a0e28da22..510b9aaf61 100644
--- a/src/classes/AbstractController/Rendering.html
+++ b/src/classes/AbstractController/Rendering.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
@@ -138,7 +138,7 @@
📝 Source code
- # File actionpack/lib/abstract_controller/rendering.rb, line 25
+ # File actionpack/lib/abstract_controller/rendering.rb, line 27
def render(*args, &block)
options = _normalize_render(*args, &block)
rendered_body = render_to_body(options)
@@ -151,7 +151,7 @@
self.response_body = rendered_body
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -181,11 +181,11 @@
📝 Source code
- # File actionpack/lib/abstract_controller/rendering.rb, line 49
+ # File actionpack/lib/abstract_controller/rendering.rb, line 51
def render_to_body(options = {})
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -217,13 +217,13 @@
📝 Source code
- # File actionpack/lib/abstract_controller/rendering.rb, line 43
+ # File actionpack/lib/abstract_controller/rendering.rb, line 45
def render_to_string(*args, &block)
options = _normalize_render(*args, &block)
render_to_body(options)
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -253,12 +253,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/rendering.rb, line 53
+ # File actionpack/lib/abstract_controller/rendering.rb, line 55
def rendered_format
Mime[:text]
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -288,7 +288,7 @@
📝 Source code
- # File actionpack/lib/abstract_controller/rendering.rb, line 61
+ # File actionpack/lib/abstract_controller/rendering.rb, line 63
def view_assigns
variables = instance_variables - _protected_ivars
@@ -297,7 +297,7 @@
end
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -330,7 +330,7 @@
📝 Source code
- # File actionpack/lib/abstract_controller/rendering.rb, line 73
+ # File actionpack/lib/abstract_controller/rendering.rb, line 74
def _normalize_args(action = nil, options = {}) # :doc:
if action.respond_to?(:permitted?)
if action.permitted?
@@ -345,7 +345,7 @@
end
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -375,12 +375,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/rendering.rb, line 88
+ # File actionpack/lib/abstract_controller/rendering.rb, line 89
def _normalize_options(options) # :doc:
options
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -410,12 +410,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/rendering.rb, line 93
+ # File actionpack/lib/abstract_controller/rendering.rb, line 94
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 87aa62830b..367f8c4346 100644
--- a/src/classes/AbstractController/Translation.html
+++ b/src/classes/AbstractController/Translation.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
@@ -122,12 +122,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/translation.rb, line 29
+ # File actionpack/lib/abstract_controller/translation.rb, line 37
def localize(object, **options)
I18n.localize(object, **options)
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -188,7 +188,7 @@
📝 Source code
- # File actionpack/lib/abstract_controller/translation.rb, line 15
+ # File actionpack/lib/abstract_controller/translation.rb, line 17
def translate(key, **options)
if key&.start_with?(".")
path = controller_path.tr("/", ".")
@@ -198,10 +198,16 @@
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 2604544166..35bf1bfa7d 100644
--- a/src/classes/AbstractController/UrlFor.html
+++ b/src/classes/AbstractController/UrlFor.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
@@ -118,13 +118,13 @@
📝 Source code
- # File actionpack/lib/abstract_controller/url_for.rb, line 16
+ # 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
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/UrlFor/ClassMethods.html b/src/classes/AbstractController/UrlFor/ClassMethods.html
index 298c513236..b7e4e48f64 100644
--- a/src/classes/AbstractController/UrlFor/ClassMethods.html
+++ b/src/classes/AbstractController/UrlFor/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
@@ -85,12 +85,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/url_for.rb, line 22
+ # File actionpack/lib/abstract_controller/url_for.rb, line 24
def _routes
nil
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -120,7 +120,7 @@
📝 Source code
- # File actionpack/lib/abstract_controller/url_for.rb, line 26
+ # File actionpack/lib/abstract_controller/url_for.rb, line 28
def action_methods
@action_methods ||= if _routes
super - _routes.named_routes.helper_names
@@ -129,7 +129,7 @@
end
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable.html b/src/classes/ActionCable.html
index dae1e7745e..d74ad29ceb 100644
--- a/src/classes/ActionCable.html
+++ b/src/classes/ActionCable.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
@@ -100,7 +100,7 @@
- actioncable/lib/action_cable/version.rb
- - railties/lib/rails/app_updater.rb
+ - railties/lib/rails/commands/app/update_command.rb
@@ -264,12 +264,12 @@
📝 Source code
- # File actioncable/lib/action_cable/gem_version.rb, line 5
+ # File actioncable/lib/action_cable/gem_version.rb, line 7
def self.gem_version
Gem::Version.new VERSION::STRING
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -299,12 +299,12 @@
📝 Source code
- # File actioncable/lib/action_cable/version.rb, line 7
+ # File actioncable/lib/action_cable/version.rb, line 9
def self.version
gem_version
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -338,12 +338,12 @@
📝 Source code
- # File actioncable/lib/action_cable.rb, line 71
+ # File actioncable/lib/action_cable.rb, line 72
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 42d3430957..79658f057e 100644
--- a/src/classes/ActionCable/Channel.html
+++ b/src/classes/ActionCable/Channel.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
diff --git a/src/classes/ActionCable/Channel/Base.html b/src/classes/ActionCable/Channel/Base.html
index 40c8fc885e..a9b86c4697 100644
--- a/src/classes/ActionCable/Channel/Base.html
+++ b/src/classes/ActionCable/Channel/Base.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Class
@@ -29,7 +29,7 @@
-Action Cable Channel Base
+Action Cable Channel
Base
The channel provides the basic structure of grouping behavior into logical units when communicating over the WebSocket connection. You can think of a channel like a form of controller, but one that’s capable of pushing content to the subscriber in addition to simply responding to the subscriber’s direct requests.
@@ -306,7 +306,7 @@ Returns
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 120
+ # File actioncable/lib/action_cable/channel/base.rb, line 129
def action_methods
@action_methods ||= begin
# All public instance methods of this class, including ancestors
@@ -319,7 +319,7 @@ Returns
end
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -349,7 +349,7 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 147
+ # File actioncable/lib/action_cable/channel/base.rb, line 156
def initialize(connection, identifier, params = {})
@connection = connection
@identifier = identifier
@@ -367,7 +367,7 @@
delegate_connection_identifiers
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -400,12 +400,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 136
+ # File actioncable/lib/action_cable/channel/base.rb, line 145
def clear_action_methods! # :doc:
@action_methods = nil
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -435,13 +435,13 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 141
+ # File actioncable/lib/action_cable/channel/base.rb, line 150
def method_added(name) # :doc:
super
clear_action_methods!
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -475,7 +475,7 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 167
+ # File actioncable/lib/action_cable/channel/base.rb, line 176
def perform_action(data)
action = extract_action(data)
@@ -489,7 +489,7 @@
end
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -519,7 +519,7 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 182
+ # File actioncable/lib/action_cable/channel/base.rb, line 191
def subscribe_to_channel
run_callbacks :subscribe do
subscribed
@@ -529,7 +529,7 @@
ensure_confirmation_sent
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -562,12 +562,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 233
+ # File actioncable/lib/action_cable/channel/base.rb, line 245
def defer_subscription_confirmation! # :doc:
@defer_subscription_confirmation_counter.increment
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -597,12 +597,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 237
+ # File actioncable/lib/action_cable/channel/base.rb, line 249
def defer_subscription_confirmation? # :doc:
@defer_subscription_confirmation_counter.value > 0
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -632,14 +632,14 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 227
+ # File actioncable/lib/action_cable/channel/base.rb, line 239
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
@@ -669,12 +669,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 245
+ # File actioncable/lib/action_cable/channel/base.rb, line 257
def reject # :doc:
@reject_subscription = true
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -704,12 +704,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 202
+ # File actioncable/lib/action_cable/channel/base.rb, line 213
def subscribed # :doc:
# Override in subclasses
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -739,12 +739,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 241
+ # File actioncable/lib/action_cable/channel/base.rb, line 253
def subscription_confirmation_sent? # :doc:
@subscription_confirmation_sent
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -774,12 +774,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 249
+ # File actioncable/lib/action_cable/channel/base.rb, line 261
def subscription_rejected? # :doc:
@reject_subscription
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -809,7 +809,7 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 214
+ # File actioncable/lib/action_cable/channel/base.rb, line 226
def transmit(data, via: nil) # :doc:
logger.debug do
status = "#{self.class.name} transmitting #{data.inspect.truncate(300)}"
@@ -823,7 +823,7 @@
end
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -853,12 +853,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 208
+ # File actioncable/lib/action_cable/channel/base.rb, line 219
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 9462052e71..4c8d1cde6c 100644
--- a/src/classes/ActionCable/Channel/Broadcasting.html
+++ b/src/classes/ActionCable/Channel/Broadcasting.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
@@ -44,6 +44,19 @@ Module
+ Methods
+
+
+ -
+ broadcast_to
+
+
+ -
+ broadcasting_for
+
+
+
+
@@ -59,6 +72,79 @@ Module
+ Instance Public methods
+
+
+
+
+ broadcast_to(model, message)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 📝 Source code
+
+
+ # File actioncable/lib/action_cable/channel/broadcasting.rb, line 45
+ def broadcast_to(model, message)
+ self.class.broadcast_to(model, message)
+ end
+
+ 🔎 See on GitHub
+
+
+
+
+
+
+
+
+ broadcasting_for(model)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 📝 Source code
+
+
+ # File actioncable/lib/action_cable/channel/broadcasting.rb, line 41
+ def broadcasting_for(model)
+ self.class.broadcasting_for(model)
+ end
+
+ 🔎 See on GitHub
+
+
+
+
+
+
diff --git a/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html b/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
index 22b96e928e..02e1b0b4cf 100644
--- a/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
@@ -85,12 +85,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/broadcasting.rb, line 16
+ # File actioncable/lib/action_cable/channel/broadcasting.rb, line 14
def broadcast_to(model, message)
ActionCable.server.broadcast(broadcasting_for(model), message)
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -125,12 +125,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/broadcasting.rb, line 26
+ # File actioncable/lib/action_cable/channel/broadcasting.rb, line 24
def broadcasting_for(model)
serialize_broadcasting([ channel_name, model ])
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Callbacks.html b/src/classes/ActionCable/Channel/Callbacks.html
index 45f2aa1e5f..8147df2b03 100644
--- a/src/classes/ActionCable/Channel/Callbacks.html
+++ b/src/classes/ActionCable/Channel/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
@@ -23,7 +23,7 @@
-Action Cable Channel Callbacks
+Action Cable Channel
Callbacks
Action Cable Channel
provides callback hooks that are invoked during the life cycle of a channel:
-
diff --git a/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html b/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
index dd71b042af..d8f850d2ea 100644
--- a/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
@@ -110,12 +110,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/callbacks.rb, line 58
+ # File actioncable/lib/action_cable/channel/callbacks.rb, line 60
def after_subscribe(*methods, &block)
set_callback(:subscribe, :after, *methods, &block)
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -149,12 +149,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/callbacks.rb, line 67
+ # File actioncable/lib/action_cable/channel/callbacks.rb, line 69
def after_unsubscribe(*methods, &block)
set_callback(:unsubscribe, :after, *methods, &block)
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -184,12 +184,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/callbacks.rb, line 45
+ # File actioncable/lib/action_cable/channel/callbacks.rb, line 48
def before_subscribe(*methods, &block)
set_callback(:subscribe, :before, *methods, &block)
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -219,12 +219,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/callbacks.rb, line 63
+ # File actioncable/lib/action_cable/channel/callbacks.rb, line 65
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 93d9cc96d9..0d3ba59746 100644
--- a/src/classes/ActionCable/Channel/ChannelStub.html
+++ b/src/classes/ActionCable/Channel/ChannelStub.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
@@ -23,7 +23,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?
.
@@ -113,12 +113,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/test_case.rb, line 24
+ # File actioncable/lib/action_cable/channel/test_case.rb, line 25
def confirmed?
subscription_confirmation_sent?
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -148,12 +148,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/test_case.rb, line 28
+ # File actioncable/lib/action_cable/channel/test_case.rb, line 29
def rejected?
subscription_rejected?
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -187,10 +187,10 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/test_case.rb, line 45
+
# File actionpack/lib/abstract_controller/base.rb, line 57
+ # File actionpack/lib/abstract_controller/base.rb, line 58
def abstract!
@abstract = true
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -226,11 +226,11 @@ Returns
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 96
+ # File actionpack/lib/abstract_controller/base.rb, line 97
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.
+ # 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))
@@ -239,7 +239,7 @@ Returns
end
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -269,12 +269,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 111
+ # File actionpack/lib/abstract_controller/base.rb, line 112
def clear_action_methods!
@action_methods = nil
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -316,12 +316,12 @@ Returns
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 125
+ # File actionpack/lib/abstract_controller/base.rb, line 127
def controller_path
@controller_path ||= name.delete_suffix("Controller").underscore unless anonymous?
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -351,7 +351,7 @@
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 76
+ # File actionpack/lib/abstract_controller/base.rb, line 77
def internal_methods
controller = self
methods = []
@@ -364,7 +364,7 @@
controller.public_instance_methods(true) - methods
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -394,13 +394,13 @@
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 130
+ # File actionpack/lib/abstract_controller/base.rb, line 132
def method_added(name)
super
clear_action_methods!
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -430,12 +430,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 199
+ # File actionpack/lib/abstract_controller/base.rb, line 200
def self.supports_path?
true
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -469,12 +469,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 170
+ # File actionpack/lib/abstract_controller/base.rb, line 172
def action_methods
self.class.action_methods
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -504,11 +504,11 @@
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 42
+ # File actionpack/lib/abstract_controller/base.rb, line 44
attr_internal :action_name
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -545,12 +545,12 @@ Parameters
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 184
+ # File actionpack/lib/abstract_controller/base.rb, line 187
def available_action?(action_name)
_find_action_name(action_name)
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -580,12 +580,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 165
+ # File actionpack/lib/abstract_controller/base.rb, line 167
def controller_path
self.class.controller_path
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -615,11 +615,11 @@
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 46
+ # File actionpack/lib/abstract_controller/base.rb, line 48
attr_internal :formats
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -649,12 +649,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 191
+ # File actionpack/lib/abstract_controller/base.rb, line 193
def performed?
response_body
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -663,7 +663,7 @@
- process(action, *args)
+ process(action, ...)
@@ -691,8 +691,8 @@ Returns
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 151
- def process(action, *args)
+ # File actionpack/lib/abstract_controller/base.rb, line 154
+ def process(action, ...)
@_action_name = action.to_s
unless action_name = _find_action_name(@_action_name)
@@ -701,10 +701,10 @@ Returns
@_response_body = nil
- process_action(action_name, *args)
+ process_action(action_name, ...)
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -734,11 +734,11 @@
📝 Source code
- # File actionpack/lib/abstract_controller/base.rb, line 38
+ # File actionpack/lib/abstract_controller/base.rb, line 40
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 aff27b6732..a968072fde 100644
--- a/src/classes/AbstractController/Caching.html
+++ b/src/classes/AbstractController/Caching.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
@@ -126,12 +126,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/caching.rb, line 52
+ # File actionpack/lib/abstract_controller/caching.rb, line 54
def view_cache_dependencies
self.class._view_cache_dependencies.filter_map { |dep| instance_exec(&dep) }
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -164,7 +164,7 @@
📝 Source code
- # File actionpack/lib/abstract_controller/caching.rb, line 58
+ # File actionpack/lib/abstract_controller/caching.rb, line 60
def cache(key, options = {}, &block) # :doc:
if cache_configured?
cache_store.fetch(ActiveSupport::Cache.expand_cache_key(key, :controller), options, &block)
@@ -173,7 +173,7 @@
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 2dcce76018..c7aa561a2b 100644
--- a/src/classes/AbstractController/Caching/ClassMethods.html
+++ b/src/classes/AbstractController/Caching/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
@@ -81,12 +81,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/caching.rb, line 47
+ # File actionpack/lib/abstract_controller/caching.rb, line 49
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 ca1881a982..23af10ec6f 100644
--- a/src/classes/AbstractController/Caching/ConfigMethods.html
+++ b/src/classes/AbstractController/Caching/ConfigMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
@@ -85,12 +85,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/caching.rb, line 13
+ # File actionpack/lib/abstract_controller/caching.rb, line 15
def cache_store
config.cache_store
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -120,12 +120,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/caching.rb, line 17
+ # File actionpack/lib/abstract_controller/caching.rb, line 19
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 4a4477a519..188661a389 100644
--- a/src/classes/AbstractController/Caching/Fragments.html
+++ b/src/classes/AbstractController/Caching/Fragments.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
@@ -23,7 +23,7 @@
-Abstract Controller Caching
Fragments
+Abstract Controller Caching
Fragments
Fragment caching is used for caching various blocks within views without caching the entire action as a whole. This is useful when certain elements of an action change frequently or depend on complicated state while other parts rarely change or can be shared amongst multiple parties. The caching is done using the cache
helper available in the Action View. See ActionView::Helpers::CacheHelper
for more information.
@@ -123,7 +123,7 @@
📝 Source code
- # File actionpack/lib/abstract_controller/caching/fragments.rb, line 70
+ # 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
@@ -134,7 +134,7 @@
cache_key
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -175,7 +175,7 @@
📝 Source code
- # File actionpack/lib/abstract_controller/caching/fragments.rb, line 134
+ # 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)
@@ -189,7 +189,7 @@
end
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -219,7 +219,7 @@
📝 Source code
- # File actionpack/lib/abstract_controller/caching/fragments.rb, line 107
+ # 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)
@@ -229,7 +229,7 @@
end
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -259,7 +259,7 @@
📝 Source code
- # File actionpack/lib/abstract_controller/caching/fragments.rb, line 95
+ # File actionpack/lib/abstract_controller/caching/fragments.rb, line 93
def read_fragment(key, options = nil)
return unless cache_configured?
@@ -270,7 +270,7 @@
end
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -300,7 +300,7 @@
📝 Source code
- # File actionpack/lib/abstract_controller/caching/fragments.rb, line 82
+ # File actionpack/lib/abstract_controller/caching/fragments.rb, line 80
def write_fragment(key, content, options = nil)
return content unless cache_configured?
@@ -312,7 +312,7 @@
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 c3c06e0721..0dabaf1cfb 100644
--- a/src/classes/AbstractController/Caching/Fragments/ClassMethods.html
+++ b/src/classes/AbstractController/Caching/Fragments/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
@@ -97,12 +97,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/caching/fragments.rb, line 59
+ # File actionpack/lib/abstract_controller/caching/fragments.rb, line 58
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 e3d13b12bb..36aad58b81 100644
--- a/src/classes/AbstractController/Callbacks.html
+++ b/src/classes/AbstractController/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
@@ -23,7 +23,7 @@
-Abstract Controller Callbacks
+Abstract Controller Callbacks
Abstract Controller provides hooks during the life cycle of a controller action. Callbacks
allow you to trigger logic during this cycle. Available callbacks are:
-
@@ -52,8 +52,6 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
@@ -124,14 +124,14 @@ Parameters
-
callbacks
- An array of callbacks, with an optional options hash as the last parameter.
-
-
block
- A proc that should be added to the callbacks.
+block
- A proc that should be added to the callbacks.
Block Parameters
-
-
name
- The callback to be added.
+name
- The callback to be added.
-
-
options
- A hash of options to be used when adding the callback.
+options
- A hash of options to be used when adding the callback.
@@ -147,7 +147,7 @@ Block Parameters
📝 Source code
- # File actionpack/lib/abstract_controller/callbacks.rb, line 119
+ # File actionpack/lib/abstract_controller/callbacks.rb, line 120
def _insert_callbacks(callbacks, block = nil)
options = callbacks.extract_options!
callbacks.push(block) if block
@@ -159,7 +159,7 @@ Block Parameters
end
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -190,9 +190,9 @@
Options
-
-
only
- The callback should be run only for this action.
+only
- The callback should be run only for this action.
-
-
except
- The callback should be run for all actions except this action.
+except
- The callback should be run for all actions except this action.
@@ -208,13 +208,13 @@ Options
📝 Source code
- # File actionpack/lib/abstract_controller/callbacks.rb, line 94
+ # 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
@@ -240,7 +240,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -264,7 +264,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -278,7 +278,7 @@
- Append a callback around actions. See _insert_callbacks
for parameter details.
+ Append a callback around actions. See _insert_callbacks
for parameter details. set up before_action
, prepend_before_action
, skip_before_action
, etc. for each of before, after, and around.
@@ -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 1a46aa6b34..4f6f607ce0 100644
--- a/src/classes/AbstractController/Collector.html
+++ b/src/classes/AbstractController/Collector.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
@@ -80,18 +80,17 @@
📝 Source code
- # File actionpack/lib/abstract_controller/collector.rb, line 7
+ # 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}(*args, &block)
- custom(Mime[:#{sym}], *args, &block)
+ def #{sym}(...)
+ custom(Mime[:#{sym}], ...)
end
- ruby2_keywords(:#{sym})
RUBY
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/DoubleRenderError.html b/src/classes/AbstractController/DoubleRenderError.html
index b874652177..0918e35e97 100644
--- a/src/classes/AbstractController/DoubleRenderError.html
+++ b/src/classes/AbstractController/DoubleRenderError.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Class
@@ -99,12 +99,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/rendering.rb, line 12
+ # File actionpack/lib/abstract_controller/rendering.rb, line 14
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 e5a7e6f463..68aea1e4b8 100644
--- a/src/classes/AbstractController/Helpers.html
+++ b/src/classes/AbstractController/Helpers.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
@@ -41,13 +41,6 @@ Module
- Class
-
-
@@ -62,20 +55,6 @@ Methods
-
- Included Modules
-
-
- -
-
-
- ActiveSupport::Deprecation::DeprecatedConstantAccessor
-
-
-
-
-
-
@@ -115,12 +94,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/helpers.rb, line 44
+ # File actionpack/lib/abstract_controller/helpers.rb, line 28
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 fc440f9f86..77083dba36 100644
--- a/src/classes/AbstractController/Helpers/ClassMethods.html
+++ b/src/classes/AbstractController/Helpers/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
@@ -35,11 +35,11 @@ Methods
-
- _helpers_for_modification
+ #
-
- all_helpers_from_path
+ _helpers_for_modification
-
@@ -96,15 +96,20 @@
Attributes
Instance Public methods
-
+
- _helpers_for_modification()
+ all_helpers_from_path(path)
+
-
+ Returns a list of helper names in a given path.
+
+ActionController::Base.all_helpers_from_path 'app/helpers'
+# => ["application", "chart", "rubygems"]
+
@@ -114,40 +119,20 @@
-
-
- 📝 Source code
-
-
- # File actionpack/lib/abstract_controller/helpers.rb, line 231
- def _helpers_for_modification
- unless @_helpers
- self._helpers = define_helpers_module(self, superclass._helpers)
- end
- _helpers
- end
-
- 🔎 See on GitHub
-
-
+ 🔎 See on GitHub
-
+
- all_helpers_from_path(path)
-
+ _helpers_for_modification()
- Returns a list of helper names in a given path.
-
-ActionController::Base.all_helpers_from_path 'app/helpers'
-# => ["application", "chart", "rubygems"]
-
+
@@ -157,7 +142,22 @@
- 🔎 See on GitHub
+
+
+ 📝 Source code
+
+
+ # File actionpack/lib/abstract_controller/helpers.rb, line 216
+ def _helpers_for_modification
+ unless @_helpers
+ self._helpers = define_helpers_module(self, superclass._helpers)
+ end
+ _helpers
+ end
+
+ 🔎 See on GitHub
+
+
@@ -185,7 +185,7 @@
📝 Source code
- # File actionpack/lib/abstract_controller/helpers.rb, line 222
+ # File actionpack/lib/abstract_controller/helpers.rb, line 207
def clear_helpers
inherited_helper_methods = _helper_methods
self._helpers = Module.new
@@ -195,7 +195,7 @@
default_helper_module! unless anonymous?
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -273,7 +273,7 @@
📝 Source code
- # File actionpack/lib/abstract_controller/helpers.rb, line 211
+ # File actionpack/lib/abstract_controller/helpers.rb, line 196
def helper(*args, &block)
modules_for_helpers(args).each do |mod|
next if _helpers.include?(mod)
@@ -283,7 +283,7 @@
_helpers_for_modification.module_eval(&block) if block_given?
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -298,12 +298,9 @@
- Declare a controller method as a helper. For example, the following makes the current_user
and logged_in?
controller methods available to the view:
-
-class ApplicationController < ActionController::Base
- helper_method :current_user, :logged_in?
+ Declare a controller method as a helper. For example, the following makes the current_user
and logged_in?
controller methods available to the view: class ApplicationController < ActionController::Base
helper_method
:current_user, :logged_in?
- private
+ private
def current_user
@current_user ||= User.find_by(id: session[:user])
end
@@ -314,10 +311,7 @@
end
-In a view:
-
-<% if logged_in? -%>Welcome, <%= current_user.name %><% end -%>
-
+In a view: <% if logged_in? -%>Welcome, <%= current_user.name %><% end -%>
Parameters
-
@@ -337,7 +331,7 @@
Parameters
📝 Source code
- # File actionpack/lib/abstract_controller/helpers.rb, line 140
+ # File actionpack/lib/abstract_controller/helpers.rb, line 126
def helper_method(*methods)
methods.flatten!
self._helper_methods += methods
@@ -346,19 +340,18 @@ Parameters
file, line = location.path, location.lineno
methods.each do |method|
- # def current_user(*args, &block)
- # controller.send(:'current_user', *args, &block)
+ # def current_user(...)
+ # controller.send(:'current_user', ...)
# end
_helpers_for_modification.class_eval <<~ruby_eval.lines.map(&:strip).join(";"), file, line
- def #{method}(*args, &block)
- controller.send(:'#{method}', *args, &block)
+ def #{method}(...)
+ controller.send(:'#{method}', ...)
end
- ruby2_keywords(:'#{method}')
ruby_eval
end
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -388,7 +381,7 @@
📝 Source code
- # File actionpack/lib/abstract_controller/helpers.rb, line 84
+ # File actionpack/lib/abstract_controller/helpers.rb, line 68
def inherited(klass)
# Inherited from parent by default
klass._helpers = nil
@@ -397,7 +390,7 @@
super
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -414,6 +407,10 @@
Given an array of values like the ones accepted by helper
, this method returns an array with the corresponding modules, in the same order.
+
+ActionController::Base.modules_for_helpers(["application", "chart", "rubygems"])
+# => [ApplicationHelper, ChartHelper, RubygemsHelper]
+
@@ -423,7 +420,7 @@
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Railties.html b/src/classes/AbstractController/Railties.html
index 3f2bad0332..522875a95b 100644
--- a/src/classes/AbstractController/Railties.html
+++ b/src/classes/AbstractController/Railties.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
diff --git a/src/classes/AbstractController/Railties/RoutesHelpers.html b/src/classes/AbstractController/Railties/RoutesHelpers.html
index bcc721931e..de6113d941 100644
--- a/src/classes/AbstractController/Railties/RoutesHelpers.html
+++ b/src/classes/AbstractController/Railties/RoutesHelpers.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
@@ -80,7 +80,7 @@
📝 Source code
- # File actionpack/lib/abstract_controller/railties/routes_helpers.rb, line 8
+ # 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|
@@ -95,7 +95,7 @@
end
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Rendering.html b/src/classes/AbstractController/Rendering.html
index 7a0e28da22..510b9aaf61 100644
--- a/src/classes/AbstractController/Rendering.html
+++ b/src/classes/AbstractController/Rendering.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
@@ -138,7 +138,7 @@
📝 Source code
- # File actionpack/lib/abstract_controller/rendering.rb, line 25
+ # File actionpack/lib/abstract_controller/rendering.rb, line 27
def render(*args, &block)
options = _normalize_render(*args, &block)
rendered_body = render_to_body(options)
@@ -151,7 +151,7 @@
self.response_body = rendered_body
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -181,11 +181,11 @@
📝 Source code
- # File actionpack/lib/abstract_controller/rendering.rb, line 49
+ # File actionpack/lib/abstract_controller/rendering.rb, line 51
def render_to_body(options = {})
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -217,13 +217,13 @@
📝 Source code
- # File actionpack/lib/abstract_controller/rendering.rb, line 43
+ # File actionpack/lib/abstract_controller/rendering.rb, line 45
def render_to_string(*args, &block)
options = _normalize_render(*args, &block)
render_to_body(options)
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -253,12 +253,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/rendering.rb, line 53
+ # File actionpack/lib/abstract_controller/rendering.rb, line 55
def rendered_format
Mime[:text]
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -288,7 +288,7 @@
📝 Source code
- # File actionpack/lib/abstract_controller/rendering.rb, line 61
+ # File actionpack/lib/abstract_controller/rendering.rb, line 63
def view_assigns
variables = instance_variables - _protected_ivars
@@ -297,7 +297,7 @@
end
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -330,7 +330,7 @@
📝 Source code
- # File actionpack/lib/abstract_controller/rendering.rb, line 73
+ # File actionpack/lib/abstract_controller/rendering.rb, line 74
def _normalize_args(action = nil, options = {}) # :doc:
if action.respond_to?(:permitted?)
if action.permitted?
@@ -345,7 +345,7 @@
end
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -375,12 +375,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/rendering.rb, line 88
+ # File actionpack/lib/abstract_controller/rendering.rb, line 89
def _normalize_options(options) # :doc:
options
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -410,12 +410,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/rendering.rb, line 93
+ # File actionpack/lib/abstract_controller/rendering.rb, line 94
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 87aa62830b..367f8c4346 100644
--- a/src/classes/AbstractController/Translation.html
+++ b/src/classes/AbstractController/Translation.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
@@ -122,12 +122,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/translation.rb, line 29
+ # File actionpack/lib/abstract_controller/translation.rb, line 37
def localize(object, **options)
I18n.localize(object, **options)
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -188,7 +188,7 @@
📝 Source code
- # File actionpack/lib/abstract_controller/translation.rb, line 15
+ # File actionpack/lib/abstract_controller/translation.rb, line 17
def translate(key, **options)
if key&.start_with?(".")
path = controller_path.tr("/", ".")
@@ -198,10 +198,16 @@
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 2604544166..35bf1bfa7d 100644
--- a/src/classes/AbstractController/UrlFor.html
+++ b/src/classes/AbstractController/UrlFor.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
@@ -118,13 +118,13 @@
📝 Source code
- # File actionpack/lib/abstract_controller/url_for.rb, line 16
+ # 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
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/AbstractController/UrlFor/ClassMethods.html b/src/classes/AbstractController/UrlFor/ClassMethods.html
index 298c513236..b7e4e48f64 100644
--- a/src/classes/AbstractController/UrlFor/ClassMethods.html
+++ b/src/classes/AbstractController/UrlFor/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
@@ -85,12 +85,12 @@
📝 Source code
- # File actionpack/lib/abstract_controller/url_for.rb, line 22
+ # File actionpack/lib/abstract_controller/url_for.rb, line 24
def _routes
nil
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -120,7 +120,7 @@
📝 Source code
- # File actionpack/lib/abstract_controller/url_for.rb, line 26
+ # File actionpack/lib/abstract_controller/url_for.rb, line 28
def action_methods
@action_methods ||= if _routes
super - _routes.named_routes.helper_names
@@ -129,7 +129,7 @@
end
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable.html b/src/classes/ActionCable.html
index dae1e7745e..d74ad29ceb 100644
--- a/src/classes/ActionCable.html
+++ b/src/classes/ActionCable.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
@@ -100,7 +100,7 @@
- actioncable/lib/action_cable/version.rb
- - railties/lib/rails/app_updater.rb
+ - railties/lib/rails/commands/app/update_command.rb
@@ -264,12 +264,12 @@
📝 Source code
- # File actioncable/lib/action_cable/gem_version.rb, line 5
+ # File actioncable/lib/action_cable/gem_version.rb, line 7
def self.gem_version
Gem::Version.new VERSION::STRING
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -299,12 +299,12 @@
📝 Source code
- # File actioncable/lib/action_cable/version.rb, line 7
+ # File actioncable/lib/action_cable/version.rb, line 9
def self.version
gem_version
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -338,12 +338,12 @@
📝 Source code
- # File actioncable/lib/action_cable.rb, line 71
+ # File actioncable/lib/action_cable.rb, line 72
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 42d3430957..79658f057e 100644
--- a/src/classes/ActionCable/Channel.html
+++ b/src/classes/ActionCable/Channel.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
diff --git a/src/classes/ActionCable/Channel/Base.html b/src/classes/ActionCable/Channel/Base.html
index 40c8fc885e..a9b86c4697 100644
--- a/src/classes/ActionCable/Channel/Base.html
+++ b/src/classes/ActionCable/Channel/Base.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Class
@@ -29,7 +29,7 @@
-Action Cable Channel Base
+Action Cable Channel
Base
The channel provides the basic structure of grouping behavior into logical units when communicating over the WebSocket connection. You can think of a channel like a form of controller, but one that’s capable of pushing content to the subscriber in addition to simply responding to the subscriber’s direct requests.
@@ -306,7 +306,7 @@ Returns
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 120
+ # File actioncable/lib/action_cable/channel/base.rb, line 129
def action_methods
@action_methods ||= begin
# All public instance methods of this class, including ancestors
@@ -319,7 +319,7 @@ Returns
end
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -349,7 +349,7 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 147
+ # File actioncable/lib/action_cable/channel/base.rb, line 156
def initialize(connection, identifier, params = {})
@connection = connection
@identifier = identifier
@@ -367,7 +367,7 @@
delegate_connection_identifiers
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -400,12 +400,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 136
+ # File actioncable/lib/action_cable/channel/base.rb, line 145
def clear_action_methods! # :doc:
@action_methods = nil
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -435,13 +435,13 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 141
+ # File actioncable/lib/action_cable/channel/base.rb, line 150
def method_added(name) # :doc:
super
clear_action_methods!
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -475,7 +475,7 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 167
+ # File actioncable/lib/action_cable/channel/base.rb, line 176
def perform_action(data)
action = extract_action(data)
@@ -489,7 +489,7 @@
end
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -519,7 +519,7 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 182
+ # File actioncable/lib/action_cable/channel/base.rb, line 191
def subscribe_to_channel
run_callbacks :subscribe do
subscribed
@@ -529,7 +529,7 @@
ensure_confirmation_sent
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -562,12 +562,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 233
+ # File actioncable/lib/action_cable/channel/base.rb, line 245
def defer_subscription_confirmation! # :doc:
@defer_subscription_confirmation_counter.increment
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -597,12 +597,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 237
+ # File actioncable/lib/action_cable/channel/base.rb, line 249
def defer_subscription_confirmation? # :doc:
@defer_subscription_confirmation_counter.value > 0
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -632,14 +632,14 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 227
+ # File actioncable/lib/action_cable/channel/base.rb, line 239
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
@@ -669,12 +669,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 245
+ # File actioncable/lib/action_cable/channel/base.rb, line 257
def reject # :doc:
@reject_subscription = true
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -704,12 +704,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 202
+ # File actioncable/lib/action_cable/channel/base.rb, line 213
def subscribed # :doc:
# Override in subclasses
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -739,12 +739,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 241
+ # File actioncable/lib/action_cable/channel/base.rb, line 253
def subscription_confirmation_sent? # :doc:
@subscription_confirmation_sent
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -774,12 +774,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 249
+ # File actioncable/lib/action_cable/channel/base.rb, line 261
def subscription_rejected? # :doc:
@reject_subscription
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -809,7 +809,7 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 214
+ # File actioncable/lib/action_cable/channel/base.rb, line 226
def transmit(data, via: nil) # :doc:
logger.debug do
status = "#{self.class.name} transmitting #{data.inspect.truncate(300)}"
@@ -823,7 +823,7 @@
end
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -853,12 +853,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/base.rb, line 208
+ # File actioncable/lib/action_cable/channel/base.rb, line 219
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 9462052e71..4c8d1cde6c 100644
--- a/src/classes/ActionCable/Channel/Broadcasting.html
+++ b/src/classes/ActionCable/Channel/Broadcasting.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
@@ -44,6 +44,19 @@ Module
+ Methods
+
+
+ -
+ broadcast_to
+
+
+ -
+ broadcasting_for
+
+
+
+
@@ -59,6 +72,79 @@ Module
+ Instance Public methods
+
+
+
+
+ broadcast_to(model, message)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 📝 Source code
+
+
+ # File actioncable/lib/action_cable/channel/broadcasting.rb, line 45
+ def broadcast_to(model, message)
+ self.class.broadcast_to(model, message)
+ end
+
+ 🔎 See on GitHub
+
+
+
+
+
+
+
+
+ broadcasting_for(model)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 📝 Source code
+
+
+ # File actioncable/lib/action_cable/channel/broadcasting.rb, line 41
+ def broadcasting_for(model)
+ self.class.broadcasting_for(model)
+ end
+
+ 🔎 See on GitHub
+
+
+
+
+
+
diff --git a/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html b/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
index 22b96e928e..02e1b0b4cf 100644
--- a/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
@@ -85,12 +85,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/broadcasting.rb, line 16
+ # File actioncable/lib/action_cable/channel/broadcasting.rb, line 14
def broadcast_to(model, message)
ActionCable.server.broadcast(broadcasting_for(model), message)
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -125,12 +125,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/broadcasting.rb, line 26
+ # File actioncable/lib/action_cable/channel/broadcasting.rb, line 24
def broadcasting_for(model)
serialize_broadcasting([ channel_name, model ])
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Callbacks.html b/src/classes/ActionCable/Channel/Callbacks.html
index 45f2aa1e5f..8147df2b03 100644
--- a/src/classes/ActionCable/Channel/Callbacks.html
+++ b/src/classes/ActionCable/Channel/Callbacks.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
@@ -23,7 +23,7 @@
-Action Cable Channel Callbacks
+Action Cable Channel
Callbacks
Action Cable Channel
provides callback hooks that are invoked during the life cycle of a channel:
-
diff --git a/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html b/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
index dd71b042af..d8f850d2ea 100644
--- a/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
+++ b/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
@@ -110,12 +110,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/callbacks.rb, line 58
+ # File actioncable/lib/action_cable/channel/callbacks.rb, line 60
def after_subscribe(*methods, &block)
set_callback(:subscribe, :after, *methods, &block)
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -149,12 +149,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/callbacks.rb, line 67
+ # File actioncable/lib/action_cable/channel/callbacks.rb, line 69
def after_unsubscribe(*methods, &block)
set_callback(:unsubscribe, :after, *methods, &block)
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -184,12 +184,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/callbacks.rb, line 45
+ # File actioncable/lib/action_cable/channel/callbacks.rb, line 48
def before_subscribe(*methods, &block)
set_callback(:subscribe, :before, *methods, &block)
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -219,12 +219,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/callbacks.rb, line 63
+ # File actioncable/lib/action_cable/channel/callbacks.rb, line 65
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 93d9cc96d9..0d3ba59746 100644
--- a/src/classes/ActionCable/Channel/ChannelStub.html
+++ b/src/classes/ActionCable/Channel/ChannelStub.html
@@ -5,7 +5,7 @@
- Ruby on Rails 7.1.3
+ Ruby on Rails 7.2.0.beta2
Module
@@ -23,7 +23,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?
.
@@ -113,12 +113,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/test_case.rb, line 24
+ # File actioncable/lib/action_cable/channel/test_case.rb, line 25
def confirmed?
subscription_confirmation_sent?
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -148,12 +148,12 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/test_case.rb, line 28
+ # File actioncable/lib/action_cable/channel/test_case.rb, line 29
def rejected?
subscription_rejected?
end
- 🔎 See on GitHub
+ 🔎 See on GitHub
@@ -187,10 +187,10 @@
📝 Source code
- # File actioncable/lib/action_cable/channel/test_case.rb, line 45
+