diff --git a/Rakefile b/Rakefile index 3aedf2799b..7065d7b4ed 100644 --- a/Rakefile +++ b/Rakefile @@ -6,6 +6,7 @@ require 'bundler' SOURCE_DIR = 'src' INDEX_HTML = 'files/railties/RDOC_MAIN_rdoc.html' NEW_INDEX_HTML = 'files/railties/RDOC_MAIN_md.html' +MY_SDOC_BRANCH = 'main' desc 'Generate documentation for default Rails version and build Jekyll site' task build: :switch_default_rails do @@ -64,7 +65,7 @@ def generate_rails_rdoc # Replace sdoc gem with my forked one gemfile = File.read('Gemfile') - gemfile.gsub!(/"sdoc".*$/, '"sdoc", github: "toshimaru/sdoc", branch: "main"') + gemfile.gsub!(/"sdoc".*$/, %("sdoc", github: "toshimaru/sdoc", branch: "#{MY_SDOC_BRANCH}")) File.write('Gemfile', gemfile) sh 'bundle install && bundle update sdoc' diff --git a/src/classes/AbstractController/Base.html b/src/classes/AbstractController/Base.html index 8ee3c9a150..f57451fc63 100644 --- a/src/classes/AbstractController/Base.html +++ b/src/classes/AbstractController/Base.html @@ -183,7 +183,7 @@

- Source code + 📝 Source code
# File actionpack/lib/abstract_controller/base.rb, line 57
@@ -191,7 +191,7 @@ 

@abstract = true end

- See on GitHub + 🔎 See on GitHub
@@ -223,7 +223,7 @@

Returns

- Source code + 📝 Source code
# File actionpack/lib/abstract_controller/base.rb, line 96
@@ -234,12 +234,12 @@ 

Returns

methods = public_instance_methods(true) - internal_methods # Be sure to include shadowed public instance methods of this class. methods.concat(public_instance_methods(false)) - methods.map!(&:to_s) + methods.map!(&:to_s) methods.to_set end end
- See on GitHub + 🔎 See on GitHub
@@ -266,7 +266,7 @@

- Source code + 📝 Source code
# File actionpack/lib/abstract_controller/base.rb, line 111
@@ -274,7 +274,7 @@ 

@action_methods = nil end

- See on GitHub + 🔎 See on GitHub
@@ -313,15 +313,15 @@

Returns

- Source code + 📝 Source code
# File actionpack/lib/abstract_controller/base.rb, line 125
       def controller_path
-        @controller_path ||= name.delete_suffix("Controller").underscore unless anonymous?
+        @controller_path ||= name.delete_suffix("Controller").underscore unless anonymous?
       end
- See on GitHub + 🔎 See on GitHub
@@ -348,7 +348,7 @@

- Source code + 📝 Source code
# File actionpack/lib/abstract_controller/base.rb, line 76
@@ -364,7 +364,7 @@ 

controller.public_instance_methods(true) - methods end

- See on GitHub + 🔎 See on GitHub
@@ -391,7 +391,7 @@

- Source code + 📝 Source code
# File actionpack/lib/abstract_controller/base.rb, line 130
@@ -400,7 +400,7 @@ 

clear_action_methods! end

- See on GitHub + 🔎 See on GitHub
@@ -427,7 +427,7 @@

- Source code + 📝 Source code
# File actionpack/lib/abstract_controller/base.rb, line 199
@@ -435,7 +435,7 @@ 

true end

- See on GitHub + 🔎 See on GitHub
@@ -466,7 +466,7 @@

- Source code + 📝 Source code
# File actionpack/lib/abstract_controller/base.rb, line 170
@@ -474,7 +474,7 @@ 

self.class.action_methods end

- See on GitHub + 🔎 See on GitHub
@@ -501,14 +501,14 @@

- Source code + 📝 Source code
# File actionpack/lib/abstract_controller/base.rb, line 42
     attr_internal :action_name
 
- See on GitHub + 🔎 See on GitHub
@@ -542,7 +542,7 @@

Parameters

- Source code + 📝 Source code
# File actionpack/lib/abstract_controller/base.rb, line 184
@@ -550,7 +550,7 @@ 

Parameters

_find_action_name(action_name) end
- See on GitHub + 🔎 See on GitHub
@@ -577,7 +577,7 @@

- Source code + 📝 Source code
# File actionpack/lib/abstract_controller/base.rb, line 165
@@ -585,7 +585,7 @@ 

self.class.controller_path end

- See on GitHub + 🔎 See on GitHub
@@ -612,14 +612,14 @@

- Source code + 📝 Source code
# File actionpack/lib/abstract_controller/base.rb, line 46
     attr_internal :formats
 
- See on GitHub + 🔎 See on GitHub
@@ -646,7 +646,7 @@

- Source code + 📝 Source code
# File actionpack/lib/abstract_controller/base.rb, line 191
@@ -654,7 +654,7 @@ 

response_body end

- See on GitHub + 🔎 See on GitHub
@@ -688,7 +688,7 @@

Returns

- Source code + 📝 Source code
# File actionpack/lib/abstract_controller/base.rb, line 151
@@ -696,7 +696,7 @@ 

Returns

@_action_name = action.to_s unless action_name = _find_action_name(@_action_name) - raise ActionNotFound.new("The action '#{action}' could not be found for #{self.class.name}", self, action) + raise ActionNotFound.new("The action '#{action}' could not be found for #{self.class.name}", self, action) end @_response_body = nil @@ -704,7 +704,7 @@

Returns

process_action(action_name, *args) end
- See on GitHub + 🔎 See on GitHub
@@ -731,14 +731,14 @@

- Source code + 📝 Source code
# File actionpack/lib/abstract_controller/base.rb, line 38
     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 494d857b45..4a0afd210d 100644 --- a/src/classes/AbstractController/Caching.html +++ b/src/classes/AbstractController/Caching.html @@ -123,15 +123,15 @@

- Source code + 📝 Source code
# File actionpack/lib/abstract_controller/caching.rb, line 52
     def view_cache_dependencies
-      self.class._view_cache_dependencies.filter_map { |dep| instance_exec(&dep) }
+      self.class._view_cache_dependencies.filter_map { |dep| instance_exec(&dep) }
     end
- See on GitHub + 🔎 See on GitHub
@@ -161,19 +161,19 @@

- Source code + 📝 Source code
# File actionpack/lib/abstract_controller/caching.rb, line 58
-      def cache(key, options = {}, &block) # :doc:
+      def cache(key, options = {}, &block) # :doc:
         if cache_configured?
-          cache_store.fetch(ActiveSupport::Cache.expand_cache_key(key, :controller), options, &block)
+          cache_store.fetch(ActiveSupport::Cache.expand_cache_key(key, :controller), options, &block)
         else
           yield
         end
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Caching/ClassMethods.html b/src/classes/AbstractController/Caching/ClassMethods.html index df2358a1df..257f45c5d6 100644 --- a/src/classes/AbstractController/Caching/ClassMethods.html +++ b/src/classes/AbstractController/Caching/ClassMethods.html @@ -78,15 +78,15 @@

- Source code + 📝 Source code
# File actionpack/lib/abstract_controller/caching.rb, line 47
-      def view_cache_dependency(&dependency)
+      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 4538d1a338..3afe6ca778 100644 --- a/src/classes/AbstractController/Caching/ConfigMethods.html +++ b/src/classes/AbstractController/Caching/ConfigMethods.html @@ -82,7 +82,7 @@

- Source code + 📝 Source code
# File actionpack/lib/abstract_controller/caching.rb, line 13
@@ -90,7 +90,7 @@ 

config.cache_store end

- See on GitHub + 🔎 See on GitHub
@@ -117,7 +117,7 @@

- Source code + 📝 Source code
# File actionpack/lib/abstract_controller/caching.rb, line 17
@@ -125,7 +125,7 @@ 

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 7300b1b25e..c9844c4596 100644 --- a/src/classes/AbstractController/Caching/Fragments.html +++ b/src/classes/AbstractController/Caching/Fragments.html @@ -120,21 +120,21 @@

- Source code + 📝 Source code
# File actionpack/lib/abstract_controller/caching/fragments.rb, line 70
       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
+        head = self.class.fragment_cache_keys.map { |k| instance_exec(&k) }
+        tail = key.is_a?(Hash) ? url_for(key).split("://").last : key
 
-        cache_key = [:views, ENV["RAILS_CACHE_ID"] || ENV["RAILS_APP_VERSION"], head, tail]
+        cache_key = [:views, ENV["RAILS_CACHE_ID"] || ENV["RAILS_APP_VERSION"], head, tail]
         cache_key.flatten!(1)
         cache_key.compact!
         cache_key
       end
- See on GitHub + 🔎 See on GitHub
@@ -172,7 +172,7 @@

- Source code + 📝 Source code
# File actionpack/lib/abstract_controller/caching/fragments.rb, line 134
@@ -189,7 +189,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -216,7 +216,7 @@

- Source code + 📝 Source code
# File actionpack/lib/abstract_controller/caching/fragments.rb, line 107
@@ -229,7 +229,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -256,7 +256,7 @@

- Source code + 📝 Source code
# File actionpack/lib/abstract_controller/caching/fragments.rb, line 95
@@ -270,7 +270,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -297,7 +297,7 @@

- Source code + 📝 Source code
# File actionpack/lib/abstract_controller/caching/fragments.rb, line 82
@@ -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 4750217e48..2cb27b8940 100644 --- a/src/classes/AbstractController/Caching/Fragments/ClassMethods.html +++ b/src/classes/AbstractController/Caching/Fragments/ClassMethods.html @@ -94,15 +94,15 @@

- Source code + 📝 Source code
# File actionpack/lib/abstract_controller/caching/fragments.rb, line 59
-        def fragment_cache_key(value = nil, &key)
-          self.fragment_cache_keys += [key || -> { value }]
+        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/ClassMethods.html b/src/classes/AbstractController/Callbacks/ClassMethods.html index b7b361fb90..6d9061921b 100644 --- a/src/classes/AbstractController/Callbacks/ClassMethods.html +++ b/src/classes/AbstractController/Callbacks/ClassMethods.html @@ -144,7 +144,7 @@

Block Parameters

- Source code + 📝 Source code
# File actionpack/lib/abstract_controller/callbacks.rb, line 119
@@ -159,7 +159,7 @@ 

Block Parameters

end end
- See on GitHub + 🔎 See on GitHub
@@ -205,7 +205,7 @@

Options

- Source code + 📝 Source code
# File actionpack/lib/abstract_controller/callbacks.rb, line 94
@@ -214,7 +214,7 @@ 

Options

_normalize_callback_option(options, :except, :unless) end
- See on GitHub + 🔎 See on GitHub
@@ -240,7 +240,7 @@

- See on GitHub + 🔎 See on GitHub @@ -264,7 +264,7 @@

- See on GitHub + 🔎 See on GitHub @@ -288,7 +288,7 @@

- See on GitHub + 🔎 See on GitHub @@ -314,7 +314,7 @@

- See on GitHub + 🔎 See on GitHub @@ -338,7 +338,7 @@

- See on GitHub + 🔎 See on GitHub @@ -364,7 +364,7 @@

- See on GitHub + 🔎 See on GitHub @@ -388,7 +388,7 @@

- See on GitHub + 🔎 See on GitHub @@ -412,7 +412,7 @@

- See on GitHub + 🔎 See on GitHub @@ -438,7 +438,7 @@

- See on GitHub + 🔎 See on GitHub @@ -462,7 +462,7 @@

- See on GitHub + 🔎 See on GitHub @@ -486,7 +486,7 @@

- See on GitHub + 🔎 See on GitHub @@ -510,7 +510,7 @@

- See on GitHub + 🔎 See on GitHub diff --git a/src/classes/AbstractController/Collector.html b/src/classes/AbstractController/Collector.html index bb6fc3e5ac..75d08b6658 100644 --- a/src/classes/AbstractController/Collector.html +++ b/src/classes/AbstractController/Collector.html @@ -77,21 +77,21 @@

- Source code + 📝 Source code
# File actionpack/lib/abstract_controller/collector.rb, line 7
     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)
+      class_eval <<-RUBY, __FILE__, __LINE__ + 1
+        def #{sym}(*args, &block)
+          custom(Mime[:#{sym}], *args, &block)
         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 07db1e298b..aa4aaae7eb 100644 --- a/src/classes/AbstractController/DoubleRenderError.html +++ b/src/classes/AbstractController/DoubleRenderError.html @@ -65,11 +65,6 @@

Constants

"Render and/or redirect were called multiple times in this action. Please note that you may only call render OR redirect, and at most once per action. Also note that neither redirect nor render terminate execution of the action, so if you want to exit an action after redirecting, you need to do something like \"redirect_to(...); return\"." - -   - - - @@ -101,7 +96,7 @@

- Source code + 📝 Source code
# File actionpack/lib/abstract_controller/rendering.rb, line 12
@@ -109,7 +104,7 @@ 

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 bd91dc39c7..0db1e7a884 100644 --- a/src/classes/AbstractController/Helpers.html +++ b/src/classes/AbstractController/Helpers.html @@ -112,7 +112,7 @@

- Source code + 📝 Source code
# File actionpack/lib/abstract_controller/helpers.rb, line 44
@@ -120,7 +120,7 @@ 

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 ac49c21e2e..9478735755 100644 --- a/src/classes/AbstractController/Helpers/ClassMethods.html +++ b/src/classes/AbstractController/Helpers/ClassMethods.html @@ -116,7 +116,7 @@

- Source code + 📝 Source code
# File actionpack/lib/abstract_controller/helpers.rb, line 231
@@ -127,7 +127,7 @@ 

_helpers end

- See on GitHub + 🔎 See on GitHub
@@ -157,7 +157,7 @@

- See on GitHub + 🔎 See on GitHub @@ -182,7 +182,7 @@

- Source code + 📝 Source code
# File actionpack/lib/abstract_controller/helpers.rb, line 222
@@ -195,7 +195,7 @@ 

default_helper_module! unless anonymous? end

- See on GitHub + 🔎 See on GitHub
@@ -270,20 +270,20 @@

- Source code + 📝 Source code
# File actionpack/lib/abstract_controller/helpers.rb, line 211
-      def helper(*args, &block)
+      def helper(*args, &block)
         modules_for_helpers(args).each do |mod|
           next if _helpers.include?(mod)
           _helpers_for_modification.include(mod)
         end
 
-        _helpers_for_modification.module_eval(&block) if block_given?
+        _helpers_for_modification.module_eval(&block) if block_given?
       end
- See on GitHub + 🔎 See on GitHub
@@ -334,7 +334,7 @@

Parameters

- Source code + 📝 Source code
# File actionpack/lib/abstract_controller/helpers.rb, line 140
@@ -346,19 +346,19 @@ 

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(*args, &block) + # controller.send(:'current_user', *args, &block) # end - _helpers_for_modification.class_eval <<~ruby_eval.lines.map(&:strip).join(";"), file, line - def #{method}(*args, &block) - controller.send(:'#{method}', *args, &block) + _helpers_for_modification.class_eval <<~ruby_eval.lines.map(&:strip).join(";"), file, line + def #{method}(*args, &block) + controller.send(:'#{method}', *args, &block) end - ruby2_keywords(:'#{method}') + ruby2_keywords(:'#{method}') ruby_eval end end
- See on GitHub + 🔎 See on GitHub
@@ -385,7 +385,7 @@

- Source code + 📝 Source code
# File actionpack/lib/abstract_controller/helpers.rb, line 84
@@ -397,7 +397,7 @@ 

super end

- See on GitHub + 🔎 See on GitHub
@@ -423,7 +423,7 @@

- See on GitHub + 🔎 See on GitHub diff --git a/src/classes/AbstractController/Helpers/DeprecatedMissingHelperError.html b/src/classes/AbstractController/Helpers/DeprecatedMissingHelperError.html index 7d7658e2d8..be188d929b 100644 --- a/src/classes/AbstractController/Helpers/DeprecatedMissingHelperError.html +++ b/src/classes/AbstractController/Helpers/DeprecatedMissingHelperError.html @@ -83,23 +83,23 @@

- Source code + 📝 Source code
# File actionpack/lib/abstract_controller/helpers.rb, line 28
       def initialize(error, path)
         @error = error
-        @path  = "helpers/#{path}.rb"
+        @path  = "helpers/#{path}.rb"
         set_backtrace error.backtrace
 
         if /^#{path}(\.rb)?$/.match?(error.path)
-          super("Missing helper file helpers/%s.rb" % path)
+          super("Missing helper file helpers/%s.rb" % path)
         else
           raise error
         end
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Railties/RoutesHelpers.html b/src/classes/AbstractController/Railties/RoutesHelpers.html index 18c3f6fa47..bc1ec8407a 100644 --- a/src/classes/AbstractController/Railties/RoutesHelpers.html +++ b/src/classes/AbstractController/Railties/RoutesHelpers.html @@ -77,7 +77,7 @@

- Source code + 📝 Source code
# File actionpack/lib/abstract_controller/railties/routes_helpers.rb, line 8
@@ -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 344165c1de..0116e8254e 100644 --- a/src/classes/AbstractController/Rendering.html +++ b/src/classes/AbstractController/Rendering.html @@ -101,11 +101,6 @@

Constants

%i(@_action_name @_response_body @_formats @_prefixes) - -   - - - @@ -140,12 +135,12 @@

- Source code + 📝 Source code
# File actionpack/lib/abstract_controller/rendering.rb, line 25
-    def render(*args, &block)
-      options = _normalize_render(*args, &block)
+    def render(*args, &block)
+      options = _normalize_render(*args, &block)
       rendered_body = render_to_body(options)
       if options[:html]
         _set_html_content_type
@@ -156,7 +151,7 @@ 

self.response_body = rendered_body end

- See on GitHub + 🔎 See on GitHub
@@ -183,14 +178,14 @@

- Source code + 📝 Source code
# File actionpack/lib/abstract_controller/rendering.rb, line 49
     def render_to_body(options = {})
     end
- See on GitHub + 🔎 See on GitHub
@@ -219,16 +214,16 @@

- Source code + 📝 Source code
# File actionpack/lib/abstract_controller/rendering.rb, line 43
-    def render_to_string(*args, &block)
-      options = _normalize_render(*args, &block)
+    def render_to_string(*args, &block)
+      options = _normalize_render(*args, &block)
       render_to_body(options)
     end
- See on GitHub + 🔎 See on GitHub
@@ -255,7 +250,7 @@

- Source code + 📝 Source code
# File actionpack/lib/abstract_controller/rendering.rb, line 53
@@ -263,7 +258,7 @@ 

Mime[:text] end

- See on GitHub + 🔎 See on GitHub
@@ -290,7 +285,7 @@

- Source code + 📝 Source code
# File actionpack/lib/abstract_controller/rendering.rb, line 61
@@ -302,7 +297,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -332,7 +327,7 @@

- Source code + 📝 Source code
# File actionpack/lib/abstract_controller/rendering.rb, line 73
@@ -341,7 +336,7 @@ 

if action.permitted? action else - raise ArgumentError, "render parameters are not permitted" + raise ArgumentError, "render parameters are not permitted" end elsif action.is_a?(Hash) action @@ -350,7 +345,7 @@

end end

- See on GitHub + 🔎 See on GitHub
@@ -377,7 +372,7 @@

- Source code + 📝 Source code
# File actionpack/lib/abstract_controller/rendering.rb, line 88
@@ -385,7 +380,7 @@ 

options end

- See on GitHub + 🔎 See on GitHub
@@ -412,7 +407,7 @@

- Source code + 📝 Source code
# File actionpack/lib/abstract_controller/rendering.rb, line 93
@@ -420,7 +415,7 @@ 

options end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/AbstractController/Translation.html b/src/classes/AbstractController/Translation.html index 825ac847f7..2d2007b158 100644 --- a/src/classes/AbstractController/Translation.html +++ b/src/classes/AbstractController/Translation.html @@ -119,7 +119,7 @@

- Source code + 📝 Source code
# File actionpack/lib/abstract_controller/translation.rb, line 29
@@ -127,7 +127,7 @@ 

I18n.localize(object, **options) end

- See on GitHub + 🔎 See on GitHub
@@ -185,23 +185,23 @@

- Source code + 📝 Source code
# File actionpack/lib/abstract_controller/translation.rb, line 15
     def translate(key, **options)
-      if key&.start_with?(".")
-        path = controller_path.tr("/", ".")
-        defaults = [:"#{path}#{key}"]
-        defaults << options[:default] if options[:default]
+      if key&.start_with?(".")
+        path = controller_path.tr("/", ".")
+        defaults = [:"#{path}#{key}"]
+        defaults << options[:default] if options[:default]
         options[:default] = defaults.flatten
-        key = "#{path}.#{action_name}#{key}"
+        key = "#{path}.#{action_name}#{key}"
       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 06f7c12193..2dbea1b847 100644 --- a/src/classes/AbstractController/UrlFor.html +++ b/src/classes/AbstractController/UrlFor.html @@ -115,16 +115,16 @@

- Source code + 📝 Source code
# File actionpack/lib/abstract_controller/url_for.rb, line 16
     def _routes
-      raise "In order to use #url_for, you must include routing helpers explicitly. " \
-            "For instance, `include Rails.application.routes.url_helpers`."
+      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 69ad836afd..4ea1465fbb 100644 --- a/src/classes/AbstractController/UrlFor/ClassMethods.html +++ b/src/classes/AbstractController/UrlFor/ClassMethods.html @@ -82,7 +82,7 @@

- Source code + 📝 Source code
# File actionpack/lib/abstract_controller/url_for.rb, line 22
@@ -90,7 +90,7 @@ 

nil end

- See on GitHub + 🔎 See on GitHub
@@ -117,7 +117,7 @@

- Source code + 📝 Source code
# File actionpack/lib/abstract_controller/url_for.rb, line 26
@@ -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 a3d0c42cf9..ff9a14bd75 100644 --- a/src/classes/ActionCable.html +++ b/src/classes/ActionCable.html @@ -230,11 +230,6 @@

Constants

} - -   - - - @@ -266,7 +261,7 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/gem_version.rb, line 5
@@ -274,7 +269,7 @@ 

Gem::Version.new VERSION::STRING end

- See on GitHub + 🔎 See on GitHub
@@ -301,7 +296,7 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/version.rb, line 7
@@ -309,7 +304,7 @@ 

gem_version end

- See on GitHub + 🔎 See on GitHub
@@ -340,7 +335,7 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable.rb, line 71
@@ -348,7 +343,7 @@ 

@server ||= ActionCable::Server::Base.new end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Base.html b/src/classes/ActionCable/Channel/Base.html index 248675d53b..2986c9dcdd 100644 --- a/src/classes/ActionCable/Channel/Base.html +++ b/src/classes/ActionCable/Channel/Base.html @@ -303,7 +303,7 @@

Returns

- Source code + 📝 Source code
# File actioncable/lib/action_cable/channel/base.rb, line 120
@@ -314,12 +314,12 @@ 

Returns

# Except for public instance methods of Base and its ancestors ActionCable::Channel::Base.public_instance_methods(true) + # Be sure to include shadowed public instance methods of this class - public_instance_methods(false)).uniq.map(&:to_s) + public_instance_methods(false)).uniq.map(&:to_s) methods.to_set end end
- See on GitHub + 🔎 See on GitHub
@@ -346,7 +346,7 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/channel/base.rb, line 147
@@ -358,7 +358,7 @@ 

# When a channel is streaming via pubsub, we want to delay the confirmation # transmission until pubsub subscription is confirmed. # - # The counter starts at 1 because it's awaiting a call to #subscribe_to_channel + # The counter starts at 1 because it's awaiting a call to #subscribe_to_channel @defer_subscription_confirmation_counter = Concurrent::AtomicFixnum.new(1) @reject_subscription = nil @@ -367,7 +367,7 @@

delegate_connection_identifiers end

- See on GitHub + 🔎 See on GitHub
@@ -397,7 +397,7 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/channel/base.rb, line 136
@@ -405,7 +405,7 @@ 

@action_methods = nil end

- See on GitHub + 🔎 See on GitHub
@@ -432,7 +432,7 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/channel/base.rb, line 141
@@ -441,7 +441,7 @@ 

clear_action_methods! end

- See on GitHub + 🔎 See on GitHub
@@ -472,7 +472,7 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/channel/base.rb, line 167
@@ -481,15 +481,15 @@ 

if processable_action?(action) payload = { channel_class: self.class.name, action: action, data: data } - ActiveSupport::Notifications.instrument("perform_action.action_cable", payload) do + ActiveSupport::Notifications.instrument("perform_action.action_cable", payload) do dispatch_action(action, data) end else - logger.error "Unable to process #{action_signature(action, data)}" + logger.error "Unable to process #{action_signature(action, data)}" end end

- See on GitHub + 🔎 See on GitHub
@@ -516,7 +516,7 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/channel/base.rb, line 182
@@ -529,7 +529,7 @@ 

ensure_confirmation_sent end

- See on GitHub + 🔎 See on GitHub
@@ -559,7 +559,7 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/channel/base.rb, line 233
@@ -567,7 +567,7 @@ 

@defer_subscription_confirmation_counter.increment end

- See on GitHub + 🔎 See on GitHub
@@ -594,15 +594,15 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/channel/base.rb, line 237
         def defer_subscription_confirmation? # :doc:
-          @defer_subscription_confirmation_counter.value > 0
+          @defer_subscription_confirmation_counter.value > 0
         end
- See on GitHub + 🔎 See on GitHub
@@ -629,7 +629,7 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/channel/base.rb, line 227
@@ -639,7 +639,7 @@ 

transmit_subscription_confirmation unless defer_subscription_confirmation? end

- See on GitHub + 🔎 See on GitHub
@@ -666,7 +666,7 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/channel/base.rb, line 245
@@ -674,7 +674,7 @@ 

@reject_subscription = true end

- See on GitHub + 🔎 See on GitHub
@@ -701,7 +701,7 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/channel/base.rb, line 202
@@ -709,7 +709,7 @@ 

# Override in subclasses end

- See on GitHub + 🔎 See on GitHub
@@ -736,7 +736,7 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/channel/base.rb, line 241
@@ -744,7 +744,7 @@ 

@subscription_confirmation_sent end

- See on GitHub + 🔎 See on GitHub
@@ -771,7 +771,7 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/channel/base.rb, line 249
@@ -779,7 +779,7 @@ 

@reject_subscription end

- See on GitHub + 🔎 See on GitHub
@@ -806,24 +806,24 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/channel/base.rb, line 214
         def transmit(data, via: nil) # :doc:
           logger.debug do
-            status = "#{self.class.name} transmitting #{data.inspect.truncate(300)}"
-            status += " (via #{via})" if via
+            status = "#{self.class.name} transmitting #{data.inspect.truncate(300)}"
+            status += " (via #{via})" if via
             status
           end
 
           payload = { channel_class: self.class.name, data: data, via: via }
-          ActiveSupport::Notifications.instrument("transmit.action_cable", payload) do
+          ActiveSupport::Notifications.instrument("transmit.action_cable", payload) do
             connection.transmit identifier: @identifier, message: data
           end
         end
- See on GitHub + 🔎 See on GitHub
@@ -850,7 +850,7 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/channel/base.rb, line 208
@@ -858,7 +858,7 @@ 

# Override in subclasses end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html b/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html index dc7dea20d5..220ec1298d 100644 --- a/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html +++ b/src/classes/ActionCable/Channel/Broadcasting/ClassMethods.html @@ -82,7 +82,7 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 16
@@ -90,7 +90,7 @@ 

ActionCable.server.broadcast(broadcasting_for(model), message) end

- See on GitHub + 🔎 See on GitHub
@@ -122,7 +122,7 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 26
@@ -130,7 +130,7 @@ 

serialize_broadcasting([ channel_name, model ]) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html b/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html index b0b642fa7d..1ef18852c8 100644 --- a/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html +++ b/src/classes/ActionCable/Channel/Callbacks/ClassMethods.html @@ -102,15 +102,15 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/channel/callbacks.rb, line 37
-        def after_subscribe(*methods, &block)
-          set_callback(:subscribe, :after, *methods, &block)
+        def after_subscribe(*methods, &block)
+          set_callback(:subscribe, :after, *methods, &block)
         end
- See on GitHub + 🔎 See on GitHub
@@ -141,15 +141,15 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/channel/callbacks.rb, line 46
-        def after_unsubscribe(*methods, &block)
-          set_callback(:unsubscribe, :after, *methods, &block)
+        def after_unsubscribe(*methods, &block)
+          set_callback(:unsubscribe, :after, *methods, &block)
         end
- See on GitHub + 🔎 See on GitHub
@@ -176,15 +176,15 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/channel/callbacks.rb, line 33
-        def before_subscribe(*methods, &block)
-          set_callback(:subscribe, :before, *methods, &block)
+        def before_subscribe(*methods, &block)
+          set_callback(:subscribe, :before, *methods, &block)
         end
- See on GitHub + 🔎 See on GitHub
@@ -211,15 +211,15 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/channel/callbacks.rb, line 42
-        def before_unsubscribe(*methods, &block)
-          set_callback(:unsubscribe, :before, *methods, &block)
+        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 04b60309b3..b755f8750f 100644 --- a/src/classes/ActionCable/Channel/ChannelStub.html +++ b/src/classes/ActionCable/Channel/ChannelStub.html @@ -110,7 +110,7 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/channel/test_case.rb, line 24
@@ -118,7 +118,7 @@ 

subscription_confirmation_sent? end

- See on GitHub + 🔎 See on GitHub
@@ -145,7 +145,7 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/channel/test_case.rb, line 28
@@ -153,7 +153,7 @@ 

subscription_rejected? end

- See on GitHub + 🔎 See on GitHub
@@ -184,13 +184,13 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/channel/test_case.rb, line 45
       def start_periodic_timers; end
- See on GitHub + 🔎 See on GitHub
@@ -217,7 +217,7 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/channel/test_case.rb, line 36
@@ -225,7 +225,7 @@ 

@_streams = [] end

- See on GitHub + 🔎 See on GitHub
@@ -277,15 +277,15 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/channel/test_case.rb, line 32
       def stream_from(broadcasting, *)
-        streams << broadcasting
+        streams << broadcasting
       end
- See on GitHub + 🔎 See on GitHub
@@ -312,7 +312,7 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/channel/test_case.rb, line 40
@@ -320,7 +320,7 @@ 

@_streams ||= [] end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/ConnectionStub.html b/src/classes/ActionCable/Channel/ConnectionStub.html index 886c2c125c..183e18e756 100644 --- a/src/classes/ActionCable/Channel/ConnectionStub.html +++ b/src/classes/ActionCable/Channel/ConnectionStub.html @@ -137,7 +137,7 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/channel/test_case.rb, line 54
@@ -154,7 +154,7 @@ 

@logger = ActiveSupport::TaggedLogging.new ActiveSupport::Logger.new(StringIO.new) end

- See on GitHub + 🔎 See on GitHub
@@ -185,7 +185,7 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/channel/test_case.rb, line 71
@@ -193,7 +193,7 @@ 

@connection_identifier ||= connection_gid(identifiers.filter_map { |id| send(id.to_sym) if id }) end

- See on GitHub + 🔎 See on GitHub
@@ -220,15 +220,15 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/channel/test_case.rb, line 67
       def transmit(cable_message)
-        transmissions << cable_message.with_indifferent_access
+        transmissions << cable_message.with_indifferent_access
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Naming/ClassMethods.html b/src/classes/ActionCable/Channel/Naming/ClassMethods.html index d3f62cac4f..a54e7e6618 100644 --- a/src/classes/ActionCable/Channel/Naming/ClassMethods.html +++ b/src/classes/ActionCable/Channel/Naming/ClassMethods.html @@ -83,15 +83,15 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/channel/naming.rb, line 16
         def channel_name
-          @channel_name ||= name.delete_suffix("Channel").gsub("::", ":").underscore
+          @channel_name ||= name.delete_suffix("Channel").gsub("::", ":").underscore
         end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/NonInferrableChannelError.html b/src/classes/ActionCable/Channel/NonInferrableChannelError.html index 221cdd3802..ee02b18833 100644 --- a/src/classes/ActionCable/Channel/NonInferrableChannelError.html +++ b/src/classes/ActionCable/Channel/NonInferrableChannelError.html @@ -83,17 +83,17 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/channel/test_case.rb, line 11
       def initialize(name)
-        super "Unable to determine the channel to test from #{name}. " +
-          "You'll need to specify it using `tests YourChannel` in your " +
-          "test case definition."
+        super "Unable to determine the channel to test from #{name}. " +
+          "You'll need to specify it using `tests YourChannel` in your " +
+          "test case definition."
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html b/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html index b92e219d92..6e7ec734c9 100644 --- a/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html +++ b/src/classes/ActionCable/Channel/PeriodicTimers/ClassMethods.html @@ -87,34 +87,34 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/channel/periodic_timers.rb, line 31
-        def periodically(callback_or_method_name = nil, every:, &block)
+        def periodically(callback_or_method_name = nil, every:, &block)
           callback =
             if block_given?
-              raise ArgumentError, "Pass a block or provide a callback arg, not both" if callback_or_method_name
+              raise ArgumentError, "Pass a block or provide a callback arg, not both" if callback_or_method_name
               block
             else
               case callback_or_method_name
               when Proc
                 callback_or_method_name
               when Symbol
-                -> { __send__ callback_or_method_name }
+                -> { __send__ callback_or_method_name }
               else
-                raise ArgumentError, "Expected a Symbol method name or a Proc, got #{callback_or_method_name.inspect}"
+                raise ArgumentError, "Expected a Symbol method name or a Proc, got #{callback_or_method_name.inspect}"
               end
             end
 
-          unless every.kind_of?(Numeric) && every > 0
-            raise ArgumentError, "Expected every: to be a positive number of seconds, got #{every.inspect}"
+          unless every.kind_of?(Numeric) && every > 0
+            raise ArgumentError, "Expected every: to be a positive number of seconds, got #{every.inspect}"
           end
 
           self.periodic_timers += [[ callback, every: every ]]
         end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/Streams.html b/src/classes/ActionCable/Channel/Streams.html index b1a763a317..a37759a2b7 100644 --- a/src/classes/ActionCable/Channel/Streams.html +++ b/src/classes/ActionCable/Channel/Streams.html @@ -163,18 +163,18 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/channel/streams.rb, line 122
       def stop_all_streams
         streams.each do |broadcasting, callback|
           pubsub.unsubscribe broadcasting, callback
-          logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
+          logger.info "#{self.class.name} stopped streaming from #{broadcasting}"
         end.clear
       end
- See on GitHub + 🔎 See on GitHub
@@ -201,7 +201,7 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/channel/streams.rb, line 117
@@ -209,7 +209,7 @@ 

stop_stream_from(broadcasting_for(model)) end

- See on GitHub + 🔎 See on GitHub
@@ -236,7 +236,7 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/channel/streams.rb, line 108
@@ -244,11 +244,11 @@ 

callback = streams.delete(broadcasting) if callback pubsub.unsubscribe(broadcasting, callback) - logger.info "#{self.class.name} stopped streaming from #{broadcasting}" + logger.info "#{self.class.name} stopped streaming from #{broadcasting}" end end

- See on GitHub + 🔎 See on GitHub
@@ -277,15 +277,15 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/channel/streams.rb, line 103
-      def stream_for(model, callback = nil, coder: nil, &block)
+      def stream_for(model, callback = nil, coder: nil, &block)
         stream_from(broadcasting_for(model), callback || block, coder: coder)
       end
- See on GitHub + 🔎 See on GitHub
@@ -312,14 +312,14 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/channel/streams.rb, line 78
-      def stream_from(broadcasting, callback = nil, coder: nil, &block)
+      def stream_from(broadcasting, callback = nil, coder: nil, &block)
         broadcasting = String(broadcasting)
 
-        # Don't send the confirmation until pubsub#subscribe is successful
+        # Don't send the confirmation until pubsub#subscribe is successful
         defer_subscription_confirmation!
 
         # Build a stream handler by wrapping the user-provided callback with
@@ -330,12 +330,12 @@ 

connection.server.event_loop.post do pubsub.subscribe(broadcasting, handler, lambda do ensure_confirmation_sent - logger.info "#{self.class.name} is streaming from #{broadcasting}" + logger.info "#{self.class.name} is streaming from #{broadcasting}" end) end end

- See on GitHub + 🔎 See on GitHub
@@ -362,7 +362,7 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/channel/streams.rb, line 131
@@ -374,7 +374,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior.html b/src/classes/ActionCable/Channel/TestCase/Behavior.html index 388b2b2da8..b8f7230dac 100644 --- a/src/classes/ActionCable/Channel/TestCase/Behavior.html +++ b/src/classes/ActionCable/Channel/TestCase/Behavior.html @@ -130,11 +130,6 @@

Constants

"test_stub" - -   - - - @@ -189,7 +184,7 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/channel/test_case.rb, line 278
@@ -197,7 +192,7 @@ 

super(broadcasting_for(stream_or_object), *args) end

- See on GitHub + 🔎 See on GitHub
@@ -224,7 +219,7 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/channel/test_case.rb, line 274
@@ -232,7 +227,7 @@ 

super(broadcasting_for(stream_or_object), *args) end

- See on GitHub + 🔎 See on GitHub
@@ -265,15 +260,15 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/channel/test_case.rb, line 300
         def assert_has_stream(stream)
-          assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
+          assert subscription.streams.include?(stream), "Stream #{stream} has not been started"
         end
- See on GitHub + 🔎 See on GitHub
@@ -306,7 +301,7 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/channel/test_case.rb, line 311
@@ -314,7 +309,7 @@ 

assert_has_stream(broadcasting_for(object)) end

- See on GitHub + 🔎 See on GitHub
@@ -347,15 +342,15 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/channel/test_case.rb, line 289
         def assert_no_streams
-          assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
+          assert subscription.streams.empty?, "No streams started was expected, but #{subscription.streams.count} found"
         end
- See on GitHub + 🔎 See on GitHub
@@ -384,16 +379,16 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/channel/test_case.rb, line 261
         def perform(action, data = {})
           check_subscribed!
-          subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
+          subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
         end
- See on GitHub + 🔎 See on GitHub
@@ -427,7 +422,7 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/channel/test_case.rb, line 239
@@ -435,7 +430,7 @@ 

@connection = ConnectionStub.new(identifiers) end

- See on GitHub + 🔎 See on GitHub
@@ -462,7 +457,7 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/channel/test_case.rb, line 244
@@ -474,7 +469,7 @@ 

@subscription end

- See on GitHub + 🔎 See on GitHub
@@ -501,16 +496,16 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/channel/test_case.rb, line 267
         def transmissions
           # Return only directly sent message (via #transmit)
-          connection.transmissions.filter_map { |data| data["message"] }
+          connection.transmissions.filter_map { |data| data["message"] }
         end
- See on GitHub + 🔎 See on GitHub
@@ -537,7 +532,7 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/channel/test_case.rb, line 253
@@ -546,7 +541,7 @@ 

subscription.unsubscribe_from_channel end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html index 08685f49c8..c3644a7257 100644 --- a/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html +++ b/src/classes/ActionCable/Channel/TestCase/Behavior/ClassMethods.html @@ -86,7 +86,7 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/channel/test_case.rb, line 215
@@ -98,7 +98,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -125,19 +125,19 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/channel/test_case.rb, line 223
           def determine_default_channel(name)
             channel = determine_constant_from_test_name(name) do |constant|
-              Class === constant && constant < ActionCable::Channel::Base
+              Class === constant && constant < ActionCable::Channel::Base
             end
             raise NonInferrableChannelError.new(name) if channel.nil?
             channel
           end
- See on GitHub + 🔎 See on GitHub
@@ -164,7 +164,7 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/channel/test_case.rb, line 204
@@ -179,7 +179,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Assertions.html b/src/classes/ActionCable/Connection/Assertions.html index 3056ef685d..979156a3dc 100644 --- a/src/classes/ActionCable/Connection/Assertions.html +++ b/src/classes/ActionCable/Connection/Assertions.html @@ -82,15 +82,15 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/connection/test_case.rb, line 25
-      def assert_reject_connection(&block)
-        assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
+      def assert_reject_connection(&block)
+        assert_raises(Authorization::UnauthorizedError, "Expected to reject connection but no rejection was made", &block)
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Authorization.html b/src/classes/ActionCable/Connection/Authorization.html index 464eb92691..d3cebd019e 100644 --- a/src/classes/ActionCable/Connection/Authorization.html +++ b/src/classes/ActionCable/Connection/Authorization.html @@ -93,16 +93,16 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/connection/authorization.rb, line 9
       def reject_unauthorized_connection
-        logger.error "An unauthorized connection attempt was rejected"
+        logger.error "An unauthorized connection attempt was rejected"
         raise UnauthorizedError
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Base.html b/src/classes/ActionCable/Connection/Base.html index be29a2ae3b..19ffcaf9f7 100644 --- a/src/classes/ActionCable/Connection/Base.html +++ b/src/classes/ActionCable/Connection/Base.html @@ -251,7 +251,7 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/connection/base.rb, line 58
@@ -269,7 +269,7 @@ 

@started_at = Time.now end

- See on GitHub + 🔎 See on GitHub
@@ -300,7 +300,7 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/connection/base.rb, line 134
@@ -308,7 +308,7 @@ 

transmit type: ActionCable::INTERNAL[:message_types][:ping], message: Time.now.to_i end

- See on GitHub + 🔎 See on GitHub
@@ -335,7 +335,7 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/connection/base.rb, line 109
@@ -348,7 +348,7 @@ 

websocket.close end

- See on GitHub + 🔎 See on GitHub
@@ -375,7 +375,7 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/connection/base.rb, line 98
@@ -385,7 +385,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -412,7 +412,7 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/connection/base.rb, line 119
@@ -420,7 +420,7 @@ 

worker_pool.async_invoke(self, method, *arguments) end

- See on GitHub + 🔎 See on GitHub
@@ -447,7 +447,7 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/connection/base.rb, line 125
@@ -456,11 +456,11 @@ 

identifier: connection_identifier, started_at: @started_at, subscriptions: subscriptions.identifiers, - request_id: @env["action_dispatch.request_id"] + request_id: @env["action_dispatch.request_id"] } end

- See on GitHub + 🔎 See on GitHub
@@ -490,7 +490,7 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/connection/base.rb, line 172
@@ -498,7 +498,7 @@ 

request.cookie_jar end

- See on GitHub + 🔎 See on GitHub
@@ -525,18 +525,18 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/connection/base.rb, line 164
         def request # :doc:
           @request ||= begin
-            environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
+            environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
             ActionDispatch::Request.new(environment || env)
           end
         end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html index b25422d587..1f42774dce 100644 --- a/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html +++ b/src/classes/ActionCable/Connection/Callbacks/ClassMethods.html @@ -86,15 +86,15 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/connection/callbacks.rb, line 41
-        def after_command(*methods, &block)
-          set_callback(:command, :after, *methods, &block)
+        def after_command(*methods, &block)
+          set_callback(:command, :after, *methods, &block)
         end
- See on GitHub + 🔎 See on GitHub
@@ -121,15 +121,15 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/connection/callbacks.rb, line 45
-        def around_command(*methods, &block)
-          set_callback(:command, :around, *methods, &block)
+        def around_command(*methods, &block)
+          set_callback(:command, :around, *methods, &block)
         end
- See on GitHub + 🔎 See on GitHub
@@ -156,15 +156,15 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/connection/callbacks.rb, line 37
-        def before_command(*methods, &block)
-          set_callback(:command, :before, *methods, &block)
+        def before_command(*methods, &block)
+          set_callback(:command, :before, *methods, &block)
         end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification.html b/src/classes/ActionCable/Connection/Identification.html index 38c4891b46..7c5ce5959d 100644 --- a/src/classes/ActionCable/Connection/Identification.html +++ b/src/classes/ActionCable/Connection/Identification.html @@ -91,19 +91,19 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/connection/identification.rb, line 27
       def connection_identifier
         unless defined? @connection_identifier
-          @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
+          @connection_identifier = connection_gid identifiers.filter_map { |id| instance_variable_get("@#{id}") }
         end
 
         @connection_identifier
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/Identification/ClassMethods.html b/src/classes/ActionCable/Connection/Identification/ClassMethods.html index 47d159ad88..89d0a7b70d 100644 --- a/src/classes/ActionCable/Connection/Identification/ClassMethods.html +++ b/src/classes/ActionCable/Connection/Identification/ClassMethods.html @@ -80,7 +80,7 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/connection/identification.rb, line 20
@@ -89,7 +89,7 @@ 

self.identifiers += identifiers end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html index 1f5bb35cf0..1bbc4bb99d 100644 --- a/src/classes/ActionCable/Connection/NonInferrableConnectionError.html +++ b/src/classes/ActionCable/Connection/NonInferrableConnectionError.html @@ -83,17 +83,17 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/connection/test_case.rb, line 13
       def initialize(name)
-        super "Unable to determine the connection to test from #{name}. " +
-          "You'll need to specify it using `tests YourConnection` in your " +
-          "test case definition."
+        super "Unable to determine the connection to test from #{name}. " +
+          "You'll need to specify it using `tests YourConnection` in your " +
+          "test case definition."
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/StreamEventLoop.html b/src/classes/ActionCable/Connection/StreamEventLoop.html index 978333a9c5..fa529c3654 100644 --- a/src/classes/ActionCable/Connection/StreamEventLoop.html +++ b/src/classes/ActionCable/Connection/StreamEventLoop.html @@ -107,7 +107,7 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 8
@@ -120,7 +120,7 @@ 

@spawn_mutex = Mutex.new end

- See on GitHub + 🔎 See on GitHub
@@ -151,19 +151,19 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 28
       def attach(io, stream)
-        @todo << lambda do
+        @todo << lambda do
           @map[io] = @nio.register(io, :r)
           @map[io].value = stream
         end
         wakeup
       end
- See on GitHub + 🔎 See on GitHub
@@ -190,12 +190,12 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 36
       def detach(io, stream)
-        @todo << lambda do
+        @todo << lambda do
           @nio.deregister io
           @map.delete io
           io.close
@@ -203,7 +203,7 @@ 

wakeup end

- See on GitHub + 🔎 See on GitHub
@@ -230,18 +230,18 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 21
-      def post(task = nil, &block)
+      def post(task = nil, &block)
         task ||= block
 
         spawn
-        @executor << task
+        @executor << task
       end
- See on GitHub + 🔎 See on GitHub
@@ -268,7 +268,7 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 54
@@ -277,7 +277,7 @@ 

wakeup if @nio end

- See on GitHub + 🔎 See on GitHub
@@ -304,15 +304,15 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 17
-      def timer(interval, &block)
-        Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
+      def timer(interval, &block)
+        Concurrent::TimerTask.new(execution_interval: interval, &block).tap(&:execute)
       end
- See on GitHub + 🔎 See on GitHub
@@ -339,12 +339,12 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/connection/stream_event_loop.rb, line 45
       def writes_pending(io)
-        @todo << lambda do
+        @todo << lambda do
           if monitor = @map[io]
             monitor.interests = :rw
           end
@@ -352,7 +352,7 @@ 

wakeup end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html index 0dd5fea242..3a15510aaa 100644 --- a/src/classes/ActionCable/Connection/TaggedLoggerProxy.html +++ b/src/classes/ActionCable/Connection/TaggedLoggerProxy.html @@ -117,7 +117,7 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 13
@@ -126,7 +126,7 @@ 

@tags = tags.flatten end

- See on GitHub + 🔎 See on GitHub
@@ -157,7 +157,7 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 18
@@ -166,7 +166,7 @@ 

@tags = @tags.uniq end

- See on GitHub + 🔎 See on GitHub
@@ -193,20 +193,20 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 23
-      def tag(logger, &block)
+      def tag(logger, &block)
         if logger.respond_to?(:tagged)
           current_tags = tags - logger.formatter.current_tags
-          logger.tagged(*current_tags, &block)
+          logger.tagged(*current_tags, &block)
         else
           yield
         end
       end
- See on GitHub + 🔎 See on GitHub
@@ -236,15 +236,15 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 39
-        def log(type, message, &block) # :doc:
-          tag(@logger) { @logger.send type, message, &block }
+        def log(type, message, &block) # :doc:
+          tag(@logger) { @logger.send type, message, &block }
         end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior.html b/src/classes/ActionCable/Connection/TestCase/Behavior.html index f13c066618..d9bc00277e 100644 --- a/src/classes/ActionCable/Connection/TestCase/Behavior.html +++ b/src/classes/ActionCable/Connection/TestCase/Behavior.html @@ -102,11 +102,6 @@

Constants

"/cable" - -   - - - @@ -164,7 +159,7 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/connection/test_case.rb, line 185
@@ -180,7 +175,7 @@ 

@connection = connection end

- See on GitHub + 🔎 See on GitHub
@@ -207,7 +202,7 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/connection/test_case.rb, line 205
@@ -215,7 +210,7 @@ 

@cookie_jar ||= TestCookieJar.new end

- See on GitHub + 🔎 See on GitHub
@@ -242,18 +237,18 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/connection/test_case.rb, line 198
         def disconnect
-          raise "Must be connected!" if connection.nil?
+          raise "Must be connected!" if connection.nil?
 
           connection.disconnect if connection.respond_to?(:disconnect)
           @connection = nil
         end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html index 641ba2bcaa..f422ed0147 100644 --- a/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html +++ b/src/classes/ActionCable/Connection/TestCase/Behavior/ClassMethods.html @@ -86,7 +86,7 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/connection/test_case.rb, line 160
@@ -98,7 +98,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -125,19 +125,19 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/connection/test_case.rb, line 168
           def determine_default_connection(name)
             connection = determine_constant_from_test_name(name) do |constant|
-              Class === constant && constant < ActionCable::Connection::Base
+              Class === constant && constant < ActionCable::Connection::Base
             end
             raise NonInferrableConnectionError.new(name) if connection.nil?
             connection
           end
- See on GitHub + 🔎 See on GitHub
@@ -164,7 +164,7 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/connection/test_case.rb, line 149
@@ -179,7 +179,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestConnection.html b/src/classes/ActionCable/Connection/TestConnection.html index f39b2ee4ea..b1eb22392e 100644 --- a/src/classes/ActionCable/Connection/TestConnection.html +++ b/src/classes/ActionCable/Connection/TestConnection.html @@ -99,7 +99,7 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/connection/test_case.rb, line 50
@@ -111,7 +111,7 @@ 

@env = request.env end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Connection/TestCookieJar.html b/src/classes/ActionCable/Connection/TestCookieJar.html index 717a27151a..db0263f4ec 100644 --- a/src/classes/ActionCable/Connection/TestCookieJar.html +++ b/src/classes/ActionCable/Connection/TestCookieJar.html @@ -94,7 +94,7 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/connection/test_case.rb, line 38
@@ -102,7 +102,7 @@ 

self[:encrypted] ||= {}.with_indifferent_access end

- See on GitHub + 🔎 See on GitHub
@@ -129,7 +129,7 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/connection/test_case.rb, line 34
@@ -137,7 +137,7 @@ 

self[:signed] ||= {}.with_indifferent_access end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Helpers/ActionCableHelper.html b/src/classes/ActionCable/Helpers/ActionCableHelper.html index a125328491..95294fe449 100644 --- a/src/classes/ActionCable/Helpers/ActionCableHelper.html +++ b/src/classes/ActionCable/Helpers/ActionCableHelper.html @@ -103,19 +103,19 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/helpers/action_cable_helper.rb, line 34
       def action_cable_meta_tag
-        tag "meta", name: "action-cable-url", content: (
+        tag "meta", name: "action-cable-url", content: (
           ActionCable.server.config.url ||
           ActionCable.server.config.mount_path ||
-          raise("No Action Cable URL configured -- please configure this at config.action_cable.url")
+          raise("No Action Cable URL configured -- please configure this at config.action_cable.url")
         )
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionCable/RemoteConnections.html b/src/classes/ActionCable/RemoteConnections.html index 71d04a2cc3..6e1158827d 100644 --- a/src/classes/ActionCable/RemoteConnections.html +++ b/src/classes/ActionCable/RemoteConnections.html @@ -139,7 +139,7 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/remote_connections.rb, line 32
@@ -147,7 +147,7 @@ 

@server = server end

- See on GitHub + 🔎 See on GitHub
@@ -178,7 +178,7 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/remote_connections.rb, line 36
@@ -186,7 +186,7 @@ 

RemoteConnection.new(server, identifier) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionCable/RemoteConnections/RemoteConnection.html b/src/classes/ActionCable/RemoteConnections/RemoteConnection.html index 56ccb21820..e670ac538e 100644 --- a/src/classes/ActionCable/RemoteConnections/RemoteConnection.html +++ b/src/classes/ActionCable/RemoteConnections/RemoteConnection.html @@ -122,7 +122,7 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/remote_connections.rb, line 50
@@ -131,7 +131,7 @@ 

set_identifier_instance_vars(ids) end

- See on GitHub + 🔎 See on GitHub
@@ -162,15 +162,15 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/remote_connections.rb, line 56
         def disconnect(reconnect: true)
-          server.broadcast internal_channel, { type: "disconnect", reconnect: reconnect }
+          server.broadcast internal_channel, { type: "disconnect", reconnect: reconnect }
         end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Server/Base.html b/src/classes/ActionCable/Server/Base.html index 90dfe424a3..ed741f97f1 100644 --- a/src/classes/ActionCable/Server/Base.html +++ b/src/classes/ActionCable/Server/Base.html @@ -165,13 +165,13 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/server/base.rb, line 21
       def self.logger; config.logger; end
- See on GitHub + 🔎 See on GitHub
@@ -198,7 +198,7 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/server/base.rb, line 26
@@ -208,7 +208,7 @@ 

@remote_connections = @event_loop = @worker_pool = @pubsub = nil end

- See on GitHub + 🔎 See on GitHub
@@ -239,17 +239,17 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/server/base.rb, line 33
       def call(env)
-        return config.health_check_application.call(env) if env["PATH_INFO"] == config.health_check_path
+        return config.health_check_application.call(env) if env["PATH_INFO"] == config.health_check_path
         setup_heartbeat_timer
         config.connection_class.call.new(self, env).process
       end
- See on GitHub + 🔎 See on GitHub
@@ -276,7 +276,7 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/server/base.rb, line 90
@@ -284,7 +284,7 @@ 

config.connection_class.call.identifiers end

- See on GitHub + 🔎 See on GitHub
@@ -311,7 +311,7 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/server/base.rb, line 40
@@ -319,7 +319,7 @@ 

remote_connections.where(identifiers).disconnect end

- See on GitHub + 🔎 See on GitHub
@@ -346,7 +346,7 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/server/base.rb, line 65
@@ -354,7 +354,7 @@ 

@event_loop || @mutex.synchronize { @event_loop ||= ActionCable::Connection::StreamEventLoop.new } end

- See on GitHub + 🔎 See on GitHub
@@ -381,7 +381,7 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/server/base.rb, line 85
@@ -389,7 +389,7 @@ 

@pubsub || @mutex.synchronize { @pubsub ||= config.pubsub_adapter.new(self) } end

- See on GitHub + 🔎 See on GitHub
@@ -416,7 +416,7 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/server/base.rb, line 61
@@ -424,7 +424,7 @@ 

@remote_connections || @mutex.synchronize { @remote_connections ||= RemoteConnections.new(self) } end

- See on GitHub + 🔎 See on GitHub
@@ -451,7 +451,7 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/server/base.rb, line 44
@@ -471,7 +471,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -502,7 +502,7 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/server/base.rb, line 80
@@ -510,7 +510,7 @@ 

@worker_pool || @mutex.synchronize { @worker_pool ||= ActionCable::Server::Worker.new(max_size: config.worker_pool_size) } end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Server/Broadcasting.html b/src/classes/ActionCable/Server/Broadcasting.html index 50240f14b9..91c40ffadb 100644 --- a/src/classes/ActionCable/Server/Broadcasting.html +++ b/src/classes/ActionCable/Server/Broadcasting.html @@ -119,7 +119,7 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/server/broadcasting.rb, line 26
@@ -127,7 +127,7 @@ 

broadcaster_for(broadcasting, coder: coder).broadcast(message) end

- See on GitHub + 🔎 See on GitHub
@@ -154,7 +154,7 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/server/broadcasting.rb, line 32
@@ -162,7 +162,7 @@ 

Broadcaster.new(self, String(broadcasting), coder: coder) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Server/Broadcasting/Broadcaster.html b/src/classes/ActionCable/Server/Broadcasting/Broadcaster.html index d66affb5f0..cc3a94e770 100644 --- a/src/classes/ActionCable/Server/Broadcasting/Broadcaster.html +++ b/src/classes/ActionCable/Server/Broadcasting/Broadcaster.html @@ -117,7 +117,7 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/server/broadcasting.rb, line 40
@@ -125,7 +125,7 @@ 

@server, @broadcasting, @coder = server, broadcasting, coder end

- See on GitHub + 🔎 See on GitHub
@@ -156,21 +156,21 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/server/broadcasting.rb, line 44
           def broadcast(message)
-            server.logger.debug { "[ActionCable] Broadcasting to #{broadcasting}: #{message.inspect.truncate(300)}" }
+            server.logger.debug { "[ActionCable] Broadcasting to #{broadcasting}: #{message.inspect.truncate(300)}" }
 
             payload = { broadcasting: broadcasting, message: message, coder: coder }
-            ActiveSupport::Notifications.instrument("broadcast.action_cable", payload) do
+            ActiveSupport::Notifications.instrument("broadcast.action_cable", payload) do
               encoded = coder ? coder.encode(message) : message
               server.pubsub.broadcast broadcasting, encoded
             end
           end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Server/Configuration.html b/src/classes/ActionCable/Server/Configuration.html index d2c592d604..11216ad4ba 100644 --- a/src/classes/ActionCable/Server/Configuration.html +++ b/src/classes/ActionCable/Server/Configuration.html @@ -213,26 +213,26 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/server/configuration.rb, line 19
       def initialize
         @log_tags = []
 
-        @connection_class = -> { ActionCable::Connection::Base }
+        @connection_class = -> { ActionCable::Connection::Base }
         @worker_pool_size = 4
 
         @disable_request_forgery_protection = false
         @allow_same_origin_as_host = true
         @filter_parameters = []
 
-        @health_check_application = ->(env) {
-          [200, { Rack::CONTENT_TYPE => "text/html", "date" => Time.now.httpdate }, []]
+        @health_check_application = ->(env) {
+          [200, { Rack::CONTENT_TYPE => "text/html", "date" => Time.now.httpdate }, []]
         }
       end
- See on GitHub + 🔎 See on GitHub
@@ -263,40 +263,40 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/server/configuration.rb, line 37
       def pubsub_adapter
-        adapter = (cable.fetch("adapter") { "redis" })
+        adapter = (cable.fetch("adapter") { "redis" })
 
         # Require the adapter itself and give useful feedback about
         #   1. Missing adapter gems and
-        #   2. Adapter gems' missing dependencies.
-        path_to_adapter = "action_cable/subscription_adapter/#{adapter}"
+        #   2. Adapter gems' missing dependencies.
+        path_to_adapter = "action_cable/subscription_adapter/#{adapter}"
         begin
           require path_to_adapter
-        rescue LoadError => e
-          # We couldn't require the adapter itself. Raise an exception that
+        rescue LoadError => e
+          # We couldn't require the adapter itself. Raise an exception that
           # points out config typos and missing gems.
           if e.path == path_to_adapter
-            # We can assume that a non-builtin adapter was specified, so it's
+            # We can assume that a non-builtin adapter was specified, so it's
             # either misspelled or missing from Gemfile.
-            raise e.class, "Could not load the '#{adapter}' Action Cable pubsub adapter. Ensure that the adapter is spelled correctly in config/cable.yml and that you've added the necessary adapter gem to your Gemfile.", e.backtrace
+            raise e.class, "Could not load the '#{adapter}' Action Cable pubsub adapter. Ensure that the adapter is spelled correctly in config/cable.yml and that you've added the necessary adapter gem to your Gemfile.", e.backtrace
 
           # Bubbled up from the adapter require. Prefix the exception message
           # with some guidance about how to address it and reraise.
           else
-            raise e.class, "Error loading the '#{adapter}' Action Cable pubsub adapter. Missing a gem it depends on? #{e.message}", e.backtrace
+            raise e.class, "Error loading the '#{adapter}' Action Cable pubsub adapter. Missing a gem it depends on? #{e.message}", e.backtrace
           end
         end
 
         adapter = adapter.camelize
-        adapter = "PostgreSQL" if adapter == "Postgresql"
-        "ActionCable::SubscriptionAdapter::#{adapter}".constantize
+        adapter = "PostgreSQL" if adapter == "Postgresql"
+        "ActionCable::SubscriptionAdapter::#{adapter}".constantize
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionCable/Server/Worker/ActiveRecordConnectionManagement.html b/src/classes/ActionCable/Server/Worker/ActiveRecordConnectionManagement.html index bb35fdeb36..315bf6e3e5 100644 --- a/src/classes/ActionCable/Server/Worker/ActiveRecordConnectionManagement.html +++ b/src/classes/ActionCable/Server/Worker/ActiveRecordConnectionManagement.html @@ -78,15 +78,15 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/server/worker/active_record_connection_management.rb, line 15
-        def with_database_connections(&block)
-          connection.logger.tag(ActiveRecord::Base.logger, &block)
+        def with_database_connections(&block)
+          connection.logger.tag(ActiveRecord::Base.logger, &block)
         end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionCable/SubscriptionAdapter/Async/AsyncSubscriberMap.html b/src/classes/ActionCable/SubscriptionAdapter/Async/AsyncSubscriberMap.html index 88cc867462..c6056a2b2d 100644 --- a/src/classes/ActionCable/SubscriptionAdapter/Async/AsyncSubscriberMap.html +++ b/src/classes/ActionCable/SubscriptionAdapter/Async/AsyncSubscriberMap.html @@ -91,7 +91,7 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/subscription_adapter/async.rb, line 12
@@ -100,7 +100,7 @@ 

super() end

- See on GitHub + 🔎 See on GitHub
@@ -131,7 +131,7 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/subscription_adapter/async.rb, line 17
@@ -139,7 +139,7 @@ 

@event_loop.post { super } end

- See on GitHub + 🔎 See on GitHub
@@ -166,7 +166,7 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/subscription_adapter/async.rb, line 21
@@ -174,7 +174,7 @@ 

@event_loop.post { super } end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionCable/SubscriptionAdapter/Base.html b/src/classes/ActionCable/SubscriptionAdapter/Base.html index 316831a14d..6cabb80c8c 100644 --- a/src/classes/ActionCable/SubscriptionAdapter/Base.html +++ b/src/classes/ActionCable/SubscriptionAdapter/Base.html @@ -125,7 +125,7 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/subscription_adapter/base.rb, line 8
@@ -134,7 +134,7 @@ 

@logger = @server.logger end

- See on GitHub + 🔎 See on GitHub
@@ -165,7 +165,7 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/subscription_adapter/base.rb, line 13
@@ -173,7 +173,7 @@ 

raise NotImplementedError end

- See on GitHub + 🔎 See on GitHub
@@ -200,15 +200,15 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/subscription_adapter/base.rb, line 29
       def identifier
-        @server.config.cable[:id] ||= "ActionCable-PID-#{$$}"
+        @server.config.cable[:id] ||= "ActionCable-PID-#{$$}"
       end
- See on GitHub + 🔎 See on GitHub
@@ -235,7 +235,7 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/subscription_adapter/base.rb, line 25
@@ -243,7 +243,7 @@ 

raise NotImplementedError end

- See on GitHub + 🔎 See on GitHub
@@ -270,7 +270,7 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/subscription_adapter/base.rb, line 17
@@ -278,7 +278,7 @@ 

raise NotImplementedError end

- See on GitHub + 🔎 See on GitHub
@@ -305,7 +305,7 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/subscription_adapter/base.rb, line 21
@@ -313,7 +313,7 @@ 

raise NotImplementedError end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionCable/SubscriptionAdapter/PostgreSQL/Listener.html b/src/classes/ActionCable/SubscriptionAdapter/PostgreSQL/Listener.html index 0dd34c9cde..c38cbde390 100644 --- a/src/classes/ActionCable/SubscriptionAdapter/PostgreSQL/Listener.html +++ b/src/classes/ActionCable/SubscriptionAdapter/PostgreSQL/Listener.html @@ -103,7 +103,7 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/subscription_adapter/postgresql.rb, line 74
@@ -120,7 +120,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -151,7 +151,7 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/subscription_adapter/postgresql.rb, line 118
@@ -159,7 +159,7 @@ 

@queue.push([:listen, channel, on_success]) end

- See on GitHub + 🔎 See on GitHub
@@ -186,7 +186,7 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/subscription_adapter/postgresql.rb, line 126
@@ -194,7 +194,7 @@ 

@event_loop.post { super } end

- See on GitHub + 🔎 See on GitHub
@@ -221,7 +221,7 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/subscription_adapter/postgresql.rb, line 87
@@ -234,10 +234,10 @@ 

case action when :listen - pg_conn.exec("LISTEN #{pg_conn.escape_identifier channel}") - @event_loop.post(&callback) if callback + pg_conn.exec("LISTEN #{pg_conn.escape_identifier channel}") + @event_loop.post(&callback) if callback when :unlisten - pg_conn.exec("UNLISTEN #{pg_conn.escape_identifier channel}") + pg_conn.exec("UNLISTEN #{pg_conn.escape_identifier channel}") when :shutdown throw :shutdown end @@ -251,7 +251,7 @@

end end

- See on GitHub + 🔎 See on GitHub
@@ -278,7 +278,7 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/subscription_adapter/postgresql.rb, line 122
@@ -286,7 +286,7 @@ 

@queue.push([:unlisten, channel]) end

- See on GitHub + 🔎 See on GitHub
@@ -313,7 +313,7 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/subscription_adapter/postgresql.rb, line 113
@@ -322,7 +322,7 @@ 

Thread.pass while @thread.alive? end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionCable/SubscriptionAdapter/Redis/Listener.html b/src/classes/ActionCable/SubscriptionAdapter/Redis/Listener.html index f9303e5137..b659a3b1e6 100644 --- a/src/classes/ActionCable/SubscriptionAdapter/Redis/Listener.html +++ b/src/classes/ActionCable/SubscriptionAdapter/Redis/Listener.html @@ -98,11 +98,6 @@

Constants

::Redis::BaseConnectionError - -   - - - @@ -134,7 +129,7 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/subscription_adapter/redis.rb, line 65
@@ -159,7 +154,7 @@ 

@thread = nil end

- See on GitHub + 🔎 See on GitHub
@@ -190,19 +185,19 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/subscription_adapter/redis.rb, line 138
           def add_channel(channel, on_success)
             @subscription_lock.synchronize do
               ensure_listener_running
-              @subscribe_callbacks[channel] << on_success
+              @subscribe_callbacks[channel] << on_success
               when_connected { @subscribed_client.subscribe(channel) }
             end
           end
- See on GitHub + 🔎 See on GitHub
@@ -229,7 +224,7 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/subscription_adapter/redis.rb, line 152
@@ -237,7 +232,7 @@ 

@event_loop.post { super } end

- See on GitHub + 🔎 See on GitHub
@@ -264,7 +259,7 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/subscription_adapter/redis.rb, line 86
@@ -272,7 +267,7 @@ 

conn.without_reconnect do original_client = extract_subscribed_client(conn) - conn.subscribe("_action_cable_internal") do |on| + conn.subscribe("_action_cable_internal") do |on| on.subscribe do |chan, count| @subscription_lock.synchronize do if count == 1 @@ -286,7 +281,7 @@

if callbacks = @subscribe_callbacks[chan] next_callback = callbacks.shift - @event_loop.post(&next_callback) if next_callback + @event_loop.post(&next_callback) if next_callback @subscribe_callbacks.delete(chan) if callbacks.empty? end end @@ -307,7 +302,7 @@

end end

- See on GitHub + 🔎 See on GitHub
@@ -334,7 +329,7 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/subscription_adapter/redis.rb, line 146
@@ -344,7 +339,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -371,7 +366,7 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/subscription_adapter/redis.rb, line 125
@@ -388,7 +383,7 @@ 

Thread.pass while @thread.alive? end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionCable/SubscriptionAdapter/Redis/Listener/SubscribedClient.html b/src/classes/ActionCable/SubscriptionAdapter/Redis/Listener/SubscribedClient.html index 47ef3f5373..bc17cb4847 100644 --- a/src/classes/ActionCable/SubscriptionAdapter/Redis/Listener/SubscribedClient.html +++ b/src/classes/ActionCable/SubscriptionAdapter/Redis/Listener/SubscribedClient.html @@ -91,7 +91,7 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/subscription_adapter/redis.rb, line 213
@@ -99,7 +99,7 @@ 

@raw_client = raw_client end

- See on GitHub + 🔎 See on GitHub
@@ -130,15 +130,15 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/subscription_adapter/redis.rb, line 217
                 def subscribe(*channel)
-                  send_command("subscribe", *channel)
+                  send_command("subscribe", *channel)
                 end
- See on GitHub + 🔎 See on GitHub
@@ -165,15 +165,15 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/subscription_adapter/redis.rb, line 221
                 def unsubscribe(*channel)
-                  send_command("unsubscribe", *channel)
+                  send_command("unsubscribe", *channel)
                 end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionCable/SubscriptionAdapter/SubscriberMap.html b/src/classes/ActionCable/SubscriptionAdapter/SubscriberMap.html index de1ae5cbe2..aca6c89f15 100644 --- a/src/classes/ActionCable/SubscriptionAdapter/SubscriberMap.html +++ b/src/classes/ActionCable/SubscriptionAdapter/SubscriberMap.html @@ -107,7 +107,7 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/subscription_adapter/subscriber_map.rb, line 6
@@ -116,7 +116,7 @@ 

@sync = Mutex.new end

- See on GitHub + 🔎 See on GitHub
@@ -147,7 +147,7 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/subscription_adapter/subscriber_map.rb, line 47
@@ -155,7 +155,7 @@ 

on_success.call if on_success end

- See on GitHub + 🔎 See on GitHub
@@ -182,7 +182,7 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/subscription_adapter/subscriber_map.rb, line 11
@@ -190,7 +190,7 @@ 

@sync.synchronize do new_channel = !@subscribers.key?(channel) - @subscribers[channel] << subscriber + @subscribers[channel] << subscriber if new_channel add_channel channel, on_success @@ -200,7 +200,7 @@

end end

- See on GitHub + 🔎 See on GitHub
@@ -227,7 +227,7 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/subscription_adapter/subscriber_map.rb, line 36
@@ -242,7 +242,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -269,7 +269,7 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/subscription_adapter/subscriber_map.rb, line 54
@@ -277,7 +277,7 @@ 

callback.call message end

- See on GitHub + 🔎 See on GitHub
@@ -304,14 +304,14 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/subscription_adapter/subscriber_map.rb, line 51
       def remove_channel(channel)
       end
- See on GitHub + 🔎 See on GitHub
@@ -338,7 +338,7 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/subscription_adapter/subscriber_map.rb, line 25
@@ -353,7 +353,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionCable/SubscriptionAdapter/Test.html b/src/classes/ActionCable/SubscriptionAdapter/Test.html index 33a3dbbd1a..1a58a661d0 100644 --- a/src/classes/ActionCable/SubscriptionAdapter/Test.html +++ b/src/classes/ActionCable/SubscriptionAdapter/Test.html @@ -108,16 +108,16 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/subscription_adapter/test.rb, line 15
       def broadcast(channel, payload)
-        broadcasts(channel) << payload
+        broadcasts(channel) << payload
         super
       end
- See on GitHub + 🔎 See on GitHub
@@ -144,7 +144,7 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/subscription_adapter/test.rb, line 20
@@ -152,7 +152,7 @@ 

channels_data[channel] ||= [] end

- See on GitHub + 🔎 See on GitHub
@@ -179,7 +179,7 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/subscription_adapter/test.rb, line 28
@@ -187,7 +187,7 @@ 

@channels_data = nil end

- See on GitHub + 🔎 See on GitHub
@@ -214,7 +214,7 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/subscription_adapter/test.rb, line 24
@@ -222,7 +222,7 @@ 

channels_data[channel] = [] end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionCable/TestHelper.html b/src/classes/ActionCable/TestHelper.html index 18c0296e6b..39b816f606 100644 --- a/src/classes/ActionCable/TestHelper.html +++ b/src/classes/ActionCable/TestHelper.html @@ -111,38 +111,38 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/test_helper.rb, line 116
-    def assert_broadcast_on(stream, data, &block)
+    def assert_broadcast_on(stream, data, &block)
       # Encode to JSON and back–we want to use this value to compare
       # with decoded JSON.
-      # Comparing JSON strings doesn't work due to the order if the keys.
+      # Comparing JSON strings doesn't work due to the order if the keys.
       serialized_msg =
         ActiveSupport::JSON.decode(ActiveSupport::JSON.encode(data))
 
       new_messages = broadcasts(stream)
       if block_given?
-        new_messages = new_broadcasts_from(new_messages, stream, "assert_broadcast_on", &block)
+        new_messages = new_broadcasts_from(new_messages, stream, "assert_broadcast_on", &block)
       end
 
       message = new_messages.find { |msg| ActiveSupport::JSON.decode(msg) == serialized_msg }
 
-      error_message = "No messages sent with #{data} to #{stream}"
+      error_message = "No messages sent with #{data} to #{stream}"
 
       if new_messages.any?
-        error_message = new_messages.inject("#{error_message}\nMessage(s) found:\n") do |error_message, new_message|
-          error_message + "#{ActiveSupport::JSON.decode(new_message)}\n"
+        error_message = new_messages.inject("#{error_message}\nMessage(s) found:\n") do |error_message, new_message|
+          error_message + "#{ActiveSupport::JSON.decode(new_message)}\n"
         end
       else
-        error_message = "#{error_message}\nNo message found for #{stream}"
+        error_message = "#{error_message}\nNo message found for #{stream}"
       end
 
       assert message, error_message
     end
- See on GitHub + 🔎 See on GitHub
@@ -196,23 +196,23 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/test_helper.rb, line 49
-    def assert_broadcasts(stream, number, &block)
+    def assert_broadcasts(stream, number, &block)
       if block_given?
-        new_messages = new_broadcasts_from(broadcasts(stream), stream, "assert_broadcasts", &block)
+        new_messages = new_broadcasts_from(broadcasts(stream), stream, "assert_broadcasts", &block)
 
         actual_count = new_messages.size
-        assert_equal number, actual_count, "#{number} broadcasts to #{stream} expected, but #{actual_count} were sent"
+        assert_equal number, actual_count, "#{number} broadcasts to #{stream} expected, but #{actual_count} were sent"
       else
         actual_count = broadcasts(stream).size
-        assert_equal number, actual_count, "#{number} broadcasts to #{stream} expected, but #{actual_count} were sent"
+        assert_equal number, actual_count, "#{number} broadcasts to #{stream} expected, but #{actual_count} were sent"
       end
     end
- See on GitHub + 🔎 See on GitHub
@@ -260,15 +260,15 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/test_helper.rb, line 81
-    def assert_no_broadcasts(stream, &block)
-      assert_broadcasts stream, 0, &block
+    def assert_no_broadcasts(stream, &block)
+      assert_broadcasts stream, 0, &block
     end
- See on GitHub + 🔎 See on GitHub
@@ -306,15 +306,15 @@

- Source code + 📝 Source code
# File actioncable/lib/action_cable/test_helper.rb, line 97
-    def capture_broadcasts(stream, &block)
-      new_broadcasts_from(broadcasts(stream), stream, "capture_broadcasts", &block).map { |m| ActiveSupport::JSON.decode(m) }
+    def capture_broadcasts(stream, &block)
+      new_broadcasts_from(broadcasts(stream), stream, "capture_broadcasts", &block).map { |m| ActiveSupport::JSON.decode(m) }
     end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionCable/VERSION.html b/src/classes/ActionCable/VERSION.html index a5fb0534ac..856a7a3d74 100644 --- a/src/classes/ActionCable/VERSION.html +++ b/src/classes/ActionCable/VERSION.html @@ -50,11 +50,6 @@

Constants

7 - -   - - - MINOR @@ -62,11 +57,6 @@

Constants

1 - -   - - - PRE @@ -74,11 +64,6 @@

Constants

nil - -   - - - STRING @@ -86,11 +71,6 @@

Constants

[MAJOR, MINOR, TINY, PRE].compact.join(".") - -   - - - TINY @@ -98,11 +78,6 @@

Constants

0 - -   - - - diff --git a/src/classes/ActionController.html b/src/classes/ActionController.html index 4753e45196..6d868f6c19 100644 --- a/src/classes/ActionController.html +++ b/src/classes/ActionController.html @@ -311,15 +311,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/renderers.rb, line 7
-  def self.add_renderer(key, &block)
-    Renderers.add(key, &block)
+  def self.add_renderer(key, &block)
+    Renderers.add(key, &block)
   end
- See on GitHub + 🔎 See on GitHub
@@ -346,7 +346,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/renderers.rb, line 12
@@ -354,7 +354,7 @@ 

Renderers.remove(key) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionController/API.html b/src/classes/ActionController/API.html index c87c72d812..60122bda11 100644 --- a/src/classes/ActionController/API.html +++ b/src/classes/ActionController/API.html @@ -160,11 +160,6 @@

Constants

] - -   - - - @@ -205,7 +200,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/api.rb, line 106
@@ -217,7 +212,7 @@ 

MODULES - modules end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionController/ApiRendering.html b/src/classes/ActionController/ApiRendering.html index ad6953427a..1720290a65 100644 --- a/src/classes/ActionController/ApiRendering.html +++ b/src/classes/ActionController/ApiRendering.html @@ -92,7 +92,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/api/api_rendering.rb, line 11
@@ -101,7 +101,7 @@ 

super end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionController/Base.html b/src/classes/ActionController/Base.html index 1d6b1cc976..60a13ac82f 100644 --- a/src/classes/ActionController/Base.html +++ b/src/classes/ActionController/Base.html @@ -259,11 +259,6 @@

Constants

] - -   - - - PROTECTED_IVARS @@ -319,7 +314,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/base.rb, line 184
@@ -331,7 +326,7 @@ 

MODULES - modules end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionController/ConditionalGet.html b/src/classes/ActionController/ConditionalGet.html index 6a2f9ae309..559e8baada 100644 --- a/src/classes/ActionController/ConditionalGet.html +++ b/src/classes/ActionController/ConditionalGet.html @@ -165,7 +165,7 @@

Examples

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/conditional_get.rb, line 274
@@ -180,11 +180,11 @@ 

Examples

) options.delete(:private) - response.cache_control[:extras] = options.map { |k, v| "#{k}=#{v}" } + response.cache_control[:extras] = options.map { |k, v| "#{k}=#{v}" } response.date = Time.now unless response.date? end
- See on GitHub + 🔎 See on GitHub
@@ -211,7 +211,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/conditional_get.rb, line 292
@@ -219,7 +219,7 @@ 

response.cache_control.replace(no_cache: true) end

- See on GitHub + 🔎 See on GitHub
@@ -319,7 +319,7 @@

Examples

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/conditional_get.rb, line 128
@@ -343,7 +343,7 @@ 

Examples

head :not_modified if request.fresh?(response) end
- See on GitHub + 🔎 See on GitHub
@@ -375,7 +375,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/conditional_get.rb, line 304
@@ -387,7 +387,7 @@ 

public: public) end

- See on GitHub + 🔎 See on GitHub
@@ -414,7 +414,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/conditional_get.rb, line 314
@@ -422,7 +422,7 @@ 

response.cache_control.replace(no_store: true) end

- See on GitHub + 🔎 See on GitHub
@@ -522,7 +522,7 @@

Examples

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/conditional_get.rb, line 227
@@ -531,7 +531,7 @@ 

Examples

!request.fresh?(response) end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionController/ConditionalGet/ClassMethods.html b/src/classes/ActionController/ConditionalGet/ClassMethods.html index 01f6cc6fd0..fe2df045eb 100644 --- a/src/classes/ActionController/ConditionalGet/ClassMethods.html +++ b/src/classes/ActionController/ConditionalGet/ClassMethods.html @@ -89,15 +89,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/conditional_get.rb, line 31
-      def etag(&etagger)
+      def etag(&etagger)
         self.etaggers += [etagger]
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionController/ContentSecurityPolicy/ClassMethods.html b/src/classes/ActionController/ContentSecurityPolicy/ClassMethods.html index 8dcbfe34e3..492421931c 100644 --- a/src/classes/ActionController/ContentSecurityPolicy/ClassMethods.html +++ b/src/classes/ActionController/ContentSecurityPolicy/ClassMethods.html @@ -105,15 +105,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/content_security_policy.rb, line 39
-      def content_security_policy(enabled = true, **options, &block)
+      def content_security_policy(enabled = true, **options, &block)
         before_action(options) do
           if block_given?
             policy = current_content_security_policy
-            instance_exec(policy, &block)
+            instance_exec(policy, &block)
             request.content_security_policy = policy
           end
 
@@ -123,7 +123,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -162,7 +162,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/content_security_policy.rb, line 65
@@ -172,7 +172,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionController/Cookies.html b/src/classes/ActionController/Cookies.html index 122d9ace6f..3c1e53a11d 100644 --- a/src/classes/ActionController/Cookies.html +++ b/src/classes/ActionController/Cookies.html @@ -78,7 +78,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/cookies.rb, line 14
@@ -86,7 +86,7 @@ 

request.cookie_jar end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionController/DataStreaming.html b/src/classes/ActionController/DataStreaming.html index 1ed963aa49..97e3032f95 100644 --- a/src/classes/ActionController/DataStreaming.html +++ b/src/classes/ActionController/DataStreaming.html @@ -132,7 +132,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/data_streaming.rb, line 111
@@ -141,7 +141,7 @@ 

render options.slice(:status, :content_type).merge(body: data) end

- See on GitHub + 🔎 See on GitHub
@@ -204,12 +204,12 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/data_streaming.rb, line 71
       def send_file(path, options = {}) # :doc:
-        raise MissingFile, "Cannot read file #{path}" unless File.file?(path) && File.readable?(path)
+        raise MissingFile, "Cannot read file #{path}" unless File.file?(path) && File.readable?(path)
 
         options[:filename] ||= File.basename(path) unless options[:url_based_filename]
         send_file_headers! options
@@ -219,7 +219,7 @@ 

response.send_file path end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionController/DefaultHeaders/ClassMethods.html b/src/classes/ActionController/DefaultHeaders/ClassMethods.html index 3584cb35fa..d6ff316701 100644 --- a/src/classes/ActionController/DefaultHeaders/ClassMethods.html +++ b/src/classes/ActionController/DefaultHeaders/ClassMethods.html @@ -78,7 +78,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/default_headers.rb, line 12
@@ -88,7 +88,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionController/Flash.html b/src/classes/ActionController/Flash.html index 931ccc857f..380184caad 100644 --- a/src/classes/ActionController/Flash.html +++ b/src/classes/ActionController/Flash.html @@ -91,7 +91,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/flash.rb, line 51
@@ -109,7 +109,7 @@ 

super(options, response_options_and_flash) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionController/Flash/ClassMethods.html b/src/classes/ActionController/Flash/ClassMethods.html index 3980961389..ec64a708c3 100644 --- a/src/classes/ActionController/Flash/ClassMethods.html +++ b/src/classes/ActionController/Flash/ClassMethods.html @@ -92,7 +92,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/flash.rb, line 32
@@ -109,7 +109,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionController/FormBuilder.html b/src/classes/ActionController/FormBuilder.html index 1a3233076f..8d265d86bd 100644 --- a/src/classes/ActionController/FormBuilder.html +++ b/src/classes/ActionController/FormBuilder.html @@ -121,7 +121,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/form_builder.rb, line 48
@@ -129,7 +129,7 @@ 

self.class._default_form_builder end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionController/FormBuilder/ClassMethods.html b/src/classes/ActionController/FormBuilder/ClassMethods.html index f2e05bac59..1e1a449696 100644 --- a/src/classes/ActionController/FormBuilder/ClassMethods.html +++ b/src/classes/ActionController/FormBuilder/ClassMethods.html @@ -83,7 +83,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/form_builder.rb, line 42
@@ -91,7 +91,7 @@ 

See on GitHub + 🔎 See on GitHub diff --git a/src/classes/ActionController/Head.html b/src/classes/ActionController/Head.html index 76e0a0e488..65d068a154 100644 --- a/src/classes/ActionController/Head.html +++ b/src/classes/ActionController/Head.html @@ -92,13 +92,13 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/head.rb, line 21
     def head(status, options = nil)
       if status.is_a?(Hash)
-        raise ArgumentError, "#{status.inspect} is not a valid value for `status`."
+        raise ArgumentError, "#{status.inspect} is not a valid value for `status`."
       end
 
       status ||= :ok
@@ -108,7 +108,7 @@ 

content_type = options.delete(:content_type) options.each do |key, value| - headers[key.to_s.split(/[-_]/).each { |v| v[0] = v[0].upcase }.join("-")] = value.to_s + headers[key.to_s.split(/[-_]/).each { |v| v[0] = v[0].upcase }.join("-")] = value.to_s end end @@ -117,18 +117,18 @@

if include_content?(response_code) unless self.media_type - self.content_type = content_type || ((f = formats) && Mime[f.first]) || Mime[:html] + self.content_type = content_type || ((f = formats) && Mime[f.first]) || Mime[:html] end response.charset = false end - self.response_body = "" + self.response_body = "" true end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionController/Helpers.html b/src/classes/ActionController/Helpers.html index 076e60dfd7..aadebaaa5c 100644 --- a/src/classes/ActionController/Helpers.html +++ b/src/classes/ActionController/Helpers.html @@ -173,7 +173,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/helpers.rb, line 117
@@ -181,7 +181,7 @@ 

@_helper_proxy ||= view_context end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionController/Helpers/ClassMethods.html b/src/classes/ActionController/Helpers/ClassMethods.html index d3c0201311..8cfd95f6d0 100644 --- a/src/classes/ActionController/Helpers/ClassMethods.html +++ b/src/classes/ActionController/Helpers/ClassMethods.html @@ -95,15 +95,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/helpers.rb, line 78
       def helper_attr(*attrs)
-        attrs.flatten.each { |attr| helper_method(attr, "#{attr}=") }
+        attrs.flatten.each { |attr| helper_method(attr, "#{attr}=") }
       end
-
See on GitHub + 🔎 See on GitHub @@ -132,7 +132,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/helpers.rb, line 88
@@ -144,7 +144,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -181,7 +181,7 @@

Returns

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/helpers.rb, line 104
@@ -190,7 +190,7 @@ 

Returns

super(args) end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionController/HttpAuthentication/Basic.html b/src/classes/ActionController/HttpAuthentication/Basic.html index 107bae4bf1..4cd5ce5f63 100644 --- a/src/classes/ActionController/HttpAuthentication/Basic.html +++ b/src/classes/ActionController/HttpAuthentication/Basic.html @@ -182,15 +182,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/http_authentication.rb, line 127
       def auth_param(request)
-        request.authorization.to_s.split(" ", 2).second
+        request.authorization.to_s.split(" ", 2).second
       end
- See on GitHub + 🔎 See on GitHub
@@ -217,15 +217,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/http_authentication.rb, line 123
       def auth_scheme(request)
-        request.authorization.to_s.split(" ", 2).first
+        request.authorization.to_s.split(" ", 2).first
       end
- See on GitHub + 🔎 See on GitHub
@@ -252,17 +252,17 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/http_authentication.rb, line 105
-      def authenticate(request, &login_procedure)
+      def authenticate(request, &login_procedure)
         if has_basic_credentials?(request)
           login_procedure.call(*user_name_and_password(request))
         end
       end
- See on GitHub + 🔎 See on GitHub
@@ -289,18 +289,18 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/http_authentication.rb, line 135
       def authentication_request(controller, realm, message)
-        message ||= "HTTP Basic: Access denied.\n"
-        controller.headers["WWW-Authenticate"] = %(Basic realm="#{realm.tr('"', "")}")
+        message ||= "HTTP Basic: Access denied.\n"
+        controller.headers["WWW-Authenticate"] = %(Basic realm="#{realm.tr('"', "")}")
         controller.status = 401
         controller.response_body = message
       end
- See on GitHub + 🔎 See on GitHub
@@ -327,15 +327,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/http_authentication.rb, line 119
       def decode_credentials(request)
-        ::Base64.decode64(auth_param(request) || "")
+        ::Base64.decode64(auth_param(request) || "")
       end
- See on GitHub + 🔎 See on GitHub
@@ -362,15 +362,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/http_authentication.rb, line 131
       def encode_credentials(user_name, password)
-        "Basic #{::Base64.strict_encode64("#{user_name}:#{password}")}"
+        "Basic #{::Base64.strict_encode64("#{user_name}:#{password}")}"
       end
- See on GitHub + 🔎 See on GitHub
@@ -397,15 +397,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/http_authentication.rb, line 111
       def has_basic_credentials?(request)
-        request.authorization.present? && (auth_scheme(request).downcase == "basic")
+        request.authorization.present? && (auth_scheme(request).downcase == "basic")
       end
- See on GitHub + 🔎 See on GitHub
@@ -432,15 +432,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/http_authentication.rb, line 115
       def user_name_and_password(request)
-        decode_credentials(request).split(":", 2)
+        decode_credentials(request).split(":", 2)
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionController/HttpAuthentication/Basic/ControllerMethods.html b/src/classes/ActionController/HttpAuthentication/Basic/ControllerMethods.html index b458e4360a..81a8eb3417 100644 --- a/src/classes/ActionController/HttpAuthentication/Basic/ControllerMethods.html +++ b/src/classes/ActionController/HttpAuthentication/Basic/ControllerMethods.html @@ -103,15 +103,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/http_authentication.rb, line 92
-        def authenticate_or_request_with_http_basic(realm = nil, message = nil, &login_procedure)
-          authenticate_with_http_basic(&login_procedure) || request_http_basic_authentication(realm || "Application", message)
+        def authenticate_or_request_with_http_basic(realm = nil, message = nil, &login_procedure)
+          authenticate_with_http_basic(&login_procedure) || request_http_basic_authentication(realm || "Application", message)
         end
- See on GitHub + 🔎 See on GitHub
@@ -138,15 +138,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/http_authentication.rb, line 96
-        def authenticate_with_http_basic(&login_procedure)
-          HttpAuthentication::Basic.authenticate(request, &login_procedure)
+        def authenticate_with_http_basic(&login_procedure)
+          HttpAuthentication::Basic.authenticate(request, &login_procedure)
         end
- See on GitHub + 🔎 See on GitHub
@@ -173,20 +173,20 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/http_authentication.rb, line 83
         def http_basic_authenticate_or_request_with(name:, password:, realm: nil, message: nil)
           authenticate_or_request_with_http_basic(realm, message) do |given_name, given_password|
-            # This comparison uses & so that it doesn't short circuit and
-            # uses `secure_compare` so that length information isn't leaked.
-            ActiveSupport::SecurityUtils.secure_compare(given_name.to_s, name) &
+            # This comparison uses & so that it doesn't short circuit and
+            # uses `secure_compare` so that length information isn't leaked.
+            ActiveSupport::SecurityUtils.secure_compare(given_name.to_s, name) &
               ActiveSupport::SecurityUtils.secure_compare(given_password.to_s, password)
           end
         end
- See on GitHub + 🔎 See on GitHub
@@ -213,15 +213,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/http_authentication.rb, line 100
-        def request_http_basic_authentication(realm = "Application", message = nil)
+        def request_http_basic_authentication(realm = "Application", message = nil)
           HttpAuthentication::Basic.authentication_request(self, realm, message)
         end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionController/HttpAuthentication/Basic/ControllerMethods/ClassMethods.html b/src/classes/ActionController/HttpAuthentication/Basic/ControllerMethods/ClassMethods.html index 1496ff2303..55d3958518 100644 --- a/src/classes/ActionController/HttpAuthentication/Basic/ControllerMethods/ClassMethods.html +++ b/src/classes/ActionController/HttpAuthentication/Basic/ControllerMethods/ClassMethods.html @@ -80,17 +80,17 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/http_authentication.rb, line 76
           def http_basic_authenticate_with(name:, password:, realm: nil, **options)
-            raise ArgumentError, "Expected name: to be a String, got #{name.class}" unless name.is_a?(String)
-            raise ArgumentError, "Expected password: to be a String, got #{password.class}" unless password.is_a?(String)
+            raise ArgumentError, "Expected name: to be a String, got #{name.class}" unless name.is_a?(String)
+            raise ArgumentError, "Expected password: to be a String, got #{password.class}" unless password.is_a?(String)
             before_action(options) { http_basic_authenticate_or_request_with name: name, password: password, realm: realm }
           end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionController/HttpAuthentication/Digest.html b/src/classes/ActionController/HttpAuthentication/Digest.html index a3c39384e9..1b17095500 100644 --- a/src/classes/ActionController/HttpAuthentication/Digest.html +++ b/src/classes/ActionController/HttpAuthentication/Digest.html @@ -180,15 +180,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/http_authentication.rb, line 211
-      def authenticate(request, realm, &password_procedure)
-        request.authorization && validate_digest_response(request, realm, &password_procedure)
+      def authenticate(request, realm, &password_procedure)
+        request.authorization && validate_digest_response(request, realm, &password_procedure)
       end
- See on GitHub + 🔎 See on GitHub
@@ -215,7 +215,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/http_authentication.rb, line 269
@@ -223,10 +223,10 @@ 

secret_key = secret_token(controller.request) nonce = self.nonce(secret_key) opaque = opaque(secret_key) - controller.headers["WWW-Authenticate"] = %(Digest realm="#{realm}", qop="auth", algorithm=MD5, nonce="#{nonce}", opaque="#{opaque}") + controller.headers["WWW-Authenticate"] = %(Digest realm="#{realm}", qop="auth", algorithm=MD5, nonce="#{nonce}", opaque="#{opaque}") end

- See on GitHub + 🔎 See on GitHub
@@ -253,18 +253,18 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/http_authentication.rb, line 276
       def authentication_request(controller, realm, message = nil)
-        message ||= "HTTP Digest: Access denied.\n"
+        message ||= "HTTP Digest: Access denied.\n"
         authentication_header(controller, realm)
         controller.status = 401
         controller.response_body = message
       end
- See on GitHub + 🔎 See on GitHub
@@ -291,18 +291,18 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/http_authentication.rb, line 262
       def decode_credentials(header)
-        ActiveSupport::HashWithIndifferentAccess[header.to_s.gsub(/^Digest\s+/, "").split(",").map do |pair|
-          key, value = pair.split("=", 2)
-          [key.strip, value.to_s.gsub(/^"|"$/, "").delete("'")]
+        ActiveSupport::HashWithIndifferentAccess[header.to_s.gsub(/^Digest\s+/, "").split(",").map do |pair|
+          key, value = pair.split("=", 2)
+          [key.strip, value.to_s.gsub(/^"|"$/, "").delete("'")]
         end]
       end
- See on GitHub + 🔎 See on GitHub
@@ -329,7 +329,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/http_authentication.rb, line 258
@@ -337,7 +337,7 @@ 

decode_credentials(request.authorization) end

- See on GitHub + 🔎 See on GitHub
@@ -364,16 +364,16 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/http_authentication.rb, line 253
       def encode_credentials(http_method, credentials, password, password_is_ha1)
         credentials[:response] = expected_response(http_method, credentials[:uri], credentials, password, password_is_ha1)
-        "Digest " + credentials.sort_by { |x| x[0].to_s }.map { |v| "#{v[0]}='#{v[1]}'" }.join(", ")
+        "Digest " + credentials.sort_by { |x| x[0].to_s }.map { |v| "#{v[0]}='#{v[1]}'" }.join(", ")
       end
- See on GitHub + 🔎 See on GitHub
@@ -400,17 +400,17 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/http_authentication.rb, line 243
       def expected_response(http_method, uri, credentials, password, password_is_ha1 = true)
         ha1 = password_is_ha1 ? password : ha1(credentials, password)
-        ha2 = OpenSSL::Digest::MD5.hexdigest([http_method.to_s.upcase, uri].join(":"))
-        OpenSSL::Digest::MD5.hexdigest([ha1, credentials[:nonce], credentials[:nc], credentials[:cnonce], credentials[:qop], ha2].join(":"))
+        ha2 = OpenSSL::Digest::MD5.hexdigest([http_method.to_s.upcase, uri].join(":"))
+        OpenSSL::Digest::MD5.hexdigest([ha1, credentials[:nonce], credentials[:nc], credentials[:cnonce], credentials[:qop], ha2].join(":"))
       end
- See on GitHub + 🔎 See on GitHub
@@ -437,15 +437,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/http_authentication.rb, line 249
       def ha1(credentials, password)
-        OpenSSL::Digest::MD5.hexdigest([credentials[:username], credentials[:realm], password].join(":"))
+        OpenSSL::Digest::MD5.hexdigest([credentials[:username], credentials[:realm], password].join(":"))
       end
- See on GitHub + 🔎 See on GitHub
@@ -485,18 +485,18 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/http_authentication.rb, line 321
       def nonce(secret_key, time = Time.now)
         t = time.to_i
         hashed = [t, secret_key]
-        digest = OpenSSL::Digest::MD5.hexdigest(hashed.join(":"))
-        ::Base64.strict_encode64("#{t}:#{digest}")
+        digest = OpenSSL::Digest::MD5.hexdigest(hashed.join(":"))
+        ::Base64.strict_encode64("#{t}:#{digest}")
       end
- See on GitHub + 🔎 See on GitHub
@@ -523,7 +523,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/http_authentication.rb, line 340
@@ -531,7 +531,7 @@ 

OpenSSL::Digest::MD5.hexdigest(secret_key) end

- See on GitHub + 🔎 See on GitHub
@@ -558,7 +558,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/http_authentication.rb, line 283
@@ -568,7 +568,7 @@ 

key_generator.generate_key(http_auth_salt) end

- See on GitHub + 🔎 See on GitHub
@@ -595,25 +595,25 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/http_authentication.rb, line 218
-      def validate_digest_response(request, realm, &password_procedure)
+      def validate_digest_response(request, realm, &password_procedure)
         secret_key  = secret_token(request)
         credentials = decode_credentials_header(request)
         valid_nonce = validate_nonce(secret_key, request, credentials[:nonce])
 
-        if valid_nonce && realm == credentials[:realm] && opaque(secret_key) == credentials[:opaque]
+        if valid_nonce && realm == credentials[:realm] && opaque(secret_key) == credentials[:opaque]
           password = password_procedure.call(credentials[:username])
           return false unless password
 
-          method = request.get_header("rack.methodoverride.original_method") || request.get_header("REQUEST_METHOD")
+          method = request.get_header("rack.methodoverride.original_method") || request.get_header("REQUEST_METHOD")
           uri    = credentials[:uri]
 
           [true, false].any? do |trailing_question_mark|
             [true, false].any? do |password_is_ha1|
-              _uri = trailing_question_mark ? uri + "?" : uri
+              _uri = trailing_question_mark ? uri + "?" : uri
               expected = expected_response(method, _uri, credentials, password, password_is_ha1)
               expected == credentials[:response]
             end
@@ -621,7 +621,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -648,17 +648,17 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/http_authentication.rb, line 333
       def validate_nonce(secret_key, request, value, seconds_to_timeout = 5 * 60)
         return false if value.nil?
-        t = ::Base64.decode64(value).split(":").first.to_i
-        nonce(secret_key, t) == value && (t - Time.now.to_i).abs <= seconds_to_timeout
+        t = ::Base64.decode64(value).split(":").first.to_i
+        nonce(secret_key, t) == value && (t - Time.now.to_i).abs <= seconds_to_timeout
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionController/HttpAuthentication/Digest/ControllerMethods.html b/src/classes/ActionController/HttpAuthentication/Digest/ControllerMethods.html index d169862d31..871dbd5f26 100644 --- a/src/classes/ActionController/HttpAuthentication/Digest/ControllerMethods.html +++ b/src/classes/ActionController/HttpAuthentication/Digest/ControllerMethods.html @@ -88,15 +88,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/http_authentication.rb, line 193
-        def authenticate_or_request_with_http_digest(realm = "Application", message = nil, &password_procedure)
-          authenticate_with_http_digest(realm, &password_procedure) || request_http_digest_authentication(realm, message)
+        def authenticate_or_request_with_http_digest(realm = "Application", message = nil, &password_procedure)
+          authenticate_with_http_digest(realm, &password_procedure) || request_http_digest_authentication(realm, message)
         end
- See on GitHub + 🔎 See on GitHub
@@ -123,15 +123,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/http_authentication.rb, line 199
-        def authenticate_with_http_digest(realm = "Application", &password_procedure)
-          HttpAuthentication::Digest.authenticate(request, realm, &password_procedure)
+        def authenticate_with_http_digest(realm = "Application", &password_procedure)
+          HttpAuthentication::Digest.authenticate(request, realm, &password_procedure)
         end
- See on GitHub + 🔎 See on GitHub
@@ -158,15 +158,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/http_authentication.rb, line 205
-        def request_http_digest_authentication(realm = "Application", message = nil)
+        def request_http_digest_authentication(realm = "Application", message = nil)
           HttpAuthentication::Digest.authentication_request(self, realm, message)
         end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionController/HttpAuthentication/Token.html b/src/classes/ActionController/HttpAuthentication/Token.html index 3c75b6527d..73607e11ae 100644 --- a/src/classes/ActionController/HttpAuthentication/Token.html +++ b/src/classes/ActionController/HttpAuthentication/Token.html @@ -177,11 +177,6 @@

Constants

/(?:,|;|\t)/ - -   - - - TOKEN_KEY @@ -189,11 +184,6 @@

Constants

"token=" - -   - - - TOKEN_REGEX @@ -201,11 +191,6 @@

Constants

/^(Token|Bearer)\s+/ - -   - - - @@ -250,18 +235,18 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/http_authentication.rb, line 466
-      def authenticate(controller, &login_procedure)
+      def authenticate(controller, &login_procedure)
         token, options = token_and_options(controller.request)
         unless token.blank?
           login_procedure.call(token, options)
         end
       end
-
See on GitHub + 🔎 See on GitHub @@ -297,17 +282,17 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/http_authentication.rb, line 550
       def authentication_request(controller, realm, message = nil)
-        message ||= "HTTP Token: Access denied.\n"
-        controller.headers["WWW-Authenticate"] = %(Token realm="#{realm.tr('"', "")}")
+        message ||= "HTTP Token: Access denied.\n"
+        controller.headers["WWW-Authenticate"] = %(Token realm="#{realm.tr('"', "")}")
         controller.__send__ :render, plain: message, status: :unauthorized
       end
-
See on GitHub + 🔎 See on GitHub @@ -343,18 +328,18 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/http_authentication.rb, line 535
       def encode_credentials(token, options = {})
-        values = ["#{TOKEN_KEY}#{token.to_s.inspect}"] + options.map do |key, value|
-          "#{key}=#{value.to_s.inspect}"
+        values = ["#{TOKEN_KEY}#{token.to_s.inspect}"] + options.map do |key, value|
+          "#{key}=#{value.to_s.inspect}"
         end
-        "Token #{values * ", "}"
+        "Token #{values * ", "}"
       end
-
See on GitHub + 🔎 See on GitHub @@ -381,7 +366,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/http_authentication.rb, line 501
@@ -389,7 +374,7 @@ 

raw_params.map { |param| param.split %r/=(.+)?/ } end

- See on GitHub + 🔎 See on GitHub
@@ -416,22 +401,22 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/http_authentication.rb, line 516
       def raw_params(auth)
-        _raw_params = auth.sub(TOKEN_REGEX, "").split(WHITESPACED_AUTHN_PAIR_DELIMITERS)
-        _raw_params.reject!(&:empty?)
+        _raw_params = auth.sub(TOKEN_REGEX, "").split(WHITESPACED_AUTHN_PAIR_DELIMITERS)
+        _raw_params.reject!(&:empty?)
 
-        if !_raw_params.first&.start_with?(TOKEN_KEY)
-          _raw_params[0] = "#{TOKEN_KEY}#{_raw_params.first}"
+        if !_raw_params.first&.start_with?(TOKEN_KEY)
+          _raw_params[0] = "#{TOKEN_KEY}#{_raw_params.first}"
         end
 
         _raw_params
       end
- See on GitHub + 🔎 See on GitHub
@@ -458,15 +443,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/http_authentication.rb, line 506
       def rewrite_param_values(array_params)
-        array_params.each { |param| (param[1] || +"").gsub! %r/^"|"$/, "" }
+        array_params.each { |param| (param[1] || +"").gsub! %r/^"|"$/, "" }
       end
- See on GitHub + 🔎 See on GitHub
@@ -505,7 +490,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/http_authentication.rb, line 488
@@ -517,7 +502,7 @@ 

See on GitHub + 🔎 See on GitHub @@ -544,7 +529,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/http_authentication.rb, line 496
@@ -552,7 +537,7 @@ 

rewrite_param_values params_array_from raw_params auth end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionController/HttpAuthentication/Token/ControllerMethods.html b/src/classes/ActionController/HttpAuthentication/Token/ControllerMethods.html index 2787208411..cdcee2d1f1 100644 --- a/src/classes/ActionController/HttpAuthentication/Token/ControllerMethods.html +++ b/src/classes/ActionController/HttpAuthentication/Token/ControllerMethods.html @@ -88,15 +88,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/http_authentication.rb, line 432
-        def authenticate_or_request_with_http_token(realm = "Application", message = nil, &login_procedure)
-          authenticate_with_http_token(&login_procedure) || request_http_token_authentication(realm, message)
+        def authenticate_or_request_with_http_token(realm = "Application", message = nil, &login_procedure)
+          authenticate_with_http_token(&login_procedure) || request_http_token_authentication(realm, message)
         end
- See on GitHub + 🔎 See on GitHub
@@ -125,15 +125,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/http_authentication.rb, line 441
-        def authenticate_with_http_token(&login_procedure)
-          Token.authenticate(self, &login_procedure)
+        def authenticate_with_http_token(&login_procedure)
+          Token.authenticate(self, &login_procedure)
         end
- See on GitHub + 🔎 See on GitHub
@@ -160,15 +160,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/http_authentication.rb, line 447
-        def request_http_token_authentication(realm = "Application", message = nil)
+        def request_http_token_authentication(realm = "Application", message = nil)
           Token.authentication_request(self, realm, message)
         end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionController/Instrumentation.html b/src/classes/ActionController/Instrumentation.html index be9ff27b94..4d4107b0de 100644 --- a/src/classes/ActionController/Instrumentation.html +++ b/src/classes/ActionController/Instrumentation.html @@ -121,12 +121,12 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/instrumentation.rb, line 47
     def redirect_to(*)
-      ActiveSupport::Notifications.instrument("redirect_to.action_controller", request: request) do |payload|
+      ActiveSupport::Notifications.instrument("redirect_to.action_controller", request: request) do |payload|
         result = super
         payload[:status]   = response.status
         payload[:location] = response.filtered_location
@@ -134,7 +134,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -161,7 +161,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/instrumentation.rb, line 26
@@ -173,7 +173,7 @@ 

render_output end

- See on GitHub + 🔎 See on GitHub
@@ -200,17 +200,17 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/instrumentation.rb, line 41
     def send_data(data, options = {})
-      ActiveSupport::Notifications.instrument("send_data.action_controller", options) do
+      ActiveSupport::Notifications.instrument("send_data.action_controller", options) do
         super
       end
     end
- See on GitHub + 🔎 See on GitHub
@@ -237,18 +237,18 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/instrumentation.rb, line 34
     def send_file(path, options = {})
-      ActiveSupport::Notifications.instrument("send_file.action_controller",
+      ActiveSupport::Notifications.instrument("send_file.action_controller",
         options.merge(path: path)) do
         super
       end
     end
- See on GitHub + 🔎 See on GitHub
@@ -278,7 +278,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/instrumentation.rb, line 103
@@ -286,7 +286,7 @@ 

payload[:view_runtime] = view_runtime end

- See on GitHub + 🔎 See on GitHub
@@ -318,7 +318,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/instrumentation.rb, line 97
@@ -326,7 +326,7 @@ 

yield end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionController/Live.html b/src/classes/ActionController/Live.html index 8b1be01191..053f943f00 100644 --- a/src/classes/ActionController/Live.html +++ b/src/classes/ActionController/Live.html @@ -150,7 +150,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/live.rb, line 273
@@ -166,19 +166,19 @@ 

ActiveSupport::Dependencies.interlock.running do t2 = Thread.current - # Since we're processing the view in a different thread, copy the - # thread locals from the main thread to the child thread. :'( + # Since we're processing the view in a different thread, copy the + # thread locals from the main thread to the child thread. :'( locals.each { |k, v| t2[k] = v } ActiveSupport::IsolatedExecutionState.share_with(t1) begin super(name) - rescue => e + rescue => e if @_response.committed? begin @_response.stream.write(ActionView::Base.streaming_completion_on_exception) if request.format == :html @_response.stream.call_on_error - rescue => exception + rescue => exception log_error(exception) ensure log_error(e) @@ -200,7 +200,7 @@

raise error if error end

- See on GitHub + 🔎 See on GitHub
@@ -227,7 +227,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/live.rb, line 319
@@ -236,7 +236,7 @@ 

response.close if response end

- See on GitHub + 🔎 See on GitHub
@@ -283,17 +283,17 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/live.rb, line 345
-    def send_stream(filename:, disposition: "attachment", type: nil)
-      response.headers["Content-Type"] =
+    def send_stream(filename:, disposition: "attachment", type: nil)
+      response.headers["Content-Type"] =
         (type.is_a?(Symbol) ? Mime[type].to_s : type) ||
-        Mime::Type.lookup_by_extension(File.extname(filename).downcase.delete("."))&.to_s ||
-        "application/octet-stream"
+        Mime::Type.lookup_by_extension(File.extname(filename).downcase.delete("."))&.to_s ||
+        "application/octet-stream"
 
-      response.headers["Content-Disposition"] =
+      response.headers["Content-Disposition"] =
         ActionDispatch::Http::ContentDisposition.format(disposition: disposition, filename: filename)
 
       yield response.stream
@@ -301,7 +301,7 @@ 

response.stream.close end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionController/Live/ClassMethods.html b/src/classes/ActionController/Live/ClassMethods.html index 23a989998f..12a5d57c6f 100644 --- a/src/classes/ActionController/Live/ClassMethods.html +++ b/src/classes/ActionController/Live/ClassMethods.html @@ -78,12 +78,12 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/live.rb, line 58
       def make_response!(request)
-        if request.get_header("HTTP_VERSION") == "HTTP/1.0"
+        if request.get_header("HTTP_VERSION") == "HTTP/1.0"
           super
         else
           Live::Response.new.tap do |res|
@@ -92,7 +92,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionController/Live/SSE.html b/src/classes/ActionController/Live/SSE.html index 0c633aa557..83cc2ffcca 100644 --- a/src/classes/ActionController/Live/SSE.html +++ b/src/classes/ActionController/Live/SSE.html @@ -113,11 +113,6 @@

Constants

%w( retry event id ) - -   - - - @@ -149,7 +144,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/live.rb, line 110
@@ -158,7 +153,7 @@ 

@options = options end

- See on GitHub + 🔎 See on GitHub
@@ -189,7 +184,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/live.rb, line 115
@@ -197,7 +192,7 @@ 

@stream.close end

- See on GitHub + 🔎 See on GitHub
@@ -224,7 +219,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/live.rb, line 119
@@ -237,7 +232,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionController/LogSubscriber.html b/src/classes/ActionController/LogSubscriber.html index 530f8baafa..d4c8ba5efb 100644 --- a/src/classes/ActionController/LogSubscriber.html +++ b/src/classes/ActionController/LogSubscriber.html @@ -93,11 +93,6 @@

Constants

%w(controller action format _method only_path) - -   - - - @@ -130,15 +125,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/log_subscriber.rb, line 45
     def halted_callback(event)
-      info { "Filter chain halted as #{event.payload[:filter].inspect} rendered or redirected" }
+      info { "Filter chain halted as #{event.payload[:filter].inspect} rendered or redirected" }
     end
- See on GitHub + 🔎 See on GitHub
@@ -165,7 +160,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/log_subscriber.rb, line 88
@@ -173,7 +168,7 @@ 

ActionController::Base.logger end

- See on GitHub + 🔎 See on GitHub
@@ -200,7 +195,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/log_subscriber.rb, line 24
@@ -210,21 +205,21 @@ 

additions = ActionController::Base.log_process_action(payload) status = payload[:status] - if status.nil? && (exception_class_name = payload[:exception]&.first) + if status.nil? && (exception_class_name = payload[:exception]&.first) status = ActionDispatch::ExceptionWrapper.status_code_for_exception(exception_class_name) end - additions << "Allocations: #{event.allocations}" + additions << "Allocations: #{event.allocations}" - message = +"Completed #{status} #{Rack::Utils::HTTP_STATUS_CODES[status]} in #{event.duration.round}ms" \ - " (#{additions.join(" | ")})" - message << "\n\n" if defined?(Rails.env) && Rails.env.development? + message = +"Completed #{status} #{Rack::Utils::HTTP_STATUS_CODES[status]} in #{event.duration.round}ms" \ + " (#{additions.join(" | ")})" + message << "\n\n" if defined?(Rails.env) && Rails.env.development? message end end

- See on GitHub + 🔎 See on GitHub
@@ -251,15 +246,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/log_subscriber.rb, line 55
     def redirect_to(event)
-      info { "Redirected to #{event.payload[:location]}" }
+      info { "Redirected to #{event.payload[:location]}" }
     end
- See on GitHub + 🔎 See on GitHub
@@ -286,15 +281,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/log_subscriber.rb, line 60
     def send_data(event)
-      info { "Sent data #{event.payload[:filename]} (#{event.duration.round(1)}ms)" }
+      info { "Sent data #{event.payload[:filename]} (#{event.duration.round(1)}ms)" }
     end
- See on GitHub + 🔎 See on GitHub
@@ -321,15 +316,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/log_subscriber.rb, line 50
     def send_file(event)
-      info { "Sent file #{event.payload[:path]} (#{event.duration.round(1)}ms)" }
+      info { "Sent file #{event.payload[:path]} (#{event.duration.round(1)}ms)" }
     end
- See on GitHub + 🔎 See on GitHub
@@ -356,7 +351,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/log_subscriber.rb, line 7
@@ -370,13 +365,13 @@ 

end format = payload[:format] format = format.to_s.upcase if format.is_a?(Symbol) - format = "*/*" if format.nil? + format = "*/*" if format.nil? - info "Processing by #{payload[:controller]}##{payload[:action]} as #{format}" - info " Parameters: #{params.inspect}" unless params.empty? + info "Processing by #{payload[:controller]}##{payload[:action]} as #{format}" + info " Parameters: #{params.inspect}" unless params.empty? end

- See on GitHub + 🔎 See on GitHub
@@ -403,20 +398,20 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/log_subscriber.rb, line 65
     def unpermitted_parameters(event)
       debug do
         unpermitted_keys = event.payload[:keys]
-        display_unpermitted_keys = unpermitted_keys.map { |e| ":#{e}" }.join(", ")
-        context = event.payload[:context].map { |k, v| "#{k}: #{v}" }.join(", ")
-        color("Unpermitted parameter#{'s' if unpermitted_keys.size > 1}: #{display_unpermitted_keys}. Context: { #{context} }", RED)
+        display_unpermitted_keys = unpermitted_keys.map { |e| ":#{e}" }.join(", ")
+        context = event.payload[:context].map { |k, v| "#{k}: #{v}" }.join(", ")
+        color("Unpermitted parameter#{'s' if unpermitted_keys.size > 1}: #{display_unpermitted_keys}. Context: { #{context} }", RED)
       end
     end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionController/Logging/ClassMethods.html b/src/classes/ActionController/Logging/ClassMethods.html index 280631e950..8576df9ee1 100644 --- a/src/classes/ActionController/Logging/ClassMethods.html +++ b/src/classes/ActionController/Logging/ClassMethods.html @@ -84,15 +84,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/logging.rb, line 15
       def log_at(level, **options)
-        around_action ->(_, action) { logger.log_at(level, &action) }, **options
+        around_action ->(_, action) { logger.log_at(level, &action) }, **options
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionController/Metal.html b/src/classes/ActionController/Metal.html index 3b35f2d3a6..f549d00fb1 100644 --- a/src/classes/ActionController/Metal.html +++ b/src/classes/ActionController/Metal.html @@ -228,7 +228,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal.rb, line 289
@@ -246,7 +246,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -278,15 +278,15 @@

Returns

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal.rb, line 130
     def self.controller_name
-      @controller_name ||= (name.demodulize.delete_suffix("Controller").underscore unless anonymous?)
+      @controller_name ||= (name.demodulize.delete_suffix("Controller").underscore unless anonymous?)
     end
- See on GitHub + 🔎 See on GitHub
@@ -313,7 +313,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal.rb, line 305
@@ -325,7 +325,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -352,7 +352,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal.rb, line 134
@@ -362,7 +362,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -398,7 +398,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal.rb, line 284
@@ -406,7 +406,7 @@ 

middleware_stack end

- See on GitHub + 🔎 See on GitHub
@@ -433,7 +433,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal.rb, line 185
@@ -446,7 +446,7 @@ 

super end

- See on GitHub + 🔎 See on GitHub
@@ -473,7 +473,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal.rb, line 267
@@ -481,7 +481,7 @@ 

middleware_stack.use(...) end

- See on GitHub + 🔎 See on GitHub
@@ -512,7 +512,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal.rb, line 156
@@ -520,7 +520,7 @@ 

self.class.controller_name end

- See on GitHub + 🔎 See on GitHub
@@ -547,14 +547,14 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal.rb, line 180
-    delegate :headers, to: "@_response"
+    delegate :headers, to: "@_response"
 
- See on GitHub + 🔎 See on GitHub
@@ -581,7 +581,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal.rb, line 194
@@ -589,7 +589,7 @@ 

@_params ||= request.parameters end

- See on GitHub + 🔎 See on GitHub
@@ -616,7 +616,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal.rb, line 198
@@ -624,7 +624,7 @@ 

@_params = val end

- See on GitHub + 🔎 See on GitHub
@@ -651,7 +651,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal.rb, line 220
@@ -659,7 +659,7 @@ 

response_body || response.committed? end

- See on GitHub + 🔎 See on GitHub
@@ -686,7 +686,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal.rb, line 258
@@ -694,7 +694,7 @@ 

@_request.reset_session end

- See on GitHub + 🔎 See on GitHub
@@ -721,7 +721,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal.rb, line 242
@@ -732,7 +732,7 @@ 

@_response_body = true end

- See on GitHub + 🔎 See on GitHub
@@ -759,7 +759,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal.rb, line 209
@@ -773,7 +773,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -800,14 +800,14 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal.rb, line 176
-    delegate :session, to: "@_request"
+    delegate :session, to: "@_request"
 
- See on GitHub + 🔎 See on GitHub
@@ -834,7 +834,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal.rb, line 205
@@ -842,7 +842,7 @@ 

string end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionController/MimeResponds.html b/src/classes/ActionController/MimeResponds.html index df3c66af48..4179605242 100644 --- a/src/classes/ActionController/MimeResponds.html +++ b/src/classes/ActionController/MimeResponds.html @@ -288,18 +288,18 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/mime_responds.rb, line 201
     def respond_to(*mimes)
-      raise ArgumentError, "respond_to takes either types or a block, never both" if mimes.any? && block_given?
+      raise ArgumentError, "respond_to takes either types or a block, never both" if mimes.any? && block_given?
 
       collector = Collector.new(mimes, request.variant)
       yield collector if block_given?
 
       if format = collector.negotiate_format(request)
-        if media_type && media_type != format
+        if media_type && media_type != format
           raise ActionController::RespondToMismatchError
         end
         _process_format(format)
@@ -311,7 +311,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionController/MimeResponds/Collector.html b/src/classes/ActionController/MimeResponds/Collector.html index 81ef84bbc9..7121a5157b 100644 --- a/src/classes/ActionController/MimeResponds/Collector.html +++ b/src/classes/ActionController/MimeResponds/Collector.html @@ -153,7 +153,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/mime_responds.rb, line 246
@@ -164,7 +164,7 @@ 

mimes.each { |mime| @responses[Mime[mime]] = nil } end

- See on GitHub + 🔎 See on GitHub
@@ -224,19 +224,19 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/mime_responds.rb, line 253
-      def any(*args, &block)
+      def any(*args, &block)
         if args.any?
-          args.each { |type| send(type, &block) }
+          args.each { |type| send(type, &block) }
         else
-          custom(Mime::ALL, &block)
+          custom(Mime::ALL, &block)
         end
       end
- See on GitHub + 🔎 See on GitHub
@@ -263,15 +263,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/mime_responds.rb, line 271
       def any_response?
-        !@responses.fetch(format, false) && @responses[Mime::ALL]
+        !@responses.fetch(format, false) && @responses[Mime::ALL]
       end
- See on GitHub + 🔎 See on GitHub
@@ -298,11 +298,11 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/mime_responds.rb, line 262
-      def custom(mime_type, &block)
+      def custom(mime_type, &block)
         mime_type = Mime::Type.lookup(mime_type.to_s) unless mime_type.is_a?(Mime::Type)
         @responses[mime_type] ||= if block_given?
           block
@@ -311,7 +311,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -338,7 +338,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/mime_responds.rb, line 288
@@ -346,7 +346,7 @@ 

@format = request.negotiate_mime(@responses.keys) end

- See on GitHub + 🔎 See on GitHub
@@ -373,7 +373,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/mime_responds.rb, line 275
@@ -390,7 +390,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionController/MissingRenderer.html b/src/classes/ActionController/MissingRenderer.html index 7557b2805d..e98437fc18 100644 --- a/src/classes/ActionController/MissingRenderer.html +++ b/src/classes/ActionController/MissingRenderer.html @@ -89,15 +89,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/renderers.rb, line 18
     def initialize(format)
-      super "No renderer defined for format: #{format}"
+      super "No renderer defined for format: #{format}"
     end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionController/ParameterEncoding/ClassMethods.html b/src/classes/ActionController/ParameterEncoding/ClassMethods.html index 2d6c66401f..7bc2e2ef78 100644 --- a/src/classes/ActionController/ParameterEncoding/ClassMethods.html +++ b/src/classes/ActionController/ParameterEncoding/ClassMethods.html @@ -103,7 +103,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/parameter_encoding.rb, line 77
@@ -111,7 +111,7 @@ 

@_parameter_encodings[action.to_s][param.to_s] = encoding end

- See on GitHub + 🔎 See on GitHub
@@ -159,7 +159,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/parameter_encoding.rb, line 48
@@ -167,7 +167,7 @@ 

@_parameter_encodings[action.to_s] = Hash.new { Encoding::ASCII_8BIT } end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionController/Parameters.html b/src/classes/ActionController/Parameters.html index 88208bbadd..43616dc2a9 100644 --- a/src/classes/ActionController/Parameters.html +++ b/src/classes/ActionController/Parameters.html @@ -507,14 +507,14 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/strong_parameters.rb, line 269
     def initialize(parameters = {}, logging_context = {})
       parameters.each_key do |key|
         unless key.is_a?(String) || key.is_a?(Symbol)
-          raise InvalidParameterKey, "all keys must be Strings or Symbols, got: #{key.class}"
+          raise InvalidParameterKey, "all keys must be Strings or Symbols, got: #{key.class}"
         end
       end
 
@@ -523,7 +523,7 @@ 

@permitted = self.class.permit_all_parameters end

- See on GitHub + 🔎 See on GitHub
@@ -554,16 +554,16 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/strong_parameters.rb, line 283
     def ==(other)
       if other.respond_to?(:permitted?)
-        permitted? == other.permitted? && parameters == other.parameters
+        permitted? == other.permitted? && parameters == other.parameters
       else
-        if self.class.allow_deprecated_parameters_hash_equality && Hash === other
-          ActionController.deprecator.warn <<-WARNING.squish
+        if self.class.allow_deprecated_parameters_hash_equality && Hash === other
+          ActionController.deprecator.warn <<-WARNING.squish
             Comparing equality between `ActionController::Parameters` and a
             `Hash` is deprecated and will be removed in Rails 7.2. Please only do
             comparisons between instances of `ActionController::Parameters`. If
@@ -579,7 +579,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -611,7 +611,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/strong_parameters.rb, line 665
@@ -619,7 +619,7 @@ 

convert_hashes_to_parameters(key, @parameters[key]) end

- See on GitHub + 🔎 See on GitHub
@@ -646,7 +646,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/strong_parameters.rb, line 671
@@ -654,7 +654,7 @@ 

@parameters[key] = value end

- See on GitHub + 🔎 See on GitHub
@@ -680,7 +680,7 @@

- See on GitHub + 🔎 See on GitHub @@ -705,7 +705,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/strong_parameters.rb, line 842
@@ -713,7 +713,7 @@ 

new_instance_with_inherited_permitted_status(@parameters.compact) end

- See on GitHub + 🔎 See on GitHub
@@ -740,7 +740,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/strong_parameters.rb, line 847
@@ -748,7 +748,7 @@ 

self if @parameters.compact! end

- See on GitHub + 🔎 See on GitHub
@@ -775,7 +775,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/strong_parameters.rb, line 853
@@ -783,7 +783,7 @@ 

reject { |_k, v| v.blank? } end

- See on GitHub + 🔎 See on GitHub
@@ -810,7 +810,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/strong_parameters.rb, line 859
@@ -818,7 +818,7 @@ 

reject! { |_k, v| v.blank? } end

- See on GitHub + 🔎 See on GitHub
@@ -847,7 +847,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/strong_parameters.rb, line 430
@@ -855,7 +855,7 @@ 

@converted_arrays ||= Set.new end

- See on GitHub + 🔎 See on GitHub
@@ -882,7 +882,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/strong_parameters.rb, line 958
@@ -892,7 +892,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -920,7 +920,7 @@

- See on GitHub + 🔎 See on GitHub @@ -944,7 +944,7 @@

- See on GitHub + 🔎 See on GitHub @@ -969,17 +969,17 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/strong_parameters.rb, line 793
-    def deep_transform_keys(&block)
+    def deep_transform_keys(&block)
       new_instance_with_inherited_permitted_status(
-        @parameters.deep_transform_keys(&block)
+        @parameters.deep_transform_keys(&block)
       )
     end
- See on GitHub + 🔎 See on GitHub
@@ -1006,16 +1006,16 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/strong_parameters.rb, line 802
-    def deep_transform_keys!(&block)
-      @parameters.deep_transform_keys!(&block)
+    def deep_transform_keys!(&block)
+      @parameters.deep_transform_keys!(&block)
       self
     end
- See on GitHub + 🔎 See on GitHub
@@ -1042,15 +1042,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/strong_parameters.rb, line 811
-    def delete(key, &block)
-      convert_value_to_parameters(@parameters.delete(key, &block))
+    def delete(key, &block)
+      convert_value_to_parameters(@parameters.delete(key, &block))
     end
- See on GitHub + 🔎 See on GitHub
@@ -1110,7 +1110,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/strong_parameters.rb, line 709
@@ -1119,7 +1119,7 @@ 

@parameters.dig(*keys) end

- See on GitHub + 🔎 See on GitHub
@@ -1170,7 +1170,7 @@

- See on GitHub + 🔎 See on GitHub @@ -1199,11 +1199,11 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/strong_parameters.rb, line 397
-    def each_pair(&block)
+    def each_pair(&block)
       return to_enum(__callee__) unless block_given?
       @parameters.each_pair do |key, value|
         yield [key, convert_hashes_to_parameters(key, value)]
@@ -1212,7 +1212,7 @@ 

self end

- See on GitHub + 🔎 See on GitHub
@@ -1239,11 +1239,11 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/strong_parameters.rb, line 409
-    def each_value(&block)
+    def each_value(&block)
       return to_enum(:each_value) unless block_given?
       @parameters.each_pair do |key, value|
         yield convert_hashes_to_parameters(key, value)
@@ -1252,7 +1252,7 @@ 

self end

- See on GitHub + 🔎 See on GitHub
@@ -1278,7 +1278,7 @@

- See on GitHub + 🔎 See on GitHub @@ -1303,17 +1303,17 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/strong_parameters.rb, line 304
     def eql?(other)
-      self.class == other.class &&
-        permitted? == other.permitted? &&
+      self.class == other.class &&
+        permitted? == other.permitted? &&
         parameters.eql?(other.parameters)
     end
- See on GitHub + 🔎 See on GitHub
@@ -1349,7 +1349,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/strong_parameters.rb, line 738
@@ -1357,7 +1357,7 @@ 

new_instance_with_inherited_permitted_status(@parameters.except(*keys)) end

- See on GitHub + 🔎 See on GitHub
@@ -1383,7 +1383,7 @@

- See on GitHub + 🔎 See on GitHub @@ -1413,7 +1413,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/strong_parameters.rb, line 748
@@ -1421,7 +1421,7 @@ 

new_instance_with_inherited_permitted_status(@parameters.extract!(*keys)) end

- See on GitHub + 🔎 See on GitHub
@@ -1454,15 +1454,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/strong_parameters.rb, line 970
-    def extract_value(key, delimiter: "_")
-      @parameters[key]&.split(delimiter)
+    def extract_value(key, delimiter: "_")
+      @parameters[key]&.split(delimiter)
     end
- See on GitHub + 🔎 See on GitHub
@@ -1497,7 +1497,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/strong_parameters.rb, line 688
@@ -1513,7 +1513,7 @@ 

) end

- See on GitHub + 🔎 See on GitHub
@@ -1569,7 +1569,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/strong_parameters.rb, line 864
@@ -1577,7 +1577,7 @@ 

each_value.include?(convert_value_to_parameters(value)) end

- See on GitHub + 🔎 See on GitHub
@@ -1604,7 +1604,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/strong_parameters.rb, line 310
@@ -1612,7 +1612,7 @@ 

[self.class, @parameters, @permitted].hash end

- See on GitHub + 🔎 See on GitHub
@@ -1641,7 +1641,7 @@

- See on GitHub + 🔎 See on GitHub @@ -1666,15 +1666,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/strong_parameters.rb, line 922
     def inspect
-      "#<#{self.class} #{@parameters} permitted: #{@permitted}>"
+      "#<#{self.class} #{@parameters} permitted: #{@permitted}>"
     end
- See on GitHub + 🔎 See on GitHub
@@ -1750,7 +1750,7 @@

- See on GitHub + 🔎 See on GitHub @@ -1800,7 +1800,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/strong_parameters.rb, line 878
@@ -1810,7 +1810,7 @@ 

) end

- See on GitHub + 🔎 See on GitHub
@@ -1838,16 +1838,16 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/strong_parameters.rb, line 889
-    def merge!(other_hash, &block)
-      @parameters.merge!(other_hash.to_h, &block)
+    def merge!(other_hash, &block)
+      @parameters.merge!(other_hash.to_h, &block)
       self
     end
- See on GitHub + 🔎 See on GitHub
@@ -1980,7 +1980,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/strong_parameters.rb, line 642
@@ -2001,7 +2001,7 @@ 

params.permit! end

- See on GitHub + 🔎 See on GitHub
@@ -2039,7 +2039,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/strong_parameters.rb, line 456
@@ -2054,7 +2054,7 @@ 

self end

- See on GitHub + 🔎 See on GitHub
@@ -2087,7 +2087,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/strong_parameters.rb, line 440
@@ -2095,7 +2095,7 @@ 

@permitted end

- See on GitHub + 🔎 See on GitHub
@@ -2122,15 +2122,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/strong_parameters.rb, line 830
-    def reject(&block)
-      new_instance_with_inherited_permitted_status(@parameters.reject(&block))
+    def reject(&block)
+      new_instance_with_inherited_permitted_status(@parameters.reject(&block))
     end
- See on GitHub + 🔎 See on GitHub
@@ -2161,16 +2161,16 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/strong_parameters.rb, line 835
-    def reject!(&block)
-      @parameters.reject!(&block)
+    def reject!(&block)
+      @parameters.reject!(&block)
       self
     end
- See on GitHub + 🔎 See on GitHub
@@ -2253,7 +2253,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/strong_parameters.rb, line 517
@@ -2267,7 +2267,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -2323,7 +2323,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/strong_parameters.rb, line 900
@@ -2333,7 +2333,7 @@ 

) end

- See on GitHub + 🔎 See on GitHub
@@ -2364,7 +2364,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/strong_parameters.rb, line 909
@@ -2373,7 +2373,7 @@ 

self end

- See on GitHub + 🔎 See on GitHub
@@ -2400,15 +2400,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/strong_parameters.rb, line 817
-    def select(&block)
-      new_instance_with_inherited_permitted_status(@parameters.select(&block))
+    def select(&block)
+      new_instance_with_inherited_permitted_status(@parameters.select(&block))
     end
- See on GitHub + 🔎 See on GitHub
@@ -2439,16 +2439,16 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/strong_parameters.rb, line 822
-    def select!(&block)
-      @parameters.select!(&block)
+    def select!(&block)
+      @parameters.select!(&block)
       self
     end
- See on GitHub + 🔎 See on GitHub
@@ -2480,7 +2480,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/strong_parameters.rb, line 721
@@ -2488,7 +2488,7 @@ 

new_instance_with_inherited_permitted_status(@parameters.slice(*keys)) end

- See on GitHub + 🔎 See on GitHub
@@ -2515,7 +2515,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/strong_parameters.rb, line 727
@@ -2524,7 +2524,7 @@ 

self end

- See on GitHub + 🔎 See on GitHub
@@ -2562,19 +2562,19 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/strong_parameters.rb, line 326
-    def to_h(&block)
+    def to_h(&block)
       if permitted?
-        convert_parameters_to_hashes(@parameters, :to_h, &block)
+        convert_parameters_to_hashes(@parameters, :to_h, &block)
       else
         raise UnfilteredParameters
       end
     end
- See on GitHub + 🔎 See on GitHub
@@ -2612,7 +2612,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/strong_parameters.rb, line 346
@@ -2620,7 +2620,7 @@ 

to_h.to_hash end

- See on GitHub + 🔎 See on GitHub
@@ -2701,7 +2701,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/strong_parameters.rb, line 376
@@ -2709,7 +2709,7 @@ 

to_h.to_query(*args) end

- See on GitHub + 🔎 See on GitHub
@@ -2737,7 +2737,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/strong_parameters.rb, line 229
@@ -2745,7 +2745,7 @@ 

:as_json, :to_s, :each_key, to: :@parameters

- See on GitHub + 🔎 See on GitHub
@@ -2784,7 +2784,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/strong_parameters.rb, line 390
@@ -2792,7 +2792,7 @@ 

convert_parameters_to_hashes(@parameters, :to_unsafe_h) end

- See on GitHub + 🔎 See on GitHub
@@ -2844,18 +2844,18 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/strong_parameters.rb, line 775
-    def transform_keys(&block)
+    def transform_keys(&block)
       return to_enum(:transform_keys) unless block_given?
       new_instance_with_inherited_permitted_status(
-        @parameters.transform_keys(&block)
+        @parameters.transform_keys(&block)
       )
     end
- See on GitHub + 🔎 See on GitHub
@@ -2882,17 +2882,17 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/strong_parameters.rb, line 784
-    def transform_keys!(&block)
+    def transform_keys!(&block)
       return to_enum(:transform_keys!) unless block_given?
-      @parameters.transform_keys!(&block)
+      @parameters.transform_keys!(&block)
       self
     end
- See on GitHub + 🔎 See on GitHub
@@ -2924,7 +2924,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/strong_parameters.rb, line 758
@@ -2935,7 +2935,7 @@ 

) end

- See on GitHub + 🔎 See on GitHub
@@ -2962,7 +2962,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/strong_parameters.rb, line 767
@@ -2972,7 +2972,7 @@ 

self end

- See on GitHub + 🔎 See on GitHub
@@ -3024,7 +3024,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/strong_parameters.rb, line 419
@@ -3032,7 +3032,7 @@ 

to_enum(:each_value).to_a end

- See on GitHub + 🔎 See on GitHub
@@ -3059,7 +3059,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/strong_parameters.rb, line 872
@@ -3067,7 +3067,7 @@ 

convert_value_to_parameters(@parameters.values_at(*keys)) end

- See on GitHub + 🔎 See on GitHub
@@ -3172,7 +3172,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/strong_parameters.rb, line 983
@@ -3182,7 +3182,7 @@ 

hash end

- See on GitHub + 🔎 See on GitHub
@@ -3209,7 +3209,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/strong_parameters.rb, line 979
@@ -3217,7 +3217,7 @@ 

@parameters.any? { |k, v| Parameters.nested_attribute?(k, v) } end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionController/ParamsWrapper.html b/src/classes/ActionController/ParamsWrapper.html index 661d29e436..54efaa0330 100644 --- a/src/classes/ActionController/ParamsWrapper.html +++ b/src/classes/ActionController/ParamsWrapper.html @@ -133,11 +133,6 @@

Constants

%w(authenticity_token _method utf8) - -   - - - diff --git a/src/classes/ActionController/ParamsWrapper/Options/ClassMethods.html b/src/classes/ActionController/ParamsWrapper/Options/ClassMethods.html index bdc6b47254..5d6108f226 100644 --- a/src/classes/ActionController/ParamsWrapper/Options/ClassMethods.html +++ b/src/classes/ActionController/ParamsWrapper/Options/ClassMethods.html @@ -86,7 +86,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/params_wrapper.rb, line 191
@@ -94,7 +94,7 @@ 

self._wrapper_options = Options.from_hash(options) end

- See on GitHub + 🔎 See on GitHub
@@ -121,7 +121,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/params_wrapper.rb, line 246
@@ -134,7 +134,7 @@ 

super end

- See on GitHub + 🔎 See on GitHub
@@ -189,7 +189,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/params_wrapper.rb, line 222
@@ -214,7 +214,7 @@ 

self._wrapper_options = opts end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionController/PermissionsPolicy/ClassMethods.html b/src/classes/ActionController/PermissionsPolicy/ClassMethods.html index 26fb16fedc..4d6c3d979f 100644 --- a/src/classes/ActionController/PermissionsPolicy/ClassMethods.html +++ b/src/classes/ActionController/PermissionsPolicy/ClassMethods.html @@ -94,21 +94,21 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/permissions_policy.rb, line 26
-      def permissions_policy(**options, &block)
+      def permissions_policy(**options, &block)
         before_action(options) do
           if block_given?
             policy = request.permissions_policy.clone
-            instance_exec(policy, &block)
+            instance_exec(policy, &block)
             request.permissions_policy = policy
           end
         end
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionController/Railties/Helpers.html b/src/classes/ActionController/Railties/Helpers.html index 00d0ef25ec..d4e696841e 100644 --- a/src/classes/ActionController/Railties/Helpers.html +++ b/src/classes/ActionController/Railties/Helpers.html @@ -78,7 +78,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/railties/helpers.rb, line 6
@@ -94,12 +94,12 @@ 

klass.helpers_path = paths - if klass.superclass == ActionController::Base && ActionController::Base.include_all_helpers + if klass.superclass == ActionController::Base && ActionController::Base.include_all_helpers klass.helper :all end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionController/Redirecting.html b/src/classes/ActionController/Redirecting.html index b538f3611b..4b1223eba9 100644 --- a/src/classes/ActionController/Redirecting.html +++ b/src/classes/ActionController/Redirecting.html @@ -98,11 +98,6 @@

Constants

/[\x00-\x08\x0A-\x1F]/.freeze - -   - - - @@ -135,7 +130,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/redirecting.rb, line 101
@@ -143,7 +138,7 @@ 

redirect_back_or_to fallback_location, allow_other_host: allow_other_host, **args end

- See on GitHub + 🔎 See on GitHub
@@ -188,20 +183,20 @@

Options

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/redirecting.rb, line 127
     def redirect_back_or_to(fallback_location, allow_other_host: _allow_other_host, **options)
-      if request.referer && (allow_other_host || _url_host_allowed?(request.referer))
+      if request.referer && (allow_other_host || _url_host_allowed?(request.referer))
         redirect_to request.referer, allow_other_host: allow_other_host, **options
       else
-        # The method level `allow_other_host` doesn't apply in the fallback case, omit and let the `redirect_to` handling take over.
+        # The method level `allow_other_host` doesn't apply in the fallback case, omit and let the `redirect_to` handling take over.
         redirect_to fallback_location, **options
       end
     end
- See on GitHub + 🔎 See on GitHub
@@ -296,12 +291,12 @@

Open Redirect prote
- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/redirecting.rb, line 84
     def redirect_to(options = {}, response_options = {})
-      raise ActionControllerError.new("Cannot redirect to nil!") unless options
+      raise ActionControllerError.new("Cannot redirect to nil!") unless options
       raise AbstractController::DoubleRenderError if response_body
 
       allow_other_host = response_options.delete(:allow_other_host) { _allow_other_host }
@@ -312,10 +307,10 @@ 

Open Redirect prote _ensure_url_is_http_header_safe(redirect_to_location) self.location = _enforce_open_redirect_protection(redirect_to_location, allow_other_host: allow_other_host) - self.response_body = "" + self.response_body = "" end

- See on GitHub + 🔎 See on GitHub
@@ -361,16 +356,16 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/redirecting.rb, line 175
     def url_from(location)
       location = location.presence
-      location if location && _url_host_allowed?(location)
+      location if location && _url_host_allowed?(location)
     end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionController/Renderer.html b/src/classes/ActionController/Renderer.html index b496374843..39606326be 100644 --- a/src/classes/ActionController/Renderer.html +++ b/src/classes/ActionController/Renderer.html @@ -118,11 +118,6 @@

Constants

}.freeze - -   - - - RACK_KEY_TRANSLATION @@ -136,11 +131,6 @@

Constants

} - -   - - - @@ -186,7 +176,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/renderer.rb, line 61
@@ -194,7 +184,7 @@ 

new(controller, env, defaults) end

- See on GitHub + 🔎 See on GitHub
@@ -243,14 +233,14 @@

Parameter
- Source code + 📝 Source code
# File actionpack/lib/action_controller/renderer.rb, line 106
     def initialize(controller, env, defaults)
       @controller = controller
       @defaults = defaults
-      if env.blank? && @defaults == DEFAULTS
+      if env.blank? && @defaults == DEFAULTS
         @env = DEFAULT_ENV
       else
         @env = normalize_env(@defaults)
@@ -258,7 +248,7 @@ 

Parameter end end

- See on GitHub + 🔎 See on GitHub
@@ -289,7 +279,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/renderer.rb, line 117
@@ -298,7 +288,7 @@ 

@defaults end

- See on GitHub + 🔎 See on GitHub
@@ -328,7 +318,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/renderer.rb, line 69
@@ -336,7 +326,7 @@ 

self.class.new controller, env, @defaults end

- See on GitHub + 🔎 See on GitHub
@@ -367,7 +357,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/renderer.rb, line 123
@@ -381,7 +371,7 @@ 

instance.render_to_string(*args) end

- See on GitHub + 🔎 See on GitHub
@@ -433,7 +423,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/renderer.rb, line 75
@@ -441,7 +431,7 @@ 

self.class.new controller, @env, @defaults.merge(defaults) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionController/Renderers.html b/src/classes/ActionController/Renderers.html index c870c247ae..c3feefc9d6 100644 --- a/src/classes/ActionController/Renderers.html +++ b/src/classes/ActionController/Renderers.html @@ -126,15 +126,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/renderers.rb, line 90
     def self._render_with_renderer_method_name(key)
-      "_render_with_renderer_#{key}"
+      "_render_with_renderer_#{key}"
     end
- See on GitHub + 🔎 See on GitHub
@@ -184,16 +184,16 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/renderers.rb, line 74
-    def self.add(key, &block)
-      define_method(_render_with_renderer_method_name(key), &block)
-      RENDERERS << key.to_sym
+    def self.add(key, &block)
+      define_method(_render_with_renderer_method_name(key), &block)
+      RENDERERS << key.to_sym
     end
- See on GitHub + 🔎 See on GitHub
@@ -225,7 +225,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/renderers.rb, line 84
@@ -235,7 +235,7 @@ 

remove_possible_method(method_name) end

- See on GitHub + 🔎 See on GitHub
@@ -266,7 +266,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/renderers.rb, line 144
@@ -281,7 +281,7 @@ 

nil end

- See on GitHub + 🔎 See on GitHub
@@ -310,7 +310,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/renderers.rb, line 140
@@ -318,7 +318,7 @@ 

_render_to_body_with_renderer(options) || super end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionController/Renderers/ClassMethods.html b/src/classes/ActionController/Renderers/ClassMethods.html index 51e3fa9ce7..3ee8b5c0b8 100644 --- a/src/classes/ActionController/Renderers/ClassMethods.html +++ b/src/classes/ActionController/Renderers/ClassMethods.html @@ -134,7 +134,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/renderers.rb, line 128
@@ -143,7 +143,7 @@ 

self._renderers = renderers.freeze end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionController/Rendering.html b/src/classes/ActionController/Rendering.html index fc91f297cb..3e30db5209 100644 --- a/src/classes/ActionController/Rendering.html +++ b/src/classes/ActionController/Rendering.html @@ -76,11 +76,6 @@

Constants

[:body, :plain, :html] - -   - - - @@ -223,7 +218,7 @@

Options

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/rendering.rb, line 137
@@ -232,7 +227,7 @@ 

Options

super end
- See on GitHub + 🔎 See on GitHub
@@ -259,22 +254,22 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/rendering.rb, line 146
     def render_to_string(*)
       result = super
       if result.respond_to?(:each)
-        string = +""
-        result.each { |r| string << r }
+        string = +""
+        result.each { |r| string << r }
         string
       else
         result
       end
     end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionController/Rendering/ClassMethods.html b/src/classes/ActionController/Rendering/ClassMethods.html index d59636de00..7d69c13f7b 100644 --- a/src/classes/ActionController/Rendering/ClassMethods.html +++ b/src/classes/ActionController/Rendering/ClassMethods.html @@ -92,7 +92,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/rendering.rb, line 21
@@ -101,7 +101,7 @@ 

super end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionController/RequestForgeryProtection.html b/src/classes/ActionController/RequestForgeryProtection.html index 20dfba07f5..3d10ce1f33 100644 --- a/src/classes/ActionController/RequestForgeryProtection.html +++ b/src/classes/ActionController/RequestForgeryProtection.html @@ -240,11 +240,6 @@

Constants

32 - -   - - - CSRF_TOKEN @@ -252,11 +247,6 @@

Constants

"action_controller.csrf_token" - -   - - - NULL_ORIGIN_MESSAGE @@ -264,11 +254,6 @@

Constants

<<~MSG - -   - - - @@ -300,7 +285,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/request_forgery_protection.rb, line 345
@@ -309,7 +294,7 @@ 

@marked_for_same_origin_verification = nil end

- See on GitHub + 🔎 See on GitHub
@@ -340,7 +325,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/request_forgery_protection.rb, line 355
@@ -349,7 +334,7 @@ 

csrf_token_storage_strategy.store(request, csrf_token) unless csrf_token.nil? end

- See on GitHub + 🔎 See on GitHub
@@ -376,7 +361,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/request_forgery_protection.rb, line 350
@@ -385,7 +370,7 @@ 

csrf_token_storage_strategy.reset(request) end

- See on GitHub + 🔎 See on GitHub
@@ -415,7 +400,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/request_forgery_protection.rb, line 448
@@ -425,7 +410,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -452,7 +437,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/request_forgery_protection.rb, line 534
@@ -460,7 +445,7 @@ 

ActiveSupport::SecurityUtils.fixed_length_secure_compare(token, global_csrf_token(session)) end

- See on GitHub + 🔎 See on GitHub
@@ -487,7 +472,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/request_forgery_protection.rb, line 530
@@ -495,7 +480,7 @@ 

ActiveSupport::SecurityUtils.fixed_length_secure_compare(token, real_csrf_token(session)) end

- See on GitHub + 🔎 See on GitHub
@@ -522,7 +507,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/request_forgery_protection.rb, line 571
@@ -534,7 +519,7 @@ 

) end

- See on GitHub + 🔎 See on GitHub
@@ -561,7 +546,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/request_forgery_protection.rb, line 591
@@ -569,7 +554,7 @@ 

params[request_forgery_protection_token] end

- See on GitHub + 🔎 See on GitHub
@@ -596,7 +581,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/request_forgery_protection.rb, line 460
@@ -604,7 +589,7 @@ 

masked_authenticity_token(form_options: form_options) end

- See on GitHub + 🔎 See on GitHub
@@ -631,7 +616,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/request_forgery_protection.rb, line 567
@@ -639,7 +624,7 @@ 

csrf_token_hmac(session, GLOBAL_CSRF_TOKEN_IDENTIFIER) end

- See on GitHub + 🔎 See on GitHub
@@ -666,7 +651,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/request_forgery_protection.rb, line 381
@@ -680,7 +665,7 @@ 

protection_strategy.handle_unverified_request end

- See on GitHub + 🔎 See on GitHub
@@ -707,7 +692,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/request_forgery_protection.rb, line 420
@@ -715,7 +700,7 @@ 

@marked_for_same_origin_verification = request.get? end

- See on GitHub + 🔎 See on GitHub
@@ -742,7 +727,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/request_forgery_protection.rb, line 426
@@ -750,7 +735,7 @@ 

@marked_for_same_origin_verification ||= false end

- See on GitHub + 🔎 See on GitHub
@@ -777,7 +762,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/request_forgery_protection.rb, line 523
@@ -788,7 +773,7 @@ 

encode_csrf_token(masked_token) end

- See on GitHub + 🔎 See on GitHub
@@ -815,15 +800,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/request_forgery_protection.rb, line 431
       def non_xhr_javascript_response? # :doc:
-        %r(\A(?:text|application)/javascript).match?(media_type) && !request.xhr?
+        %r(\A(?:text|application)/javascript).match?(media_type) && !request.xhr?
       end
- See on GitHub + 🔎 See on GitHub
@@ -850,16 +835,16 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/request_forgery_protection.rb, line 621
       def normalize_action_path(action_path) # :doc:
         uri = URI.parse(action_path)
-        uri.path.chomp("/")
+        uri.path.chomp("/")
       end
- See on GitHub + 🔎 See on GitHub
@@ -886,15 +871,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/request_forgery_protection.rb, line 560
       def per_form_csrf_token(session, action_path, method) # :doc:
-        csrf_token_hmac(session, [action_path, method.downcase].join("#"))
+        csrf_token_hmac(session, [action_path, method.downcase].join("#"))
       end
- See on GitHub + 🔎 See on GitHub
@@ -921,15 +906,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/request_forgery_protection.rb, line 596
       def protect_against_forgery? # :doc:
-        allow_forgery_protection && (!session.respond_to?(:enabled?) || session.enabled?)
+        allow_forgery_protection && (!session.respond_to?(:enabled?) || session.enabled?)
       end
- See on GitHub + 🔎 See on GitHub
@@ -956,7 +941,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/request_forgery_protection.rb, line 552
@@ -968,7 +953,7 @@ 

decode_csrf_token(csrf_token) end

- See on GitHub + 🔎 See on GitHub
@@ -995,7 +980,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/request_forgery_protection.rb, line 455
@@ -1003,7 +988,7 @@ 

[form_authenticity_param, request.x_csrf_token] end

- See on GitHub + 🔎 See on GitHub
@@ -1030,7 +1015,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/request_forgery_protection.rb, line 515
@@ -1042,7 +1027,7 @@ 

xor_byte_strings(one_time_pad, encrypted_csrf_token) end

- See on GitHub + 🔎 See on GitHub
@@ -1069,7 +1054,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/request_forgery_protection.rb, line 483
@@ -1084,9 +1069,9 @@ 

return false end - # See if it's actually a masked token or not. In order to + # See if it's actually a masked token or not. In order to # deploy this code, we should be able to handle any unmasked - # tokens that we've issued without error. + # tokens that we've issued without error. if masked_token.length == AUTHENTICITY_TOKEN_LENGTH # This is actually an unmasked token. This is expected if @@ -1105,7 +1090,7 @@

end end

- See on GitHub + 🔎 See on GitHub
@@ -1132,7 +1117,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/request_forgery_protection.rb, line 538
@@ -1140,7 +1125,7 @@ 

if per_form_csrf_tokens correct_token = per_form_csrf_token( session, - request.path.chomp("/"), + request.path.chomp("/"), request.request_method ) @@ -1150,7 +1135,7 @@

end end

- See on GitHub + 🔎 See on GitHub
@@ -1177,21 +1162,21 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/request_forgery_protection.rb, line 611
       def valid_request_origin? # :doc:
         if forgery_protection_origin_check
-          # We accept blank origin headers because some user agents don't send it.
-          raise InvalidAuthenticityToken, NULL_ORIGIN_MESSAGE if request.origin == "null"
+          # We accept blank origin headers because some user agents don't send it.
+          raise InvalidAuthenticityToken, NULL_ORIGIN_MESSAGE if request.origin == "null"
           request.origin.nil? || request.origin == request.base_url
         else
           true
         end
       end
- See on GitHub + 🔎 See on GitHub
@@ -1225,16 +1210,16 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/request_forgery_protection.rb, line 442
       def verified_request? # :doc:
         !protect_against_forgery? || request.get? || request.head? ||
-          (valid_request_origin? && any_authenticity_token_valid?)
+          (valid_request_origin? && any_authenticity_token_valid?)
       end
- See on GitHub + 🔎 See on GitHub
@@ -1263,7 +1248,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/request_forgery_protection.rb, line 371
@@ -1271,13 +1256,13 @@ 

mark_for_same_origin_verification! if !verified_request? - logger.warn unverified_request_warning_message if logger && log_warning_on_csrf_failure + logger.warn unverified_request_warning_message if logger && log_warning_on_csrf_failure handle_unverified_request end end

- See on GitHub + 🔎 See on GitHub
@@ -1304,20 +1289,20 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/request_forgery_protection.rb, line 410
       def verify_same_origin_request # :doc:
-        if marked_for_same_origin_verification? && non_xhr_javascript_response?
-          if logger && log_warning_on_csrf_failure
+        if marked_for_same_origin_verification? && non_xhr_javascript_response?
+          if logger && log_warning_on_csrf_failure
             logger.warn CROSS_ORIGIN_JAVASCRIPT_WARNING
           end
           raise ActionController::InvalidCrossOriginRequest, CROSS_ORIGIN_JAVASCRIPT_WARNING
         end
       end
- See on GitHub + 🔎 See on GitHub
@@ -1344,7 +1329,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/request_forgery_protection.rb, line 579
@@ -1352,14 +1337,14 @@ 

s2 = s2.dup size = s1.bytesize i = 0 - while i < size + while i < size s2.setbyte(i, s1.getbyte(i) ^ s2.getbyte(i)) i += 1 end s2 end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionController/RequestForgeryProtection/ClassMethods.html b/src/classes/ActionController/RequestForgeryProtection/ClassMethods.html index 3071767aa6..432fd5b104 100644 --- a/src/classes/ActionController/RequestForgeryProtection/ClassMethods.html +++ b/src/classes/ActionController/RequestForgeryProtection/ClassMethods.html @@ -168,7 +168,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/request_forgery_protection.rb, line 179
@@ -184,7 +184,7 @@ 

append_after_action :verify_same_origin_request end

- See on GitHub + 🔎 See on GitHub
@@ -216,7 +216,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/request_forgery_protection.rb, line 196
@@ -224,7 +224,7 @@ 

skip_before_action :verify_authenticity_token, options.reverse_merge(raise: false) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionController/RequestForgeryProtection/CookieStore.html b/src/classes/ActionController/RequestForgeryProtection/CookieStore.html index 914f00e853..9a51c2add4 100644 --- a/src/classes/ActionController/RequestForgeryProtection/CookieStore.html +++ b/src/classes/ActionController/RequestForgeryProtection/CookieStore.html @@ -95,7 +95,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/request_forgery_protection.rb, line 313
@@ -103,7 +103,7 @@ 

@cookie_name = cookie end

- See on GitHub + 🔎 See on GitHub
@@ -134,7 +134,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/request_forgery_protection.rb, line 317
@@ -143,14 +143,14 @@ 

return nil if contents.nil? value = JSON.parse(contents) - return nil unless value.dig("session_id", "public_id") == request.session.id_was&.public_id + return nil unless value.dig("session_id", "public_id") == request.session.id_was&.public_id - value["token"] + value["token"] rescue JSON::ParserError nil end

- See on GitHub + 🔎 See on GitHub
@@ -177,7 +177,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/request_forgery_protection.rb, line 340
@@ -185,7 +185,7 @@ 

request.cookie_jar.delete(@cookie_name) end

- See on GitHub + 🔎 See on GitHub
@@ -212,7 +212,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/request_forgery_protection.rb, line 329
@@ -227,7 +227,7 @@ 

} end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionController/RequestForgeryProtection/ProtectionMethods/Exception.html b/src/classes/ActionController/RequestForgeryProtection/ProtectionMethods/Exception.html index aa36c1b860..2540bdc5c2 100644 --- a/src/classes/ActionController/RequestForgeryProtection/ProtectionMethods/Exception.html +++ b/src/classes/ActionController/RequestForgeryProtection/ProtectionMethods/Exception.html @@ -101,7 +101,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/request_forgery_protection.rb, line 288
@@ -109,7 +109,7 @@ 

@controller = controller end

- See on GitHub + 🔎 See on GitHub
@@ -140,7 +140,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/request_forgery_protection.rb, line 292
@@ -148,7 +148,7 @@ 

raise ActionController::InvalidAuthenticityToken, warning_message end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionController/RequestForgeryProtection/ProtectionMethods/NullSession.html b/src/classes/ActionController/RequestForgeryProtection/ProtectionMethods/NullSession.html index 2d28bb79f2..65ae049c4c 100644 --- a/src/classes/ActionController/RequestForgeryProtection/ProtectionMethods/NullSession.html +++ b/src/classes/ActionController/RequestForgeryProtection/ProtectionMethods/NullSession.html @@ -87,7 +87,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/request_forgery_protection.rb, line 235
@@ -95,7 +95,7 @@ 

@controller = controller end

- See on GitHub + 🔎 See on GitHub
@@ -126,7 +126,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/request_forgery_protection.rb, line 240
@@ -138,7 +138,7 @@ 

request.cookie_jar = NullCookieJar.build(request, {}) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionController/RequestForgeryProtection/ProtectionMethods/ResetSession.html b/src/classes/ActionController/RequestForgeryProtection/ProtectionMethods/ResetSession.html index 596a819437..7d21a77f42 100644 --- a/src/classes/ActionController/RequestForgeryProtection/ProtectionMethods/ResetSession.html +++ b/src/classes/ActionController/RequestForgeryProtection/ProtectionMethods/ResetSession.html @@ -87,7 +87,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/request_forgery_protection.rb, line 276
@@ -95,7 +95,7 @@ 

@controller = controller end

- See on GitHub + 🔎 See on GitHub
@@ -126,7 +126,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/request_forgery_protection.rb, line 280
@@ -134,7 +134,7 @@ 

@controller.reset_session end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionController/RequestForgeryProtection/SessionStore.html b/src/classes/ActionController/RequestForgeryProtection/SessionStore.html index 67784afff5..3fd0149c05 100644 --- a/src/classes/ActionController/RequestForgeryProtection/SessionStore.html +++ b/src/classes/ActionController/RequestForgeryProtection/SessionStore.html @@ -92,7 +92,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/request_forgery_protection.rb, line 299
@@ -100,7 +100,7 @@ 

request.session[:_csrf_token] end

- See on GitHub + 🔎 See on GitHub
@@ -127,7 +127,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/request_forgery_protection.rb, line 307
@@ -135,7 +135,7 @@ 

request.session.delete(:_csrf_token) end

- See on GitHub + 🔎 See on GitHub
@@ -162,7 +162,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/request_forgery_protection.rb, line 303
@@ -170,7 +170,7 @@ 

request.session[:_csrf_token] = csrf_token end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionController/Rescue.html b/src/classes/ActionController/Rescue.html index 79362deb48..05805c15c7 100644 --- a/src/classes/ActionController/Rescue.html +++ b/src/classes/ActionController/Rescue.html @@ -100,7 +100,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/rescue.rb, line 19
@@ -108,7 +108,7 @@ 

false end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionController/RespondToMismatchError.html b/src/classes/ActionController/RespondToMismatchError.html index be937dd632..aa8264d8dd 100644 --- a/src/classes/ActionController/RespondToMismatchError.html +++ b/src/classes/ActionController/RespondToMismatchError.html @@ -80,11 +80,6 @@

Constants

"respond_to was called multiple times and matched with conflicting formats in this action. Please note that you may only call respond_to and match on a single format per action." - -   - - - @@ -116,7 +111,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/exceptions.rb, line 89
@@ -124,7 +119,7 @@ 

super(message || DEFAULT_MESSAGE) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionController/StrongParameters.html b/src/classes/ActionController/StrongParameters.html index f7ea8dafa0..19612173ff 100644 --- a/src/classes/ActionController/StrongParameters.html +++ b/src/classes/ActionController/StrongParameters.html @@ -149,7 +149,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/strong_parameters.rb, line 1275
@@ -165,7 +165,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -192,7 +192,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/strong_parameters.rb, line 1290
@@ -200,7 +200,7 @@ 

@_params = value.is_a?(Hash) ? Parameters.new(value) : value end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionController/TestCase/Behavior.html b/src/classes/ActionController/TestCase/Behavior.html index a0c83a69b4..14924bb73b 100644 --- a/src/classes/ActionController/TestCase/Behavior.html +++ b/src/classes/ActionController/TestCase/Behavior.html @@ -193,7 +193,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/test_case.rb, line 564
@@ -201,7 +201,7 @@ 

klass.create end

- See on GitHub + 🔎 See on GitHub
@@ -228,15 +228,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/test_case.rb, line 524
       def controller_class_name
-        @controller.class.anonymous? ? "anonymous" : @controller.class.controller_path
+        @controller.class.anonymous? ? "anonymous" : @controller.class.controller_path
       end
- See on GitHub + 🔎 See on GitHub
@@ -263,15 +263,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/test_case.rb, line 439
       def delete(action, **args)
-        process(action, method: "DELETE", **args)
+        process(action, method: "DELETE", **args)
       end
- See on GitHub + 🔎 See on GitHub
@@ -298,7 +298,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/test_case.rb, line 528
@@ -306,7 +306,7 @@ 

generated_extras[0] end

- See on GitHub + 🔎 See on GitHub
@@ -354,17 +354,17 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/test_case.rb, line 413
       def get(action, **args)
-        res = process(action, method: "GET", **args)
+        res = process(action, method: "GET", **args)
         cookies.update res.cookies
         res
       end
- See on GitHub + 🔎 See on GitHub
@@ -391,15 +391,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/test_case.rb, line 445
       def head(action, **args)
-        process(action, method: "HEAD", **args)
+        process(action, method: "HEAD", **args)
       end
- See on GitHub + 🔎 See on GitHub
@@ -426,15 +426,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/test_case.rb, line 427
       def patch(action, **args)
-        process(action, method: "PATCH", **args)
+        process(action, method: "PATCH", **args)
       end
- See on GitHub + 🔎 See on GitHub
@@ -461,15 +461,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/test_case.rb, line 421
       def post(action, **args)
-        process(action, method: "POST", **args)
+        process(action, method: "POST", **args)
       end
- See on GitHub + 🔎 See on GitHub
@@ -530,11 +530,11 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/test_case.rb, line 484
-      def process(action, method: "GET", params: nil, session: nil, body: nil, flash: {}, format: nil, xhr: false, as: nil)
+      def process(action, method: "GET", params: nil, session: nil, body: nil, flash: {}, format: nil, xhr: false, as: nil)
         check_required_ivars
         @controller.clear_instance_variables_between_requests
 
@@ -545,8 +545,8 @@ 

cookies.update(@request.cookies) cookies.update_cookies_from_jar - @request.set_header "HTTP_COOKIE", cookies.to_header - @request.delete_header "action_dispatch.cookies" + @request.set_header "HTTP_COOKIE", cookies.to_header + @request.delete_header "action_dispatch.cookies" @request = TestRequest.new scrub_env!(@request.env), @request.session, @controller.class @response = build_response @response_klass @@ -554,10 +554,10 @@

@controller.recycle! if body - @request.set_header "RAW_POST_DATA", body + @request.set_header "RAW_POST_DATA", body end - @request.set_header "REQUEST_METHOD", http_method + @request.set_header "REQUEST_METHOD", http_method if as @request.content_type = Mime[as].to_s @@ -574,7 +574,7 @@

process_controller_response(action, cookies, xhr) end

- See on GitHub + 🔎 See on GitHub
@@ -601,15 +601,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/test_case.rb, line 433
       def put(action, **args)
-        process(action, method: "PUT", **args)
+        process(action, method: "PUT", **args)
       end
- See on GitHub + 🔎 See on GitHub
@@ -636,7 +636,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/test_case.rb, line 532
@@ -644,7 +644,7 @@ 

generated_extras[1] + [:controller, :action] end

- See on GitHub + 🔎 See on GitHub
@@ -671,7 +671,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/test_case.rb, line 536
@@ -681,14 +681,14 @@ 

@response_klass = ActionDispatch::TestResponse if klass = self.class.controller_class - if klass < ActionController::Live + if klass < ActionController::Live @response_klass = LiveTestResponse end unless @controller begin @controller = klass.new rescue - warn "could not construct controller #{klass}" if $VERBOSE + warn "could not construct controller #{klass}" if $VERBOSE end end end @@ -703,7 +703,7 @@

end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionController/TestCase/Behavior/ClassMethods.html b/src/classes/ActionController/TestCase/Behavior/ClassMethods.html index a2385953c9..1251d4e484 100644 --- a/src/classes/ActionController/TestCase/Behavior/ClassMethods.html +++ b/src/classes/ActionController/TestCase/Behavior/ClassMethods.html @@ -90,7 +90,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/test_case.rb, line 378
@@ -102,7 +102,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -129,7 +129,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/test_case.rb, line 374
@@ -137,7 +137,7 @@ 

self._controller_class = new_class end

- See on GitHub + 🔎 See on GitHub
@@ -164,17 +164,17 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/test_case.rb, line 386
         def determine_default_controller_class(name)
           determine_constant_from_test_name(name) do |constant|
-            Class === constant && constant < ActionController::Metal
+            Class === constant && constant < ActionController::Metal
           end
         end
- See on GitHub + 🔎 See on GitHub
@@ -206,22 +206,22 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/test_case.rb, line 363
         def tests(controller_class)
           case controller_class
           when String, Symbol
-            self.controller_class = "#{controller_class.to_s.camelize}Controller".constantize
+            self.controller_class = "#{controller_class.to_s.camelize}Controller".constantize
           when Class
             self.controller_class = controller_class
           else
-            raise ArgumentError, "controller class must be a String, Symbol, or Class"
+            raise ArgumentError, "controller class must be a String, Symbol, or Class"
           end
         end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionController/UrlFor.html b/src/classes/ActionController/UrlFor.html index 67a522246a..6e6bb3d193 100644 --- a/src/classes/ActionController/UrlFor.html +++ b/src/classes/ActionController/UrlFor.html @@ -118,7 +118,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/url_for.rb, line 30
@@ -127,7 +127,7 @@ 

@_url_options = nil end

- See on GitHub + 🔎 See on GitHub
@@ -158,7 +158,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_controller/metal/url_for.rb, line 35
@@ -179,7 +179,7 @@ 

options[:original_script_name] = original_script_name else if same_origin - options[:script_name] = request.script_name.empty? ? "" : request.script_name.dup + options[:script_name] = request.script_name.empty? ? "" : request.script_name.dup else options[:script_name] = script_name end @@ -190,7 +190,7 @@

end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionDispatch.html b/src/classes/ActionDispatch.html index 2275231b4b..b49a4c4fd6 100644 --- a/src/classes/ActionDispatch.html +++ b/src/classes/ActionDispatch.html @@ -406,7 +406,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch.rb, line 141
@@ -415,7 +415,7 @@ 

Routing.eager_load! end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionDispatch/AssertionResponse.html b/src/classes/ActionDispatch/AssertionResponse.html index 9270b4c7a9..f233dfbef5 100644 --- a/src/classes/ActionDispatch/AssertionResponse.html +++ b/src/classes/ActionDispatch/AssertionResponse.html @@ -115,7 +115,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/testing/assertion_response.rb, line 20
@@ -128,11 +128,11 @@ 

@code = code_or_name end - raise ArgumentError, "Invalid response name: #{name}" if @code.nil? - raise ArgumentError, "Invalid response code: #{code}" if @name.nil? + raise ArgumentError, "Invalid response name: #{name}" if @code.nil? + raise ArgumentError, "Invalid response code: #{code}" if @name.nil? end

- See on GitHub + 🔎 See on GitHub
@@ -163,15 +163,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/testing/assertion_response.rb, line 33
     def code_and_name
-      "#{code}: #{name}"
+      "#{code}: #{name}"
     end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionDispatch/Assertions.html b/src/classes/ActionDispatch/Assertions.html index 444d802497..fc01a62063 100644 --- a/src/classes/ActionDispatch/Assertions.html +++ b/src/classes/ActionDispatch/Assertions.html @@ -125,19 +125,19 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/testing/assertions.rb, line 15
     def html_document
-      @html_document ||= if @response.media_type&.end_with?("xml")
+      @html_document ||= if @response.media_type&.end_with?("xml")
         Nokogiri::XML::Document.parse(@response.body)
       else
         Rails::Dom::Testing.html_document.parse(@response.body)
       end
     end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionDispatch/Assertions/ResponseAssertions.html b/src/classes/ActionDispatch/Assertions/ResponseAssertions.html index 8d390ae8cb..7b7eaeb8f9 100644 --- a/src/classes/ActionDispatch/Assertions/ResponseAssertions.html +++ b/src/classes/ActionDispatch/Assertions/ResponseAssertions.html @@ -105,7 +105,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/testing/assertions/response.rb, line 57
@@ -119,11 +119,11 @@ 

redirect_is = normalize_argument_to_redirection(@response.location) redirect_expected = normalize_argument_to_redirection(url_options) - message ||= "Expected response to be a redirect to <#{redirect_expected}> but was a redirect to <#{redirect_is}>" + message ||= "Expected response to be a redirect to <#{redirect_expected}> but was a redirect to <#{redirect_is}>" assert_operator redirect_expected, :===, redirect_is, message end

- See on GitHub + 🔎 See on GitHub
@@ -168,7 +168,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/testing/assertions/response.rb, line 30
@@ -182,7 +182,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionDispatch/Assertions/RoutingAssertions.html b/src/classes/ActionDispatch/Assertions/RoutingAssertions.html index be3a2c8046..3dab3eccec 100644 --- a/src/classes/ActionDispatch/Assertions/RoutingAssertions.html +++ b/src/classes/ActionDispatch/Assertions/RoutingAssertions.html @@ -128,33 +128,33 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/testing/assertions/routing.rb, line 115
       def assert_generates(expected_path, options, defaults = {}, extras = {}, message = nil)
-        if expected_path.include?("://")
+        if expected_path.include?("://")
           fail_on(URI::InvalidURIError, message) do
             uri = URI.parse(expected_path)
-            expected_path = uri.path.to_s.empty? ? "/" : uri.path
+            expected_path = uri.path.to_s.empty? ? "/" : uri.path
           end
         else
-          expected_path = "/#{expected_path}" unless expected_path.start_with?("/")
+          expected_path = "/#{expected_path}" unless expected_path.start_with?("/")
         end
 
         options = options.clone
         generated_path, query_string_keys = @routes.generate_extras(options, defaults)
         found_extras = options.reject { |k, _| ! query_string_keys.include? k }
 
-        msg = message || sprintf("found extras <%s>, not <%s>", found_extras, extras)
+        msg = message || sprintf("found extras <%s>, not <%s>", found_extras, extras)
         assert_equal(extras, found_extras, msg)
 
-        msg = message || sprintf("The generated path <%s> did not match <%s>", generated_path,
+        msg = message || sprintf("The generated path <%s> did not match <%s>", generated_path,
             expected_path)
         assert_equal(expected_path, generated_path, msg)
       end
- See on GitHub + 🔎 See on GitHub
@@ -208,12 +208,12 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/testing/assertions/routing.rb, line 77
       def assert_recognizes(expected_options, path, extras = {}, msg = nil)
-        if path.is_a?(Hash) && path[:method].to_s == "all"
+        if path.is_a?(Hash) && path[:method].to_s == "all"
           [:get, :post, :put, :delete].each do |method|
             assert_recognizes(expected_options, path.merge(method: method), extras, msg)
           end
@@ -224,8 +224,8 @@ 

expected_options.stringify_keys! - msg = message(msg, "") { - sprintf("The recognized options <%s> did not match <%s>, difference:", + msg = message(msg, "") { + sprintf("The recognized options <%s> did not match <%s>, difference:", request.path_parameters, expected_options) } @@ -233,7 +233,7 @@

end end

- See on GitHub + 🔎 See on GitHub
@@ -278,7 +278,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/testing/assertions/routing.rb, line 158
@@ -286,15 +286,15 @@ 

assert_recognizes(options, path, extras, message) controller, default_controller = options[:controller], defaults[:controller] - if controller && controller.include?(?/) && default_controller && default_controller.include?(?/) - options[:controller] = "/#{controller}" + if controller && controller.include?(?/) && default_controller && default_controller.include?(?/) + options[:controller] = "/#{controller}" end generate_options = options.dup.delete_if { |k, _| defaults.key?(k) } assert_generates(path.is_a?(Hash) ? path[:path] : path, generate_options, defaults, extras, message) end

- See on GitHub + 🔎 See on GitHub
@@ -321,19 +321,19 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/testing/assertions/routing.rb, line 191
-      def method_missing(selector, *args, &block)
-        if defined?(@controller) && @controller && defined?(@routes) && @routes && @routes.named_routes.route_defined?(selector)
-          @controller.public_send(selector, *args, &block)
+      def method_missing(selector, *args, &block)
+        if defined?(@controller) && @controller && defined?(@routes) && @routes && @routes.named_routes.route_defined?(selector)
+          @controller.public_send(selector, *args, &block)
         else
           super
         end
       end
- See on GitHub + 🔎 See on GitHub
@@ -370,18 +370,18 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/testing/assertions/routing.rb, line 183
-      def with_routing(&block)
+      def with_routing(&block)
         old_routes, old_controller = @routes, @controller
-        create_routes(&block)
+        create_routes(&block)
       ensure
         reset_routes(old_routes, old_controller)
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionDispatch/Assertions/RoutingAssertions/ClassMethods.html b/src/classes/ActionDispatch/Assertions/RoutingAssertions/ClassMethods.html index 42fbbeafbf..66f73b80d0 100644 --- a/src/classes/ActionDispatch/Assertions/RoutingAssertions/ClassMethods.html +++ b/src/classes/ActionDispatch/Assertions/RoutingAssertions/ClassMethods.html @@ -87,16 +87,16 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/testing/assertions/routing.rb, line 28
-        def with_routing(&block)
+        def with_routing(&block)
           old_routes, old_controller = nil
 
           setup do
             old_routes, old_controller = @routes, @controller
-            create_routes(&block)
+            create_routes(&block)
           end
 
           teardown do
@@ -104,7 +104,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionDispatch/AssumeSSL.html b/src/classes/ActionDispatch/AssumeSSL.html index 7d25a019d3..59dd60c72e 100644 --- a/src/classes/ActionDispatch/AssumeSSL.html +++ b/src/classes/ActionDispatch/AssumeSSL.html @@ -95,7 +95,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/assume_ssl.rb, line 11
@@ -103,7 +103,7 @@ 

@app = app end

- See on GitHub + 🔎 See on GitHub
@@ -134,20 +134,20 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/assume_ssl.rb, line 15
     def call(env)
-      env["HTTPS"] = "on"
-      env["HTTP_X_FORWARDED_PORT"] = "443"
-      env["HTTP_X_FORWARDED_PROTO"] = "https"
-      env["rack.url_scheme"] = "https"
+      env["HTTPS"] = "on"
+      env["HTTP_X_FORWARDED_PORT"] = "443"
+      env["HTTP_X_FORWARDED_PROTO"] = "https"
+      env["rack.url_scheme"] = "https"
 
       @app.call(env)
     end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionDispatch/Callbacks.html b/src/classes/ActionDispatch/Callbacks.html index a490212358..00e991ea68 100644 --- a/src/classes/ActionDispatch/Callbacks.html +++ b/src/classes/ActionDispatch/Callbacks.html @@ -117,15 +117,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/callbacks.rb, line 17
-      def after(*args, &block)
-        set_callback(:call, :after, *args, &block)
+      def after(*args, &block)
+        set_callback(:call, :after, *args, &block)
       end
- See on GitHub + 🔎 See on GitHub
@@ -152,15 +152,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/callbacks.rb, line 13
-      def before(*args, &block)
-        set_callback(:call, :before, *args, &block)
+      def before(*args, &block)
+        set_callback(:call, :before, *args, &block)
       end
- See on GitHub + 🔎 See on GitHub
@@ -187,7 +187,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/callbacks.rb, line 22
@@ -195,7 +195,7 @@ 

@app = app end

- See on GitHub + 🔎 See on GitHub
@@ -226,7 +226,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/callbacks.rb, line 26
@@ -234,13 +234,13 @@ 

error = nil result = run_callbacks :call do @app.call(env) - rescue => error + rescue => error end raise error if error result end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionDispatch/Constants.html b/src/classes/ActionDispatch/Constants.html index 8b388abed0..c60251810f 100644 --- a/src/classes/ActionDispatch/Constants.html +++ b/src/classes/ActionDispatch/Constants.html @@ -76,11 +76,6 @@

Constants

"Content-Encoding" - -   - - - CONTENT_SECURITY_POLICY @@ -88,11 +83,6 @@

Constants

"Content-Security-Policy" - -   - - - CONTENT_SECURITY_POLICY_REPORT_ONLY @@ -100,11 +90,6 @@

Constants

"Content-Security-Policy-Report-Only" - -   - - - FEATURE_POLICY @@ -112,11 +97,6 @@

Constants

"Feature-Policy" - -   - - - LOCATION @@ -124,11 +104,6 @@

Constants

"Location" - -   - - - SERVER_TIMING @@ -136,11 +111,6 @@

Constants

"Server-Timing" - -   - - - STRICT_TRANSPORT_SECURITY @@ -148,11 +118,6 @@

Constants

"Strict-Transport-Security" - -   - - - VARY @@ -160,11 +125,6 @@

Constants

"Vary" - -   - - - X_CASCADE @@ -172,11 +132,6 @@

Constants

"X-Cascade" - -   - - - X_REQUEST_ID @@ -184,11 +139,6 @@

Constants

"X-Request-Id" - -   - - - diff --git a/src/classes/ActionDispatch/ContentSecurityPolicy.html b/src/classes/ActionDispatch/ContentSecurityPolicy.html index 3a2fc7e38b..801c255dec 100644 --- a/src/classes/ActionDispatch/ContentSecurityPolicy.html +++ b/src/classes/ActionDispatch/ContentSecurityPolicy.html @@ -174,7 +174,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/content_security_policy.rb, line 174
@@ -183,7 +183,7 @@ 

yield self if block_given? end

- See on GitHub + 🔎 See on GitHub
@@ -222,19 +222,19 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/content_security_policy.rb, line 202
     def block_all_mixed_content(enabled = true)
       if enabled
-        @directives["block-all-mixed-content"] = true
+        @directives["block-all-mixed-content"] = true
       else
-        @directives.delete("block-all-mixed-content")
+        @directives.delete("block-all-mixed-content")
       end
     end
- See on GitHub + 🔎 See on GitHub
@@ -261,16 +261,16 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/content_security_policy.rb, line 291
     def build(context = nil, nonce = nil, nonce_directives = nil)
       nonce_directives = DEFAULT_NONCE_DIRECTIVES if nonce_directives.nil?
-      build_directives(context, nonce, nonce_directives).compact.join("; ")
+      build_directives(context, nonce, nonce_directives).compact.join("; ")
     end
- See on GitHub + 🔎 See on GitHub
@@ -297,7 +297,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/content_security_policy.rb, line 179
@@ -305,7 +305,7 @@ 

@directives = other.directives.deep_dup end

- See on GitHub + 🔎 See on GitHub
@@ -340,19 +340,19 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/content_security_policy.rb, line 218
     def plugin_types(*types)
       if types.first
-        @directives["plugin-types"] = types
+        @directives["plugin-types"] = types
       else
-        @directives.delete("plugin-types")
+        @directives.delete("plugin-types")
       end
     end
- See on GitHub + 🔎 See on GitHub
@@ -382,15 +382,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/content_security_policy.rb, line 231
     def report_uri(uri)
-      @directives["report-uri"] = [uri]
+      @directives["report-uri"] = [uri]
     end
- See on GitHub + 🔎 See on GitHub
@@ -425,19 +425,19 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/content_security_policy.rb, line 244
     def require_sri_for(*types)
       if types.first
-        @directives["require-sri-for"] = types
+        @directives["require-sri-for"] = types
       else
-        @directives.delete("require-sri-for")
+        @directives.delete("require-sri-for")
       end
     end
- See on GitHub + 🔎 See on GitHub
@@ -477,21 +477,21 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/content_security_policy.rb, line 265
     def sandbox(*values)
       if values.empty?
-        @directives["sandbox"] = true
+        @directives["sandbox"] = true
       elsif values.first
-        @directives["sandbox"] = values
+        @directives["sandbox"] = values
       else
-        @directives.delete("sandbox")
+        @directives.delete("sandbox")
       end
     end
- See on GitHub + 🔎 See on GitHub
@@ -526,19 +526,19 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/content_security_policy.rb, line 283
     def upgrade_insecure_requests(enabled = true)
       if enabled
-        @directives["upgrade-insecure-requests"] = true
+        @directives["upgrade-insecure-requests"] = true
       else
-        @directives.delete("upgrade-insecure-requests")
+        @directives.delete("upgrade-insecure-requests")
       end
     end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionDispatch/ContentSecurityPolicy/Middleware.html b/src/classes/ActionDispatch/ContentSecurityPolicy/Middleware.html index 8bf3692051..21e4d0ad04 100644 --- a/src/classes/ActionDispatch/ContentSecurityPolicy/Middleware.html +++ b/src/classes/ActionDispatch/ContentSecurityPolicy/Middleware.html @@ -87,7 +87,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/content_security_policy.rb, line 28
@@ -95,7 +95,7 @@ 

@app = app end

- See on GitHub + 🔎 See on GitHub
@@ -126,7 +126,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/content_security_policy.rb, line 32
@@ -151,7 +151,7 @@ 

response end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionDispatch/ContentSecurityPolicy/Request.html b/src/classes/ActionDispatch/ContentSecurityPolicy/Request.html index c9b49b5f66..bec71f4745 100644 --- a/src/classes/ActionDispatch/ContentSecurityPolicy/Request.html +++ b/src/classes/ActionDispatch/ContentSecurityPolicy/Request.html @@ -91,11 +91,6 @@

Constants

"action_dispatch.content_security_policy_nonce" - -   - - - NONCE_DIRECTIVES @@ -103,11 +98,6 @@

Constants

"action_dispatch.content_security_policy_nonce_directives" - -   - - - NONCE_GENERATOR @@ -115,11 +105,6 @@

Constants

"action_dispatch.content_security_policy_nonce_generator" - -   - - - POLICY @@ -127,11 +112,6 @@

Constants

"action_dispatch.content_security_policy" - -   - - - POLICY_REPORT_ONLY @@ -139,11 +119,6 @@

Constants

"action_dispatch.content_security_policy_report_only" - -   - - - @@ -176,7 +151,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/content_security_policy.rb, line 75
@@ -184,7 +159,7 @@ 

get_header(POLICY) end

- See on GitHub + 🔎 See on GitHub
@@ -211,7 +186,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/content_security_policy.rb, line 79
@@ -219,7 +194,7 @@ 

set_header(POLICY, policy) end

- See on GitHub + 🔎 See on GitHub
@@ -246,7 +221,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/content_security_policy.rb, line 107
@@ -260,7 +235,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -287,7 +262,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/content_security_policy.rb, line 99
@@ -295,7 +270,7 @@ 

get_header(NONCE_DIRECTIVES) end

- See on GitHub + 🔎 See on GitHub
@@ -322,7 +297,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/content_security_policy.rb, line 103
@@ -330,7 +305,7 @@ 

set_header(NONCE_DIRECTIVES, generator) end

- See on GitHub + 🔎 See on GitHub
@@ -357,7 +332,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/content_security_policy.rb, line 91
@@ -365,7 +340,7 @@ 

get_header(NONCE_GENERATOR) end

- See on GitHub + 🔎 See on GitHub
@@ -392,7 +367,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/content_security_policy.rb, line 95
@@ -400,7 +375,7 @@ 

set_header(NONCE_GENERATOR, generator) end

- See on GitHub + 🔎 See on GitHub
@@ -427,7 +402,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/content_security_policy.rb, line 83
@@ -435,7 +410,7 @@ 

get_header(POLICY_REPORT_ONLY) end

- See on GitHub + 🔎 See on GitHub
@@ -462,7 +437,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/content_security_policy.rb, line 87
@@ -470,7 +445,7 @@ 

set_header(POLICY_REPORT_ONLY, value) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionDispatch/Cookies.html b/src/classes/ActionDispatch/Cookies.html index cebf724f19..0ea2e8a79f 100644 --- a/src/classes/ActionDispatch/Cookies.html +++ b/src/classes/ActionDispatch/Cookies.html @@ -178,11 +178,6 @@

Constants

"action_dispatch.authenticated_encrypted_cookie_salt" - -   - - - COOKIES_DIGEST @@ -190,11 +185,6 @@

Constants

"action_dispatch.cookies_digest" - -   - - - COOKIES_ROTATIONS @@ -202,11 +192,6 @@

Constants

"action_dispatch.cookies_rotations" - -   - - - COOKIES_SAME_SITE_PROTECTION @@ -214,11 +199,6 @@

Constants

"action_dispatch.cookies_same_site_protection" - -   - - - COOKIES_SERIALIZER @@ -226,11 +206,6 @@

Constants

"action_dispatch.cookies_serializer" - -   - - - CookieOverflow @@ -250,11 +225,6 @@

Constants

"action_dispatch.encrypted_cookie_cipher" - -   - - - ENCRYPTED_COOKIE_SALT @@ -262,11 +232,6 @@

Constants

"action_dispatch.encrypted_cookie_salt" - -   - - - ENCRYPTED_SIGNED_COOKIE_SALT @@ -274,11 +239,6 @@

Constants

"action_dispatch.encrypted_signed_cookie_salt" - -   - - - GENERATOR_KEY @@ -286,11 +246,6 @@

Constants

"action_dispatch.key_generator" - -   - - - HTTP_HEADER @@ -298,11 +253,6 @@

Constants

"Set-Cookie" - -   - - - MAX_COOKIE_SIZE @@ -322,11 +272,6 @@

Constants

"action_dispatch.secret_key_base" - -   - - - SIGNED_COOKIE_DIGEST @@ -334,11 +279,6 @@

Constants

"action_dispatch.signed_cookie_digest" - -   - - - SIGNED_COOKIE_SALT @@ -346,11 +286,6 @@

Constants

"action_dispatch.signed_cookie_salt" - -   - - - USE_AUTHENTICATED_COOKIE_ENCRYPTION @@ -358,11 +293,6 @@

Constants

"action_dispatch.use_authenticated_cookie_encryption" - -   - - - USE_COOKIES_WITH_METADATA @@ -370,11 +300,6 @@

Constants

"action_dispatch.use_cookies_with_metadata" - -   - - - @@ -406,7 +331,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/cookies.rb, line 683
@@ -414,7 +339,7 @@ 

@app = app end

- See on GitHub + 🔎 See on GitHub
@@ -445,7 +370,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/cookies.rb, line 687
@@ -464,7 +389,7 @@ 

response.to_a end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionDispatch/Cookies/ChainedCookieJars.html b/src/classes/ActionDispatch/Cookies/ChainedCookieJars.html index 43eda5f5d9..585c5dc938 100644 --- a/src/classes/ActionDispatch/Cookies/ChainedCookieJars.html +++ b/src/classes/ActionDispatch/Cookies/ChainedCookieJars.html @@ -108,7 +108,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/cookies.rb, line 258
@@ -116,7 +116,7 @@ 

@encrypted ||= EncryptedKeyRotatingCookieJar.new(self) end

- See on GitHub + 🔎 See on GitHub
@@ -155,7 +155,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/cookies.rb, line 224
@@ -163,7 +163,7 @@ 

@permanent ||= PermanentCookieJar.new(self) end

- See on GitHub + 🔎 See on GitHub
@@ -200,7 +200,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/cookies.rb, line 240
@@ -208,7 +208,7 @@ 

@signed ||= SignedKeyRotatingCookieJar.new(self) end

- See on GitHub + 🔎 See on GitHub
@@ -235,7 +235,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/cookies.rb, line 264
@@ -248,7 +248,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionDispatch/DebugExceptions.html b/src/classes/ActionDispatch/DebugExceptions.html index a0c1d36351..4875f870f4 100644 --- a/src/classes/ActionDispatch/DebugExceptions.html +++ b/src/classes/ActionDispatch/DebugExceptions.html @@ -99,7 +99,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/debug_exceptions.rb, line 21
@@ -110,7 +110,7 @@ 

@interceptors = interceptors end

- See on GitHub + 🔎 See on GitHub
@@ -137,16 +137,16 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/debug_exceptions.rb, line 16
-    def self.register_interceptor(object = nil, &block)
+    def self.register_interceptor(object = nil, &block)
       interceptor = object || block
-      interceptors << interceptor
+      interceptors << interceptor
     end
- See on GitHub + 🔎 See on GitHub
@@ -177,22 +177,22 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/debug_exceptions.rb, line 28
     def call(env)
       _, headers, body = response = @app.call(env)
 
-      if headers[Constants::X_CASCADE] == "pass"
+      if headers[Constants::X_CASCADE] == "pass"
         body.close if body.respond_to?(:close)
-        raise ActionController::RoutingError, "No route matches [#{env['REQUEST_METHOD']}] #{env['PATH_INFO'].inspect}"
+        raise ActionController::RoutingError, "No route matches [#{env['REQUEST_METHOD']}] #{env['PATH_INFO'].inspect}"
       end
 
       response
-    rescue Exception => exception
+    rescue Exception => exception
       request = ActionDispatch::Request.new env
-      backtrace_cleaner = request.get_header("action_dispatch.backtrace_cleaner")
+      backtrace_cleaner = request.get_header("action_dispatch.backtrace_cleaner")
       wrapper = ExceptionWrapper.new(backtrace_cleaner, exception)
 
       invoke_interceptors(request, exception, wrapper)
@@ -200,7 +200,7 @@ 

render_exception(request, exception, wrapper) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionDispatch/DebugLocks.html b/src/classes/ActionDispatch/DebugLocks.html index f4041c9e23..1dc2f7a072 100644 --- a/src/classes/ActionDispatch/DebugLocks.html +++ b/src/classes/ActionDispatch/DebugLocks.html @@ -108,16 +108,16 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/debug_locks.rb, line 28
-    def initialize(app, path = "/rails/locks")
+    def initialize(app, path = "/rails/locks")
       @app = app
       @path = path
     end
- See on GitHub + 🔎 See on GitHub
@@ -148,7 +148,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/debug_locks.rb, line 33
@@ -156,7 +156,7 @@ 

req = ActionDispatch::Request.new env if req.get? - path = req.path_info.chomp("/") + path = req.path_info.chomp("/") if path == @path return render_details(req) end @@ -165,7 +165,7 @@

@app.call(env) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionDispatch/ExceptionWrapper.html b/src/classes/ActionDispatch/ExceptionWrapper.html index 804eb91332..f73a21d963 100644 --- a/src/classes/ActionDispatch/ExceptionWrapper.html +++ b/src/classes/ActionDispatch/ExceptionWrapper.html @@ -245,7 +245,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/exception_wrapper.rb, line 48
@@ -260,7 +260,7 @@ 

@backtrace = build_backtrace end

- See on GitHub + 🔎 See on GitHub
@@ -287,7 +287,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/exception_wrapper.rb, line 173
@@ -295,7 +295,7 @@ 

Rack::Utils.status_code(@@rescue_responses[class_name]) end

- See on GitHub + 🔎 See on GitHub
@@ -326,7 +326,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/exception_wrapper.rb, line 99
@@ -334,7 +334,7 @@ 

ActiveSupport::ActionableError.actions(@exception) end

- See on GitHub + 🔎 See on GitHub
@@ -361,7 +361,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/exception_wrapper.rb, line 111
@@ -373,7 +373,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -400,7 +400,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/exception_wrapper.rb, line 133
@@ -408,7 +408,7 @@ 

clean_backtrace(:silent) end

- See on GitHub + 🔎 See on GitHub
@@ -435,7 +435,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/exception_wrapper.rb, line 87
@@ -443,7 +443,7 @@ 

@exception.corrections end

- See on GitHub + 🔎 See on GitHub
@@ -470,16 +470,16 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/exception_wrapper.rb, line 210
     def error_highlight_available?
       # ErrorHighlight.spot with backtrace_location keyword is available since error_highlight 0.4.0
-      defined?(ErrorHighlight) && Gem::Version.new(ErrorHighlight::VERSION) >= Gem::Version.new("0.4.0")
+      defined?(ErrorHighlight) && Gem::Version.new(ErrorHighlight::VERSION) >= Gem::Version.new("0.4.0")
     end
- See on GitHub + 🔎 See on GitHub
@@ -506,7 +506,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/exception_wrapper.rb, line 239
@@ -514,7 +514,7 @@ 

exception.object_id end

- See on GitHub + 🔎 See on GitHub
@@ -541,7 +541,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/exception_wrapper.rb, line 235
@@ -549,7 +549,7 @@ 

exception.inspect end

- See on GitHub + 🔎 See on GitHub
@@ -576,7 +576,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/exception_wrapper.rb, line 227
@@ -584,7 +584,7 @@ 

exception.cause.class.to_s end

- See on GitHub + 🔎 See on GitHub
@@ -611,17 +611,17 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/exception_wrapper.rb, line 127
     def exception_trace
       trace = application_trace
-      trace = framework_trace if trace.empty? && !silent_exceptions.include?(@exception_class_name)
+      trace = framework_trace if trace.empty? && !silent_exceptions.include?(@exception_class_name)
       trace
     end
- See on GitHub + 🔎 See on GitHub
@@ -648,7 +648,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/exception_wrapper.rb, line 75
@@ -656,7 +656,7 @@ 

@exception.failures end

- See on GitHub + 🔎 See on GitHub
@@ -683,7 +683,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/exception_wrapper.rb, line 91
@@ -691,7 +691,7 @@ 

@exception.file_name end

- See on GitHub + 🔎 See on GitHub
@@ -718,7 +718,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/exception_wrapper.rb, line 137
@@ -726,7 +726,7 @@ 

clean_backtrace(:noise) end

- See on GitHub + 🔎 See on GitHub
@@ -753,7 +753,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/exception_wrapper.rb, line 141
@@ -761,7 +761,7 @@ 

clean_backtrace(:all) end

- See on GitHub + 🔎 See on GitHub
@@ -788,7 +788,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/exception_wrapper.rb, line 71
@@ -796,7 +796,7 @@ 

@exception.cause end

- See on GitHub + 🔎 See on GitHub
@@ -823,15 +823,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/exception_wrapper.rb, line 79
     def has_corrections?
-      @exception.respond_to?(:original_message) && @exception.respond_to?(:corrections)
+      @exception.respond_to?(:original_message) && @exception.respond_to?(:corrections)
     end
- See on GitHub + 🔎 See on GitHub
@@ -858,7 +858,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/exception_wrapper.rb, line 95
@@ -866,7 +866,7 @@ 

@exception.line_number end

- See on GitHub + 🔎 See on GitHub
@@ -893,7 +893,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/exception_wrapper.rb, line 231
@@ -901,7 +901,7 @@ 

exception.message end

- See on GitHub + 🔎 See on GitHub
@@ -928,7 +928,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/exception_wrapper.rb, line 83
@@ -936,7 +936,7 @@ 

@exception.original_message end

- See on GitHub + 🔎 See on GitHub
@@ -963,7 +963,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/exception_wrapper.rb, line 200
@@ -971,7 +971,7 @@ 

@@rescue_responses.key?(exception.class.name) end

- See on GitHub + 🔎 See on GitHub
@@ -998,7 +998,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/exception_wrapper.rb, line 119
@@ -1006,7 +1006,7 @@ 

@@rescue_templates[@exception_class_name] end

- See on GitHub + 🔎 See on GitHub
@@ -1033,7 +1033,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/exception_wrapper.rb, line 59
@@ -1041,7 +1041,7 @@ 

@exception.is_a?(ActionController::RoutingError) end

- See on GitHub + 🔎 See on GitHub
@@ -1068,15 +1068,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/exception_wrapper.rb, line 177
     def show?(request)
-      # We're treating `nil` as "unset", and we want the default setting to be
+      # We're treating `nil` as "unset", and we want the default setting to be
       # `:all`. This logic should be extracted to `env_config` and calculated
       # once.
-      config = request.get_header("action_dispatch.show_exceptions")
+      config = request.get_header("action_dispatch.show_exceptions")
 
       # Include true and false for backwards compatibility.
       case config
@@ -1085,17 +1085,17 @@ 

when :rescuable rescue_response? when true - ActionDispatch.deprecator.warn("Setting action_dispatch.show_exceptions to true is deprecated. Set to :all instead.") + ActionDispatch.deprecator.warn("Setting action_dispatch.show_exceptions to true is deprecated. Set to :all instead.") true when false - ActionDispatch.deprecator.warn("Setting action_dispatch.show_exceptions to false is deprecated. Set to :none instead.") + ActionDispatch.deprecator.warn("Setting action_dispatch.show_exceptions to false is deprecated. Set to :none instead.") false else true end end

- See on GitHub + 🔎 See on GitHub
@@ -1122,7 +1122,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/exception_wrapper.rb, line 204
@@ -1132,7 +1132,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -1159,7 +1159,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/exception_wrapper.rb, line 223
@@ -1167,7 +1167,7 @@ 

(traces[trace_to_show].first || {})[:id] end

- See on GitHub + 🔎 See on GitHub
@@ -1194,7 +1194,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/exception_wrapper.rb, line 123
@@ -1202,7 +1202,7 @@ 

self.class.status_code_for_exception(unwrapped_exception.class.name) end

- See on GitHub + 🔎 See on GitHub
@@ -1229,7 +1229,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/exception_wrapper.rb, line 67
@@ -1237,7 +1237,7 @@ 

@exception.sub_template_message end

- See on GitHub + 🔎 See on GitHub
@@ -1264,7 +1264,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/exception_wrapper.rb, line 63
@@ -1272,7 +1272,7 @@ 

@exception.is_a?(ActionView::Template::Error) end

- See on GitHub + 🔎 See on GitHub
@@ -1299,19 +1299,19 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/exception_wrapper.rb, line 215
     def trace_to_show
-      if traces["Application Trace"].empty? && rescue_template != "routing_error"
-        "Full Trace"
+      if traces["Application Trace"].empty? && rescue_template != "routing_error"
+        "Full Trace"
       else
-        "Application Trace"
+        "Application Trace"
       end
     end
- See on GitHub + 🔎 See on GitHub
@@ -1338,7 +1338,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/exception_wrapper.rb, line 145
@@ -1355,22 +1355,22 @@ 

} if application_trace.include?(trace) - application_trace_with_ids << trace_with_id + application_trace_with_ids << trace_with_id else - framework_trace_with_ids << trace_with_id + framework_trace_with_ids << trace_with_id end - full_trace_with_ids << trace_with_id + full_trace_with_ids << trace_with_id end { - "Application Trace" => application_trace_with_ids, - "Framework Trace" => framework_trace_with_ids, - "Full Trace" => full_trace_with_ids + "Application Trace" => application_trace_with_ids, + "Framework Trace" => framework_trace_with_ids, + "Full Trace" => full_trace_with_ids } end

- See on GitHub + 🔎 See on GitHub
@@ -1397,7 +1397,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/exception_wrapper.rb, line 103
@@ -1409,7 +1409,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionDispatch/Executor.html b/src/classes/ActionDispatch/Executor.html index c22a52a333..c49da9138b 100644 --- a/src/classes/ActionDispatch/Executor.html +++ b/src/classes/ActionDispatch/Executor.html @@ -87,7 +87,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/executor.rb, line 7
@@ -95,7 +95,7 @@ 

@app, @executor = app, executor end

- See on GitHub + 🔎 See on GitHub
@@ -126,7 +126,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/executor.rb, line 11
@@ -134,16 +134,16 @@ 

state = @executor.run!(reset: true) begin response = @app.call(env) - returned = response << ::Rack::BodyProxy.new(response.pop) { state.complete! } - rescue => error - @executor.error_reporter.report(error, handled: false, source: "application.action_dispatch") + returned = response << ::Rack::BodyProxy.new(response.pop) { state.complete! } + rescue => error + @executor.error_reporter.report(error, handled: false, source: "application.action_dispatch") raise ensure state.complete! unless returned end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionDispatch/FileHandler.html b/src/classes/ActionDispatch/FileHandler.html index b1958c0c1a..d31cce281c 100644 --- a/src/classes/ActionDispatch/FileHandler.html +++ b/src/classes/ActionDispatch/FileHandler.html @@ -129,21 +129,21 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/static.rb, line 53
-    def initialize(root, index: "index", headers: {}, precompressed: %i[ br gzip ], compressible_content_types: /\A(?:text\/|application\/javascript)/)
-      @root = root.chomp("/").b
+    def initialize(root, index: "index", headers: {}, precompressed: %i[ br gzip ], compressible_content_types: /\A(?:text\/|application\/javascript)/)
+      @root = root.chomp("/").b
       @index = index
 
-      @precompressed = Array(precompressed).map(&:to_s) | %w[ identity ]
+      @precompressed = Array(precompressed).map(&:to_s) | %w[ identity ]
       @compressible_content_types = compressible_content_types
 
       @file_server = ::Rack::Files.new(@root, headers)
     end
- See on GitHub + 🔎 See on GitHub
@@ -174,7 +174,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/static.rb, line 67
@@ -188,7 +188,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -215,7 +215,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/static.rb, line 63
@@ -223,7 +223,7 @@ 

attempt(env) || @file_server.call(env) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionDispatch/Flash.html b/src/classes/ActionDispatch/Flash.html index a7dda06843..c5d842c5e1 100644 --- a/src/classes/ActionDispatch/Flash.html +++ b/src/classes/ActionDispatch/Flash.html @@ -125,11 +125,6 @@

Constants

"action_dispatch.request.flash_hash" - -   - - - @@ -161,13 +156,13 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/flash.rb, line 300
     def self.new(app) app; end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionDispatch/Flash/FlashHash.html b/src/classes/ActionDispatch/Flash/FlashHash.html index ed1b06715d..4b83fb0d81 100644 --- a/src/classes/ActionDispatch/Flash/FlashHash.html +++ b/src/classes/ActionDispatch/Flash/FlashHash.html @@ -170,7 +170,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/flash.rb, line 162
@@ -178,7 +178,7 @@ 

@flashes[k.to_s] end

- See on GitHub + 🔎 See on GitHub
@@ -205,7 +205,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/flash.rb, line 156
@@ -215,7 +215,7 @@ 

@flashes[k] = v end

- See on GitHub + 🔎 See on GitHub
@@ -242,7 +242,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/flash.rb, line 268
@@ -250,7 +250,7 @@ 

self[:alert] end

- See on GitHub + 🔎 See on GitHub
@@ -277,7 +277,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/flash.rb, line 273
@@ -285,7 +285,7 @@ 

self[:alert] = message end

- See on GitHub + 🔎 See on GitHub
@@ -312,7 +312,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/flash.rb, line 197
@@ -321,7 +321,7 @@ 

@flashes.clear end

- See on GitHub + 🔎 See on GitHub
@@ -348,7 +348,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/flash.rb, line 182
@@ -359,7 +359,7 @@ 

self end

- See on GitHub + 🔎 See on GitHub
@@ -392,7 +392,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/flash.rb, line 253
@@ -402,7 +402,7 @@ 

k ? self[k] : self end

- See on GitHub + 🔎 See on GitHub
@@ -429,15 +429,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/flash.rb, line 202
-      def each(&block)
-        @flashes.each(&block)
+      def each(&block)
+        @flashes.each(&block)
       end
- See on GitHub + 🔎 See on GitHub
@@ -464,7 +464,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/flash.rb, line 193
@@ -472,7 +472,7 @@ 

@flashes.empty? end

- See on GitHub + 🔎 See on GitHub
@@ -499,7 +499,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/flash.rb, line 148
@@ -511,7 +511,7 @@ 

super end

- See on GitHub + 🔎 See on GitHub
@@ -542,7 +542,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/flash.rb, line 240
@@ -552,7 +552,7 @@ 

k ? self[k] : self end

- See on GitHub + 🔎 See on GitHub
@@ -579,7 +579,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/flash.rb, line 176
@@ -587,7 +587,7 @@ 

@flashes.key? name.to_s end

- See on GitHub + 🔎 See on GitHub
@@ -614,7 +614,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/flash.rb, line 172
@@ -622,7 +622,7 @@ 

@flashes.keys end

- See on GitHub + 🔎 See on GitHub
@@ -649,7 +649,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/flash.rb, line 278
@@ -657,7 +657,7 @@ 

self[:notice] end

- See on GitHub + 🔎 See on GitHub
@@ -684,7 +684,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/flash.rb, line 283
@@ -692,7 +692,7 @@ 

self[:notice] = message end

- See on GitHub + 🔎 See on GitHub
@@ -735,7 +735,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/flash.rb, line 232
@@ -743,7 +743,7 @@ 

@now ||= FlashNow.new(self) end

- See on GitHub + 🔎 See on GitHub
@@ -770,7 +770,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/flash.rb, line 189
@@ -778,7 +778,7 @@ 

@flashes.dup end

- See on GitHub + 🔎 See on GitHub
@@ -808,7 +808,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/flash.rb, line 288
@@ -816,7 +816,7 @@ 

@now end

- See on GitHub + 🔎 See on GitHub
@@ -846,7 +846,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/flash.rb, line 293
@@ -856,7 +856,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionDispatch/Flash/RequestMethods.html b/src/classes/ActionDispatch/Flash/RequestMethods.html index 378ce89a82..8469415dd9 100644 --- a/src/classes/ActionDispatch/Flash/RequestMethods.html +++ b/src/classes/ActionDispatch/Flash/RequestMethods.html @@ -84,17 +84,17 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/flash.rb, line 50
       def flash
         flash = flash_hash
         return flash if flash
-        self.flash = Flash::FlashHash.from_session_value(session["flash"])
+        self.flash = Flash::FlashHash.from_session_value(session["flash"])
       end
- See on GitHub + 🔎 See on GitHub
@@ -121,7 +121,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/flash.rb, line 56
@@ -129,7 +129,7 @@ 

set_header Flash::KEY, flash end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionDispatch/HostAuthorization.html b/src/classes/ActionDispatch/HostAuthorization.html index 063a7d5744..f0bb016840 100644 --- a/src/classes/ActionDispatch/HostAuthorization.html +++ b/src/classes/ActionDispatch/HostAuthorization.html @@ -86,11 +86,6 @@

Constants

[".localhost", IPAddr.new("0.0.0.0/0"), IPAddr.new("::/0")] - -   - - - @@ -122,7 +117,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/host_authorization.rb, line 125
@@ -134,7 +129,7 @@ 

@response_app = response_app || DefaultResponseApp.new end

- See on GitHub + 🔎 See on GitHub
@@ -165,7 +160,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/host_authorization.rb, line 133
@@ -179,12 +174,12 @@ 

mark_as_authorized(request) @app.call(env) else - env["action_dispatch.blocked_hosts"] = hosts + env["action_dispatch.blocked_hosts"] = hosts @response_app.call(env) end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionDispatch/Http/Cache/Request.html b/src/classes/ActionDispatch/Http/Cache/Request.html index 7382d852be..c3e0034c69 100644 --- a/src/classes/ActionDispatch/Http/Cache/Request.html +++ b/src/classes/ActionDispatch/Http/Cache/Request.html @@ -79,11 +79,6 @@

Constants

"HTTP_IF_MODIFIED_SINCE" - -   - - - HTTP_IF_NONE_MATCH @@ -91,11 +86,6 @@

Constants

"HTTP_IF_NONE_MATCH" - -   - - - @@ -128,18 +118,18 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/cache.rb, line 28
         def etag_matches?(etag)
           if etag
             validators = if_none_match_etags
-            validators.include?(etag) || validators.include?("*")
+            validators.include?(etag) || validators.include?("*")
           end
         end
- See on GitHub + 🔎 See on GitHub
@@ -166,7 +156,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/cache.rb, line 38
@@ -177,12 +167,12 @@ 

return false unless last_modified || etag success = true - success &&= not_modified?(response.last_modified) if last_modified - success &&= etag_matches?(response.etag) if etag + success &&= not_modified?(response.last_modified) if last_modified + success &&= etag_matches?(response.etag) if etag success end

- See on GitHub + 🔎 See on GitHub
@@ -209,7 +199,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/cache.rb, line 10
@@ -219,7 +209,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -246,7 +236,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/cache.rb, line 16
@@ -254,7 +244,7 @@ 

get_header HTTP_IF_NONE_MATCH end

- See on GitHub + 🔎 See on GitHub
@@ -281,15 +271,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/cache.rb, line 20
         def if_none_match_etags
-          if_none_match ? if_none_match.split(",").each(&:strip!) : []
+          if_none_match ? if_none_match.split(",").each(&:strip!) : []
         end
- See on GitHub + 🔎 See on GitHub
@@ -316,15 +306,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/cache.rb, line 24
         def not_modified?(modified_at)
-          if_modified_since && modified_at && if_modified_since >= modified_at
+          if_modified_since && modified_at && if_modified_since >= modified_at
         end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionDispatch/Http/Cache/Response.html b/src/classes/ActionDispatch/Http/Cache/Response.html index 3d39afe18a..0b16be44d5 100644 --- a/src/classes/ActionDispatch/Http/Cache/Response.html +++ b/src/classes/ActionDispatch/Http/Cache/Response.html @@ -103,11 +103,6 @@

Constants

"Date" - -   - - - DEFAULT_CACHE_CONTROL @@ -115,11 +110,6 @@

Constants

"max-age=0, private, must-revalidate" - -   - - - LAST_MODIFIED @@ -127,11 +117,6 @@

Constants

"Last-Modified" - -   - - - MUST_REVALIDATE @@ -139,11 +124,6 @@

Constants

"must-revalidate" - -   - - - NO_CACHE @@ -151,11 +131,6 @@

Constants

"no-cache" - -   - - - NO_STORE @@ -163,11 +138,6 @@

Constants

"no-store" - -   - - - PRIVATE @@ -175,11 +145,6 @@

Constants

"private" - -   - - - PUBLIC @@ -187,11 +152,6 @@

Constants

"public" - -   - - - SPECIAL_KEYS @@ -199,11 +159,6 @@

Constants

Set.new(%w[extras no-store no-cache max-age public private must-revalidate]) - -   - - - @@ -250,7 +205,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/cache.rb, line 68
@@ -260,7 +215,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -287,7 +242,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/cache.rb, line 78
@@ -295,7 +250,7 @@ 

set_header DATE, utc_time.httpdate end

- See on GitHub + 🔎 See on GitHub
@@ -322,7 +277,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/cache.rb, line 74
@@ -330,7 +285,7 @@ 

has_header? DATE end

- See on GitHub + 🔎 See on GitHub
@@ -363,7 +318,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/cache.rb, line 101
@@ -371,7 +326,7 @@ 

self.weak_etag = weak_validators end

- See on GitHub + 🔎 See on GitHub
@@ -398,13 +353,13 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/cache.rb, line 113
         def etag?; etag; end
- See on GitHub + 🔎 See on GitHub
@@ -431,7 +386,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/cache.rb, line 54
@@ -441,7 +396,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -468,7 +423,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/cache.rb, line 64
@@ -476,7 +431,7 @@ 

set_header LAST_MODIFIED, utc_time.httpdate end

- See on GitHub + 🔎 See on GitHub
@@ -503,7 +458,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/cache.rb, line 60
@@ -511,7 +466,7 @@ 

has_header? LAST_MODIFIED end

- See on GitHub + 🔎 See on GitHub
@@ -538,15 +493,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/cache.rb, line 109
         def strong_etag=(strong_validators)
-          set_header "ETag", generate_strong_etag(strong_validators)
+          set_header "ETag", generate_strong_etag(strong_validators)
         end
- See on GitHub + 🔎 See on GitHub
@@ -573,15 +528,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/cache.rb, line 121
         def strong_etag?
-          etag? && !weak_etag?
+          etag? && !weak_etag?
         end
- See on GitHub + 🔎 See on GitHub
@@ -608,15 +563,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/cache.rb, line 105
         def weak_etag=(weak_validators)
-          set_header "ETag", generate_weak_etag(weak_validators)
+          set_header "ETag", generate_weak_etag(weak_validators)
         end
- See on GitHub + 🔎 See on GitHub
@@ -643,15 +598,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/cache.rb, line 116
         def weak_etag?
-          etag? && etag.start_with?('W/"')
+          etag? && etag.start_with?('W/"')
         end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionDispatch/Http/FilterParameters.html b/src/classes/ActionDispatch/Http/FilterParameters.html index ad9bf3f4ce..73eb63704c 100644 --- a/src/classes/ActionDispatch/Http/FilterParameters.html +++ b/src/classes/ActionDispatch/Http/FilterParameters.html @@ -101,11 +101,6 @@

Constants

"[^&;=]+" - -   - - - PAIR_RE @@ -113,11 +108,6 @@

Constants

%r{(#{KV_RE})=(#{KV_RE})} - -   - - - @@ -149,7 +139,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/filter_parameters.rb, line 21
@@ -161,7 +151,7 @@ 

@parameter_filter = nil end

- See on GitHub + 🔎 See on GitHub
@@ -192,7 +182,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/filter_parameters.rb, line 37
@@ -200,7 +190,7 @@ 

@filtered_env ||= env_filter.filter(@env) end

- See on GitHub + 🔎 See on GitHub
@@ -227,7 +217,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/filter_parameters.rb, line 30
@@ -237,7 +227,7 @@ 

@filtered_parameters = {} end

- See on GitHub + 🔎 See on GitHub
@@ -264,15 +254,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/filter_parameters.rb, line 42
       def filtered_path
-        @filtered_path ||= query_string.empty? ? path : "#{path}?#{filtered_query_string}"
+        @filtered_path ||= query_string.empty? ? path : "#{path}?#{filtered_query_string}"
       end
- See on GitHub + 🔎 See on GitHub
@@ -299,19 +289,19 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/filter_parameters.rb, line 47
       def parameter_filter
-        @parameter_filter ||= if has_header?("action_dispatch.parameter_filter")
-          parameter_filter_for get_header("action_dispatch.parameter_filter")
+        @parameter_filter ||= if has_header?("action_dispatch.parameter_filter")
+          parameter_filter_for get_header("action_dispatch.parameter_filter")
         else
           NULL_PARAM_FILTER
         end
       end
- See on GitHub + 🔎 See on GitHub
@@ -341,18 +331,18 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/filter_parameters.rb, line 56
       def env_filter # :doc:
-        user_key = fetch_header("action_dispatch.parameter_filter") {
+        user_key = fetch_header("action_dispatch.parameter_filter") {
           return NULL_ENV_FILTER
         }
         parameter_filter_for(Array(user_key) + ENV_MATCH)
       end
- See on GitHub + 🔎 See on GitHub
@@ -379,17 +369,17 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/filter_parameters.rb, line 69
       def filtered_query_string # :doc:
         query_string.gsub(PAIR_RE) do |_|
-          parameter_filter.filter($1 => $2).first.join("=")
+          parameter_filter.filter($1 => $2).first.join("=")
         end
       end
- See on GitHub + 🔎 See on GitHub
@@ -416,7 +406,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/filter_parameters.rb, line 63
@@ -424,7 +414,7 @@ 

ActiveSupport::ParameterFilter.new(filters) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionDispatch/Http/Headers.html b/src/classes/ActionDispatch/Http/Headers.html index 856ea32edf..8fdacbbbf1 100644 --- a/src/classes/ActionDispatch/Http/Headers.html +++ b/src/classes/ActionDispatch/Http/Headers.html @@ -163,11 +163,6 @@

Constants

]).freeze - -   - - - HTTP_HEADER @@ -175,11 +170,6 @@

Constants

/\A[A-Za-z0-9-]+\z/ - -   - - - @@ -211,7 +201,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/headers.rb, line 52
@@ -219,7 +209,7 @@ 

new ActionDispatch::Request.new hash end

- See on GitHub + 🔎 See on GitHub
@@ -250,7 +240,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/headers.rb, line 61
@@ -258,7 +248,7 @@ 

@req.get_header env_name(key) end

- See on GitHub + 🔎 See on GitHub
@@ -285,7 +275,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/headers.rb, line 66
@@ -293,7 +283,7 @@ 

@req.set_header env_name(key), value end

- See on GitHub + 🔎 See on GitHub
@@ -320,7 +310,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/headers.rb, line 71
@@ -328,7 +318,7 @@ 

@req.add_header env_name(key), value end

- See on GitHub + 🔎 See on GitHub
@@ -355,15 +345,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/headers.rb, line 97
-      def each(&block)
-        @req.each_header(&block)
+      def each(&block)
+        @req.each_header(&block)
       end
- See on GitHub + 🔎 See on GitHub
@@ -390,13 +380,13 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/headers.rb, line 118
       def env; @req.env.dup; end
- See on GitHub + 🔎 See on GitHub
@@ -427,7 +417,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/headers.rb, line 89
@@ -439,7 +429,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -495,7 +485,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/headers.rb, line 75
@@ -503,7 +493,7 @@ 

@req.has_header? env_name(key) end

- See on GitHub + 🔎 See on GitHub
@@ -530,7 +520,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/headers.rb, line 103
@@ -540,7 +530,7 @@ 

headers end

- See on GitHub + 🔎 See on GitHub
@@ -567,7 +557,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/headers.rb, line 112
@@ -577,7 +567,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionDispatch/Http/MimeNegotiation.html b/src/classes/ActionDispatch/Http/MimeNegotiation.html index c9a9b7a775..41bdea776a 100644 --- a/src/classes/ActionDispatch/Http/MimeNegotiation.html +++ b/src/classes/ActionDispatch/Http/MimeNegotiation.html @@ -131,11 +131,6 @@

Constants

] - -   - - - @@ -168,13 +163,13 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/mime_negotiation.rb, line 54
       def accepts
-        fetch_header("action_dispatch.request.accepts") do |k|
-          header = get_header("HTTP_ACCEPT").to_s.strip
+        fetch_header("action_dispatch.request.accepts") do |k|
+          header = get_header("HTTP_ACCEPT").to_s.strip
 
           v = if header.empty?
             [content_mime_type]
@@ -182,12 +177,12 @@ 

Mime::Type.parse(header) end set_header k, v - rescue ::Mime::Type::InvalidMimeType => e + rescue ::Mime::Type::InvalidMimeType => e raise InvalidType, e.message end end

- See on GitHub + 🔎 See on GitHub
@@ -214,24 +209,24 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/mime_negotiation.rb, line 36
       def content_mime_type
-        fetch_header("action_dispatch.request.content_type") do |k|
-          v = if get_header("CONTENT_TYPE") =~ /^([^,;]*)/
+        fetch_header("action_dispatch.request.content_type") do |k|
+          v = if get_header("CONTENT_TYPE") =~ /^([^,;]*)/
             Mime::Type.lookup($1.strip.downcase)
           else
             nil
           end
           set_header k, v
-        rescue ::Mime::Type::InvalidMimeType => e
+        rescue ::Mime::Type::InvalidMimeType => e
           raise InvalidType, e.message
         end
       end
- See on GitHub + 🔎 See on GitHub
@@ -263,7 +258,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/mime_negotiation.rb, line 75
@@ -271,7 +266,7 @@ 

formats.first || Mime::NullType.instance end

- See on GitHub + 🔎 See on GitHub
@@ -308,16 +303,16 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/mime_negotiation.rb, line 127
       def format=(extension)
         parameters[:format] = extension.to_s
-        set_header "action_dispatch.request.formats", [Mime::Type.lookup_by_extension(parameters[:format])]
+        set_header "action_dispatch.request.formats", [Mime::Type.lookup_by_extension(parameters[:format])]
       end
- See on GitHub + 🔎 See on GitHub
@@ -344,15 +339,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/mime_negotiation.rb, line 79
       def formats
-        fetch_header("action_dispatch.request.formats") do |k|
+        fetch_header("action_dispatch.request.formats") do |k|
           v = if params_readable?
             Array(Mime[parameters[:format]])
-          elsif use_accept_header && valid_accept_header
+          elsif use_accept_header && valid_accept_header
             accepts.dup
           elsif extension_format = format_from_path_extension
             [extension_format]
@@ -363,14 +358,14 @@ 

end v.select! do |format| - format.symbol || format.ref == "*/*" + format.symbol || format.ref == "*/*" end set_header k, v end end

- See on GitHub + 🔎 See on GitHub
@@ -409,18 +404,18 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/mime_negotiation.rb, line 146
       def formats=(extensions)
         parameters[:format] = extensions.first.to_s
-        set_header "action_dispatch.request.formats", extensions.collect { |extension|
+        set_header "action_dispatch.request.formats", extensions.collect { |extension|
           Mime::Type.lookup_by_extension(extension)
         }
       end
- See on GitHub + 🔎 See on GitHub
@@ -447,7 +442,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/mime_negotiation.rb, line 154
@@ -463,7 +458,7 @@ 

order.include?(Mime::ALL) ? format : nil end

- See on GitHub + 🔎 See on GitHub
@@ -490,18 +485,18 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/mime_negotiation.rb, line 27
         def return_only_media_type_on_content_type
           ActionDispatch.deprecator.warn(
-            "`config.action_dispatch.return_only_request_media_type_on_content_type` is deprecated and will" \
-            " be removed in Rails 7.2."
+            "`config.action_dispatch.return_only_request_media_type_on_content_type` is deprecated and will" \
+            " be removed in Rails 7.2."
           )
         end
- See on GitHub + 🔎 See on GitHub
@@ -528,18 +523,18 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/mime_negotiation.rb, line 20
         def return_only_media_type_on_content_type=(value)
           ActionDispatch.deprecator.warn(
-            "`config.action_dispatch.return_only_request_media_type_on_content_type` is deprecated and will" \
-              " be removed in Rails 7.2."
+            "`config.action_dispatch.return_only_request_media_type_on_content_type` is deprecated and will" \
+              " be removed in Rails 7.2."
           )
         end
- See on GitHub + 🔎 See on GitHub
@@ -566,15 +561,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/mime_negotiation.rb, line 166
       def should_apply_vary_header?
-        !params_readable? && use_accept_header && valid_accept_header
+        !params_readable? && use_accept_header && valid_accept_header
       end
- See on GitHub + 🔎 See on GitHub
@@ -601,7 +596,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/mime_negotiation.rb, line 112
@@ -609,7 +604,7 @@ 

@variant ||= ActiveSupport::ArrayInquirer.new end

- See on GitHub + 🔎 See on GitHub
@@ -636,7 +631,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/mime_negotiation.rb, line 102
@@ -646,11 +641,11 @@ 

if variant.all?(Symbol) @variant = ActiveSupport::ArrayInquirer.new(variant) else - raise ArgumentError, "request.variant must be set to a Symbol or an Array of Symbols." + raise ArgumentError, "request.variant must be set to a Symbol or an Array of Symbols." end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionDispatch/Http/Parameters.html b/src/classes/ActionDispatch/Http/Parameters.html index c01a744b25..1983823802 100644 --- a/src/classes/ActionDispatch/Http/Parameters.html +++ b/src/classes/ActionDispatch/Http/Parameters.html @@ -92,11 +92,6 @@

Constants

} - -   - - - PARAMETERS_KEY @@ -104,11 +99,6 @@

Constants

"action_dispatch.request.path_parameters" - -   - - - @@ -159,12 +149,12 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/parameters.rb, line 50
       def parameters
-        params = get_header("action_dispatch.request.parameters")
+        params = get_header("action_dispatch.request.parameters")
         return params if params
 
         params = begin
@@ -173,11 +163,11 @@ 

query_parameters.dup end params.merge!(path_parameters) - set_header("action_dispatch.request.parameters", params) + set_header("action_dispatch.request.parameters", params) params end

- See on GitHub + 🔎 See on GitHub
@@ -232,7 +222,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/parameters.rb, line 82
@@ -240,7 +230,7 @@ 

get_header(PARAMETERS_KEY) || set_header(PARAMETERS_KEY, {}) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionDispatch/Http/Parameters/ClassMethods.html b/src/classes/ActionDispatch/Http/Parameters/ClassMethods.html index e96b151c30..4f2b1da00d 100644 --- a/src/classes/ActionDispatch/Http/Parameters/ClassMethods.html +++ b/src/classes/ActionDispatch/Http/Parameters/ClassMethods.html @@ -86,7 +86,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/parameters.rb, line 44
@@ -94,7 +94,7 @@ 

@parameter_parsers = parsers.transform_keys { |key| key.respond_to?(:symbol) ? key.symbol : key } end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionDispatch/Http/Parameters/ParseError.html b/src/classes/ActionDispatch/Http/Parameters/ParseError.html index 7373550117..ab41a503ea 100644 --- a/src/classes/ActionDispatch/Http/Parameters/ParseError.html +++ b/src/classes/ActionDispatch/Http/Parameters/ParseError.html @@ -89,7 +89,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/parameters.rb, line 20
@@ -97,7 +97,7 @@ 

super(message) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionDispatch/Http/URL.html b/src/classes/ActionDispatch/Http/URL.html index 5aa4625de2..95fd9aee94 100644 --- a/src/classes/ActionDispatch/Http/URL.html +++ b/src/classes/ActionDispatch/Http/URL.html @@ -139,11 +139,6 @@

Constants

/(^[^:]+:\/\/)?(\[[^\]]+\]|[^:]+)(?::(\d+$))?/ - -   - - - IP_HOST_REGEXP @@ -151,11 +146,6 @@

Constants

/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/ - -   - - - PROTOCOL_REGEXP @@ -163,11 +153,6 @@

Constants

/^([^:]+)(:)?(\/\/)?$/ - -   - - - @@ -205,7 +190,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/url.rb, line 22
@@ -213,7 +198,7 @@ 

extract_domain_from(host, tld_length) if named_host?(host) end

- See on GitHub + 🔎 See on GitHub
@@ -246,15 +231,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/url.rb, line 46
         def extract_subdomain(host, tld_length)
-          extract_subdomains(host, tld_length).join(".")
+          extract_subdomains(host, tld_length).join(".")
         end
- See on GitHub + 🔎 See on GitHub
@@ -287,7 +272,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/url.rb, line 32
@@ -299,7 +284,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -326,7 +311,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/url.rb, line 58
@@ -336,13 +321,13 @@ 

port = options[:port] unless host - raise ArgumentError, "Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true" + raise ArgumentError, "Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true" end build_host_url(host, port, protocol, options, path_for(options)) end

- See on GitHub + 🔎 See on GitHub
@@ -369,7 +354,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/url.rb, line 179
@@ -379,7 +364,7 @@ 

@port = nil end

- See on GitHub + 🔎 See on GitHub
@@ -406,15 +391,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/url.rb, line 70
         def path_for(options)
-          path = options[:script_name].to_s.chomp("/")
-          path << options[:path] if options.key?(:path)
+          path = options[:script_name].to_s.chomp("/")
+          path << options[:path] if options.key?(:path)
 
-          path = "/" if options[:trailing_slash] && path.blank?
+          path = "/" if options[:trailing_slash] && path.blank?
 
           add_params(path, options[:params]) if options.key?(:params)
           add_anchor(path, options[:anchor]) if options.key?(:anchor)
@@ -422,7 +407,7 @@ 

path end

- See on GitHub + 🔎 See on GitHub
@@ -449,7 +434,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/url.rb, line 50
@@ -461,7 +446,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -492,7 +477,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/url.rb, line 321
@@ -500,7 +485,7 @@ 

ActionDispatch::Http::URL.extract_domain(host, tld_length) end

- See on GitHub + 🔎 See on GitHub
@@ -531,15 +516,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/url.rb, line 226
       def host
-        raw_host_with_port.sub(/:\d+$/, "")
+        raw_host_with_port.sub(/:\d+$/, "")
       end
- See on GitHub + 🔎 See on GitHub
@@ -576,15 +561,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/url.rb, line 242
       def host_with_port
-        "#{host}#{port_string}"
+        "#{host}#{port_string}"
       end
- See on GitHub + 🔎 See on GitHub
@@ -618,7 +603,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/url.rb, line 292
@@ -626,7 +611,7 @@ 

standard_port? ? nil : port end

- See on GitHub + 🔎 See on GitHub
@@ -660,7 +645,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/url.rb, line 253
@@ -672,7 +657,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -706,15 +691,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/url.rb, line 304
       def port_string
-        standard_port? ? "" : ":#{port}"
+        standard_port? ? "" : ":#{port}"
       end
- See on GitHub + 🔎 See on GitHub
@@ -748,15 +733,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/url.rb, line 200
       def protocol
-        @protocol ||= ssl? ? "https://" : "http://"
+        @protocol ||= ssl? ? "https://" : "http://"
       end
- See on GitHub + 🔎 See on GitHub
@@ -793,7 +778,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/url.rb, line 214
@@ -801,11 +786,11 @@ 

if forwarded = x_forwarded_host.presence forwarded.split(/,\s?/).last else - get_header("HTTP_HOST") || "#{server_name}:#{get_header('SERVER_PORT')}" + get_header("HTTP_HOST") || "#{server_name}:#{get_header('SERVER_PORT')}" end end

- See on GitHub + 🔎 See on GitHub
@@ -839,15 +824,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/url.rb, line 315
       def server_port
-        get_header("SERVER_PORT").to_i
+        get_header("SERVER_PORT").to_i
       end
- See on GitHub + 🔎 See on GitHub
@@ -878,19 +863,19 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/url.rb, line 265
       def standard_port
-        if "https://" == protocol
+        if "https://" == protocol
           443
         else
           80
         end
       end
- See on GitHub + 🔎 See on GitHub
@@ -924,7 +909,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/url.rb, line 280
@@ -932,7 +917,7 @@ 

port == standard_port end

- See on GitHub + 🔎 See on GitHub
@@ -959,7 +944,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/url.rb, line 337
@@ -967,7 +952,7 @@ 

ActionDispatch::Http::URL.extract_subdomain(host, tld_length) end

- See on GitHub + 🔎 See on GitHub
@@ -994,7 +979,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/url.rb, line 329
@@ -1002,7 +987,7 @@ 

ActionDispatch::Http::URL.extract_subdomains(host, tld_length) end

- See on GitHub + 🔎 See on GitHub
@@ -1033,7 +1018,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/url.rb, line 189
@@ -1041,7 +1026,7 @@ 

protocol + host_with_port + fullpath end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionDispatch/Http/UploadedFile.html b/src/classes/ActionDispatch/Http/UploadedFile.html index 3abe5ff277..da58518370 100644 --- a/src/classes/ActionDispatch/Http/UploadedFile.html +++ b/src/classes/ActionDispatch/Http/UploadedFile.html @@ -166,7 +166,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/upload.rb, line 71
@@ -174,7 +174,7 @@ 

@tempfile.close(unlink_now) end

- See on GitHub + 🔎 See on GitHub
@@ -201,7 +201,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/upload.rb, line 96
@@ -209,7 +209,7 @@ 

@tempfile.eof? end

- See on GitHub + 🔎 See on GitHub
@@ -236,7 +236,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/upload.rb, line 66
@@ -244,7 +244,7 @@ 

@tempfile.open end

- See on GitHub + 🔎 See on GitHub
@@ -271,7 +271,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/upload.rb, line 76
@@ -279,7 +279,7 @@ 

@tempfile.path end

- See on GitHub + 🔎 See on GitHub
@@ -306,7 +306,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/upload.rb, line 61
@@ -314,7 +314,7 @@ 

@tempfile.read(length, buffer) end

- See on GitHub + 🔎 See on GitHub
@@ -341,7 +341,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/upload.rb, line 86
@@ -349,7 +349,7 @@ 

@tempfile.rewind end

- See on GitHub + 🔎 See on GitHub
@@ -376,7 +376,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/upload.rb, line 91
@@ -384,7 +384,7 @@ 

@tempfile.size end

- See on GitHub + 🔎 See on GitHub
@@ -411,7 +411,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/upload.rb, line 100
@@ -419,7 +419,7 @@ 

@tempfile.to_io end

- See on GitHub + 🔎 See on GitHub
@@ -446,7 +446,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/upload.rb, line 81
@@ -454,7 +454,7 @@ 

@tempfile.to_path end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionDispatch/Integration/RequestHelpers.html b/src/classes/ActionDispatch/Integration/RequestHelpers.html index 26eaad5e68..18d3ed3175 100644 --- a/src/classes/ActionDispatch/Integration/RequestHelpers.html +++ b/src/classes/ActionDispatch/Integration/RequestHelpers.html @@ -106,7 +106,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/testing/integration.rb, line 39
@@ -114,7 +114,7 @@ 

process(:delete, path, **args) end

- See on GitHub + 🔎 See on GitHub
@@ -143,12 +143,12 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/testing/integration.rb, line 63
       def follow_redirect!(headers: {}, **args)
-        raise "not a redirect! #{status} #{status_message}" unless redirect?
+        raise "not a redirect! #{status} #{status_message}" unless redirect?
 
         method =
           if [307, 308].include?(response.status)
@@ -157,15 +157,15 @@ 

:get end - if [ :HTTP_REFERER, "HTTP_REFERER" ].none? { |key| headers.key? key } - headers["HTTP_REFERER"] = request.url + if [ :HTTP_REFERER, "HTTP_REFERER" ].none? { |key| headers.key? key } + headers["HTTP_REFERER"] = request.url end public_send(method, response.location, headers: headers, **args) status end

- See on GitHub + 🔎 See on GitHub
@@ -192,7 +192,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/testing/integration.rb, line 15
@@ -200,7 +200,7 @@ 

process(:get, path, **args) end

- See on GitHub + 🔎 See on GitHub
@@ -227,7 +227,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/testing/integration.rb, line 45
@@ -235,7 +235,7 @@ 

process(:head, path, **args) end

- See on GitHub + 🔎 See on GitHub
@@ -262,7 +262,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/testing/integration.rb, line 51
@@ -270,7 +270,7 @@ 

process(:options, path, **args) end

- See on GitHub + 🔎 See on GitHub
@@ -297,7 +297,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/testing/integration.rb, line 27
@@ -305,7 +305,7 @@ 

process(:patch, path, **args) end

- See on GitHub + 🔎 See on GitHub
@@ -332,7 +332,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/testing/integration.rb, line 21
@@ -340,7 +340,7 @@ 

process(:post, path, **args) end

- See on GitHub + 🔎 See on GitHub
@@ -367,7 +367,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/testing/integration.rb, line 33
@@ -375,7 +375,7 @@ 

process(:put, path, **args) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionDispatch/Integration/Runner.html b/src/classes/ActionDispatch/Integration/Runner.html index f04ea4c395..9a9940c5fe 100644 --- a/src/classes/ActionDispatch/Integration/Runner.html +++ b/src/classes/ActionDispatch/Integration/Runner.html @@ -97,11 +97,6 @@

Constants

{} - -   - - - @@ -147,16 +142,16 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/testing/integration.rb, line 333
-      def initialize(*args, &blk)
-        super(*args, &blk)
+      def initialize(*args, &blk)
+        super(*args, &blk)
         @integration_session = nil
       end
- See on GitHub + 🔎 See on GitHub
@@ -187,7 +182,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/testing/integration.rb, line 353
@@ -195,7 +190,7 @@ 

klass = APP_SESSIONS[app] ||= Class.new(Integration::Session) { # If the app is a Rails app, make url_helpers available on the session. # This makes app.url_for and app.foo_path available in the console. - if app.respond_to?(:routes) && app.routes.is_a?(ActionDispatch::Routing::RouteSet) + if app.respond_to?(:routes) && app.routes.is_a?(ActionDispatch::Routing::RouteSet) include app.routes.url_helpers include app.routes.mounted_helpers end @@ -203,7 +198,7 @@

klass.new(app) end

- See on GitHub + 🔎 See on GitHub
@@ -230,7 +225,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/testing/integration.rb, line 420
@@ -238,7 +233,7 @@ 

integration_session.default_url_options end

- See on GitHub + 🔎 See on GitHub
@@ -265,7 +260,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/testing/integration.rb, line 424
@@ -273,7 +268,7 @@ 

integration_session.default_url_options = options end

- See on GitHub + 🔎 See on GitHub
@@ -300,7 +295,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/testing/integration.rb, line 343
@@ -308,7 +303,7 @@ 

@integration_session ||= create_session(app) end

- See on GitHub + 🔎 See on GitHub
@@ -342,7 +337,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/testing/integration.rb, line 396
@@ -354,7 +349,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -381,7 +376,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/testing/integration.rb, line 349
@@ -389,7 +384,7 @@ 

@integration_session = create_session(app) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionDispatch/Integration/Session.html b/src/classes/ActionDispatch/Integration/Session.html index 4ef812cf8d..b28f8380a0 100644 --- a/src/classes/ActionDispatch/Integration/Session.html +++ b/src/classes/ActionDispatch/Integration/Session.html @@ -121,11 +121,6 @@

Constants

"www.example.com" - -   - - - @@ -227,7 +222,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/testing/integration.rb, line 131
@@ -238,7 +233,7 @@ 

reset! end

- See on GitHub + 🔎 See on GitHub
@@ -269,7 +264,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/testing/integration.rb, line 112
@@ -277,7 +272,7 @@ 

_mock_session.cookie_jar end

- See on GitHub + 🔎 See on GitHub
@@ -304,7 +299,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/testing/integration.rb, line 99
@@ -312,7 +307,7 @@ 

@host || DEFAULT_HOST end

- See on GitHub + 🔎 See on GitHub
@@ -343,7 +338,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/testing/integration.rb, line 179
@@ -351,7 +346,7 @@ 

@https = flag end

- See on GitHub + 🔎 See on GitHub
@@ -383,7 +378,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/testing/integration.rb, line 188
@@ -391,7 +386,7 @@ 

@https end

- See on GitHub + 🔎 See on GitHub
@@ -442,7 +437,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/testing/integration.rb, line 226
@@ -450,50 +445,50 @@ 

request_encoder = RequestEncoder.encoder(as) headers ||= {} - if method == :get && as == :json && params - headers["X-Http-Method-Override"] = "GET" + if method == :get && as == :json && params + headers["X-Http-Method-Override"] = "GET" method = :post end - if path.include?("://") + if path.include?("://") path = build_expanded_path(path) do |location| https! URI::HTTPS === location if location.scheme if url_host = location.host default = Rack::Request::DEFAULT_PORTS[location.scheme] - url_host += ":#{location.port}" if default != location.port + url_host += ":#{location.port}" if default != location.port host! url_host end end end - hostname, port = host.split(":") + hostname, port = host.split(":") request_env = { - :method => method, - :params => request_encoder.encode_params(params), - - "SERVER_NAME" => hostname, - "SERVER_PORT" => port || (https? ? "443" : "80"), - "HTTPS" => https? ? "on" : "off", - "rack.url_scheme" => https? ? "https" : "http", - - "REQUEST_URI" => path, - "HTTP_HOST" => host, - "REMOTE_ADDR" => remote_addr, - "HTTP_ACCEPT" => request_encoder.accept_header || accept + :method => method, + :params => request_encoder.encode_params(params), + + "SERVER_NAME" => hostname, + "SERVER_PORT" => port || (https? ? "443" : "80"), + "HTTPS" => https? ? "on" : "off", + "rack.url_scheme" => https? ? "https" : "http", + + "REQUEST_URI" => path, + "HTTP_HOST" => host, + "REMOTE_ADDR" => remote_addr, + "HTTP_ACCEPT" => request_encoder.accept_header || accept } if request_encoder.content_type - request_env["CONTENT_TYPE"] = request_encoder.content_type + request_env["CONTENT_TYPE"] = request_encoder.content_type end wrapped_headers = Http::Headers.from_hash({}) wrapped_headers.merge!(headers) if headers if xhr - wrapped_headers["HTTP_X_REQUESTED_WITH"] = "XMLHttpRequest" - wrapped_headers["HTTP_ACCEPT"] ||= [Mime[:js], Mime[:html], Mime[:xml], "text/xml", "*/*"].join(", ") + wrapped_headers["HTTP_X_REQUESTED_WITH"] = "XMLHttpRequest" + wrapped_headers["HTTP_ACCEPT"] ||= [Mime[:js], Mime[:html], Mime[:xml], "text/xml", "*/*"].join(", ") end # This modifies the passed request_env directly. @@ -506,7 +501,7 @@

session = Rack::Test::Session.new(_mock_session) - # NOTE: rack-test v0.5 doesn't build a default uri correctly + # NOTE: rack-test v0.5 doesn't build a default uri correctly # Make sure requested path is always a full URI. session.request(build_full_uri(path, request_env), request_env) @@ -523,7 +518,7 @@

response.status end

- See on GitHub + 🔎 See on GitHub
@@ -553,7 +548,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/testing/integration.rb, line 155
@@ -565,10 +560,10 @@ 

@url_options = nil self.host = DEFAULT_HOST - self.remote_addr = "127.0.0.1" - self.accept = "text/xml,application/xml,application/xhtml+xml," \ - "text/html;q=0.9,text/plain;q=0.8,image/png," \ - "*/*;q=0.5" + self.remote_addr = "127.0.0.1" + self.accept = "text/xml,application/xml,application/xhtml+xml," \ + "text/html;q=0.9,text/plain;q=0.8,image/png," \ + "*/*;q=0.5" unless defined? @named_routes_configured # the helpers are made protected by default--we make them public for @@ -577,7 +572,7 @@

end end

- See on GitHub + 🔎 See on GitHub
@@ -604,7 +599,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/testing/integration.rb, line 138
@@ -616,11 +611,11 @@ 

url_options.reverse_merge!(@app.routes.default_url_options) end - url_options.reverse_merge!(host: host, protocol: https? ? "https" : "http") + url_options.reverse_merge!(host: host, protocol: https? ? "https" : "http") end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionDispatch/IntegrationTest/Behavior.html b/src/classes/ActionDispatch/IntegrationTest/Behavior.html index 849dd3f313..e7d71c7da3 100644 --- a/src/classes/ActionDispatch/IntegrationTest/Behavior.html +++ b/src/classes/ActionDispatch/IntegrationTest/Behavior.html @@ -117,7 +117,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/testing/integration.rb, line 682
@@ -125,7 +125,7 @@ 

super || self.class.app end

- See on GitHub + 🔎 See on GitHub
@@ -152,7 +152,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/testing/integration.rb, line 686
@@ -160,7 +160,7 @@ 

html_document.root end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionDispatch/IntegrationTest/Behavior/ClassMethods.html b/src/classes/ActionDispatch/IntegrationTest/Behavior/ClassMethods.html index e64cf02c9e..7b6a9e2241 100644 --- a/src/classes/ActionDispatch/IntegrationTest/Behavior/ClassMethods.html +++ b/src/classes/ActionDispatch/IntegrationTest/Behavior/ClassMethods.html @@ -86,19 +86,19 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/testing/integration.rb, line 665
         def app
-          if defined?(@@app) && @@app
+          if defined?(@@app) && @@app
             @@app
           else
             ActionDispatch.test_app
           end
         end
- See on GitHub + 🔎 See on GitHub
@@ -125,7 +125,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/testing/integration.rb, line 673
@@ -133,7 +133,7 @@ 

@@app = app end

- See on GitHub + 🔎 See on GitHub
@@ -160,7 +160,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/testing/integration.rb, line 677
@@ -168,7 +168,7 @@ 

RequestEncoder.register_encoder(*args, **options) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionDispatch/IntegrationTest/UrlOptions.html b/src/classes/ActionDispatch/IntegrationTest/UrlOptions.html index bd4ccf38d1..813fbcd5e2 100644 --- a/src/classes/ActionDispatch/IntegrationTest/UrlOptions.html +++ b/src/classes/ActionDispatch/IntegrationTest/UrlOptions.html @@ -78,7 +78,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/testing/integration.rb, line 646
@@ -86,7 +86,7 @@ 

integration_session.url_options end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionDispatch/LogSubscriber.html b/src/classes/ActionDispatch/LogSubscriber.html index 5ee9adf574..07c0959922 100644 --- a/src/classes/ActionDispatch/LogSubscriber.html +++ b/src/classes/ActionDispatch/LogSubscriber.html @@ -84,26 +84,26 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/log_subscriber.rb, line 5
     def redirect(event)
       payload = event.payload
 
-      info { "Redirected to #{payload[:location]}" }
+      info { "Redirected to #{payload[:location]}" }
 
       info do
         status = payload[:status]
 
-        message = +"Completed #{status} #{Rack::Utils::HTTP_STATUS_CODES[status]} in #{event.duration.round}ms"
-        message << "\n\n" if defined?(Rails.env) && Rails.env.development?
+        message = +"Completed #{status} #{Rack::Utils::HTTP_STATUS_CODES[status]} in #{event.duration.round}ms"
+        message << "\n\n" if defined?(Rails.env) && Rails.env.development?
 
         message
       end
     end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionDispatch/MiddlewareStack.html b/src/classes/ActionDispatch/MiddlewareStack.html index 92fc87f14b..48550c5dfa 100644 --- a/src/classes/ActionDispatch/MiddlewareStack.html +++ b/src/classes/ActionDispatch/MiddlewareStack.html @@ -202,7 +202,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/stack.rb, line 75
@@ -211,7 +211,7 @@ 

yield(self) if block_given? end

- See on GitHub + 🔎 See on GitHub
@@ -242,7 +242,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/stack.rb, line 92
@@ -250,7 +250,7 @@ 

middlewares[i] end

- See on GitHub + 🔎 See on GitHub
@@ -277,11 +277,11 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/stack.rb, line 165
-    def build(app = nil, &block)
+    def build(app = nil, &block)
       instrumenting = ActiveSupport::Notifications.notifier.listening?(InstrumentationProxy::EVENT_NAME)
       middlewares.freeze.reverse.inject(app || block) do |a, e|
         if instrumenting
@@ -292,7 +292,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -321,7 +321,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/stack.rb, line 130
@@ -329,7 +329,7 @@ 

middlewares.reject! { |m| m.name == target.name } end

- See on GitHub + 🔎 See on GitHub
@@ -358,15 +358,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/stack.rb, line 138
     def delete!(target)
-      delete(target) || (raise "No such middleware to remove: #{target.inspect}")
+      delete(target) || (raise "No such middleware to remove: #{target.inspect}")
     end
- See on GitHub + 🔎 See on GitHub
@@ -393,15 +393,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/stack.rb, line 80
-    def each(&block)
-      @middlewares.each(&block)
+    def each(&block)
+      @middlewares.each(&block)
     end
- See on GitHub + 🔎 See on GitHub
@@ -428,7 +428,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/stack.rb, line 101
@@ -436,7 +436,7 @@ 

self.middlewares = other.middlewares.dup end

- See on GitHub + 🔎 See on GitHub
@@ -467,16 +467,16 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/stack.rb, line 105
-    def insert(index, klass, *args, &block)
+    def insert(index, klass, *args, &block)
       index = assert_index(index, :before)
       middlewares.insert(index, build_middleware(klass, args, block))
     end
- See on GitHub + 🔎 See on GitHub
@@ -503,16 +503,16 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/stack.rb, line 113
-    def insert_after(index, *args, &block)
+    def insert_after(index, *args, &block)
       index = assert_index(index, :after)
-      insert(index + 1, *args, &block)
+      insert(index + 1, *args, &block)
     end
- See on GitHub + 🔎 See on GitHub
@@ -564,7 +564,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/stack.rb, line 88
@@ -572,7 +572,7 @@ 

middlewares.last end

- See on GitHub + 🔎 See on GitHub
@@ -603,7 +603,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/stack.rb, line 142
@@ -615,7 +615,7 @@ 

middlewares.insert(target_index, source_middleware) end

- See on GitHub + 🔎 See on GitHub
@@ -642,7 +642,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/stack.rb, line 152
@@ -654,7 +654,7 @@ 

middlewares.insert(target_index + 1, source_middleware) end

- See on GitHub + 🔎 See on GitHub
@@ -706,7 +706,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/stack.rb, line 84
@@ -714,7 +714,7 @@ 

middlewares.size end

- See on GitHub + 🔎 See on GitHub
@@ -741,17 +741,17 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/stack.rb, line 119
-    def swap(target, *args, &block)
+    def swap(target, *args, &block)
       index = assert_index(target, :before)
-      insert(index, *args, &block)
+      insert(index, *args, &block)
       middlewares.delete_at(index + 1)
     end
- See on GitHub + 🔎 See on GitHub
@@ -778,15 +778,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/stack.rb, line 96
-    def unshift(klass, *args, &block)
+    def unshift(klass, *args, &block)
       middlewares.unshift(build_middleware(klass, args, block))
     end
- See on GitHub + 🔎 See on GitHub
@@ -813,15 +813,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/stack.rb, line 160
-    def use(klass, *args, &block)
+    def use(klass, *args, &block)
       middlewares.push(build_middleware(klass, args, block))
     end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionDispatch/MiddlewareStack/InstrumentationProxy.html b/src/classes/ActionDispatch/MiddlewareStack/InstrumentationProxy.html index cf3510698c..b83370bd52 100644 --- a/src/classes/ActionDispatch/MiddlewareStack/InstrumentationProxy.html +++ b/src/classes/ActionDispatch/MiddlewareStack/InstrumentationProxy.html @@ -75,11 +75,6 @@

Constants

"process_middleware.action_dispatch" - -   - - - @@ -111,7 +106,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/stack.rb, line 56
@@ -123,7 +118,7 @@ 

} end

- See on GitHub + 🔎 See on GitHub
@@ -154,7 +149,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/stack.rb, line 64
@@ -164,7 +159,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionDispatch/MiddlewareStack/Middleware.html b/src/classes/ActionDispatch/MiddlewareStack/Middleware.html index e62772d5dd..6e0f6d8a6b 100644 --- a/src/classes/ActionDispatch/MiddlewareStack/Middleware.html +++ b/src/classes/ActionDispatch/MiddlewareStack/Middleware.html @@ -133,7 +133,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/stack.rb, line 16
@@ -143,7 +143,7 @@ 

@block = block end

- See on GitHub + 🔎 See on GitHub
@@ -174,7 +174,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/stack.rb, line 24
@@ -187,7 +187,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -214,15 +214,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/stack.rb, line 41
       def build(app)
-        klass.new(app, *args, &block)
+        klass.new(app, *args, &block)
       end
- See on GitHub + 🔎 See on GitHub
@@ -249,7 +249,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/stack.rb, line 45
@@ -257,7 +257,7 @@ 

InstrumentationProxy.new(build(app), inspect) end

- See on GitHub + 🔎 See on GitHub
@@ -284,7 +284,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/stack.rb, line 33
@@ -296,7 +296,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -323,13 +323,13 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/stack.rb, line 22
       def name; klass.name; end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionDispatch/PermissionsPolicy.html b/src/classes/ActionDispatch/PermissionsPolicy.html index 794bf0edc0..945ca44b39 100644 --- a/src/classes/ActionDispatch/PermissionsPolicy.html +++ b/src/classes/ActionDispatch/PermissionsPolicy.html @@ -149,7 +149,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/permissions_policy.rb, line 116
@@ -158,7 +158,7 @@ 

yield self if block_given? end

- See on GitHub + 🔎 See on GitHub
@@ -189,15 +189,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/permissions_policy.rb, line 154
     def build(context = nil)
-      build_directives(context).compact.join("; ")
+      build_directives(context).compact.join("; ")
     end
- See on GitHub + 🔎 See on GitHub
@@ -224,7 +224,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/permissions_policy.rb, line 121
@@ -232,7 +232,7 @@ 

@directives = other.directives.deep_dup end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionDispatch/PermissionsPolicy/Middleware.html b/src/classes/ActionDispatch/PermissionsPolicy/Middleware.html index 78d9555bd3..0609cf1bdf 100644 --- a/src/classes/ActionDispatch/PermissionsPolicy/Middleware.html +++ b/src/classes/ActionDispatch/PermissionsPolicy/Middleware.html @@ -87,7 +87,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/permissions_policy.rb, line 31
@@ -95,7 +95,7 @@ 

@app = app end

- See on GitHub + 🔎 See on GitHub
@@ -126,7 +126,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/permissions_policy.rb, line 35
@@ -149,7 +149,7 @@ 

response end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionDispatch/PermissionsPolicy/Request.html b/src/classes/ActionDispatch/PermissionsPolicy/Request.html index ec16e781ff..8e46601025 100644 --- a/src/classes/ActionDispatch/PermissionsPolicy/Request.html +++ b/src/classes/ActionDispatch/PermissionsPolicy/Request.html @@ -63,11 +63,6 @@

Constants

"action_dispatch.permissions_policy" - -   - - - @@ -100,7 +95,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/permissions_policy.rb, line 73
@@ -108,7 +103,7 @@ 

get_header(POLICY) end

- See on GitHub + 🔎 See on GitHub
@@ -135,7 +130,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/permissions_policy.rb, line 77
@@ -143,7 +138,7 @@ 

set_header(POLICY, policy) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionDispatch/PublicExceptions.html b/src/classes/ActionDispatch/PublicExceptions.html index 31d0f8bf24..83d00e6cf4 100644 --- a/src/classes/ActionDispatch/PublicExceptions.html +++ b/src/classes/ActionDispatch/PublicExceptions.html @@ -111,7 +111,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/public_exceptions.rb, line 19
@@ -119,7 +119,7 @@ 

@public_path = public_path end

- See on GitHub + 🔎 See on GitHub
@@ -150,7 +150,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/public_exceptions.rb, line 23
@@ -167,7 +167,7 @@ 

render(status, content_type, body) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionDispatch/RemoteIp.html b/src/classes/ActionDispatch/RemoteIp.html index e3da58b796..74cc347d92 100644 --- a/src/classes/ActionDispatch/RemoteIp.html +++ b/src/classes/ActionDispatch/RemoteIp.html @@ -165,7 +165,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/remote_ip.rb, line 61
@@ -177,23 +177,23 @@ 

elsif custom_proxies.respond_to?(:any?) custom_proxies else - raise(ArgumentError, <<~EOM) - Setting config.action_dispatch.trusted_proxies to a single value isn't + raise(ArgumentError, <<~EOM) + Setting config.action_dispatch.trusted_proxies to a single value isn't supported. Please set this to an enumerable instead. For example, instead of: - config.action_dispatch.trusted_proxies = IPAddr.new("10.0.0.0/8") + config.action_dispatch.trusted_proxies = IPAddr.new("10.0.0.0/8") Wrap the value in an Array: - config.action_dispatch.trusted_proxies = [IPAddr.new("10.0.0.0/8")] + config.action_dispatch.trusted_proxies = [IPAddr.new("10.0.0.0/8")] Note that passing an enumerable will *replace* the default set of trusted proxies. EOM end end

- See on GitHub + 🔎 See on GitHub
@@ -224,7 +224,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/remote_ip.rb, line 89
@@ -234,7 +234,7 @@ 

@app.call(req.env) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionDispatch/RemoteIp/GetIp.html b/src/classes/ActionDispatch/RemoteIp/GetIp.html index e1ab8ba496..d98f694045 100644 --- a/src/classes/ActionDispatch/RemoteIp/GetIp.html +++ b/src/classes/ActionDispatch/RemoteIp/GetIp.html @@ -105,7 +105,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/remote_ip.rb, line 99
@@ -115,7 +115,7 @@ 

@proxies = proxies end

- See on GitHub + 🔎 See on GitHub
@@ -152,7 +152,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/remote_ip.rb, line 123
@@ -170,19 +170,19 @@ 

# 1) This request passed through two proxies with incompatible IP header # conventions. # 2) The client passed one of +Client-Ip+ or +X-Forwarded-For+ - # (whichever the proxy servers weren't using) themselves. + # (whichever the proxy servers weren't using) themselves. # # Either way, there is no way for us to determine which header is the # right one after the fact. Since we have no idea, if we are concerned - # about IP spoofing we need to give up and explode. (If you're not + # about IP spoofing we need to give up and explode. (If you're not # concerned about IP spoofing you can turn the +ip_spoofing_check+ # option off.) - should_check_ip = @check_ip && client_ips.last && forwarded_ips.last - if should_check_ip && !forwarded_ips.include?(client_ips.last) - # We don't know which came from the proxy, and which from the user - raise IpSpoofAttackError, "IP spoofing attack?! " \ - "HTTP_CLIENT_IP=#{@req.client_ip.inspect} " \ - "HTTP_X_FORWARDED_FOR=#{@req.x_forwarded_for.inspect}" + should_check_ip = @check_ip && client_ips.last && forwarded_ips.last + if should_check_ip && !forwarded_ips.include?(client_ips.last) + # We don't know which came from the proxy, and which from the user + raise IpSpoofAttackError, "IP spoofing attack?! " \ + "HTTP_CLIENT_IP=#{@req.client_ip.inspect} " \ + "HTTP_X_FORWARDED_FOR=#{@req.x_forwarded_for.inspect}" end # We assume these things about the IP headers: @@ -194,11 +194,11 @@

ips.compact! # If every single IP option is in the trusted list, return the IP - # that's furthest away + # that's furthest away filter_proxies(ips + [remote_addr]).first || ips.last || remote_addr end

- See on GitHub + 🔎 See on GitHub
@@ -225,7 +225,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/remote_ip.rb, line 167
@@ -233,7 +233,7 @@ 

@ip ||= calculate_ip end

- See on GitHub + 🔎 See on GitHub
@@ -263,7 +263,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/remote_ip.rb, line 187
@@ -273,7 +273,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -300,7 +300,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/remote_ip.rb, line 172
@@ -319,7 +319,7 @@ 

ips end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionDispatch/Request.html b/src/classes/ActionDispatch/Request.html index 927fb993c7..6b8ddc8259 100644 --- a/src/classes/ActionDispatch/Request.html +++ b/src/classes/ActionDispatch/Request.html @@ -328,11 +328,6 @@

Constants

].freeze - -   - - - HTTP_METHODS @@ -340,11 +335,6 @@

Constants

RFC2616 + RFC2518 + RFC3253 + RFC3648 + RFC3744 + RFC5323 + RFC4791 + RFC5789 - -   - - - HTTP_METHOD_LOOKUP @@ -352,11 +342,6 @@

Constants

{} - -   - - - LOCALHOST @@ -364,11 +349,6 @@

Constants

Regexp.union [/^127\.\d{1,3}\.\d{1,3}\.\d{1,3}$/, /^::1$/, /^0:0:0:0:0:0:0:1(%.*)?$/] - -   - - - RFC2518 @@ -496,7 +476,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/request.rb, line 56
@@ -504,7 +484,7 @@ 

new({}) end

- See on GitHub + 🔎 See on GitHub
@@ -531,7 +511,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/request.rb, line 60
@@ -545,7 +525,7 @@ 

@ip = nil end

- See on GitHub + 🔎 See on GitHub
@@ -580,12 +560,12 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/request.rb, line 388
     def GET
-      fetch_header("action_dispatch.request.query_parameters") do |k|
+      fetch_header("action_dispatch.request.query_parameters") do |k|
         rack_query_params = super || {}
         controller = path_parameters[:controller]
         action = path_parameters[:action]
@@ -594,11 +574,11 @@ 

Request::Utils.check_param_encoding(rack_query_params) set_header k, Request::Utils.normalize_encode_params(rack_query_params) end - rescue Rack::Utils::ParameterTypeError, Rack::Utils::InvalidParameterError, Rack::QueryParser::ParamsTooDeepError => e - raise ActionController::BadRequest.new("Invalid query parameters: #{e.message}") + rescue Rack::Utils::ParameterTypeError, Rack::Utils::InvalidParameterError, Rack::QueryParser::ParamsTooDeepError => e + raise ActionController::BadRequest.new("Invalid query parameters: #{e.message}") end

- See on GitHub + 🔎 See on GitHub
@@ -629,12 +609,12 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/request.rb, line 404
     def POST
-      fetch_header("action_dispatch.request.request_parameters") do
+      fetch_header("action_dispatch.request.request_parameters") do
         pr = parse_formatted_parameters(params_parsers) do |params|
           super || {}
         end
@@ -642,11 +622,11 @@ 

Request::Utils.check_param_encoding(pr) self.request_parameters = Request::Utils.normalize_encode_params(pr) end - rescue Rack::Utils::ParameterTypeError, Rack::Utils::InvalidParameterError, Rack::QueryParser::ParamsTooDeepError, EOFError => e - raise ActionController::BadRequest.new("Invalid request parameters: #{e.message}") + rescue Rack::Utils::ParameterTypeError, Rack::Utils::InvalidParameterError, Rack::QueryParser::ParamsTooDeepError, EOFError => e + raise ActionController::BadRequest.new("Invalid request parameters: #{e.message}") end

- See on GitHub + 🔎 See on GitHub
@@ -673,18 +653,18 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/request.rb, line 420
     def authorization
-      get_header("HTTP_AUTHORIZATION")   ||
-      get_header("X-HTTP_AUTHORIZATION") ||
-      get_header("X_HTTP_AUTHORIZATION") ||
-      get_header("REDIRECT_X_HTTP_AUTHORIZATION")
+      get_header("HTTP_AUTHORIZATION")   ||
+      get_header("X-HTTP_AUTHORIZATION") ||
+      get_header("X_HTTP_AUTHORIZATION") ||
+      get_header("REDIRECT_X_HTTP_AUTHORIZATION")
     end
- See on GitHub + 🔎 See on GitHub
@@ -711,12 +691,12 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/request.rb, line 349
     def body
-      if raw_post = get_header("RAW_POST_DATA")
+      if raw_post = get_header("RAW_POST_DATA")
         raw_post = (+raw_post).force_encoding(Encoding::BINARY)
         StringIO.new(raw_post)
       else
@@ -724,7 +704,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -751,7 +731,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/request.rb, line 452
@@ -759,7 +739,7 @@ 

controller_instance.commit_csrf_token(self) if controller_instance.respond_to?(:commit_csrf_token) end

- See on GitHub + 🔎 See on GitHub
@@ -786,14 +766,14 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/request.rb, line 441
     def commit_flash
     end
- See on GitHub + 🔎 See on GitHub
@@ -820,16 +800,16 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/request.rb, line 285
     def content_length
-      return raw_post.bytesize if headers.key?("Transfer-Encoding")
+      return raw_post.bytesize if headers.key?("Transfer-Encoding")
       super.to_i
     end
- See on GitHub + 🔎 See on GitHub
@@ -856,17 +836,17 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/request.rb, line 79
     def controller_class
       params = path_parameters
-      params[:action] ||= "index"
+      params[:action] ||= "index"
       controller_class_for(params[:controller])
     end
- See on GitHub + 🔎 See on GitHub
@@ -893,18 +873,18 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/request.rb, line 85
     def controller_class_for(name)
       if name
         controller_param = name.underscore
-        const_name = controller_param.camelize << "Controller"
+        const_name = controller_param.camelize << "Controller"
         begin
           const_name.constantize
-        rescue NameError => error
-          if error.missing_name == const_name || const_name.start_with?("#{error.missing_name}::")
+        rescue NameError => error
+          if error.missing_name == const_name || const_name.start_with?("#{error.missing_name}::")
             raise MissingController.new(error.message, error.name)
           else
             raise
@@ -915,7 +895,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -944,7 +924,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/request.rb, line 366
@@ -952,7 +932,7 @@ 

FORM_DATA_MEDIA_TYPES.include?(media_type) end

- See on GitHub + 🔎 See on GitHub
@@ -986,7 +966,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/request.rb, line 264
@@ -994,7 +974,7 @@ 

@fullpath ||= super end

- See on GitHub + 🔎 See on GitHub
@@ -1024,7 +1004,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/request.rb, line 225
@@ -1032,7 +1012,7 @@ 

@headers ||= Http::Headers.new(self) end

- See on GitHub + 🔎 See on GitHub
@@ -1059,15 +1039,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/request.rb, line 190
     def http_auth_salt
-      get_header "action_dispatch.http_auth_salt"
+      get_header "action_dispatch.http_auth_salt"
     end
- See on GitHub + 🔎 See on GitHub
@@ -1094,7 +1074,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/request.rb, line 299
@@ -1102,7 +1082,7 @@ 

@ip ||= super end

- See on GitHub + 🔎 See on GitHub
@@ -1132,7 +1112,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/request.rb, line 106
@@ -1140,7 +1120,7 @@ 

has_header? key end

- See on GitHub + 🔎 See on GitHub
@@ -1167,15 +1147,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/request.rb, line 428
     def local?
-      LOCALHOST.match?(remote_addr) && LOCALHOST.match?(remote_ip)
+      LOCALHOST.match?(remote_addr) && LOCALHOST.match?(remote_ip)
     end
- See on GitHub + 🔎 See on GitHub
@@ -1202,15 +1182,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/request.rb, line 437
     def logger
-      get_header("action_dispatch.logger")
+      get_header("action_dispatch.logger")
     end
- See on GitHub + 🔎 See on GitHub
@@ -1241,15 +1221,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/request.rb, line 280
     def media_type
-      content_mime_type&.to_s
+      content_mime_type&.to_s
     end
- See on GitHub + 🔎 See on GitHub
@@ -1278,22 +1258,22 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/request.rb, line 205
     def method(*args)
       if args.empty?
         @method ||= check_method(
-          get_header("rack.methodoverride.original_method") ||
-          get_header("REQUEST_METHOD")
+          get_header("rack.methodoverride.original_method") ||
+          get_header("REQUEST_METHOD")
         )
       else
         super
       end
     end
- See on GitHub + 🔎 See on GitHub
@@ -1320,7 +1300,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/request.rb, line 218
@@ -1328,7 +1308,7 @@ 

HTTP_METHOD_LOOKUP[method] end

- See on GitHub + 🔎 See on GitHub
@@ -1362,15 +1342,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/request.rb, line 253
     def original_fullpath
-      @original_fullpath ||= (get_header("ORIGINAL_FULLPATH") || fullpath)
+      @original_fullpath ||= (get_header("ORIGINAL_FULLPATH") || fullpath)
     end
- See on GitHub + 🔎 See on GitHub
@@ -1401,7 +1381,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/request.rb, line 272
@@ -1409,7 +1389,7 @@ 

base_url + original_fullpath end

- See on GitHub + 🔎 See on GitHub
@@ -1461,19 +1441,19 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/request.rb, line 339
     def raw_post
-      unless has_header? "RAW_POST_DATA"
-        set_header("RAW_POST_DATA", read_body_stream)
+      unless has_header? "RAW_POST_DATA"
+        set_header("RAW_POST_DATA", read_body_stream)
         body_stream.rewind if body_stream.respond_to?(:rewind)
       end
-      get_header "RAW_POST_DATA"
+      get_header "RAW_POST_DATA"
     end
- See on GitHub + 🔎 See on GitHub
@@ -1525,15 +1505,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/request.rb, line 305
     def remote_ip
-      @remote_ip ||= (get_header("action_dispatch.remote_ip") || ip).to_s
+      @remote_ip ||= (get_header("action_dispatch.remote_ip") || ip).to_s
     end
- See on GitHub + 🔎 See on GitHub
@@ -1560,16 +1540,16 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/request.rb, line 309
     def remote_ip=(remote_ip)
       @remote_ip = nil
-      set_header "action_dispatch.remote_ip", remote_ip
+      set_header "action_dispatch.remote_ip", remote_ip
     end
- See on GitHub + 🔎 See on GitHub
@@ -1602,7 +1582,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/request.rb, line 322
@@ -1610,7 +1590,7 @@ 

get_header ACTION_DISPATCH_REQUEST_ID end

- See on GitHub + 🔎 See on GitHub
@@ -1641,7 +1621,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/request.rb, line 144
@@ -1649,7 +1629,7 @@ 

@request_method ||= check_method(super) end

- See on GitHub + 🔎 See on GitHub
@@ -1676,7 +1656,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/request.rb, line 195
@@ -1684,7 +1664,7 @@ 

HTTP_METHOD_LOOKUP[request_method] end

- See on GitHub + 🔎 See on GitHub
@@ -1736,16 +1716,16 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/request.rb, line 432
     def request_parameters=(params)
       raise if params.nil?
-      set_header("action_dispatch.request.request_parameters", params)
+      set_header("action_dispatch.request.request_parameters", params)
     end
- See on GitHub + 🔎 See on GitHub
@@ -1772,7 +1752,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/request.rb, line 448
@@ -1780,7 +1760,7 @@ 

controller_instance.reset_csrf_token(self) if controller_instance.respond_to?(:reset_csrf_token) end

- See on GitHub + 🔎 See on GitHub
@@ -1807,7 +1787,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/request.rb, line 374
@@ -1816,7 +1796,7 @@ 

reset_csrf_token end

- See on GitHub + 🔎 See on GitHub
@@ -1846,15 +1826,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/request.rb, line 152
     def route_uri_pattern
-      get_header("action_dispatch.route_uri_pattern")
+      get_header("action_dispatch.route_uri_pattern")
     end
- See on GitHub + 🔎 See on GitHub
@@ -1890,17 +1870,17 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/request.rb, line 240
     def send_early_hints(links)
-      return unless env["rack.early_hints"]
+      return unless env["rack.early_hints"]
 
-      env["rack.early_hints"].call(links)
+      env["rack.early_hints"].call(links)
     end
- See on GitHub + 🔎 See on GitHub
@@ -1927,15 +1907,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/request.rb, line 333
     def server_software
-      (get_header("SERVER_SOFTWARE") && /^([a-zA-Z]+)/ =~ get_header("SERVER_SOFTWARE")) ? $1.downcase : nil
+      (get_header("SERVER_SOFTWARE") && /^([a-zA-Z]+)/ =~ get_header("SERVER_SOFTWARE")) ? $1.downcase : nil
     end
- See on GitHub + 🔎 See on GitHub
@@ -1962,7 +1942,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/request.rb, line 383
@@ -1970,7 +1950,7 @@ 

Session::Options.set self, options end

- See on GitHub + 🔎 See on GitHub
@@ -2051,15 +2031,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/request.rb, line 293
     def xml_http_request?
-      /XMLHttpRequest/i.match?(get_header("HTTP_X_REQUESTED_WITH"))
+      /XMLHttpRequest/i.match?(get_header("HTTP_X_REQUESTED_WITH"))
     end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionDispatch/RequestCookieMethods.html b/src/classes/ActionDispatch/RequestCookieMethods.html index 84eaa376ab..5371d5c17e 100644 --- a/src/classes/ActionDispatch/RequestCookieMethods.html +++ b/src/classes/ActionDispatch/RequestCookieMethods.html @@ -78,17 +78,17 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/testing/request_encoder.rb, line 9
       def accept_header; end
- See on GitHub + 🔎 See on GitHub
@@ -129,13 +129,13 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/testing/request_encoder.rb, line 8
       def content_type; end
- See on GitHub + 🔎 See on GitHub
@@ -162,13 +162,13 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/testing/request_encoder.rb, line 10
       def encode_params(params); params; end
- See on GitHub + 🔎 See on GitHub
@@ -195,13 +195,13 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/testing/request_encoder.rb, line 11
-      def response_parser; -> body { body }; end
+ def response_parser; -> body { body }; end

- See on GitHub + 🔎 See on GitHub diff --git a/src/classes/ActionDispatch/RequestId.html b/src/classes/ActionDispatch/RequestId.html index 33817518f2..b717dfb745 100644 --- a/src/classes/ActionDispatch/RequestId.html +++ b/src/classes/ActionDispatch/RequestId.html @@ -99,7 +99,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/request_id.rb, line 20
@@ -108,7 +108,7 @@ 

@header = header end

- See on GitHub + 🔎 See on GitHub
@@ -139,7 +139,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/request_id.rb, line 25
@@ -149,7 +149,7 @@ 

@app.call(env).tap { |_status, headers, _body| headers[@header] = req.request_id } end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionDispatch/Response.html b/src/classes/ActionDispatch/Response.html index d462520df7..a2e1e6d5c8 100644 --- a/src/classes/ActionDispatch/Response.html +++ b/src/classes/ActionDispatch/Response.html @@ -282,11 +282,6 @@

Constants

"Content-Type" - -   - - - ContentTypeHeader @@ -294,11 +289,6 @@

Constants

Struct.new :mime_type, :charset - -   - - - Header @@ -318,11 +308,6 @@

Constants

::Rack::Headers - -   - - - NO_CONTENT_CODES @@ -330,11 +315,6 @@

Constants

[100, 101, 102, 103, 204, 205, 304] - -   - - - NullContentTypeHeader @@ -342,11 +322,6 @@

Constants

ContentTypeHeader.new nil, nil - -   - - - SET_COOKIE @@ -354,11 +329,6 @@

Constants

"Set-Cookie" - -   - - - @@ -464,7 +434,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/response.rb, line 155
@@ -473,7 +443,7 @@ 

new status, headers, body end

- See on GitHub + 🔎 See on GitHub
@@ -500,7 +470,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/response.rb, line 160
@@ -508,7 +478,7 @@ 

default.respond_to?(:merge) ? default.merge(original) : original end

- See on GitHub + 🔎 See on GitHub
@@ -535,7 +505,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/response.rb, line 167
@@ -544,7 +514,7 @@ 

@headers = Headers.new - headers&.each do |key, value| + headers&.each do |key, value| @headers[key] = value end @@ -560,7 +530,7 @@

yield self if block_given? end

- See on GitHub + 🔎 See on GitHub
@@ -591,7 +561,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/response.rb, line 380
@@ -606,7 +576,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -633,7 +603,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/response.rb, line 193
@@ -643,7 +613,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -670,7 +640,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/response.rb, line 199
@@ -678,7 +648,7 @@ 

synchronize { @cv.wait_until { @sent } } end

- See on GitHub + 🔎 See on GitHub
@@ -705,7 +675,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/response.rb, line 314
@@ -713,7 +683,7 @@ 

@stream.body end

- See on GitHub + 🔎 See on GitHub
@@ -740,7 +710,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/response.rb, line 323
@@ -754,7 +724,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -781,17 +751,17 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/response.rb, line 367
     def body_parts
       parts = []
-      @stream.each { |x| parts << x }
+      @stream.each { |x| parts << x }
       parts
     end
- See on GitHub + 🔎 See on GitHub
@@ -818,7 +788,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/response.rb, line 284
@@ -827,7 +797,7 @@ 

header_info.charset || self.class.default_charset end

- See on GitHub + 🔎 See on GitHub
@@ -858,7 +828,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/response.rb, line 273
@@ -871,7 +841,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -898,7 +868,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/response.rb, line 376
@@ -906,7 +876,7 @@ 

stream.close if stream.respond_to?(:close) end

- See on GitHub + 🔎 See on GitHub
@@ -933,7 +903,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/response.rb, line 295
@@ -941,7 +911,7 @@ 

@status.to_s end

- See on GitHub + 🔎 See on GitHub
@@ -968,7 +938,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/response.rb, line 203
@@ -980,7 +950,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -1007,13 +977,13 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/response.rb, line 227
     def committed?; synchronize { @committed }; end
- See on GitHub + 🔎 See on GitHub
@@ -1040,7 +1010,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/response.rb, line 253
@@ -1048,7 +1018,7 @@ 

super.presence end

- See on GitHub + 🔎 See on GitHub
@@ -1080,7 +1050,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/response.rb, line 243
@@ -1093,7 +1063,7 @@ 

set_content_type new_header_info.mime_type, charset end

- See on GitHub + 🔎 See on GitHub
@@ -1123,17 +1093,17 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/response.rb, line 404
     def cookies
       cookies = {}
       if header = get_header(SET_COOKIE)
-        header = header.split("\n") if header.respond_to?(:to_str)
+        header = header.split("\n") if header.respond_to?(:to_str)
         header.each do |cookie|
-          if pair = cookie.split(";").first
-            key, value = pair.split("=").map { |v| Rack::Utils.unescape(v) }
+          if pair = cookie.split(";").first
+            key, value = pair.split("=").map { |v| Rack::Utils.unescape(v) }
             cookies[key] = value
           end
         end
@@ -1141,7 +1111,7 @@ 

cookies end

- See on GitHub + 🔎 See on GitHub
@@ -1168,13 +1138,13 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/response.rb, line 191
     def delete_header(key); @headers.delete key; end
- See on GitHub + 🔎 See on GitHub
@@ -1201,18 +1171,18 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/response.rb, line 75
-    def each(&block)
+    def each(&block)
       sending!
-      x = @stream.each(&block)
+      x = @stream.each(&block)
       sent!
       x
     end
- See on GitHub + 🔎 See on GitHub
@@ -1239,13 +1209,13 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/response.rb, line 189
     def get_header(key);    @headers[key];       end
- See on GitHub + 🔎 See on GitHub
@@ -1272,13 +1242,13 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/response.rb, line 188
     def has_header?(key);   @headers.key? key;   end
- See on GitHub + 🔎 See on GitHub
@@ -1305,7 +1275,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/response.rb, line 258
@@ -1313,7 +1283,7 @@ 

parsed_content_type_header.mime_type end

- See on GitHub + 🔎 See on GitHub
@@ -1351,7 +1321,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/response.rb, line 307
@@ -1359,7 +1329,7 @@ 

Rack::Utils::HTTP_STATUS_CODES[@status] end

- See on GitHub + 🔎 See on GitHub
@@ -1411,7 +1381,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/response.rb, line 363
@@ -1419,7 +1389,7 @@ 

@stream = build_buffer(self, []) end

- See on GitHub + 🔎 See on GitHub
@@ -1446,7 +1416,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/response.rb, line 290
@@ -1454,7 +1424,7 @@ 

@status end

- See on GitHub + 🔎 See on GitHub
@@ -1481,7 +1451,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/response.rb, line 358
@@ -1490,7 +1460,7 @@ 

@stream = FileBody.new(path) end

- See on GitHub + 🔎 See on GitHub
@@ -1517,7 +1487,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/response.rb, line 211
@@ -1529,7 +1499,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -1556,13 +1526,13 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/response.rb, line 226
     def sending?;   synchronize { @sending };   end
- See on GitHub + 🔎 See on GitHub
@@ -1589,7 +1559,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/response.rb, line 262
@@ -1599,7 +1569,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -1626,7 +1596,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/response.rb, line 219
@@ -1637,7 +1607,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -1664,13 +1634,13 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/response.rb, line 228
     def sent?;      synchronize { @sent };      end
- See on GitHub + 🔎 See on GitHub
@@ -1697,13 +1667,13 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/response.rb, line 190
     def set_header(key, v); @headers[key] = v;   end
- See on GitHub + 🔎 See on GitHub
@@ -1730,7 +1700,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/response.rb, line 231
@@ -1738,7 +1708,7 @@ 

@status = Rack::Utils.status_code(status) end

- See on GitHub + 🔎 See on GitHub
@@ -1797,7 +1767,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/response.rb, line 395
@@ -1806,7 +1776,7 @@ 

rack_response @status, @headers.to_hash end

- See on GitHub + 🔎 See on GitHub
@@ -1833,7 +1803,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/response.rb, line 318
@@ -1841,7 +1811,7 @@ 

@stream.write string end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionDispatch/Response/RackBody.html b/src/classes/ActionDispatch/Response/RackBody.html index 3ce752c8b6..235fd655bf 100644 --- a/src/classes/ActionDispatch/Response/RackBody.html +++ b/src/classes/ActionDispatch/Response/RackBody.html @@ -93,11 +93,6 @@

Constants

{ to_ary: true, each: true, call: true, to_path: true } - -   - - - @@ -129,7 +124,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/response.rb, line 484
@@ -137,7 +132,7 @@ 

@response = response end

- See on GitHub + 🔎 See on GitHub
@@ -168,7 +163,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/response.rb, line 494
@@ -176,7 +171,7 @@ 

@response.body end

- See on GitHub + 🔎 See on GitHub
@@ -203,15 +198,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/response.rb, line 516
-      def call(*arguments, &block)
-        @response.stream.call(*arguments, &block)
+      def call(*arguments, &block)
+        @response.stream.call(*arguments, &block)
       end
- See on GitHub + 🔎 See on GitHub
@@ -238,17 +233,17 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/response.rb, line 488
       def close
-        # Rack "close" maps to Response#abort, and *not* Response#close
-        # (which is used when the controller's finished writing)
+        # Rack "close" maps to Response#abort, and *not* Response#close
+        # (which is used when the controller's finished writing)
         @response.abort
       end
- See on GitHub + 🔎 See on GitHub
@@ -275,15 +270,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/response.rb, line 512
-      def each(*args, &block)
-        @response.each(*args, &block)
+      def each(*args, &block)
+        @response.each(*args, &block)
       end
- See on GitHub + 🔎 See on GitHub
@@ -310,7 +305,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/response.rb, line 500
@@ -322,7 +317,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -349,7 +344,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/response.rb, line 508
@@ -357,7 +352,7 @@ 

@response.stream.to_ary end

- See on GitHub + 🔎 See on GitHub
@@ -384,7 +379,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/response.rb, line 520
@@ -392,7 +387,7 @@ 

@response.stream.to_path end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionDispatch/Routing/ConsoleFormatter/Base.html b/src/classes/ActionDispatch/Routing/ConsoleFormatter/Base.html index 2c45512e55..055e9d79b9 100644 --- a/src/classes/ActionDispatch/Routing/ConsoleFormatter/Base.html +++ b/src/classes/ActionDispatch/Routing/ConsoleFormatter/Base.html @@ -103,7 +103,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/routing/inspector.rb, line 155
@@ -111,7 +111,7 @@ 

@buffer = [] end

- See on GitHub + 🔎 See on GitHub
@@ -142,14 +142,14 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/routing/inspector.rb, line 169
         def header(routes)
         end
- See on GitHub + 🔎 See on GitHub
@@ -176,28 +176,28 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/routing/inspector.rb, line 172
         def no_routes(routes, filter)
-          @buffer <<
+          @buffer <<
             if routes.none?
-              <<~MESSAGE
-                You don't have any routes defined!
+              <<~MESSAGE
+                You don't have any routes defined!
 
                 Please add some routes in config/routes.rb.
               MESSAGE
             elsif filter.key?(:controller)
-              "No routes were found for this controller."
+              "No routes were found for this controller."
             elsif filter.key?(:grep)
-              "No routes were found for this grep pattern."
+              "No routes were found for this grep pattern."
             end
 
-          @buffer << "For more information about routes, see the Rails guide: https://guides.rubyonrails.org/routing.html."
+          @buffer << "For more information about routes, see the Rails guide: https://guides.rubyonrails.org/routing.html."
         end
- See on GitHub + 🔎 See on GitHub
@@ -224,15 +224,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/routing/inspector.rb, line 159
         def result
-          @buffer.join("\n")
+          @buffer.join("\n")
         end
- See on GitHub + 🔎 See on GitHub
@@ -259,14 +259,14 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/routing/inspector.rb, line 166
         def section(routes)
         end
- See on GitHub + 🔎 See on GitHub
@@ -293,14 +293,14 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/routing/inspector.rb, line 163
         def section_title(title)
         end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionDispatch/Routing/ConsoleFormatter/Expanded.html b/src/classes/ActionDispatch/Routing/ConsoleFormatter/Expanded.html index d827b704b8..3047726a42 100644 --- a/src/classes/ActionDispatch/Routing/ConsoleFormatter/Expanded.html +++ b/src/classes/ActionDispatch/Routing/ConsoleFormatter/Expanded.html @@ -91,7 +91,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/routing/inspector.rb, line 227
@@ -100,7 +100,7 @@ 

super() end

- See on GitHub + 🔎 See on GitHub
@@ -131,15 +131,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/routing/inspector.rb, line 236
         def section(routes)
-          @buffer << draw_expanded_section(routes)
+          @buffer << draw_expanded_section(routes)
         end
- See on GitHub + 🔎 See on GitHub
@@ -166,15 +166,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/routing/inspector.rb, line 232
         def section_title(title)
-          @buffer << "\n#{"[ #{title} ]"}"
+          @buffer << "\n#{"[ #{title} ]"}"
         end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionDispatch/Routing/ConsoleFormatter/Sheet.html b/src/classes/ActionDispatch/Routing/ConsoleFormatter/Sheet.html index df2b5700a3..6bed1d4f43 100644 --- a/src/classes/ActionDispatch/Routing/ConsoleFormatter/Sheet.html +++ b/src/classes/ActionDispatch/Routing/ConsoleFormatter/Sheet.html @@ -92,15 +92,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/routing/inspector.rb, line 199
         def header(routes)
-          @buffer << draw_header(routes)
+          @buffer << draw_header(routes)
         end
- See on GitHub + 🔎 See on GitHub
@@ -127,15 +127,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/routing/inspector.rb, line 195
         def section(routes)
-          @buffer << draw_section(routes)
+          @buffer << draw_section(routes)
         end
- See on GitHub + 🔎 See on GitHub
@@ -162,15 +162,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/routing/inspector.rb, line 191
         def section_title(title)
-          @buffer << "\n#{title}:"
+          @buffer << "\n#{title}:"
         end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionDispatch/Routing/ConsoleFormatter/Unused.html b/src/classes/ActionDispatch/Routing/ConsoleFormatter/Unused.html index c4cc75a0e0..e579d6070d 100644 --- a/src/classes/ActionDispatch/Routing/ConsoleFormatter/Unused.html +++ b/src/classes/ActionDispatch/Routing/ConsoleFormatter/Unused.html @@ -88,19 +88,19 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/routing/inspector.rb, line 262
         def header(routes)
-          @buffer << <<~MSG
-            Found #{routes.count} unused #{"route".pluralize(routes.count)}:
+          @buffer << <<~MSG
+            Found #{routes.count} unused #{"route".pluralize(routes.count)}:
           MSG
 
           super
         end
- See on GitHub + 🔎 See on GitHub
@@ -127,22 +127,22 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/routing/inspector.rb, line 270
         def no_routes(routes, filter)
-          @buffer <<
+          @buffer <<
             if filter.none?
-              "No unused routes found."
+              "No unused routes found."
             elsif filter.key?(:controller)
-              "No unused routes found for this controller."
+              "No unused routes found for this controller."
             elsif filter.key?(:grep)
-              "No unused routes found for this grep pattern."
+              "No unused routes found for this grep pattern."
             end
         end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionDispatch/Routing/HtmlTableFormatter.html b/src/classes/ActionDispatch/Routing/HtmlTableFormatter.html index 3f5e73adb4..4e011842e0 100644 --- a/src/classes/ActionDispatch/Routing/HtmlTableFormatter.html +++ b/src/classes/ActionDispatch/Routing/HtmlTableFormatter.html @@ -103,7 +103,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/routing/inspector.rb, line 284
@@ -112,7 +112,7 @@ 

@buffer = [] end

- See on GitHub + 🔎 See on GitHub
@@ -143,14 +143,14 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/routing/inspector.rb, line 298
       def header(routes)
       end
- See on GitHub + 🔎 See on GitHub
@@ -177,24 +177,24 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/routing/inspector.rb, line 301
       def no_routes(*)
-        @buffer << <<~MESSAGE
-          

You don't have any routes defined!

-
    -
  • Please add some routes in config/routes.rb.
  • -
  • + @buffer << <<~MESSAGE + <p>You don't have any routes defined!</p> + <ul> + <li>Please add some routes in <tt>config/routes.rb</tt>.</li> + <li> For more information about routes, please see the Rails guide - Rails Routing from the Outside In. -
  • -
+ <a href="https://guides.rubyonrails.org/routing.html">Rails Routing from the Outside In</a>. + </li> + </ul> MESSAGE end
- See on GitHub + 🔎 See on GitHub
@@ -221,17 +221,17 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/routing/inspector.rb, line 314
       def result
-        @view.raw @view.render(layout: "routes/table") {
-          @view.raw @buffer.join("\n")
+        @view.raw @view.render(layout: "routes/table") {
+          @view.raw @buffer.join("\n")
         }
       end
- See on GitHub + 🔎 See on GitHub
@@ -258,15 +258,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/routing/inspector.rb, line 293
       def section(routes)
-        @buffer << @view.render(partial: "routes/route", collection: routes)
+        @buffer << @view.render(partial: "routes/route", collection: routes)
       end
- See on GitHub + 🔎 See on GitHub
@@ -293,15 +293,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/routing/inspector.rb, line 289
       def section_title(title)
-        @buffer << %(#{title})
+        @buffer << %(<tr><th colspan="4">#{title}</th></tr>)
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionDispatch/Routing/Mapper.html b/src/classes/ActionDispatch/Routing/Mapper.html index 6ba43289a9..0b33b0f8f6 100644 --- a/src/classes/ActionDispatch/Routing/Mapper.html +++ b/src/classes/ActionDispatch/Routing/Mapper.html @@ -154,11 +154,6 @@

Constants

[:protocol, :subdomain, :domain, :host, :port] - -   - - - @@ -190,15 +185,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/routing/mapper.rb, line 393
       def self.normalize_name(name)
-        normalize_path(name)[1..-1].tr("/", "_")
+        normalize_path(name)[1..-1].tr("/", "_")
       end
- See on GitHub + 🔎 See on GitHub
@@ -225,7 +220,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/routing/mapper.rb, line 376
@@ -233,20 +228,20 @@ 

path = Journey::Router::Utils.normalize_path(path) # the path for a root URL at this point can be something like - # "/(/:locale)(/:platform)/(:browser)", and we would want - # "/(:locale)(/:platform)(/:browser)" + # "/(/:locale)(/:platform)/(:browser)", and we would want + # "/(:locale)(/:platform)(/:browser)" - # reverse "/(", "/((" etc to "(/", "((/" etc - path.gsub!(%r{/(\(+)/?}, '\1/') - # if a path is all optional segments, change the leading "(/" back to - # "/(" so it evaluates to "/" when interpreted with no options. + # reverse "/(", "/((" etc to "(/", "((/" etc + path.gsub!(%r{/(\(+)/?}, '\1/') + # if a path is all optional segments, change the leading "(/" back to + # "/(" so it evaluates to "/" when interpreted with no options. # Unless, however, at least one secondary segment consists of a static - # part, ex. "(/:locale)(/pages/:page)" - path.sub!(%r{^(\(+)/}, '/\1') if %r{^(\(+[^)]+\))(\(+/:[^)]+\))*$}.match?(path) + # part, ex. "(/:locale)(/pages/:page)" + path.sub!(%r{^(\(+)/}, '/\1') if %r{^(\(+[^)]+\))(\(+/:[^)]+\))*$}.match?(path) path end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionDispatch/Routing/Mapper/Base.html b/src/classes/ActionDispatch/Routing/Mapper/Base.html index 244e8d0408..8d923dd6c6 100644 --- a/src/classes/ActionDispatch/Routing/Mapper/Base.html +++ b/src/classes/ActionDispatch/Routing/Mapper/Base.html @@ -127,7 +127,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/routing/mapper.rb, line 630
@@ -135,7 +135,7 @@ 

@set.default_url_options = options end

- See on GitHub + 🔎 See on GitHub
@@ -162,7 +162,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/routing/mapper.rb, line 642
@@ -170,7 +170,7 @@ 

@set.named_routes.key?(name) end

- See on GitHub + 🔎 See on GitHub
@@ -369,14 +369,14 @@

Options

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/routing/mapper.rb, line 578
         def match(path, options = nil)
         end
- See on GitHub + 🔎 See on GitHub
@@ -420,7 +420,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/routing/mapper.rb, line 600
@@ -433,13 +433,13 @@ 

options.delete(app) if app end - raise ArgumentError, "A rack application must be specified" unless app.respond_to?(:call) - raise ArgumentError, <<~MSG unless path + raise ArgumentError, "A rack application must be specified" unless app.respond_to?(:call) + raise ArgumentError, <<~MSG unless path Must be called with mount point - mount SomeRackApp, at: "some_route" + mount SomeRackApp, at: "some_route" or - mount(SomeRackApp => "some_route") + mount(SomeRackApp => "some_route") MSG rails_app = rails_app? app @@ -454,7 +454,7 @@

self end

- See on GitHub + 🔎 See on GitHub
@@ -481,17 +481,17 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/routing/mapper.rb, line 635
-        def with_default_scope(scope, &block)
+        def with_default_scope(scope, &block)
           scope(scope) do
-            instance_exec(&block)
+            instance_exec(&block)
           end
         end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionDispatch/Routing/Mapper/Concerns.html b/src/classes/ActionDispatch/Routing/Mapper/Concerns.html index 353cf57eb7..c0348b2d4d 100644 --- a/src/classes/ActionDispatch/Routing/Mapper/Concerns.html +++ b/src/classes/ActionDispatch/Routing/Mapper/Concerns.html @@ -158,16 +158,16 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/routing/mapper.rb, line 2083
-        def concern(name, callable = nil, &block)
-          callable ||= lambda { |mapper, options| mapper.instance_exec(options, &block) }
+        def concern(name, callable = nil, &block)
+          callable ||= lambda { |mapper, options| mapper.instance_exec(options, &block) }
           @concerns[name] = callable
         end
- See on GitHub + 🔎 See on GitHub
@@ -206,7 +206,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/routing/mapper.rb, line 2099
@@ -216,12 +216,12 @@ 

if concern = @concerns[name] concern.call(self, options) else - raise ArgumentError, "No concern named #{name} was found!" + raise ArgumentError, "No concern named #{name} was found!" end end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionDispatch/Routing/Mapper/CustomUrls.html b/src/classes/ActionDispatch/Routing/Mapper/CustomUrls.html index 6a52f05b25..2c52d8f56d 100644 --- a/src/classes/ActionDispatch/Routing/Mapper/CustomUrls.html +++ b/src/classes/ActionDispatch/Routing/Mapper/CustomUrls.html @@ -126,19 +126,19 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/routing/mapper.rb, line 2159
-        def direct(name, options = {}, &block)
+        def direct(name, options = {}, &block)
           unless @scope.root?
-            raise RuntimeError, "The direct method can't be used inside a routes scope block"
+            raise RuntimeError, "The direct method can't be used inside a routes scope block"
           end
 
-          @set.add_url_helper(name, options, &block)
+          @set.add_url_helper(name, options, &block)
         end
- See on GitHub + 🔎 See on GitHub
@@ -202,24 +202,24 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/routing/mapper.rb, line 2211
-        def resolve(*args, &block)
+        def resolve(*args, &block)
           unless @scope.root?
-            raise RuntimeError, "The resolve method can't be used inside a routes scope block"
+            raise RuntimeError, "The resolve method can't be used inside a routes scope block"
           end
 
           options = args.extract_options!
           args = args.flatten(1)
 
           args.each do |klass|
-            @set.add_polymorphic_mapping(klass, options, &block)
+            @set.add_polymorphic_mapping(klass, options, &block)
           end
         end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionDispatch/Routing/Mapper/HttpHelpers.html b/src/classes/ActionDispatch/Routing/Mapper/HttpHelpers.html index 5859b64349..2a32962e7a 100644 --- a/src/classes/ActionDispatch/Routing/Mapper/HttpHelpers.html +++ b/src/classes/ActionDispatch/Routing/Mapper/HttpHelpers.html @@ -101,15 +101,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/routing/mapper.rb, line 731
-        def delete(*args, &block)
-          map_method(:delete, args, &block)
+        def delete(*args, &block)
+          map_method(:delete, args, &block)
         end
- See on GitHub + 🔎 See on GitHub
@@ -139,15 +139,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/routing/mapper.rb, line 699
-        def get(*args, &block)
-          map_method(:get, args, &block)
+        def get(*args, &block)
+          map_method(:get, args, &block)
         end
- See on GitHub + 🔎 See on GitHub
@@ -177,15 +177,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/routing/mapper.rb, line 739
-        def options(*args, &block)
-          map_method(:options, args, &block)
+        def options(*args, &block)
+          map_method(:options, args, &block)
         end
- See on GitHub + 🔎 See on GitHub
@@ -215,15 +215,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/routing/mapper.rb, line 715
-        def patch(*args, &block)
-          map_method(:patch, args, &block)
+        def patch(*args, &block)
+          map_method(:patch, args, &block)
         end
- See on GitHub + 🔎 See on GitHub
@@ -253,15 +253,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/routing/mapper.rb, line 707
-        def post(*args, &block)
-          map_method(:post, args, &block)
+        def post(*args, &block)
+          map_method(:post, args, &block)
         end
- See on GitHub + 🔎 See on GitHub
@@ -291,15 +291,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/routing/mapper.rb, line 723
-        def put(*args, &block)
-          map_method(:put, args, &block)
+        def put(*args, &block)
+          map_method(:put, args, &block)
         end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionDispatch/Routing/Mapper/Resources.html b/src/classes/ActionDispatch/Routing/Mapper/Resources.html index 360a0748ac..1f05a09570 100644 --- a/src/classes/ActionDispatch/Routing/Mapper/Resources.html +++ b/src/classes/ActionDispatch/Routing/Mapper/Resources.html @@ -154,11 +154,6 @@

Constants

%w(index create new show update destroy) - -   - - - RESOURCE_OPTIONS @@ -166,11 +161,6 @@

Constants

[:as, :controller, :path, :only, :except, :param, :concerns] - -   - - - VALID_ON_OPTIONS @@ -224,21 +214,21 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/routing/mapper.rb, line 1512
-        def collection(&block)
+        def collection(&block)
           unless resource_scope?
-            raise ArgumentError, "can't use collection outside resource(s) scope"
+            raise ArgumentError, "can't use collection outside resource(s) scope"
           end
 
           with_scope_level(:collection) do
-            path_scope(parent_resource.collection_scope, &block)
+            path_scope(parent_resource.collection_scope, &block)
           end
         end
- See on GitHub + 🔎 See on GitHub
@@ -282,27 +272,27 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/routing/mapper.rb, line 1622
         def draw(name)
           path = @draw_paths.find do |_path|
-            File.exist? "#{_path}/#{name}.rb"
+            File.exist? "#{_path}/#{name}.rb"
           end
 
           unless path
-            msg  = "Your router tried to #draw the external file #{name}.rb,\n" \
-                   "but the file was not found in:\n\n"
-            msg += @draw_paths.map { |_path| " * #{_path}" }.join("\n")
+            msg  = "Your router tried to #draw the external file #{name}.rb,\n" \
+                   "but the file was not found in:\n\n"
+            msg += @draw_paths.map { |_path| " * #{_path}" }.join("\n")
             raise ArgumentError, msg
           end
 
-          route_path = "#{path}/#{name}.rb"
+          route_path = "#{path}/#{name}.rb"
           instance_eval(File.read(route_path), route_path.to_s)
         end
- See on GitHub + 🔎 See on GitHub
@@ -334,22 +324,22 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/routing/mapper.rb, line 1644
-        def match(path, *rest, &block)
-          if rest.empty? && Hash === path
+        def match(path, *rest, &block)
+          if rest.empty? && Hash === path
             options  = path
             path, to = options.find { |name, _value| name.is_a?(String) }
 
-            raise ArgumentError, "Route path not specified" if path.nil?
+            raise ArgumentError, "Route path not specified" if path.nil?
 
             case to
             when Symbol
               options[:action] = to
             when String
-              if to.include?("#")
+              if to.include?("#")
                 options[:to] = to
               else
                 options[:controller] = to
@@ -366,13 +356,13 @@ 

end if options.key?(:defaults) - defaults(options.delete(:defaults)) { map_match(paths, options, &block) } + defaults(options.delete(:defaults)) { map_match(paths, options, &block) } else - map_match(paths, options, &block) + map_match(paths, options, &block) end end

- See on GitHub + 🔎 See on GitHub
@@ -408,27 +398,27 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/routing/mapper.rb, line 1533
-        def member(&block)
+        def member(&block)
           unless resource_scope?
-            raise ArgumentError, "can't use member outside resource(s) scope"
+            raise ArgumentError, "can't use member outside resource(s) scope"
           end
 
           with_scope_level(:member) do
             if shallow?
               shallow_scope {
-                path_scope(parent_resource.member_scope, &block)
+                path_scope(parent_resource.member_scope, &block)
               }
             else
-              path_scope(parent_resource.member_scope, &block)
+              path_scope(parent_resource.member_scope, &block)
             end
           end
         end
- See on GitHub + 🔎 See on GitHub
@@ -455,7 +445,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/routing/mapper.rb, line 1580
@@ -467,7 +457,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -494,31 +484,31 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/routing/mapper.rb, line 1559
-        def nested(&block)
+        def nested(&block)
           unless resource_scope?
-            raise ArgumentError, "can't use nested outside resource(s) scope"
+            raise ArgumentError, "can't use nested outside resource(s) scope"
           end
 
           with_scope_level(:nested) do
-            if shallow? && shallow_nesting_depth >= 1
+            if shallow? && shallow_nesting_depth >= 1
               shallow_scope do
                 path_scope(parent_resource.nested_scope) do
-                  scope(nested_options, &block)
+                  scope(nested_options, &block)
                 end
               end
             else
               path_scope(parent_resource.nested_scope) do
-                scope(nested_options, &block)
+                scope(nested_options, &block)
               end
             end
           end
         end
- See on GitHub + 🔎 See on GitHub
@@ -545,21 +535,21 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/routing/mapper.rb, line 1549
-        def new(&block)
+        def new(&block)
           unless resource_scope?
-            raise ArgumentError, "can't use new outside resource(s) scope"
+            raise ArgumentError, "can't use new outside resource(s) scope"
           end
 
           with_scope_level(:new) do
-            path_scope(parent_resource.new_scope(action_path(:new)), &block)
+            path_scope(parent_resource.new_scope(action_path(:new)), &block)
           end
         end
- See on GitHub + 🔎 See on GitHub
@@ -612,14 +602,14 @@

Options

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/routing/mapper.rb, line 1304
-        def resource(*resources, &block)
+        def resource(*resources, &block)
           options = resources.extract_options!.dup
 
-          if apply_common_behavior_for(:resource, resources, options, &block)
+          if apply_common_behavior_for(:resource, resources, options, &block)
             return self
           end
 
@@ -645,7 +635,7 @@ 

Options

self end
- See on GitHub + 🔎 See on GitHub
@@ -816,14 +806,14 @@

Examples

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/routing/mapper.rb, line 1470
-        def resources(*resources, &block)
+        def resources(*resources, &block)
           options = resources.extract_options!.dup
 
-          if apply_common_behavior_for(:resources, resources, options, &block)
+          if apply_common_behavior_for(:resources, resources, options, &block)
             return self
           end
 
@@ -850,7 +840,7 @@ 

Examples

self end
- See on GitHub + 🔎 See on GitHub
@@ -877,7 +867,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/routing/mapper.rb, line 1269
@@ -885,7 +875,7 @@ 

@scope[:path_names].merge!(options) end

- See on GitHub + 🔎 See on GitHub
@@ -924,17 +914,17 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/routing/mapper.rb, line 1691
         def root(path, options = {})
           if path.is_a?(String)
             options[:to] = path
-          elsif path.is_a?(Hash) && options.empty?
+          elsif path.is_a?(Hash) && options.empty?
             options = path
           else
-            raise ArgumentError, "must be called with a path and/or options"
+            raise ArgumentError, "must be called with a path and/or options"
           end
 
           if @scope.resources?
@@ -948,7 +938,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -975,7 +965,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/routing/mapper.rb, line 1588
@@ -986,7 +976,7 @@ 

@scope = @scope.parent end

- See on GitHub + 🔎 See on GitHub
@@ -1013,15 +1003,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/routing/mapper.rb, line 1595
         def shallow?
-          !parent_resource.singleton? && @scope[:shallow]
+          !parent_resource.singleton? && @scope[:shallow]
         end
- See on GitHub + 🔎 See on GitHub
@@ -1051,7 +1041,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/routing/mapper.rb, line 1891
@@ -1059,7 +1049,7 @@ 

@set.api_only? end

- See on GitHub + 🔎 See on GitHub
@@ -1086,7 +1076,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/routing/mapper.rb, line 1879
@@ -1102,7 +1092,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -1129,7 +1119,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/routing/mapper.rb, line 1775
@@ -1140,7 +1130,7 @@ 

@scope = @scope.parent end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionDispatch/Routing/Mapper/Scoping.html b/src/classes/ActionDispatch/Routing/Mapper/Scoping.html index 05c8c22642..9c4c0f95b1 100644 --- a/src/classes/ActionDispatch/Routing/Mapper/Scoping.html +++ b/src/classes/ActionDispatch/Routing/Mapper/Scoping.html @@ -207,15 +207,15 @@

Dynamic request mat
- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/routing/mapper.rb, line 1011
-        def constraints(constraints = {}, &block)
-          scope(constraints: constraints, &block)
+        def constraints(constraints = {}, &block)
+          scope(constraints: constraints, &block)
         end
- See on GitHub + 🔎 See on GitHub
@@ -247,7 +247,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/routing/mapper.rb, line 896
@@ -258,7 +258,7 @@ 

@scope = @scope.parent end

- See on GitHub + 🔎 See on GitHub
@@ -292,7 +292,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/routing/mapper.rb, line 1020
@@ -303,7 +303,7 @@ 

@scope = @scope.parent end

- See on GitHub + 🔎 See on GitHub
@@ -368,11 +368,11 @@

Options

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/routing/mapper.rb, line 941
-        def namespace(path, options = {}, &block)
+        def namespace(path, options = {}, &block)
           path = path.to_s
 
           defaults = {
@@ -383,11 +383,11 @@ 

Options

} path_scope(options.delete(:path) { path }) do - scope(defaults.merge!(options), &block) + scope(defaults.merge!(options), &block) end end
- See on GitHub + 🔎 See on GitHub
@@ -443,7 +443,7 @@

Options

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/routing/mapper.rb, line 837
@@ -451,7 +451,7 @@ 

Options

options = args.extract_options!.dup scope = {} - options[:path] = args.flatten.join("/") if args.any? + options[:path] = args.flatten.join("/") if args.any? options[:constraints] ||= {} unless nested_scope? @@ -461,7 +461,7 @@

Options

if options[:constraints].is_a?(Hash) defaults = options[:constraints].select do |k, v| - URL_OPTIONS.include?(k) && (v.is_a?(String) || v.is_a?(Integer)) + URL_OPTIONS.include?(k) && (v.is_a?(String) || v.is_a?(Integer)) end options[:defaults] = defaults.merge(options[:defaults] || {}) @@ -475,7 +475,7 @@

Options

end if options.key? :anchor - raise ArgumentError, "anchor is ignored unless passed to `match`" + raise ArgumentError, "anchor is ignored unless passed to `match`" end @scope.options.each do |option| @@ -488,7 +488,7 @@

Options

end unless POISON == value - scope[option] = send("merge_#{option}_scope", @scope[option], value) + scope[option] = send("merge_#{option}_scope", @scope[option], value) end end @@ -499,7 +499,7 @@

Options

@scope = @scope.parent end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionDispatch/Routing/PathRedirect.html b/src/classes/ActionDispatch/Routing/PathRedirect.html index ef558b8153..6955adb898 100644 --- a/src/classes/ActionDispatch/Routing/PathRedirect.html +++ b/src/classes/ActionDispatch/Routing/PathRedirect.html @@ -69,11 +69,6 @@

Constants

/\A([^?]+)?(\?[^#]+)?(#.+)?\z/ - -   - - - @@ -106,15 +101,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/routing/redirection.rb, line 102
       def inspect
-        "redirect(#{status}, #{block})"
+        "redirect(#{status}, #{block})"
       end
- See on GitHub + 🔎 See on GitHub
@@ -141,7 +136,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/routing/redirection.rb, line 90
@@ -151,13 +146,13 @@ 

query = interpolation_required?($2, params) ? $2 % escape(params) : $2 fragment = interpolation_required?($3, params) ? $3 % escape_fragment(params) : $3 - "#{path}#{query}#{fragment}" + "#{path}#{query}#{fragment}" else interpolation_required?(block, params) ? block % escape(params) : block end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionDispatch/Routing/PolymorphicRoutes.html b/src/classes/ActionDispatch/Routing/PolymorphicRoutes.html index 7822fbc22f..859120527a 100644 --- a/src/classes/ActionDispatch/Routing/PolymorphicRoutes.html +++ b/src/classes/ActionDispatch/Routing/PolymorphicRoutes.html @@ -140,7 +140,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/routing/polymorphic_routes.rb, line 126
@@ -166,7 +166,7 @@ 

opts end

- See on GitHub + 🔎 See on GitHub
@@ -234,7 +234,7 @@

Functionality

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/routing/polymorphic_routes.rb, line 103
@@ -260,7 +260,7 @@ 

Functionality

opts end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionDispatch/Routing/Redirection.html b/src/classes/ActionDispatch/Routing/Redirection.html index d230af1f3a..476e48941b 100644 --- a/src/classes/ActionDispatch/Routing/Redirection.html +++ b/src/classes/ActionDispatch/Routing/Redirection.html @@ -121,11 +121,11 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/routing/redirection.rb, line 199
-      def redirect(*args, &block)
+      def redirect(*args, &block)
         options = args.extract_options!
         status  = options.delete(:status) || 301
         path    = args.shift
@@ -134,11 +134,11 @@ 

return PathRedirect.new(status, path) if String === path block = path if path.respond_to? :call - raise ArgumentError, "redirection argument not supported" unless block + raise ArgumentError, "redirection argument not supported" unless block Redirect.new status, block end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionDispatch/Routing/UrlFor.html b/src/classes/ActionDispatch/Routing/UrlFor.html index d7551fa469..eb493badcb 100644 --- a/src/classes/ActionDispatch/Routing/UrlFor.html +++ b/src/classes/ActionDispatch/Routing/UrlFor.html @@ -180,7 +180,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/routing/url_for.rb, line 108
@@ -189,7 +189,7 @@ 

super end

- See on GitHub + 🔎 See on GitHub
@@ -237,15 +237,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/routing/url_for.rb, line 217
       def route_for(name, *args)
-        public_send(:"#{name}_url", *args)
+        public_send(:"#{name}_url", *args)
       end
- See on GitHub + 🔎 See on GitHub
@@ -322,7 +322,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/routing/url_for.rb, line 173
@@ -330,7 +330,7 @@ 

full_url_for(options) end

- See on GitHub + 🔎 See on GitHub
@@ -357,7 +357,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/routing/url_for.rb, line 116
@@ -365,7 +365,7 @@ 

default_url_options end

- See on GitHub + 🔎 See on GitHub
@@ -395,15 +395,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/routing/url_for.rb, line 222
         def optimize_routes_generation?
-          _routes.optimize_routes_generation? && default_url_options.empty?
+          _routes.optimize_routes_generation? && default_url_options.empty?
         end
- See on GitHub + 🔎 See on GitHub
@@ -433,7 +433,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/routing/url_for.rb, line 234
@@ -441,7 +441,7 @@ 

self end

- See on GitHub + 🔎 See on GitHub
@@ -468,7 +468,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/routing/url_for.rb, line 227
@@ -479,7 +479,7 @@ 

@_routes = old_routes end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionDispatch/ServerTiming.html b/src/classes/ActionDispatch/ServerTiming.html index d9ae68672b..ff20d0496e 100644 --- a/src/classes/ActionDispatch/ServerTiming.html +++ b/src/classes/ActionDispatch/ServerTiming.html @@ -87,7 +87,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/server_timing.rb, line 50
@@ -97,7 +97,7 @@ 

@subscriber.ensure_subscribed end

- See on GitHub + 🔎 See on GitHub
@@ -128,7 +128,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/server_timing.rb, line 56
@@ -140,19 +140,19 @@ 

headers = response[1] - header_info = events.group_by(&:name).map do |event_name, events_collection| - "%s;dur=%.2f" % [event_name, events_collection.sum(&:duration)] + header_info = events.group_by(&:name).map do |event_name, events_collection| + "%s;dur=%.2f" % [event_name, events_collection.sum(&:duration)] end if headers[ActionDispatch::Constants::SERVER_TIMING].present? header_info.prepend(headers[ActionDispatch::Constants::SERVER_TIMING]) end - headers[ActionDispatch::Constants::SERVER_TIMING] = header_info.join(", ") + headers[ActionDispatch::Constants::SERVER_TIMING] = header_info.join(", ") response end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionDispatch/Session/AbstractSecureStore.html b/src/classes/ActionDispatch/Session/AbstractSecureStore.html index 193f4fdefc..566d573d3b 100644 --- a/src/classes/ActionDispatch/Session/AbstractSecureStore.html +++ b/src/classes/ActionDispatch/Session/AbstractSecureStore.html @@ -106,7 +106,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/session/abstract_store.rb, line 100
@@ -114,7 +114,7 @@ 

Rack::Session::SessionId.new(super) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionDispatch/Session/CacheStore.html b/src/classes/ActionDispatch/Session/CacheStore.html index 4d6ffe8eba..15c35f1811 100644 --- a/src/classes/ActionDispatch/Session/CacheStore.html +++ b/src/classes/ActionDispatch/Session/CacheStore.html @@ -110,7 +110,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/session/cache_store.rb, line 18
@@ -120,7 +120,7 @@ 

super end

- See on GitHub + 🔎 See on GitHub
@@ -151,7 +151,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/session/cache_store.rb, line 44
@@ -161,7 +161,7 @@ 

generate_sid end

- See on GitHub + 🔎 See on GitHub
@@ -188,18 +188,18 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/session/cache_store.rb, line 25
       def find_session(env, sid)
-        unless sid && (session = get_session_with_fallback(sid))
+        unless sid && (session = get_session_with_fallback(sid))
           sid, session = generate_sid, {}
         end
         [sid, session]
       end
- See on GitHub + 🔎 See on GitHub
@@ -226,7 +226,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/session/cache_store.rb, line 33
@@ -240,7 +240,7 @@ 

sid end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionDispatch/Session/Compatibility.html b/src/classes/ActionDispatch/Session/Compatibility.html index 0bf1873cb2..644732a149 100644 --- a/src/classes/ActionDispatch/Session/Compatibility.html +++ b/src/classes/ActionDispatch/Session/Compatibility.html @@ -85,16 +85,16 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/session/abstract_store.rb, line 21
       def initialize(app, options = {})
-        options[:key] ||= "_session_id"
+        options[:key] ||= "_session_id"
         super
       end
- See on GitHub + 🔎 See on GitHub
@@ -125,7 +125,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/session/abstract_store.rb, line 26
@@ -135,7 +135,7 @@ 

sid end

- See on GitHub + 🔎 See on GitHub
@@ -165,7 +165,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/session/abstract_store.rb, line 33
@@ -174,7 +174,7 @@ 

@default_options.delete(:secure_random) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionDispatch/Session/CookieStore.html b/src/classes/ActionDispatch/Session/CookieStore.html index 922a2557ba..9cdd1d4ebb 100644 --- a/src/classes/ActionDispatch/Session/CookieStore.html +++ b/src/classes/ActionDispatch/Session/CookieStore.html @@ -136,7 +136,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/session/cookie_store.rb, line 63
@@ -146,7 +146,7 @@ 

super end

- See on GitHub + 🔎 See on GitHub
@@ -177,18 +177,18 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/session/cookie_store.rb, line 69
       def delete_session(req, session_id, options)
         new_sid = generate_sid unless options[:drop]
         # Reset hash and Assign the new session id
-        req.set_header("action_dispatch.request.unsigned_session_cookie", new_sid ? { "session_id" => new_sid.public_id } : {})
+        req.set_header("action_dispatch.request.unsigned_session_cookie", new_sid ? { "session_id" => new_sid.public_id } : {})
         new_sid
       end
- See on GitHub + 🔎 See on GitHub
@@ -215,7 +215,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/session/cookie_store.rb, line 76
@@ -223,11 +223,11 @@ 

stale_session_check! do data = unpacked_cookie_data(req) data = persistent_session_id!(data) - [Rack::Session::SessionId.new(data["session_id"]), data] + [Rack::Session::SessionId.new(data["session_id"]), data] end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionDispatch/Session/CookieStore/SessionId.html b/src/classes/ActionDispatch/Session/CookieStore/SessionId.html index f6371be329..d9def47346 100644 --- a/src/classes/ActionDispatch/Session/CookieStore/SessionId.html +++ b/src/classes/ActionDispatch/Session/CookieStore/SessionId.html @@ -97,7 +97,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/session/cookie_store.rb, line 55
@@ -106,7 +106,7 @@ 

@cookie_value = cookie_value end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionDispatch/Session/MemCacheStore.html b/src/classes/ActionDispatch/Session/MemCacheStore.html index 8c8fce26d5..9a07766e18 100644 --- a/src/classes/ActionDispatch/Session/MemCacheStore.html +++ b/src/classes/ActionDispatch/Session/MemCacheStore.html @@ -118,7 +118,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/session/mem_cache_store.rb, line 24
@@ -127,7 +127,7 @@ 

super end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionDispatch/Session/StaleSessionCheck.html b/src/classes/ActionDispatch/Session/StaleSessionCheck.html index d122433665..c4d09865f8 100644 --- a/src/classes/ActionDispatch/Session/StaleSessionCheck.html +++ b/src/classes/ActionDispatch/Session/StaleSessionCheck.html @@ -86,7 +86,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/session/abstract_store.rb, line 48
@@ -94,7 +94,7 @@ 

stale_session_check! { super } end

- See on GitHub + 🔎 See on GitHub
@@ -121,7 +121,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/session/abstract_store.rb, line 44
@@ -129,7 +129,7 @@ 

stale_session_check! { super } end

- See on GitHub + 🔎 See on GitHub
@@ -156,16 +156,16 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/session/abstract_store.rb, line 52
       def stale_session_check!
         yield
-      rescue ArgumentError => argument_error
+      rescue ArgumentError => argument_error
         if argument_error.message =~ %r{undefined class/module ([\w:]*\w)}
           begin
-            # Note that the regexp does not allow $1 to end with a ':'.
+            # Note that the regexp does not allow $1 to end with a ':'.
             $1.constantize
           rescue LoadError, NameError
             raise ActionDispatch::Session::SessionRestoreError
@@ -176,7 +176,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionDispatch/ShowExceptions.html b/src/classes/ActionDispatch/ShowExceptions.html index f3472837d4..6e66a922dd 100644 --- a/src/classes/ActionDispatch/ShowExceptions.html +++ b/src/classes/ActionDispatch/ShowExceptions.html @@ -101,7 +101,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/show_exceptions.rb, line 25
@@ -110,7 +110,7 @@ 

@exceptions_app = exceptions_app end

- See on GitHub + 🔎 See on GitHub
@@ -141,15 +141,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/show_exceptions.rb, line 30
     def call(env)
       @app.call(env)
-    rescue Exception => exception
+    rescue Exception => exception
       request = ActionDispatch::Request.new env
-      backtrace_cleaner = request.get_header("action_dispatch.backtrace_cleaner")
+      backtrace_cleaner = request.get_header("action_dispatch.backtrace_cleaner")
       wrapper = ExceptionWrapper.new(backtrace_cleaner, exception)
       if wrapper.show?(request)
         render_exception(request, wrapper)
@@ -158,7 +158,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionDispatch/Static.html b/src/classes/ActionDispatch/Static.html index a52bb8578b..1ebed4b245 100644 --- a/src/classes/ActionDispatch/Static.html +++ b/src/classes/ActionDispatch/Static.html @@ -101,16 +101,16 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/static.rb, line 19
-    def initialize(app, path, index: "index", headers: {})
+    def initialize(app, path, index: "index", headers: {})
       @app = app
       @file_handler = FileHandler.new(path, index: index, headers: headers)
     end
- See on GitHub + 🔎 See on GitHub
@@ -141,7 +141,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/middleware/static.rb, line 24
@@ -149,7 +149,7 @@ 

@file_handler.attempt(env) || @app.call(env) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionDispatch/SystemTestCase.html b/src/classes/ActionDispatch/SystemTestCase.html index 648cdba936..6e64b0c247 100644 --- a/src/classes/ActionDispatch/SystemTestCase.html +++ b/src/classes/ActionDispatch/SystemTestCase.html @@ -169,11 +169,6 @@

Constants

"http://127.0.0.1" - -   - - - @@ -222,17 +217,17 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/system_test_case.rb, line 156
-    def self.driven_by(driver, using: :chrome, screen_size: [1400, 1400], options: {}, &capabilities)
+    def self.driven_by(driver, using: :chrome, screen_size: [1400, 1400], options: {}, &capabilities)
       driver_options = { using: using, screen_size: screen_size, options: options }
 
-      self.driver = SystemTesting::Driver.new(driver, **driver_options, &capabilities)
+      self.driver = SystemTesting::Driver.new(driver, **driver_options, &capabilities)
     end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionDispatch/SystemTesting/TestHelpers/ScreenshotHelper.html b/src/classes/ActionDispatch/SystemTesting/TestHelpers/ScreenshotHelper.html index ccd58ea68d..2ec79aad32 100644 --- a/src/classes/ActionDispatch/SystemTesting/TestHelpers/ScreenshotHelper.html +++ b/src/classes/ActionDispatch/SystemTesting/TestHelpers/ScreenshotHelper.html @@ -90,18 +90,18 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/system_testing/test_helpers/screenshot_helper.rb, line 44
         def take_failed_screenshot
-          return unless failed? && supports_screenshot? && Capybara::Session.instance_created?
+          return unless failed? && supports_screenshot? && Capybara::Session.instance_created?
 
           take_screenshot
           metadata[:failure_screenshot_path] = relative_image_path if Minitest::Runnable.method_defined?(:metadata)
         end
- See on GitHub + 🔎 See on GitHub
@@ -149,7 +149,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/system_testing/test_helpers/screenshot_helper.rb, line 31
@@ -162,7 +162,7 @@ 

show display_image(html: showing_html, screenshot_output: screenshot) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionDispatch/TestProcess.html b/src/classes/ActionDispatch/TestProcess.html index 35b82818b9..a3ef2f3132 100644 --- a/src/classes/ActionDispatch/TestProcess.html +++ b/src/classes/ActionDispatch/TestProcess.html @@ -121,17 +121,17 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/testing/test_process.rb, line 31
     def assigns(key = nil)
       raise NoMethodError,
-        "assigns has been extracted to a gem. To continue using it,
-        add `gem 'rails-controller-testing'` to your Gemfile."
+        "assigns has been extracted to a gem. To continue using it,
+        add `gem 'rails-controller-testing'` to your Gemfile."
     end
- See on GitHub + 🔎 See on GitHub
@@ -158,7 +158,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/testing/test_process.rb, line 45
@@ -166,7 +166,7 @@ 

@cookie_jar ||= Cookies::CookieJar.build(@request, @request.cookies) end

- See on GitHub + 🔎 See on GitHub
@@ -193,7 +193,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/testing/test_process.rb, line 41
@@ -201,7 +201,7 @@ 

@request.flash end

- See on GitHub + 🔎 See on GitHub
@@ -228,7 +228,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/testing/test_process.rb, line 49
@@ -236,7 +236,7 @@ 

@response.redirect_url end

- See on GitHub + 🔎 See on GitHub
@@ -263,7 +263,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/testing/test_process.rb, line 37
@@ -271,7 +271,7 @@ 

@request.session end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionDispatch/TestProcess/FixtureFile.html b/src/classes/ActionDispatch/TestProcess/FixtureFile.html index e03983c0a4..c2b360f5b6 100644 --- a/src/classes/ActionDispatch/TestProcess/FixtureFile.html +++ b/src/classes/ActionDispatch/TestProcess/FixtureFile.html @@ -96,19 +96,19 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/testing/test_process.rb, line 19
       def file_fixture_upload(path, mime_type = nil, binary = false)
-        if self.class.file_fixture_path && !File.exist?(path)
+        if self.class.file_fixture_path && !File.exist?(path)
           path = file_fixture(path)
         end
 
         Rack::Test::UploadedFile.new(path, mime_type, binary)
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionDispatch/TestRequest.html b/src/classes/ActionDispatch/TestRequest.html index 84f507afb8..cda675c67a 100644 --- a/src/classes/ActionDispatch/TestRequest.html +++ b/src/classes/ActionDispatch/TestRequest.html @@ -113,11 +113,6 @@

Constants

) - -   - - - @@ -149,17 +144,17 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/testing/test_request.rb, line 15
     def self.create(env = {})
-      env = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
-      env["rack.request.cookie_hash"] ||= {}.with_indifferent_access
+      env = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
+      env["rack.request.cookie_hash"] ||= {}.with_indifferent_access
       new(default_env.merge(env))
     end
- See on GitHub + 🔎 See on GitHub
@@ -190,16 +185,16 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/testing/test_request.rb, line 66
     def accept=(mime_types)
-      delete_header("action_dispatch.request.accepts")
-      set_header("HTTP_ACCEPT", Array(mime_types).collect(&:to_s).join(","))
+      delete_header("action_dispatch.request.accepts")
+      set_header("HTTP_ACCEPT", Array(mime_types).collect(&:to_s).join(","))
     end
- See on GitHub + 🔎 See on GitHub
@@ -226,7 +221,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/testing/test_request.rb, line 46
@@ -234,7 +229,7 @@ 

path_parameters[:action] = action_name.to_s end

- See on GitHub + 🔎 See on GitHub
@@ -261,15 +256,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/testing/test_request.rb, line 30
     def host=(host)
-      set_header("HTTP_HOST", host)
+      set_header("HTTP_HOST", host)
     end
- See on GitHub + 🔎 See on GitHub
@@ -296,15 +291,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/testing/test_request.rb, line 50
     def if_modified_since=(last_modified)
-      set_header("HTTP_IF_MODIFIED_SINCE", last_modified)
+      set_header("HTTP_IF_MODIFIED_SINCE", last_modified)
     end
- See on GitHub + 🔎 See on GitHub
@@ -331,15 +326,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/testing/test_request.rb, line 54
     def if_none_match=(etag)
-      set_header("HTTP_IF_NONE_MATCH", etag)
+      set_header("HTTP_IF_NONE_MATCH", etag)
     end
- See on GitHub + 🔎 See on GitHub
@@ -366,15 +361,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/testing/test_request.rb, line 42
     def path=(path)
-      set_header("PATH_INFO", path)
+      set_header("PATH_INFO", path)
     end
- See on GitHub + 🔎 See on GitHub
@@ -401,15 +396,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/testing/test_request.rb, line 34
     def port=(number)
-      set_header("SERVER_PORT", number)
+      set_header("SERVER_PORT", number)
     end
- See on GitHub + 🔎 See on GitHub
@@ -436,15 +431,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/testing/test_request.rb, line 58
     def remote_addr=(addr)
-      set_header("REMOTE_ADDR", addr)
+      set_header("REMOTE_ADDR", addr)
     end
- See on GitHub + 🔎 See on GitHub
@@ -471,7 +466,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/testing/test_request.rb, line 26
@@ -479,7 +474,7 @@ 

super(method.to_s.upcase) end

- See on GitHub + 🔎 See on GitHub
@@ -506,15 +501,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/testing/test_request.rb, line 38
     def request_uri=(uri)
-      set_header("REQUEST_URI", uri)
+      set_header("REQUEST_URI", uri)
     end
- See on GitHub + 🔎 See on GitHub
@@ -541,15 +536,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/testing/test_request.rb, line 62
     def user_agent=(user_agent)
-      set_header("HTTP_USER_AGENT", user_agent)
+      set_header("HTTP_USER_AGENT", user_agent)
     end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionDispatch/TestResponse.html b/src/classes/ActionDispatch/TestResponse.html index 7cc7a9ced1..54c0da2ce1 100644 --- a/src/classes/ActionDispatch/TestResponse.html +++ b/src/classes/ActionDispatch/TestResponse.html @@ -99,7 +99,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/testing/test_response.rb, line 13
@@ -107,7 +107,7 @@ 

new response.status, response.headers, response.body end

- See on GitHub + 🔎 See on GitHub
@@ -170,7 +170,7 @@

Examples

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/testing/test_response.rb, line 49
@@ -178,7 +178,7 @@ 

Examples

@parsed_body ||= response_parser.call(body) end
- See on GitHub + 🔎 See on GitHub
@@ -205,7 +205,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/testing/test_response.rb, line 53
@@ -213,7 +213,7 @@ 

@response_parser ||= RequestEncoder.parser(media_type) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionMailbox.html b/src/classes/ActionMailbox.html index d99de6c7e5..20de48228e 100644 --- a/src/classes/ActionMailbox.html +++ b/src/classes/ActionMailbox.html @@ -197,7 +197,7 @@

- Source code + 📝 Source code
# File actionmailbox/lib/action_mailbox/gem_version.rb, line 5
@@ -205,7 +205,7 @@ 

Gem::Version.new VERSION::STRING end

- See on GitHub + 🔎 See on GitHub
@@ -232,7 +232,7 @@

- Source code + 📝 Source code
# File actionmailbox/lib/action_mailbox/version.rb, line 7
@@ -240,7 +240,7 @@ 

gem_version end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionMailbox/Base.html b/src/classes/ActionMailbox/Base.html index 290edbe763..db9ce0576a 100644 --- a/src/classes/ActionMailbox/Base.html +++ b/src/classes/ActionMailbox/Base.html @@ -178,7 +178,7 @@

- Source code + 📝 Source code
# File actionmailbox/lib/action_mailbox/base.rb, line 79
@@ -186,7 +186,7 @@ 

@inbound_email = inbound_email end

- See on GitHub + 🔎 See on GitHub
@@ -213,7 +213,7 @@

- Source code + 📝 Source code
# File actionmailbox/lib/action_mailbox/base.rb, line 75
@@ -221,7 +221,7 @@ 

new(inbound_email).perform_processing end

- See on GitHub + 🔎 See on GitHub
@@ -252,7 +252,7 @@

- Source code + 📝 Source code
# File actionmailbox/lib/action_mailbox/base.rb, line 111
@@ -261,7 +261,7 @@ 

message.deliver_now end

- See on GitHub + 🔎 See on GitHub
@@ -288,7 +288,7 @@

- Source code + 📝 Source code
# File actionmailbox/lib/action_mailbox/base.rb, line 105
@@ -297,7 +297,7 @@ 

message.deliver_later end

- See on GitHub + 🔎 See on GitHub
@@ -324,7 +324,7 @@

- Source code + 📝 Source code
# File actionmailbox/lib/action_mailbox/base.rb, line 96
@@ -332,7 +332,7 @@ 

# Override in subclasses end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionMailbox/Callbacks.html b/src/classes/ActionMailbox/Callbacks.html index 01aaac0e13..7e62e96b14 100644 --- a/src/classes/ActionMailbox/Callbacks.html +++ b/src/classes/ActionMailbox/Callbacks.html @@ -92,11 +92,6 @@

Constants

end - -   - - - @@ -129,15 +124,15 @@

- Source code + 📝 Source code
# File actionmailbox/lib/action_mailbox/callbacks.rb, line 27
-      def after_processing(*methods, &block)
-        set_callback(:process, :after, *methods, &block)
+      def after_processing(*methods, &block)
+        set_callback(:process, :after, *methods, &block)
       end
- See on GitHub + 🔎 See on GitHub
@@ -164,15 +159,15 @@

- Source code + 📝 Source code
# File actionmailbox/lib/action_mailbox/callbacks.rb, line 31
-      def around_processing(*methods, &block)
-        set_callback(:process, :around, *methods, &block)
+      def around_processing(*methods, &block)
+        set_callback(:process, :around, *methods, &block)
       end
- See on GitHub + 🔎 See on GitHub
@@ -199,15 +194,15 @@

- Source code + 📝 Source code
# File actionmailbox/lib/action_mailbox/callbacks.rb, line 23
-      def before_processing(*methods, &block)
-        set_callback(:process, :before, *methods, &block)
+      def before_processing(*methods, &block)
+        set_callback(:process, :before, *methods, &block)
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionMailbox/InboundEmail.html b/src/classes/ActionMailbox/InboundEmail.html index fa37ad52a5..fe8a1593bd 100644 --- a/src/classes/ActionMailbox/InboundEmail.html +++ b/src/classes/ActionMailbox/InboundEmail.html @@ -144,7 +144,7 @@

- Source code + 📝 Source code
# File actionmailbox/app/models/action_mailbox/inbound_email.rb, line 35
@@ -152,7 +152,7 @@ 

@mail ||= Mail.from_source(source) end

- See on GitHub + 🔎 See on GitHub
@@ -179,7 +179,7 @@

- Source code + 📝 Source code
# File actionmailbox/app/models/action_mailbox/inbound_email.rb, line 43
@@ -187,7 +187,7 @@ 

delivered? || failed? || bounced? end

- See on GitHub + 🔎 See on GitHub
@@ -214,7 +214,7 @@

- Source code + 📝 Source code
# File actionmailbox/app/models/action_mailbox/inbound_email.rb, line 39
@@ -222,7 +222,7 @@ 

@source ||= raw_email.download end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionMailbox/InboundEmail/Incineratable.html b/src/classes/ActionMailbox/InboundEmail/Incineratable.html index bb5b33ae85..6d8d1d93b4 100644 --- a/src/classes/ActionMailbox/InboundEmail/Incineratable.html +++ b/src/classes/ActionMailbox/InboundEmail/Incineratable.html @@ -103,7 +103,7 @@

- Source code + 📝 Source code
# File actionmailbox/app/models/action_mailbox/inbound_email/incineratable.rb, line 17
@@ -111,7 +111,7 @@ 

Incineration.new(self).run end

- See on GitHub + 🔎 See on GitHub
@@ -138,7 +138,7 @@

- Source code + 📝 Source code
# File actionmailbox/app/models/action_mailbox/inbound_email/incineratable.rb, line 13
@@ -146,7 +146,7 @@ 

ActionMailbox::IncinerationJob.schedule self end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionMailbox/InboundEmail/Incineratable/Incineration.html b/src/classes/ActionMailbox/InboundEmail/Incineratable/Incineration.html index b000b699c9..c83f0937ca 100644 --- a/src/classes/ActionMailbox/InboundEmail/Incineratable/Incineration.html +++ b/src/classes/ActionMailbox/InboundEmail/Incineratable/Incineration.html @@ -93,7 +93,7 @@

- Source code + 📝 Source code
# File actionmailbox/app/models/action_mailbox/inbound_email/incineratable/incineration.rb, line 9
@@ -101,7 +101,7 @@ 

@inbound_email = inbound_email end

- See on GitHub + 🔎 See on GitHub
@@ -132,15 +132,15 @@

- Source code + 📝 Source code
# File actionmailbox/app/models/action_mailbox/inbound_email/incineratable/incineration.rb, line 13
     def run
-      @inbound_email.destroy! if due? && processed?
+      @inbound_email.destroy! if due? && processed?
     end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionMailbox/InboundEmail/MessageId.html b/src/classes/ActionMailbox/InboundEmail/MessageId.html index 48320ff39e..57454ca6e5 100644 --- a/src/classes/ActionMailbox/InboundEmail/MessageId.html +++ b/src/classes/ActionMailbox/InboundEmail/MessageId.html @@ -98,7 +98,7 @@

- Source code + 📝 Source code
# File actionmailbox/app/models/action_mailbox/inbound_email/message_id.rb, line 16
@@ -112,7 +112,7 @@ 

nil end

- See on GitHub + 🔎 See on GitHub
@@ -139,16 +139,16 @@

- Source code + 📝 Source code
# File actionmailbox/app/models/action_mailbox/inbound_email/message_id.rb, line 37
       def create_and_upload_raw_email!(source)
-        ActiveStorage::Blob.create_and_upload! io: StringIO.new(source), filename: "message.eml", content_type: "message/rfc822",
+        ActiveStorage::Blob.create_and_upload! io: StringIO.new(source), filename: "message.eml", content_type: "message/rfc822",
                                                service_name: ActionMailbox.storage_service
       end
- See on GitHub + 🔎 See on GitHub
@@ -175,7 +175,7 @@

- Source code + 📝 Source code
# File actionmailbox/app/models/action_mailbox/inbound_email/message_id.rb, line 27
@@ -183,7 +183,7 @@ 

Mail.from_source(source).message_id rescue nil end

- See on GitHub + 🔎 See on GitHub
@@ -210,17 +210,17 @@

- Source code + 📝 Source code
# File actionmailbox/app/models/action_mailbox/inbound_email/message_id.rb, line 31
       def generate_missing_message_id(message_checksum)
-        Mail::MessageIdField.new("<#{message_checksum}@#{::Socket.gethostname}.mail>").message_id.tap do |message_id|
-          logger.warn "Message-ID couldn't be parsed or is missing. Generated a new Message-ID: #{message_id}"
+        Mail::MessageIdField.new("<#{message_checksum}@#{::Socket.gethostname}.mail>").message_id.tap do |message_id|
+          logger.warn "Message-ID couldn't be parsed or is missing. Generated a new Message-ID: #{message_id}"
         end
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionMailbox/InboundEmail/Routable.html b/src/classes/ActionMailbox/InboundEmail/Routable.html index ee4919f67e..f784d83b03 100644 --- a/src/classes/ActionMailbox/InboundEmail/Routable.html +++ b/src/classes/ActionMailbox/InboundEmail/Routable.html @@ -90,7 +90,7 @@

- Source code + 📝 Source code
# File actionmailbox/app/models/action_mailbox/inbound_email/routable.rb, line 21
@@ -98,7 +98,7 @@ 

ApplicationMailbox.route self end

- See on GitHub + 🔎 See on GitHub
@@ -125,7 +125,7 @@

- Source code + 📝 Source code
# File actionmailbox/app/models/action_mailbox/inbound_email/routable.rb, line 16
@@ -133,7 +133,7 @@ 

ActionMailbox::RoutingJob.perform_later self end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionMailbox/IncinerationJob.html b/src/classes/ActionMailbox/IncinerationJob.html index e7da519fff..6981a342c9 100644 --- a/src/classes/ActionMailbox/IncinerationJob.html +++ b/src/classes/ActionMailbox/IncinerationJob.html @@ -97,7 +97,7 @@

- Source code + 📝 Source code
# File actionmailbox/app/jobs/action_mailbox/incineration_job.rb, line 17
@@ -105,7 +105,7 @@ 

set(wait: ActionMailbox.incinerate_after).perform_later(inbound_email) end

- See on GitHub + 🔎 See on GitHub
@@ -136,7 +136,7 @@

- Source code + 📝 Source code
# File actionmailbox/app/jobs/action_mailbox/incineration_job.rb, line 21
@@ -144,7 +144,7 @@ 

inbound_email.incinerate end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionMailbox/Ingresses/Mailgun/InboundEmailsController.html b/src/classes/ActionMailbox/Ingresses/Mailgun/InboundEmailsController.html index 7ced8e14ca..b8e0f11444 100644 --- a/src/classes/ActionMailbox/Ingresses/Mailgun/InboundEmailsController.html +++ b/src/classes/ActionMailbox/Ingresses/Mailgun/InboundEmailsController.html @@ -150,7 +150,7 @@

- Source code + 📝 Source code
# File actionmailbox/app/controllers/action_mailbox/ingresses/mailgun/inbound_emails_controller.rb, line 49
@@ -158,7 +158,7 @@ 

ActionMailbox::InboundEmail.create_and_extract_message_id! mail end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionMailbox/Ingresses/Mailgun/InboundEmailsController/Authenticator.html b/src/classes/ActionMailbox/Ingresses/Mailgun/InboundEmailsController/Authenticator.html index dc33792a07..3194a3b33c 100644 --- a/src/classes/ActionMailbox/Ingresses/Mailgun/InboundEmailsController/Authenticator.html +++ b/src/classes/ActionMailbox/Ingresses/Mailgun/InboundEmailsController/Authenticator.html @@ -125,7 +125,7 @@

- Source code + 📝 Source code
# File actionmailbox/app/controllers/action_mailbox/ingresses/mailgun/inbound_emails_controller.rb, line 87
@@ -133,7 +133,7 @@ 

@key, @timestamp, @token, @signature = key, Integer(timestamp), token, signature end

- See on GitHub + 🔎 See on GitHub
@@ -164,15 +164,15 @@

- Source code + 📝 Source code
# File actionmailbox/app/controllers/action_mailbox/ingresses/mailgun/inbound_emails_controller.rb, line 91
         def authenticated?
-          signed? && recent?
+          signed? && recent?
         end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionMailbox/Ingresses/Mandrill/InboundEmailsController.html b/src/classes/ActionMailbox/Ingresses/Mandrill/InboundEmailsController.html index bfa29321f8..39a34a678d 100644 --- a/src/classes/ActionMailbox/Ingresses/Mandrill/InboundEmailsController.html +++ b/src/classes/ActionMailbox/Ingresses/Mandrill/InboundEmailsController.html @@ -122,19 +122,19 @@

- Source code + 📝 Source code
# File actionmailbox/app/controllers/action_mailbox/ingresses/mandrill/inbound_emails_controller.rb, line 20
     def create
       raw_emails.each { |raw_email| ActionMailbox::InboundEmail.create_and_extract_message_id! raw_email }
       head :ok
-    rescue JSON::ParserError => error
+    rescue JSON::ParserError => error
       logger.error error.message
       head :unprocessable_entity
     end
- See on GitHub + 🔎 See on GitHub
@@ -161,7 +161,7 @@

- Source code + 📝 Source code
# File actionmailbox/app/controllers/action_mailbox/ingresses/mandrill/inbound_emails_controller.rb, line 28
@@ -169,7 +169,7 @@ 

head :ok end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionMailbox/Ingresses/Mandrill/InboundEmailsController/Authenticator.html b/src/classes/ActionMailbox/Ingresses/Mandrill/InboundEmailsController/Authenticator.html index 0b43aeb36c..a3466b44e6 100644 --- a/src/classes/ActionMailbox/Ingresses/Mandrill/InboundEmailsController/Authenticator.html +++ b/src/classes/ActionMailbox/Ingresses/Mandrill/InboundEmailsController/Authenticator.html @@ -109,7 +109,7 @@

- Source code + 📝 Source code
# File actionmailbox/app/controllers/action_mailbox/ingresses/mandrill/inbound_emails_controller.rb, line 64
@@ -117,7 +117,7 @@ 

@request, @key = request, key end

- See on GitHub + 🔎 See on GitHub
@@ -148,7 +148,7 @@

- Source code + 📝 Source code
# File actionmailbox/app/controllers/action_mailbox/ingresses/mandrill/inbound_emails_controller.rb, line 68
@@ -156,7 +156,7 @@ 

ActiveSupport::SecurityUtils.secure_compare given_signature, expected_signature end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionMailbox/Ingresses/Postmark/InboundEmailsController.html b/src/classes/ActionMailbox/Ingresses/Postmark/InboundEmailsController.html index e7cab8be61..b956f5c3a8 100644 --- a/src/classes/ActionMailbox/Ingresses/Postmark/InboundEmailsController.html +++ b/src/classes/ActionMailbox/Ingresses/Postmark/InboundEmailsController.html @@ -133,23 +133,23 @@

- Source code + 📝 Source code
# File actionmailbox/app/controllers/action_mailbox/ingresses/postmark/inbound_emails_controller.rb, line 51
     def create
-      ActionMailbox::InboundEmail.create_and_extract_message_id! params.require("RawEmail")
-    rescue ActionController::ParameterMissing => error
-      logger.error <<~MESSAGE
+      ActionMailbox::InboundEmail.create_and_extract_message_id! params.require("RawEmail")
+    rescue ActionController::ParameterMissing => error
+      logger.error <<~MESSAGE
         #{error.message}
 
         When configuring your Postmark inbound webhook, be sure to check the box
-        labeled "Include raw email content in JSON payload".
+        labeled "Include raw email content in JSON payload".
       MESSAGE
       head :unprocessable_entity
     end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionMailbox/Ingresses/Relay/InboundEmailsController.html b/src/classes/ActionMailbox/Ingresses/Relay/InboundEmailsController.html index 4470749114..50971568be 100644 --- a/src/classes/ActionMailbox/Ingresses/Relay/InboundEmailsController.html +++ b/src/classes/ActionMailbox/Ingresses/Relay/InboundEmailsController.html @@ -142,7 +142,7 @@

- Source code + 📝 Source code
# File actionmailbox/app/controllers/action_mailbox/ingresses/relay/inbound_emails_controller.rb, line 54
@@ -150,7 +150,7 @@ 

ActionMailbox::InboundEmail.create_and_extract_message_id! request.body.read end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionMailbox/Ingresses/Sendgrid/InboundEmailsController.html b/src/classes/ActionMailbox/Ingresses/Sendgrid/InboundEmailsController.html index 6ff7d4f688..8a0f51a254 100644 --- a/src/classes/ActionMailbox/Ingresses/Sendgrid/InboundEmailsController.html +++ b/src/classes/ActionMailbox/Ingresses/Sendgrid/InboundEmailsController.html @@ -133,18 +133,18 @@

- Source code + 📝 Source code
# File actionmailbox/app/controllers/action_mailbox/ingresses/sendgrid/inbound_emails_controller.rb, line 51
     def create
       ActionMailbox::InboundEmail.create_and_extract_message_id! mail
-    rescue JSON::ParserError => error
+    rescue JSON::ParserError => error
       logger.error error.message
       head :unprocessable_entity
     end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionMailbox/Relayer.html b/src/classes/ActionMailbox/Relayer.html index 1d3af27882..01e09f55ce 100644 --- a/src/classes/ActionMailbox/Relayer.html +++ b/src/classes/ActionMailbox/Relayer.html @@ -82,11 +82,6 @@

Constants

"message/rfc822" - -   - - - USER_AGENT @@ -94,11 +89,6 @@

Constants

"Action Mailbox relayer v#{ActionMailbox.version}" - -   - - - @@ -160,15 +150,15 @@

- Source code + 📝 Source code
# File actionmailbox/lib/action_mailbox/relayer.rb, line 32
-    def initialize(url:, username: "actionmailbox", password:)
+    def initialize(url:, username: "actionmailbox", password:)
       @uri, @username, @password = URI(url), username, password
     end
- See on GitHub + 🔎 See on GitHub
@@ -199,28 +189,28 @@

- Source code + 📝 Source code
# File actionmailbox/lib/action_mailbox/relayer.rb, line 36
     def relay(source)
       case response = post(source)
       when Net::HTTPSuccess
-        Result.new "2.0.0", "Successfully relayed message to ingress"
+        Result.new "2.0.0", "Successfully relayed message to ingress"
       when Net::HTTPUnauthorized
-        Result.new "4.7.0", "Invalid credentials for ingress"
+        Result.new "4.7.0", "Invalid credentials for ingress"
       else
-        Result.new "4.0.0", "HTTP #{response.code}"
+        Result.new "4.0.0", "HTTP #{response.code}"
       end
-    rescue IOError, SocketError, SystemCallError => error
-      Result.new "4.4.2", "Network error relaying to ingress: #{error.message}"
+    rescue IOError, SocketError, SystemCallError => error
+      Result.new "4.4.2", "Network error relaying to ingress: #{error.message}"
     rescue Timeout::Error
-      Result.new "4.4.2", "Timed out relaying to ingress"
-    rescue => error
-      Result.new "4.0.0", "Error relaying to ingress: #{error.message}"
+      Result.new "4.4.2", "Timed out relaying to ingress"
+    rescue => error
+      Result.new "4.0.0", "Error relaying to ingress: #{error.message}"
     end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionMailbox/Relayer/Result.html b/src/classes/ActionMailbox/Relayer/Result.html index 4c8104d71d..3ae83591ba 100644 --- a/src/classes/ActionMailbox/Relayer/Result.html +++ b/src/classes/ActionMailbox/Relayer/Result.html @@ -96,7 +96,7 @@

- Source code + 📝 Source code
# File actionmailbox/lib/action_mailbox/relayer.rb, line 14
@@ -104,7 +104,7 @@ 

transient_failure? || permanent_failure? end

- See on GitHub + 🔎 See on GitHub
@@ -131,15 +131,15 @@

- Source code + 📝 Source code
# File actionmailbox/lib/action_mailbox/relayer.rb, line 22
       def permanent_failure?
-        status_code.start_with?("5.")
+        status_code.start_with?("5.")
       end
- See on GitHub + 🔎 See on GitHub
@@ -166,7 +166,7 @@

- Source code + 📝 Source code
# File actionmailbox/lib/action_mailbox/relayer.rb, line 10
@@ -174,7 +174,7 @@ 

!failure? end

- See on GitHub + 🔎 See on GitHub
@@ -201,15 +201,15 @@

- Source code + 📝 Source code
# File actionmailbox/lib/action_mailbox/relayer.rb, line 18
       def transient_failure?
-        status_code.start_with?("4.")
+        status_code.start_with?("4.")
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionMailbox/Router.html b/src/classes/ActionMailbox/Router.html index f0e502fa78..45f7a8e8ab 100644 --- a/src/classes/ActionMailbox/Router.html +++ b/src/classes/ActionMailbox/Router.html @@ -124,7 +124,7 @@

- Source code + 📝 Source code
# File actionmailbox/lib/action_mailbox/router.rb, line 11
@@ -132,7 +132,7 @@ 

@routes = [] end

- See on GitHub + 🔎 See on GitHub
@@ -163,7 +163,7 @@

- Source code + 📝 Source code
# File actionmailbox/lib/action_mailbox/router.rb, line 21
@@ -171,7 +171,7 @@ 

routes.append Route.new(address, to: to) end

- See on GitHub + 🔎 See on GitHub
@@ -198,7 +198,7 @@

- Source code + 📝 Source code
# File actionmailbox/lib/action_mailbox/router.rb, line 15
@@ -208,7 +208,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -235,15 +235,15 @@

- Source code + 📝 Source code
# File actionmailbox/lib/action_mailbox/router.rb, line 35
     def mailbox_for(inbound_email)
-      routes.detect { |route| route.match?(inbound_email) }&.mailbox_class
+      routes.detect { |route| route.match?(inbound_email) }&.mailbox_class
     end
- See on GitHub + 🔎 See on GitHub
@@ -270,7 +270,7 @@

- Source code + 📝 Source code
# File actionmailbox/lib/action_mailbox/router.rb, line 25
@@ -284,7 +284,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionMailbox/Router/Route.html b/src/classes/ActionMailbox/Router/Route.html index 42dd55bd8b..8b97bf0b79 100644 --- a/src/classes/ActionMailbox/Router/Route.html +++ b/src/classes/ActionMailbox/Router/Route.html @@ -119,7 +119,7 @@

- Source code + 📝 Source code
# File actionmailbox/lib/action_mailbox/router/route.rb, line 10
@@ -129,7 +129,7 @@ 

ensure_valid_address end

- See on GitHub + 🔎 See on GitHub
@@ -160,15 +160,15 @@

- Source code + 📝 Source code
# File actionmailbox/lib/action_mailbox/router/route.rb, line 31
     def mailbox_class
-      "#{mailbox_name.to_s.camelize}Mailbox".constantize
+      "#{mailbox_name.to_s.camelize}Mailbox".constantize
     end
- See on GitHub + 🔎 See on GitHub
@@ -195,7 +195,7 @@

- Source code + 📝 Source code
# File actionmailbox/lib/action_mailbox/router/route.rb, line 16
@@ -214,7 +214,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionMailbox/Routing.html b/src/classes/ActionMailbox/Routing.html index 6b1c57c014..5fc836ed86 100644 --- a/src/classes/ActionMailbox/Routing.html +++ b/src/classes/ActionMailbox/Routing.html @@ -92,7 +92,7 @@

- Source code + 📝 Source code
# File actionmailbox/lib/action_mailbox/routing.rb, line 21
@@ -100,7 +100,7 @@ 

router.mailbox_for(inbound_email) end

- See on GitHub + 🔎 See on GitHub
@@ -127,7 +127,7 @@

- Source code + 📝 Source code
# File actionmailbox/lib/action_mailbox/routing.rb, line 17
@@ -135,7 +135,7 @@ 

router.route(inbound_email) end

- See on GitHub + 🔎 See on GitHub
@@ -162,7 +162,7 @@

- Source code + 📝 Source code
# File actionmailbox/lib/action_mailbox/routing.rb, line 13
@@ -170,7 +170,7 @@ 

router.add_routes(routes) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionMailbox/RoutingJob.html b/src/classes/ActionMailbox/RoutingJob.html index 7dd34ed5c7..64a2df0333 100644 --- a/src/classes/ActionMailbox/RoutingJob.html +++ b/src/classes/ActionMailbox/RoutingJob.html @@ -90,7 +90,7 @@

- Source code + 📝 Source code
# File actionmailbox/app/jobs/action_mailbox/routing_job.rb, line 9
@@ -98,7 +98,7 @@ 

inbound_email.route end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionMailbox/TestHelper.html b/src/classes/ActionMailbox/TestHelper.html index c6a1589d06..6277b99bf8 100644 --- a/src/classes/ActionMailbox/TestHelper.html +++ b/src/classes/ActionMailbox/TestHelper.html @@ -98,7 +98,7 @@

- Source code + 📝 Source code
# File actionmailbox/lib/action_mailbox/test_helper.rb, line 9
@@ -106,7 +106,7 @@ 

create_inbound_email_from_source file_fixture(fixture_name).read, status: status end

- See on GitHub + 🔎 See on GitHub
@@ -181,19 +181,19 @@

- Source code + 📝 Source code
# File actionmailbox/lib/action_mailbox/test_helper.rb, line 63
-    def create_inbound_email_from_mail(status: :processing, **mail_options, &block)
-      mail = Mail.new(mail_options, &block)
+    def create_inbound_email_from_mail(status: :processing, **mail_options, &block)
+      mail = Mail.new(mail_options, &block)
       # Bcc header is not encoded by default
       mail[:bcc].include_in_headers = true if mail[:bcc]
 
       create_inbound_email_from_source mail.to_s, status: status
     end
- See on GitHub + 🔎 See on GitHub @@ -220,7 +220,7 @@

- Source code + 📝 Source code
# File actionmailbox/lib/action_mailbox/test_helper.rb, line 72
@@ -228,7 +228,7 @@ 

ActionMailbox::InboundEmail.create_and_extract_message_id! source, status: status end

- See on GitHub + 🔎 See on GitHub
@@ -255,15 +255,15 @@

- Source code + 📝 Source code
# File actionmailbox/lib/action_mailbox/test_helper.rb, line 79
     def receive_inbound_email_from_fixture(*args)
-      create_inbound_email_from_fixture(*args).tap(&:route)
+      create_inbound_email_from_fixture(*args).tap(&:route)
     end
- See on GitHub + 🔎 See on GitHub
@@ -290,15 +290,15 @@

- Source code + 📝 Source code
# File actionmailbox/lib/action_mailbox/test_helper.rb, line 85
-    def receive_inbound_email_from_mail(**kwargs, &block)
-      create_inbound_email_from_mail(**kwargs, &block).tap(&:route)
+    def receive_inbound_email_from_mail(**kwargs, &block)
+      create_inbound_email_from_mail(**kwargs, &block).tap(&:route)
     end
- See on GitHub + 🔎 See on GitHub
@@ -325,15 +325,15 @@

- Source code + 📝 Source code
# File actionmailbox/lib/action_mailbox/test_helper.rb, line 91
     def receive_inbound_email_from_source(*args)
-      create_inbound_email_from_source(*args).tap(&:route)
+      create_inbound_email_from_source(*args).tap(&:route)
     end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionMailbox/VERSION.html b/src/classes/ActionMailbox/VERSION.html index 48c8cd9517..b07be754d2 100644 --- a/src/classes/ActionMailbox/VERSION.html +++ b/src/classes/ActionMailbox/VERSION.html @@ -50,11 +50,6 @@

Constants

7 - -   - - - MINOR @@ -62,11 +57,6 @@

Constants

1 - -   - - - PRE @@ -74,11 +64,6 @@

Constants

nil - -   - - - STRING @@ -86,11 +71,6 @@

Constants

[MAJOR, MINOR, TINY, PRE].compact.join(".") - -   - - - TINY @@ -98,11 +78,6 @@

Constants

0 - -   - - - diff --git a/src/classes/ActionMailer.html b/src/classes/ActionMailer.html index 86aeac6cb1..ef8dc4b248 100644 --- a/src/classes/ActionMailer.html +++ b/src/classes/ActionMailer.html @@ -318,14 +318,14 @@

- Source code + 📝 Source code
# File actionmailer/lib/action_mailer.rb, line 61
   def self.eager_load!
     super
 
-    require "mail"
+    require "mail"
     Mail.eager_autoload!
 
     Base.descendants.each do |mailer|
@@ -333,7 +333,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -360,7 +360,7 @@

- Source code + 📝 Source code
# File actionmailer/lib/action_mailer/gem_version.rb, line 5
@@ -368,7 +368,7 @@ 

Gem::Version.new VERSION::STRING end

- See on GitHub + 🔎 See on GitHub
@@ -395,7 +395,7 @@

- Source code + 📝 Source code
# File actionmailer/lib/action_mailer/version.rb, line 8
@@ -403,7 +403,7 @@ 

gem_version end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionMailer/Base.html b/src/classes/ActionMailer/Base.html index b629f10e50..60595c3064 100644 --- a/src/classes/ActionMailer/Base.html +++ b/src/classes/ActionMailer/Base.html @@ -699,11 +699,6 @@

Constants

AbstractController::Rendering::DEFAULT_PROTECTED_INSTANCE_VARIABLES + [:@_action_has_layout] - -   - - - @@ -783,7 +778,7 @@

- Source code + 📝 Source code
# File actionmailer/lib/action_mailer/base.rb, line 582
@@ -792,7 +787,7 @@ 

default_params end

- See on GitHub + 🔎 See on GitHub
@@ -849,7 +844,7 @@

- Source code + 📝 Source code
# File actionmailer/lib/action_mailer/base.rb, line 607
@@ -860,7 +855,7 @@ 

end.to_s end

- See on GitHub + 🔎 See on GitHub
@@ -891,15 +886,15 @@

- Source code + 📝 Source code
# File actionmailer/lib/action_mailer/base.rb, line 570
       def mailer_name
-        @mailer_name ||= anonymous? ? "anonymous" : name.underscore
+        @mailer_name ||= anonymous? ? "anonymous" : name.underscore
       end
- See on GitHub + 🔎 See on GitHub
@@ -926,7 +921,7 @@

- Source code + 📝 Source code
# File actionmailer/lib/action_mailer/base.rb, line 644
@@ -936,7 +931,7 @@ 

@_message = Mail.new end

- See on GitHub + 🔎 See on GitHub
@@ -963,7 +958,7 @@

- Source code + 📝 Source code
# File actionmailer/lib/action_mailer/base.rb, line 547
@@ -971,7 +966,7 @@ 

Mail.register_interceptor(observer_class_for(interceptor)) end

- See on GitHub + 🔎 See on GitHub
@@ -998,7 +993,7 @@

- Source code + 📝 Source code
# File actionmailer/lib/action_mailer/base.rb, line 521
@@ -1006,7 +1001,7 @@ 

interceptors.flatten.compact.each { |interceptor| register_interceptor(interceptor) } end

- See on GitHub + 🔎 See on GitHub
@@ -1033,7 +1028,7 @@

- Source code + 📝 Source code
# File actionmailer/lib/action_mailer/base.rb, line 533
@@ -1041,7 +1036,7 @@ 

Mail.register_observer(observer_class_for(observer)) end

- See on GitHub + 🔎 See on GitHub
@@ -1068,7 +1063,7 @@

- Source code + 📝 Source code
# File actionmailer/lib/action_mailer/base.rb, line 511
@@ -1076,7 +1071,7 @@ 

observers.flatten.compact.each { |observer| register_observer(observer) } end

- See on GitHub + 🔎 See on GitHub
@@ -1103,7 +1098,7 @@

- Source code + 📝 Source code
# File actionmailer/lib/action_mailer/base.rb, line 554
@@ -1111,7 +1106,7 @@ 

Mail.unregister_interceptor(observer_class_for(interceptor)) end

- See on GitHub + 🔎 See on GitHub
@@ -1138,7 +1133,7 @@

- Source code + 📝 Source code
# File actionmailer/lib/action_mailer/base.rb, line 526
@@ -1146,7 +1141,7 @@ 

interceptors.flatten.compact.each { |interceptor| unregister_interceptor(interceptor) } end

- See on GitHub + 🔎 See on GitHub
@@ -1173,7 +1168,7 @@

- Source code + 📝 Source code
# File actionmailer/lib/action_mailer/base.rb, line 540
@@ -1181,7 +1176,7 @@ 

Mail.unregister_observer(observer_class_for(observer)) end

- See on GitHub + 🔎 See on GitHub
@@ -1208,7 +1203,7 @@

- Source code + 📝 Source code
# File actionmailer/lib/action_mailer/base.rb, line 516
@@ -1216,7 +1211,7 @@ 

observers.flatten.compact.each { |observer| unregister_observer(observer) } end

- See on GitHub + 🔎 See on GitHub
@@ -1246,7 +1241,7 @@

- Source code + 📝 Source code
# File actionmailer/lib/action_mailer/base.rb, line 943
@@ -1254,7 +1249,7 @@ 

false end

- See on GitHub + 🔎 See on GitHub
@@ -1313,7 +1308,7 @@

- Source code + 📝 Source code
# File actionmailer/lib/action_mailer/base.rb, line 761
@@ -1325,7 +1320,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -1354,7 +1349,7 @@

- Source code + 📝 Source code
# File actionmailer/lib/action_mailer/base.rb, line 685
@@ -1362,7 +1357,7 @@ 

self.class.email_address_with_name(address, name) end

- See on GitHub + 🔎 See on GitHub
@@ -1430,7 +1425,7 @@

- Source code + 📝 Source code
# File actionmailer/lib/action_mailer/base.rb, line 723
@@ -1442,7 +1437,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -1547,12 +1542,12 @@

- Source code + 📝 Source code
# File actionmailer/lib/action_mailer/base.rb, line 870
-    def mail(headers = {}, &block)
-      return message if @_mail_was_called && headers.blank? && !block
+    def mail(headers = {}, &block)
+      return message if @_mail_was_called && headers.blank? && !block
 
       # At the beginning, do not consider class default for content_type
       content_type = headers[:content_type]
@@ -1568,7 +1563,7 @@ 

assign_headers_to_message(message, headers) # Render the templates and blocks - responses = collect_responses(headers, &block) + responses = collect_responses(headers, &block) @_mail_was_called = true create_parts_from_responses(message, responses) @@ -1586,7 +1581,7 @@

message end

- See on GitHub + 🔎 See on GitHub
@@ -1613,7 +1608,7 @@

- Source code + 📝 Source code
# File actionmailer/lib/action_mailer/base.rb, line 678
@@ -1621,7 +1616,7 @@ 

self.class.mailer_name end

- See on GitHub + 🔎 See on GitHub
@@ -1651,16 +1646,16 @@

- Source code + 📝 Source code
# File actionmailer/lib/action_mailer/base.rb, line 937
       def default_i18n_subject(interpolations = {}) # :doc:
-        mailer_scope = self.class.mailer_name.tr("/", ".")
+        mailer_scope = self.class.mailer_name.tr("/", ".")
         I18n.t(:subject, **interpolations.merge(scope: [mailer_scope, action_name], default: action_name.humanize))
       end
- See on GitHub + 🔎 See on GitHub
@@ -1691,7 +1686,7 @@

- Source code + 📝 Source code
# File actionmailer/lib/action_mailer/base.rb, line 915
@@ -1701,19 +1696,19 @@ 

when user_content_type.present? user_content_type when m.has_attachments? - if m.attachments.all?(&:inline?) - ["multipart", "related", params] + if m.attachments.all?(&:inline?) + ["multipart", "related", params] else - ["multipart", "mixed", params] + ["multipart", "mixed", params] end when m.multipart? - ["multipart", "alternative", params] + ["multipart", "alternative", params] else m.content_type || class_default end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionMailer/Base/LateAttachmentsProxy.html b/src/classes/ActionMailer/Base/LateAttachmentsProxy.html index d94573b9e0..14fbe2154f 100644 --- a/src/classes/ActionMailer/Base/LateAttachmentsProxy.html +++ b/src/classes/ActionMailer/Base/LateAttachmentsProxy.html @@ -88,13 +88,13 @@

- Source code + 📝 Source code
# File actionmailer/lib/action_mailer/base.rb, line 771
       def []=(_name, _content); _raise_error end
- See on GitHub + 🔎 See on GitHub
@@ -121,13 +121,13 @@

- Source code + 📝 Source code
# File actionmailer/lib/action_mailer/base.rb, line 770
       def inline; self end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionMailer/Callbacks/ClassMethods.html b/src/classes/ActionMailer/Callbacks/ClassMethods.html index 7d307e7237..2f04eedc12 100644 --- a/src/classes/ActionMailer/Callbacks/ClassMethods.html +++ b/src/classes/ActionMailer/Callbacks/ClassMethods.html @@ -86,15 +86,15 @@

- Source code + 📝 Source code
# File actionmailer/lib/action_mailer/callbacks.rb, line 21
-      def after_deliver(*filters, &blk)
-        set_callback(:deliver, :after, *filters, &blk)
+      def after_deliver(*filters, &blk)
+        set_callback(:deliver, :after, *filters, &blk)
       end
- See on GitHub + 🔎 See on GitHub
@@ -121,15 +121,15 @@

- Source code + 📝 Source code
# File actionmailer/lib/action_mailer/callbacks.rb, line 26
-      def around_deliver(*filters, &blk)
-        set_callback(:deliver, :around, *filters, &blk)
+      def around_deliver(*filters, &blk)
+        set_callback(:deliver, :around, *filters, &blk)
       end
- See on GitHub + 🔎 See on GitHub
@@ -156,15 +156,15 @@

- Source code + 📝 Source code
# File actionmailer/lib/action_mailer/callbacks.rb, line 15
-      def before_deliver(*filters, &blk)
-        set_callback(:deliver, :before, *filters, &blk)
+      def before_deliver(*filters, &blk)
+        set_callback(:deliver, :before, *filters, &blk)
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionMailer/Collector.html b/src/classes/ActionMailer/Collector.html index b57d97a0b1..67b23112e1 100644 --- a/src/classes/ActionMailer/Collector.html +++ b/src/classes/ActionMailer/Collector.html @@ -123,17 +123,17 @@

- Source code + 📝 Source code
# File actionmailer/lib/action_mailer/collector.rb, line 12
-    def initialize(context, &block)
+    def initialize(context, &block)
       @context = context
       @responses = []
       @default_render = block
     end
- See on GitHub + 🔎 See on GitHub
@@ -193,17 +193,17 @@

- Source code + 📝 Source code
# File actionmailer/lib/action_mailer/collector.rb, line 18
-    def any(*args, &block)
+    def any(*args, &block)
       options = args.extract_options!
-      raise ArgumentError, "You have to supply at least one format" if args.empty?
-      args.each { |type| send(type, options.dup, &block) }
+      raise ArgumentError, "You have to supply at least one format" if args.empty?
+      args.each { |type| send(type, options.dup, &block) }
     end
- See on GitHub + 🔎 See on GitHub
@@ -230,7 +230,7 @@

- Source code + 📝 Source code
# File actionmailer/lib/action_mailer/collector.rb, line 25
@@ -238,10 +238,10 @@ 

options.reverse_merge!(content_type: mime.to_s) @context.formats = [mime.to_sym] options[:body] = block_given? ? yield : @default_render.call - @responses << options + @responses << options end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionMailer/DeliveryMethods/ClassMethods.html b/src/classes/ActionMailer/DeliveryMethods/ClassMethods.html index 424251458d..b1c03881b2 100644 --- a/src/classes/ActionMailer/DeliveryMethods/ClassMethods.html +++ b/src/classes/ActionMailer/DeliveryMethods/ClassMethods.html @@ -89,17 +89,17 @@

- Source code + 📝 Source code
# File actionmailer/lib/action_mailer/delivery_methods.rb, line 52
       def add_delivery_method(symbol, klass, default_options = {})
-        class_attribute(:"#{symbol}_settings") unless respond_to?(:"#{symbol}_settings")
-        public_send(:"#{symbol}_settings=", default_options)
-        self.delivery_methods = delivery_methods.merge(symbol.to_sym => klass).freeze
+        class_attribute(:"#{symbol}_settings") unless respond_to?(:"#{symbol}_settings")
+        public_send(:"#{symbol}_settings=", default_options)
+        self.delivery_methods = delivery_methods.merge(symbol.to_sym => klass).freeze
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionMailer/FormBuilder.html b/src/classes/ActionMailer/FormBuilder.html index 0eb9b13689..bbb51e6fc5 100644 --- a/src/classes/ActionMailer/FormBuilder.html +++ b/src/classes/ActionMailer/FormBuilder.html @@ -103,7 +103,7 @@

- Source code + 📝 Source code
# File actionmailer/lib/action_mailer/form_builder.rb, line 33
@@ -111,7 +111,7 @@ 

self.class._default_form_builder end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionMailer/FormBuilder/ClassMethods.html b/src/classes/ActionMailer/FormBuilder/ClassMethods.html index 304fa50466..42b71a2f53 100644 --- a/src/classes/ActionMailer/FormBuilder/ClassMethods.html +++ b/src/classes/ActionMailer/FormBuilder/ClassMethods.html @@ -83,7 +83,7 @@

Parameters

- Source code + 📝 Source code
# File actionmailer/lib/action_mailer/form_builder.rb, line 27
@@ -91,7 +91,7 @@ 

Parameters

self._default_form_builder = builder end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionMailer/InlinePreviewInterceptor.html b/src/classes/ActionMailer/InlinePreviewInterceptor.html index 2961963a9b..4c86d562b0 100644 --- a/src/classes/ActionMailer/InlinePreviewInterceptor.html +++ b/src/classes/ActionMailer/InlinePreviewInterceptor.html @@ -81,11 +81,6 @@

Constants

/src=(?:"cid:[^"]+"|'cid:[^']+')/i - -   - - - diff --git a/src/classes/ActionMailer/LogSubscriber.html b/src/classes/ActionMailer/LogSubscriber.html index 027337c839..b6efa420c9 100644 --- a/src/classes/ActionMailer/LogSubscriber.html +++ b/src/classes/ActionMailer/LogSubscriber.html @@ -100,25 +100,25 @@

- Source code + 📝 Source code
# File actionmailer/lib/action_mailer/log_subscriber.rb, line 12
     def deliver(event)
       info do
         if exception = event.payload[:exception_object]
-          "Failed delivery of mail #{event.payload[:message_id]} error_class=#{exception.class} error_message=#{exception.message.inspect}"
+          "Failed delivery of mail #{event.payload[:message_id]} error_class=#{exception.class} error_message=#{exception.message.inspect}"
         elsif event.payload[:perform_deliveries]
-          "Delivered mail #{event.payload[:message_id]} (#{event.duration.round(1)}ms)"
+          "Delivered mail #{event.payload[:message_id]} (#{event.duration.round(1)}ms)"
         else
-          "Skipped delivery of mail #{event.payload[:message_id]} as `perform_deliveries` is false"
+          "Skipped delivery of mail #{event.payload[:message_id]} as `perform_deliveries` is false"
         end
       end
 
       debug { event.payload[:mail] }
     end
- See on GitHub + 🔎 See on GitHub
@@ -145,7 +145,7 @@

- Source code + 📝 Source code
# File actionmailer/lib/action_mailer/log_subscriber.rb, line 38
@@ -153,7 +153,7 @@ 

ActionMailer::Base.logger end

- See on GitHub + 🔎 See on GitHub
@@ -180,7 +180,7 @@

- Source code + 📝 Source code
# File actionmailer/lib/action_mailer/log_subscriber.rb, line 28
@@ -188,11 +188,11 @@ 

debug do mailer = event.payload[:mailer] action = event.payload[:action] - "#{mailer}##{action}: processed outbound mail in #{event.duration.round(1)}ms" + "#{mailer}##{action}: processed outbound mail in #{event.duration.round(1)}ms" end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionMailer/MailHelper.html b/src/classes/ActionMailer/MailHelper.html index 008f0c4b67..1aff4acf4b 100644 --- a/src/classes/ActionMailer/MailHelper.html +++ b/src/classes/ActionMailer/MailHelper.html @@ -102,7 +102,7 @@

- Source code + 📝 Source code
# File actionmailer/lib/action_mailer/mail_helper.rb, line 45
@@ -110,7 +110,7 @@ 

mailer.attachments end

- See on GitHub + 🔎 See on GitHub
@@ -148,23 +148,23 @@

- Source code + 📝 Source code
# File actionmailer/lib/action_mailer/mail_helper.rb, line 22
     def block_format(text)
       formatted = text.split(/\n\r?\n/).collect { |paragraph|
         format_paragraph(paragraph)
-      }.join("\n\n")
+      }.join("\n\n")
 
       # Make list points stand on their own line
-      formatted.gsub!(/[ ]*([*]+) ([^*]*)/) { "  #{$1} #{$2.strip}\n" }
-      formatted.gsub!(/[ ]*([#]+) ([^#]*)/) { "  #{$1} #{$2.strip}\n" }
+      formatted.gsub!(/[ ]*([*]+) ([^*]*)/) { "  #{$1} #{$2.strip}\n" }
+      formatted.gsub!(/[ ]*([#]+) ([^#]*)/) { "  #{$1} #{$2.strip}\n" }
 
       formatted
     end
- See on GitHub + 🔎 See on GitHub
@@ -197,7 +197,7 @@

- Source code + 📝 Source code
# File actionmailer/lib/action_mailer/mail_helper.rb, line 57
@@ -205,20 +205,20 @@ 

sentences = [[]] text.split.each do |word| - if sentences.first.present? && (sentences.last + [word]).join(" ").length > len - sentences << [word] + if sentences.first.present? && (sentences.last + [word]).join(" ").length > len + sentences << [word] else - sentences.last << word + sentences.last << word end end - indentation = " " * indent + indentation = " " * indent sentences.map! { |sentence| - "#{indentation}#{sentence.join(' ')}" - }.join "\n" + "#{indentation}#{sentence.join(' ')}" + }.join "\n" end

- See on GitHub + 🔎 See on GitHub
@@ -245,7 +245,7 @@

- Source code + 📝 Source code
# File actionmailer/lib/action_mailer/mail_helper.rb, line 35
@@ -253,7 +253,7 @@ 

@_controller end

- See on GitHub + 🔎 See on GitHub
@@ -280,7 +280,7 @@

- Source code + 📝 Source code
# File actionmailer/lib/action_mailer/mail_helper.rb, line 40
@@ -288,7 +288,7 @@ 

@_message end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionMailer/MessageDelivery.html b/src/classes/ActionMailer/MessageDelivery.html index 4a6bf2048c..2eadba28ef 100644 --- a/src/classes/ActionMailer/MessageDelivery.html +++ b/src/classes/ActionMailer/MessageDelivery.html @@ -142,7 +142,7 @@

- Source code + 📝 Source code
# File actionmailer/lib/action_mailer/message_delivery.rb, line 102
@@ -150,7 +150,7 @@ 

enqueue_delivery :deliver_now, options end

- See on GitHub + 🔎 See on GitHub
@@ -201,7 +201,7 @@

- Source code + 📝 Source code
# File actionmailer/lib/action_mailer/message_delivery.rb, line 75
@@ -209,7 +209,7 @@ 

enqueue_delivery :deliver_now!, options end

- See on GitHub + 🔎 See on GitHub
@@ -239,7 +239,7 @@

- Source code + 📝 Source code
# File actionmailer/lib/action_mailer/message_delivery.rb, line 123
@@ -251,7 +251,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -281,7 +281,7 @@

- Source code + 📝 Source code
# File actionmailer/lib/action_mailer/message_delivery.rb, line 111
@@ -293,7 +293,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -320,7 +320,7 @@

- Source code + 📝 Source code
# File actionmailer/lib/action_mailer/message_delivery.rb, line 41
@@ -328,7 +328,7 @@ 

__getobj__ end

- See on GitHub + 🔎 See on GitHub
@@ -355,7 +355,7 @@

- Source code + 📝 Source code
# File actionmailer/lib/action_mailer/message_delivery.rb, line 46
@@ -363,7 +363,7 @@ 

@processed_mailer || @mail_message end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionMailer/NonInferrableMailerError.html b/src/classes/ActionMailer/NonInferrableMailerError.html index d158e5755d..d69ea3a971 100644 --- a/src/classes/ActionMailer/NonInferrableMailerError.html +++ b/src/classes/ActionMailer/NonInferrableMailerError.html @@ -83,17 +83,17 @@

- Source code + 📝 Source code
# File actionmailer/lib/action_mailer/test_case.rb, line 8
     def initialize(name)
-      super "Unable to determine the mailer to test from #{name}. " \
-        "You'll need to specify it using tests YourMailer in your " \
-        "test case definition"
+      super "Unable to determine the mailer to test from #{name}. " \
+        "You'll need to specify it using tests YourMailer in your " \
+        "test case definition"
     end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionMailer/Parameterized.html b/src/classes/ActionMailer/Parameterized.html index bacc6ebf23..04965d9a7f 100644 --- a/src/classes/ActionMailer/Parameterized.html +++ b/src/classes/ActionMailer/Parameterized.html @@ -198,7 +198,7 @@

- Source code + 📝 Source code
# File actionmailer/lib/action_mailer/parameterized.rb, line 95
@@ -206,7 +206,7 @@ 

@params ||= {} end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionMailer/Parameterized/ClassMethods.html b/src/classes/ActionMailer/Parameterized/ClassMethods.html index 8d7c59266c..020e1045dc 100644 --- a/src/classes/ActionMailer/Parameterized/ClassMethods.html +++ b/src/classes/ActionMailer/Parameterized/ClassMethods.html @@ -83,7 +83,7 @@

- Source code + 📝 Source code
# File actionmailer/lib/action_mailer/parameterized.rb, line 106
@@ -91,7 +91,7 @@ 

ActionMailer::Parameterized::Mailer.new(self, params) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionMailer/Preview.html b/src/classes/ActionMailer/Preview.html index 4e471cb4bb..ede6651a46 100644 --- a/src/classes/ActionMailer/Preview.html +++ b/src/classes/ActionMailer/Preview.html @@ -125,7 +125,7 @@

- Source code + 📝 Source code
# File actionmailer/lib/action_mailer/preview.rb, line 104
@@ -134,7 +134,7 @@ 

descendants.sort_by { |mailer| mailer.name.titleize } end

- See on GitHub + 🔎 See on GitHub
@@ -161,7 +161,7 @@

- Source code + 📝 Source code
# File actionmailer/lib/action_mailer/preview.rb, line 112
@@ -172,7 +172,7 @@ 

message end

- See on GitHub + 🔎 See on GitHub
@@ -199,7 +199,7 @@

- Source code + 📝 Source code
# File actionmailer/lib/action_mailer/preview.rb, line 125
@@ -207,7 +207,7 @@ 

emails.include?(email) end

- See on GitHub + 🔎 See on GitHub
@@ -234,15 +234,15 @@

- Source code + 📝 Source code
# File actionmailer/lib/action_mailer/preview.rb, line 120
       def emails
-        public_instance_methods(false).map(&:to_s).sort
+        public_instance_methods(false).map(&:to_s).sort
       end
- See on GitHub + 🔎 See on GitHub
@@ -269,7 +269,7 @@

- Source code + 📝 Source code
# File actionmailer/lib/action_mailer/preview.rb, line 130
@@ -277,7 +277,7 @@ 

all.any? { |p| p.preview_name == preview } end

- See on GitHub + 🔎 See on GitHub
@@ -304,7 +304,7 @@

- Source code + 📝 Source code
# File actionmailer/lib/action_mailer/preview.rb, line 135
@@ -312,7 +312,7 @@ 

all.find { |p| p.preview_name == preview } end

- See on GitHub + 🔎 See on GitHub
@@ -339,7 +339,7 @@

- Source code + 📝 Source code
# File actionmailer/lib/action_mailer/preview.rb, line 98
@@ -347,7 +347,7 @@ 

@params = params end

- See on GitHub + 🔎 See on GitHub
@@ -374,15 +374,15 @@

- Source code + 📝 Source code
# File actionmailer/lib/action_mailer/preview.rb, line 140
       def preview_name
-        name.delete_suffix("Preview").underscore
+        name.delete_suffix("Preview").underscore
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionMailer/Previews/ClassMethods.html b/src/classes/ActionMailer/Previews/ClassMethods.html index a810929729..7ef71048dd 100644 --- a/src/classes/ActionMailer/Previews/ClassMethods.html +++ b/src/classes/ActionMailer/Previews/ClassMethods.html @@ -98,19 +98,19 @@

- Source code + 📝 Source code
# File actionmailer/lib/action_mailer/preview.rb, line 45
       def preview_path
-        ActionMailer.deprecator.warn(<<-MSG.squish)
+        ActionMailer.deprecator.warn(<<-MSG.squish)
           Using preview_path option is deprecated and will be removed in Rails 7.2.
           Please use preview_paths instead.
         MSG
         self.preview_paths.first
       end
- See on GitHub + 🔎 See on GitHub
@@ -137,19 +137,19 @@

- Source code + 📝 Source code
# File actionmailer/lib/action_mailer/preview.rb, line 37
       def preview_path=(value)
-        ActionMailer.deprecator.warn(<<-MSG.squish)
+        ActionMailer.deprecator.warn(<<-MSG.squish)
           Using preview_path= option is deprecated and will be removed in Rails 7.2.
           Please use preview_paths= instead.
         MSG
-        self.preview_paths << value
+        self.preview_paths << value
       end
- See on GitHub + 🔎 See on GitHub
@@ -176,7 +176,7 @@

- Source code + 📝 Source code
# File actionmailer/lib/action_mailer/preview.rb, line 66
@@ -184,11 +184,11 @@ 

preview_interceptor = interceptor_class_for(interceptor) unless preview_interceptors.include?(preview_interceptor) - preview_interceptors << preview_interceptor + preview_interceptors << preview_interceptor end end

- See on GitHub + 🔎 See on GitHub
@@ -215,7 +215,7 @@

- Source code + 📝 Source code
# File actionmailer/lib/action_mailer/preview.rb, line 54
@@ -223,7 +223,7 @@ 

interceptors.flatten.compact.each { |interceptor| register_preview_interceptor(interceptor) } end

- See on GitHub + 🔎 See on GitHub
@@ -250,7 +250,7 @@

- Source code + 📝 Source code
# File actionmailer/lib/action_mailer/preview.rb, line 77
@@ -258,7 +258,7 @@ 

preview_interceptors.delete(interceptor_class_for(interceptor)) end

- See on GitHub + 🔎 See on GitHub
@@ -285,7 +285,7 @@

- Source code + 📝 Source code
# File actionmailer/lib/action_mailer/preview.rb, line 59
@@ -293,7 +293,7 @@ 

interceptors.flatten.compact.each { |interceptor| unregister_preview_interceptor(interceptor) } end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionMailer/TestCase/Behavior.html b/src/classes/ActionMailer/TestCase/Behavior.html index 86493f8490..f220e14451 100644 --- a/src/classes/ActionMailer/TestCase/Behavior.html +++ b/src/classes/ActionMailer/TestCase/Behavior.html @@ -127,15 +127,15 @@

- Source code + 📝 Source code
# File actionmailer/lib/action_mailer/test_case.rb, line 82
       def read_fixture(action)
-        IO.readlines(File.join(Rails.root, "test", "fixtures", self.class.mailer_class.name.underscore, action))
+        IO.readlines(File.join(Rails.root, "test", "fixtures", self.class.mailer_class.name.underscore, action))
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionMailer/TestCase/Behavior/ClassMethods.html b/src/classes/ActionMailer/TestCase/Behavior/ClassMethods.html index 6cbde53f3d..7076e92422 100644 --- a/src/classes/ActionMailer/TestCase/Behavior/ClassMethods.html +++ b/src/classes/ActionMailer/TestCase/Behavior/ClassMethods.html @@ -86,19 +86,19 @@

- Source code + 📝 Source code
# File actionmailer/lib/action_mailer/test_case.rb, line 68
         def determine_default_mailer(name)
           mailer = determine_constant_from_test_name(name) do |constant|
-            Class === constant && constant < ActionMailer::Base
+            Class === constant && constant < ActionMailer::Base
           end
           raise NonInferrableMailerError.new(name) if mailer.nil?
           mailer
         end
- See on GitHub + 🔎 See on GitHub
@@ -125,7 +125,7 @@

- Source code + 📝 Source code
# File actionmailer/lib/action_mailer/test_case.rb, line 60
@@ -137,7 +137,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -164,7 +164,7 @@

- Source code + 📝 Source code
# File actionmailer/lib/action_mailer/test_case.rb, line 49
@@ -179,7 +179,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionMailer/TestHelper.html b/src/classes/ActionMailer/TestHelper.html index 5dee5c6b1a..112dee5ec4 100644 --- a/src/classes/ActionMailer/TestHelper.html +++ b/src/classes/ActionMailer/TestHelper.html @@ -145,20 +145,20 @@

- Source code + 📝 Source code
# File actionmailer/lib/action_mailer/test_helper.rb, line 35
-    def assert_emails(number, &block)
+    def assert_emails(number, &block)
       if block_given?
-        diff = capture_emails(&block).length
-        assert_equal number, diff, "#{number} emails expected, but #{diff} were sent"
+        diff = capture_emails(&block).length
+        assert_equal number, diff, "#{number} emails expected, but #{diff} were sent"
       else
         assert_equal number, ActionMailer::Base.deliveries.size
       end
     end
- See on GitHub + 🔎 See on GitHub
@@ -247,31 +247,31 @@

- Source code + 📝 Source code
# File actionmailer/lib/action_mailer/test_helper.rb, line 157
-    def assert_enqueued_email_with(mailer, method, params: nil, args: nil, queue: nil, &block)
+    def assert_enqueued_email_with(mailer, method, params: nil, args: nil, queue: nil, &block)
       if mailer.is_a? ActionMailer::Parameterized::Mailer
         params = mailer.instance_variable_get(:@params)
         mailer = mailer.instance_variable_get(:@mailer)
       end
 
       if args.is_a?(Hash)
-        ActionMailer.deprecator.warn <<~MSG
+        ActionMailer.deprecator.warn <<~MSG
           Passing a Hash to the assert_enqueued_email_with :args kwarg causes the
           Hash to be treated as params. This behavior is deprecated and will be
           removed in Rails 7.2.
 
           To specify a params Hash, use the :params kwarg:
 
-            assert_enqueued_email_with MyMailer, :my_method, params: { my_param: "value" }
+            assert_enqueued_email_with MyMailer, :my_method, params: { my_param: "value" }
 
           Or, to specify named mailer args as a Hash, wrap the Hash in an array:
 
-            assert_enqueued_email_with MyMailer, :my_method, args: [{ my_arg: "value" }]
+            assert_enqueued_email_with MyMailer, :my_method, args: [{ my_arg: "value" }]
             # OR
-            assert_enqueued_email_with MyMailer, :my_method, args: [my_arg: "value"]
+            assert_enqueued_email_with MyMailer, :my_method, args: [my_arg: "value"]
         MSG
 
         params, args = args, nil
@@ -280,17 +280,17 @@ 

args = Array(args) unless args.is_a?(Proc) queue ||= mailer.deliver_later_queue_name || ActiveJob::Base.default_queue_name - expected = ->(job_args) do + expected = ->(job_args) do job_kwargs = job_args.extract_options! - [mailer.to_s, method.to_s, "deliver_now"] == job_args && - params === job_kwargs[:params] && args === job_kwargs[:args] + [mailer.to_s, method.to_s, "deliver_now"] == job_args && + params === job_kwargs[:params] && args === job_kwargs[:args] end - assert_enqueued_with(job: mailer.delivery_job, args: expected, queue: queue.to_s, &block) + assert_enqueued_with(job: mailer.delivery_job, args: expected, queue: queue.to_s, &block) end

- See on GitHub + 🔎 See on GitHub
@@ -340,15 +340,15 @@

- Source code + 📝 Source code
# File actionmailer/lib/action_mailer/test_helper.rb, line 91
-    def assert_enqueued_emails(number, &block)
-      assert_enqueued_jobs(number, only: ->(job) { delivery_job_filter(job) }, &block)
+    def assert_enqueued_emails(number, &block)
+      assert_enqueued_jobs(number, only: ->(job) { delivery_job_filter(job) }, &block)
     end
- See on GitHub + 🔎 See on GitHub
@@ -396,15 +396,15 @@

- Source code + 📝 Source code
# File actionmailer/lib/action_mailer/test_helper.rb, line 63
-    def assert_no_emails(&block)
-      assert_emails 0, &block
+    def assert_no_emails(&block)
+      assert_emails 0, &block
     end
- See on GitHub + 🔎 See on GitHub
@@ -447,15 +447,15 @@

- Source code + 📝 Source code
# File actionmailer/lib/action_mailer/test_helper.rb, line 211
-    def assert_no_enqueued_emails(&block)
-      assert_enqueued_emails 0, &block
+    def assert_no_enqueued_emails(&block)
+      assert_enqueued_emails 0, &block
     end
- See on GitHub + 🔎 See on GitHub
@@ -496,19 +496,19 @@

- Source code + 📝 Source code
# File actionmailer/lib/action_mailer/test_helper.rb, line 269
-    def capture_emails(&block)
+    def capture_emails(&block)
       original_count = ActionMailer::Base.deliveries.size
-      deliver_enqueued_emails(&block)
+      deliver_enqueued_emails(&block)
       new_count = ActionMailer::Base.deliveries.size
       diff = new_count - original_count
       ActionMailer::Base.deliveries.last(diff)
     end
- See on GitHub + 🔎 See on GitHub
@@ -568,15 +568,15 @@

- Source code + 📝 Source code
# File actionmailer/lib/action_mailer/test_helper.rb, line 251
-    def deliver_enqueued_emails(queue: nil, at: nil, &block)
-      perform_enqueued_jobs(only: ->(job) { delivery_job_filter(job) }, queue: queue, at: at, &block)
+    def deliver_enqueued_emails(queue: nil, at: nil, &block)
+      perform_enqueued_jobs(only: ->(job) { delivery_job_filter(job) }, queue: queue, at: at, &block)
     end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionMailer/VERSION.html b/src/classes/ActionMailer/VERSION.html index 9dc64a71b1..a438c6a32f 100644 --- a/src/classes/ActionMailer/VERSION.html +++ b/src/classes/ActionMailer/VERSION.html @@ -50,11 +50,6 @@

Constants

7 - -   - - - MINOR @@ -62,11 +57,6 @@

Constants

1 - -   - - - PRE @@ -74,11 +64,6 @@

Constants

nil - -   - - - STRING @@ -86,11 +71,6 @@

Constants

[MAJOR, MINOR, TINY, PRE].compact.join(".") - -   - - - TINY @@ -98,11 +78,6 @@

Constants

0 - -   - - - diff --git a/src/classes/ActionText.html b/src/classes/ActionText.html index 6d73477f07..568a08ccb0 100644 --- a/src/classes/ActionText.html +++ b/src/classes/ActionText.html @@ -225,7 +225,7 @@

- Source code + 📝 Source code
# File actiontext/lib/action_text/gem_version.rb, line 5
@@ -233,7 +233,7 @@ 

Gem::Version.new VERSION::STRING end

- See on GitHub + 🔎 See on GitHub
@@ -260,7 +260,7 @@

- Source code + 📝 Source code
# File actiontext/lib/action_text.rb, line 47
@@ -270,7 +270,7 @@ 

defined?(Nokogiri::HTML5) ? Nokogiri::HTML5::Document : Nokogiri::HTML4::Document end

- See on GitHub + 🔎 See on GitHub
@@ -297,7 +297,7 @@

- Source code + 📝 Source code
# File actiontext/lib/action_text.rb, line 53
@@ -307,7 +307,7 @@ 

defined?(Nokogiri::HTML5) ? Nokogiri::HTML5::DocumentFragment : Nokogiri::HTML4::DocumentFragment end

- See on GitHub + 🔎 See on GitHub
@@ -334,7 +334,7 @@

- Source code + 📝 Source code
# File actiontext/lib/action_text/version.rb, line 7
@@ -342,7 +342,7 @@ 

gem_version end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionText/Attachable.html b/src/classes/ActionText/Attachable.html index 086a236ef7..a32ce1aec4 100644 --- a/src/classes/ActionText/Attachable.html +++ b/src/classes/ActionText/Attachable.html @@ -129,11 +129,6 @@

Constants

"attachable" - -   - - - @@ -165,7 +160,7 @@

- Source code + 📝 Source code
# File actiontext/lib/action_text/attachable.rb, line 41
@@ -175,7 +170,7 @@ 

record || raise(ActiveRecord::RecordNotFound) end

- See on GitHub + 🔎 See on GitHub
@@ -209,23 +204,23 @@

- Source code + 📝 Source code
# File actiontext/lib/action_text/attachable.rb, line 29
       def from_node(node)
-        if attachable = attachable_from_sgid(node["sgid"])
+        if attachable = attachable_from_sgid(node["sgid"])
           attachable
         elsif attachable = ActionText::Attachables::ContentAttachment.from_node(node)
           attachable
         elsif attachable = ActionText::Attachables::RemoteImage.from_node(node)
           attachable
         else
-          ActionText::Attachables::MissingAttachable.new(node["sgid"])
+          ActionText::Attachables::MissingAttachable.new(node["sgid"])
         end
       end
- See on GitHub + 🔎 See on GitHub
@@ -256,15 +251,15 @@

- Source code + 📝 Source code
# File actiontext/lib/action_text/attachable.rb, line 81
     def attachable_content_type
-      try(:content_type) || "application/octet-stream"
+      try(:content_type) || "application/octet-stream"
     end
- See on GitHub + 🔎 See on GitHub
@@ -291,7 +286,7 @@

- Source code + 📝 Source code
# File actiontext/lib/action_text/attachable.rb, line 85
@@ -299,7 +294,7 @@ 

filename.to_s if respond_to?(:filename) end

- See on GitHub + 🔎 See on GitHub
@@ -326,7 +321,7 @@

- Source code + 📝 Source code
# File actiontext/lib/action_text/attachable.rb, line 89
@@ -334,7 +329,7 @@ 

try(:byte_size) || try(:filesize) end

- See on GitHub + 🔎 See on GitHub
@@ -361,7 +356,7 @@

- Source code + 📝 Source code
# File actiontext/lib/action_text/attachable.rb, line 93
@@ -369,7 +364,7 @@ 

try(:metadata) || {} end

- See on GitHub + 🔎 See on GitHub
@@ -396,7 +391,7 @@

- Source code + 📝 Source code
# File actiontext/lib/action_text/attachable.rb, line 77
@@ -404,7 +399,7 @@ 

to_sgid(expires_in: nil, for: LOCATOR_NAME).to_s end

- See on GitHub + 🔎 See on GitHub
@@ -431,7 +426,7 @@

- Source code + 📝 Source code
# File actiontext/lib/action_text/attachable.rb, line 56
@@ -439,7 +434,7 @@ 

ActionText::Attachable.from_attachable_sgid(sgid, only: self) end

- See on GitHub + 🔎 See on GitHub
@@ -466,7 +461,7 @@

- Source code + 📝 Source code
# File actiontext/lib/action_text/attachable.rb, line 97
@@ -474,7 +469,7 @@ 

false end

- See on GitHub + 🔎 See on GitHub
@@ -510,7 +505,7 @@

- Source code + 📝 Source code
# File actiontext/lib/action_text/attachable.rb, line 125
@@ -518,7 +513,7 @@ 

to_partial_path end

- See on GitHub + 🔎 See on GitHub
@@ -554,7 +549,7 @@

- Source code + 📝 Source code
# File actiontext/lib/action_text/attachable.rb, line 70
@@ -562,7 +557,7 @@ 

ActionText::Attachables::MissingAttachable::DEFAULT_PARTIAL_PATH end

- See on GitHub + 🔎 See on GitHub
@@ -589,7 +584,7 @@

- Source code + 📝 Source code
# File actiontext/lib/action_text/attachable.rb, line 129
@@ -605,7 +600,7 @@ 

end.compact end

- See on GitHub + 🔎 See on GitHub
@@ -641,7 +636,7 @@

- Source code + 📝 Source code
# File actiontext/lib/action_text/attachable.rb, line 111
@@ -649,7 +644,7 @@ 

to_partial_path end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionText/Attachables/MissingAttachable.html b/src/classes/ActionText/Attachables/MissingAttachable.html index 0760efb39e..e7c9221b2d 100644 --- a/src/classes/ActionText/Attachables/MissingAttachable.html +++ b/src/classes/ActionText/Attachables/MissingAttachable.html @@ -73,11 +73,6 @@

Constants

"action_text/attachables/missing_attachable" - -   - - - @@ -109,7 +104,7 @@

- Source code + 📝 Source code
# File actiontext/lib/action_text/attachables/missing_attachable.rb, line 10
@@ -117,7 +112,7 @@ 

@sgid = SignedGlobalID.parse(sgid, for: ActionText::Attachable::LOCATOR_NAME) end

- See on GitHub + 🔎 See on GitHub
@@ -148,15 +143,15 @@

- Source code + 📝 Source code
# File actiontext/lib/action_text/attachables/missing_attachable.rb, line 22
       def model
-        @sgid&.model_name.to_s.safe_constantize
+        @sgid&.model_name.to_s.safe_constantize
       end
- See on GitHub + 🔎 See on GitHub
@@ -183,7 +178,7 @@

- Source code + 📝 Source code
# File actiontext/lib/action_text/attachables/missing_attachable.rb, line 14
@@ -195,7 +190,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionText/Attachables/RemoteImage.html b/src/classes/ActionText/Attachables/RemoteImage.html index d14eb3b2e1..7775ed9184 100644 --- a/src/classes/ActionText/Attachables/RemoteImage.html +++ b/src/classes/ActionText/Attachables/RemoteImage.html @@ -133,17 +133,17 @@

- Source code + 📝 Source code
# File actiontext/lib/action_text/attachables/remote_image.rb, line 9
         def from_node(node)
-          if node["url"] && content_type_is_image?(node["content-type"])
+          if node["url"] && content_type_is_image?(node["content-type"])
             new(attributes_from_node(node))
           end
         end
- See on GitHub + 🔎 See on GitHub
@@ -170,7 +170,7 @@

- Source code + 📝 Source code
# File actiontext/lib/action_text/attachables/remote_image.rb, line 30
@@ -181,7 +181,7 @@ 

@height = attributes[:height] end

- See on GitHub + 🔎 See on GitHub
@@ -212,15 +212,15 @@

- Source code + 📝 Source code
# File actiontext/lib/action_text/attachables/remote_image.rb, line 37
       def attachable_plain_text_representation(caption)
-        "[#{caption || "Image"}]"
+        "[#{caption || "Image"}]"
       end
- See on GitHub + 🔎 See on GitHub
@@ -247,15 +247,15 @@

- Source code + 📝 Source code
# File actiontext/lib/action_text/attachables/remote_image.rb, line 41
       def to_partial_path
-        "action_text/attachables/remote_image"
+        "action_text/attachables/remote_image"
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionText/Attachment.html b/src/classes/ActionText/Attachment.html index 7216074bf6..a681306bbd 100644 --- a/src/classes/ActionText/Attachment.html +++ b/src/classes/ActionText/Attachment.html @@ -130,11 +130,6 @@

Constants

%w( sgid content-type url href filename filesize width height previewable presentation caption content ) - -   - - - @@ -188,7 +183,7 @@

- Source code + 📝 Source code
# File actiontext/lib/action_text/attachment.rb, line 25
@@ -196,7 +191,7 @@ 

fragment_by_minifying_attachments(fragment_by_converting_trix_attachments(content)) end

- See on GitHub + 🔎 See on GitHub
@@ -223,7 +218,7 @@

- Source code + 📝 Source code
# File actiontext/lib/action_text/attachment.rb, line 37
@@ -233,7 +228,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -260,7 +255,7 @@

- Source code + 📝 Source code
# File actiontext/lib/action_text/attachment.rb, line 33
@@ -268,7 +263,7 @@ 

Array(attachables).filter_map { |attachable| from_attachable(attachable) } end

- See on GitHub + 🔎 See on GitHub
@@ -295,7 +290,7 @@

- Source code + 📝 Source code
# File actiontext/lib/action_text/attachment.rb, line 43
@@ -305,7 +300,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -332,7 +327,7 @@

- Source code + 📝 Source code
# File actiontext/lib/action_text/attachment.rb, line 29
@@ -340,7 +335,7 @@ 

new(node, attachable || ActionText::Attachable.from_node(node)) end

- See on GitHub + 🔎 See on GitHub
@@ -367,7 +362,7 @@

- Source code + 📝 Source code
# File actiontext/lib/action_text/attachment.rb, line 66
@@ -376,7 +371,7 @@ 

@attachable = attachable end

- See on GitHub + 🔎 See on GitHub
@@ -407,15 +402,15 @@

- Source code + 📝 Source code
# File actiontext/lib/action_text/attachment.rb, line 71
     def caption
-      node_attributes["caption"].presence
+      node_attributes["caption"].presence
     end
- See on GitHub + 🔎 See on GitHub
@@ -442,7 +437,7 @@

- Source code + 📝 Source code
# File actiontext/lib/action_text/attachment.rb, line 75
@@ -450,7 +445,7 @@ 

node_attributes.merge(attachable_attributes).merge(sgid_attributes) end

- See on GitHub + 🔎 See on GitHub
@@ -477,15 +472,15 @@

- Source code + 📝 Source code
# File actiontext/lib/action_text/attachment.rb, line 129
     def inspect
-      "#<#{self.class.name} attachable=#{attachable.inspect}>"
+      "#<#{self.class.name} attachable=#{attachable.inspect}>"
     end
- See on GitHub + 🔎 See on GitHub
@@ -517,7 +512,7 @@

- Source code + 📝 Source code
# File actiontext/lib/action_text/attachment.rb, line 121
@@ -525,7 +520,7 @@ 

HtmlConversion.node_to_html(node) end

- See on GitHub + 🔎 See on GitHub
@@ -578,7 +573,7 @@

- Source code + 📝 Source code
# File actiontext/lib/action_text/attachment.rb, line 108
@@ -590,7 +585,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -617,7 +612,7 @@

- Source code + 📝 Source code
# File actiontext/lib/action_text/attachment.rb, line 125
@@ -625,7 +620,7 @@ 

to_html end

- See on GitHub + 🔎 See on GitHub
@@ -652,7 +647,7 @@

- Source code + 📝 Source code
# File actiontext/lib/action_text/attachment.rb, line 79
@@ -660,7 +655,7 @@ 

self.class.from_attributes(full_attributes, attachable) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionText/AttachmentGallery.html b/src/classes/ActionText/AttachmentGallery.html index 5b7dc8d8ab..6a9c19e1a5 100644 --- a/src/classes/ActionText/AttachmentGallery.html +++ b/src/classes/ActionText/AttachmentGallery.html @@ -147,15 +147,15 @@

- Source code + 📝 Source code
# File actiontext/lib/action_text/attachment_gallery.rb, line 41
       def attachment_selector
-        "#{ActionText::Attachment.tag_name}[presentation=gallery]"
+        "#{ActionText::Attachment.tag_name}[presentation=gallery]"
       end
- See on GitHub + 🔎 See on GitHub
@@ -182,7 +182,7 @@

- Source code + 📝 Source code
# File actiontext/lib/action_text/attachment_gallery.rb, line 11
       def fragment_by_canonicalizing_attachment_galleries(content)
         fragment_by_replacing_attachment_gallery_nodes(content) do |node|
-          "<#{TAG_NAME}>#{node.inner_html}"
+          "<#{TAG_NAME}>#{node.inner_html}</#{TAG_NAME}>"
         end
       end
- See on GitHub + 🔎 See on GitHub
@@ -262,7 +262,7 @@

- Source code + 📝 Source code
# File actiontext/lib/action_text/attachment_gallery.rb, line 37
@@ -309,7 +309,7 @@ 

new(node) end

- See on GitHub + 🔎 See on GitHub
@@ -336,7 +336,7 @@

- Source code + 📝 Source code
# File actiontext/lib/action_text/attachment_gallery.rb, line 52
@@ -344,7 +344,7 @@ 

@node = node end

- See on GitHub + 🔎 See on GitHub
@@ -371,15 +371,15 @@

- Source code + 📝 Source code
# File actiontext/lib/action_text/attachment_gallery.rb, line 45
       def selector
-        "#{TAG_NAME}:has(#{attachment_selector} + #{attachment_selector})"
+        "#{TAG_NAME}:has(#{attachment_selector} + #{attachment_selector})"
       end
- See on GitHub + 🔎 See on GitHub
@@ -410,7 +410,7 @@

- Source code + 📝 Source code
# File actiontext/lib/action_text/attachment_gallery.rb, line 56
@@ -420,7 +420,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -447,15 +447,15 @@

- Source code + 📝 Source code
# File actiontext/lib/action_text/attachment_gallery.rb, line 66
     def inspect
-      "#<#{self.class.name} size=#{size.inspect}>"
+      "#<#{self.class.name} size=#{size.inspect}>"
     end
- See on GitHub + 🔎 See on GitHub
@@ -482,7 +482,7 @@

- Source code + 📝 Source code
# File actiontext/lib/action_text/attachment_gallery.rb, line 62
@@ -490,7 +490,7 @@ 

attachments.size end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionText/Attachments/Caching.html b/src/classes/ActionText/Attachments/Caching.html index 22c6681445..67f70be95e 100644 --- a/src/classes/ActionText/Attachments/Caching.html +++ b/src/classes/ActionText/Attachments/Caching.html @@ -78,15 +78,15 @@

- Source code + 📝 Source code
# File actiontext/lib/action_text/attachments/caching.rb, line 6
       def cache_key(*args)
-        [self.class.name, cache_digest, *attachable.cache_key(*args)].join("/")
+        [self.class.name, cache_digest, *attachable.cache_key(*args)].join("/")
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionText/Attachments/Minification.html b/src/classes/ActionText/Attachments/Minification.html index 8a2ae2e9eb..6fbccd4bf5 100644 --- a/src/classes/ActionText/Attachments/Minification.html +++ b/src/classes/ActionText/Attachments/Minification.html @@ -78,17 +78,17 @@

- Source code + 📝 Source code
# File actiontext/lib/action_text/attachments/minification.rb, line 9
         def fragment_by_minifying_attachments(content)
           Fragment.wrap(content).replace(ActionText::Attachment.tag_name) do |node|
-            node.tap { |n| n.inner_html = "" }
+            node.tap { |n| n.inner_html = "" }
           end
         end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionText/Attachments/TrixConversion.html b/src/classes/ActionText/Attachments/TrixConversion.html index bfeca84428..98abc33b43 100644 --- a/src/classes/ActionText/Attachments/TrixConversion.html +++ b/src/classes/ActionText/Attachments/TrixConversion.html @@ -86,7 +86,7 @@

- Source code + 📝 Source code
# File actiontext/lib/action_text/attachments/trix_conversion.rb, line 11
@@ -96,7 +96,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -123,7 +123,7 @@

- Source code + 📝 Source code
# File actiontext/lib/action_text/attachments/trix_conversion.rb, line 17
@@ -131,7 +131,7 @@ 

from_attributes(trix_attachment.attributes) end

- See on GitHub + 🔎 See on GitHub
@@ -158,17 +158,17 @@

- Source code + 📝 Source code
# File actiontext/lib/action_text/attachments/trix_conversion.rb, line 22
       def to_trix_attachment(content = trix_attachment_content)
         attributes = full_attributes.dup
-        attributes["content"] = content if content
+        attributes["content"] = content if content
         TrixAttachment.from_attributes(attributes)
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionText/Attribute.html b/src/classes/ActionText/Attribute.html index 68a89ce2de..0ef94cbab6 100644 --- a/src/classes/ActionText/Attribute.html +++ b/src/classes/ActionText/Attribute.html @@ -112,12 +112,12 @@

Options

- Source code + 📝 Source code
# File actiontext/lib/action_text/attribute.rb, line 37
       def has_rich_text(name, encrypted: false, strict_loading: strict_loading_by_default)
-        class_eval <<-CODE, __FILE__, __LINE__ + 1
+        class_eval <<-CODE, __FILE__, __LINE__ + 1
           def #{name}
             rich_text_#{name} || build_rich_text_#{name}
           end
@@ -131,16 +131,16 @@ 

Options

end CODE - rich_text_class_name = encrypted ? "ActionText::EncryptedRichText" : "ActionText::RichText" - has_one :"rich_text_#{name}", -> { where(name: name) }, + rich_text_class_name = encrypted ? "ActionText::EncryptedRichText" : "ActionText::RichText" + has_one :"rich_text_#{name}", -> { where(name: name) }, class_name: rich_text_class_name, as: :record, inverse_of: :record, autosave: true, dependent: :destroy, strict_loading: strict_loading - scope :"with_rich_text_#{name}", -> { includes("rich_text_#{name}") } - scope :"with_rich_text_#{name}_and_embeds", -> { includes("rich_text_#{name}": { embeds_attachments: :blob }) } + scope :"with_rich_text_#{name}", -> { includes("rich_text_#{name}") } + scope :"with_rich_text_#{name}_and_embeds", -> { includes("rich_text_#{name}": { embeds_attachments: :blob }) } end
- See on GitHub + 🔎 See on GitHub
@@ -167,15 +167,15 @@

- Source code + 📝 Source code
# File actiontext/lib/action_text/attribute.rb, line 66
       def rich_text_association_names
-        reflect_on_all_associations(:has_one).collect(&:name).select { |n| n.start_with?("rich_text_") }
+        reflect_on_all_associations(:has_one).collect(&:name).select { |n| n.start_with?("rich_text_") }
       end
- See on GitHub + 🔎 See on GitHub
@@ -202,7 +202,7 @@

- Source code + 📝 Source code
# File actiontext/lib/action_text/attribute.rb, line 62
@@ -210,7 +210,7 @@ 

eager_load(rich_text_association_names) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionText/Content.html b/src/classes/ActionText/Content.html index c36e06115c..e2e713fc4b 100644 --- a/src/classes/ActionText/Content.html +++ b/src/classes/ActionText/Content.html @@ -189,7 +189,7 @@

- Source code + 📝 Source code
# File actiontext/lib/action_text/content.rb, line 30
@@ -199,7 +199,7 @@ 

fragment end

- See on GitHub + 🔎 See on GitHub
@@ -226,7 +226,7 @@

- Source code + 📝 Source code
# File actiontext/lib/action_text/content.rb, line 37
@@ -240,7 +240,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -271,7 +271,7 @@

- Source code + 📝 Source code
# File actiontext/lib/action_text/content.rb, line 145
@@ -283,7 +283,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -310,16 +310,16 @@

- Source code + 📝 Source code
# File actiontext/lib/action_text/content.rb, line 90
     def append_attachables(attachables)
       attachments = ActionText::Attachment.from_attachables(attachables)
-      self.class.new([self.to_s.presence, *attachments].compact.join("\n"))
+      self.class.new([self.to_s.presence, *attachments].compact.join("\n"))
     end
- See on GitHub + 🔎 See on GitHub
@@ -346,7 +346,7 @@

- Source code + 📝 Source code
# File actiontext/lib/action_text/content.rb, line 137
@@ -354,7 +354,7 @@ 

to_html end

- See on GitHub + 🔎 See on GitHub
@@ -387,7 +387,7 @@

- Source code + 📝 Source code
# File actiontext/lib/action_text/content.rb, line 84
@@ -397,7 +397,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -424,7 +424,7 @@

- Source code + 📝 Source code
# File actiontext/lib/action_text/content.rb, line 68
@@ -434,7 +434,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -467,7 +467,7 @@

- Source code + 📝 Source code
# File actiontext/lib/action_text/content.rb, line 62
@@ -477,7 +477,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -504,15 +504,15 @@

- Source code + 📝 Source code
# File actiontext/lib/action_text/content.rb, line 141
     def inspect
-      "#<#{self.class.name} #{to_html.truncate(25).inspect}>"
+      "#<#{self.class.name} #{to_html.truncate(25).inspect}>"
     end
- See on GitHub + 🔎 See on GitHub
@@ -579,15 +579,15 @@

- Source code + 📝 Source code
# File actiontext/lib/action_text/content.rb, line 102
-    def render_attachment_galleries(&block)
+    def render_attachment_galleries(&block)
       content = ActionText::AttachmentGallery.fragment_by_replacing_attachment_gallery_nodes(fragment) do |node|
         block.call(attachment_gallery_for_node(node))
       end
       self.class.new(content, canonicalize: false)
     end
- See on GitHub + 🔎 See on GitHub
@@ -652,18 +652,18 @@

- Source code + 📝 Source code
# File actiontext/lib/action_text/content.rb, line 95
-    def render_attachments(**options, &block)
+    def render_attachments(**options, &block)
       content = fragment.replace(ActionText::Attachment.tag_name) do |node|
         block.call(attachment_for_node(node, **options))
       end
       self.class.new(content, canonicalize: false)
     end
- See on GitHub + 🔎 See on GitHub
@@ -690,7 +690,7 @@

- Source code + 📝 Source code
# File actiontext/lib/action_text/content.rb, line 121
@@ -698,7 +698,7 @@ 

fragment.to_html end

- See on GitHub + 🔎 See on GitHub
@@ -725,15 +725,15 @@

- Source code + 📝 Source code
# File actiontext/lib/action_text/content.rb, line 129
     def to_partial_path
-      "action_text/contents/content"
+      "action_text/contents/content"
     end
- See on GitHub + 🔎 See on GitHub
@@ -764,15 +764,15 @@

- Source code + 📝 Source code
# File actiontext/lib/action_text/content.rb, line 113
     def to_plain_text
-      render_attachments(with_full_attributes: false, &:to_plain_text).fragment.to_plain_text
+      render_attachments(with_full_attributes: false, &:to_plain_text).fragment.to_plain_text
     end
- See on GitHub + 🔎 See on GitHub
@@ -799,15 +799,15 @@

- Source code + 📝 Source code
# File actiontext/lib/action_text/content.rb, line 125
     def to_rendered_html_with_layout
-      render layout: "action_text/contents/content", partial: to_partial_path, formats: :html, locals: { content: self }
+      render layout: "action_text/contents/content", partial: to_partial_path, formats: :html, locals: { content: self }
     end
- See on GitHub + 🔎 See on GitHub
@@ -834,7 +834,7 @@

- Source code + 📝 Source code
# File actiontext/lib/action_text/content.rb, line 133
@@ -842,7 +842,7 @@ 

to_rendered_html_with_layout end

- See on GitHub + 🔎 See on GitHub
@@ -869,15 +869,15 @@

- Source code + 📝 Source code
# File actiontext/lib/action_text/content.rb, line 117
     def to_trix_html
-      render_attachments(&:to_trix_attachment).to_html
+      render_attachments(&:to_trix_attachment).to_html
     end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionText/ContentHelper.html b/src/classes/ActionText/ContentHelper.html index 9add00a57b..f86007582b 100644 --- a/src/classes/ActionText/ContentHelper.html +++ b/src/classes/ActionText/ContentHelper.html @@ -94,7 +94,7 @@

- Source code + 📝 Source code
# File actiontext/app/helpers/action_text/content_helper.rb, line 26
@@ -115,7 +115,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -142,7 +142,7 @@

- Source code + 📝 Source code
# File actiontext/app/helpers/action_text/content_helper.rb, line 12
@@ -151,7 +151,7 @@ 

sanitize_action_text_content(render_action_text_attachments(content)) end

- See on GitHub + 🔎 See on GitHub
@@ -178,7 +178,7 @@

- Source code + 📝 Source code
# File actiontext/app/helpers/action_text/content_helper.rb, line 17
@@ -191,7 +191,7 @@ 

).html_safe end

- See on GitHub + 🔎 See on GitHub
@@ -218,7 +218,7 @@

- Source code + 📝 Source code
# File actiontext/app/helpers/action_text/content_helper.rb, line 61
@@ -226,7 +226,7 @@ 

allowed_attributes || (sanitizer.class.allowed_attributes + ActionText::Attachment::ATTRIBUTES) end

- See on GitHub + 🔎 See on GitHub
@@ -253,15 +253,15 @@

- Source code + 📝 Source code
# File actiontext/app/helpers/action_text/content_helper.rb, line 57
     def sanitizer_allowed_tags
-      allowed_tags || (sanitizer.class.allowed_tags + [ ActionText::Attachment.tag_name, "figure", "figcaption" ])
+      allowed_tags || (sanitizer.class.allowed_tags + [ ActionText::Attachment.tag_name, "figure", "figcaption" ])
     end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionText/Encryption.html b/src/classes/ActionText/Encryption.html index 6261511ae1..957a31fa73 100644 --- a/src/classes/ActionText/Encryption.html +++ b/src/classes/ActionText/Encryption.html @@ -82,7 +82,7 @@

- Source code + 📝 Source code
# File actiontext/lib/action_text/encryption.rb, line 12
@@ -93,7 +93,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -120,7 +120,7 @@

- Source code + 📝 Source code
# File actiontext/lib/action_text/encryption.rb, line 5
@@ -131,7 +131,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionText/Engine.html b/src/classes/ActionText/Engine.html index c3f1f1986f..9712de98ea 100644 --- a/src/classes/ActionText/Engine.html +++ b/src/classes/ActionText/Engine.html @@ -122,15 +122,15 @@

- Source code + 📝 Source code
# File actiontext/lib/action_text/engine.rb, line 47
         def attachable_plain_text_representation(caption = nil)
-          "[#{caption || filename}]"
+          "[#{caption || filename}]"
         end
- See on GitHub + 🔎 See on GitHub
@@ -157,7 +157,7 @@

- Source code + 📝 Source code
# File actiontext/lib/action_text/engine.rb, line 43
@@ -165,7 +165,7 @@ 

representable? end

- See on GitHub + 🔎 See on GitHub
@@ -192,7 +192,7 @@

- Source code + 📝 Source code
# File actiontext/lib/action_text/engine.rb, line 51
@@ -200,7 +200,7 @@ 

nil end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionText/FixtureSet.html b/src/classes/ActionText/FixtureSet.html index 9e84c95f3b..f94a8e8d8d 100644 --- a/src/classes/ActionText/FixtureSet.html +++ b/src/classes/ActionText/FixtureSet.html @@ -136,7 +136,7 @@

Examples

- Source code + 📝 Source code
# File actiontext/lib/action_text/fixture_set.rb, line 61
@@ -144,10 +144,10 @@ 

Examples

signed_global_id = ActiveRecord::FixtureSet.signed_global_id fixture_set_name, label, column_type: column_type, for: ActionText::Attachable::LOCATOR_NAME - %() + %(<action-text-attachment sgid="#{signed_global_id}"></action-text-attachment>) end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionText/Fragment.html b/src/classes/ActionText/Fragment.html index f755f86dde..59c482bbd8 100644 --- a/src/classes/ActionText/Fragment.html +++ b/src/classes/ActionText/Fragment.html @@ -129,7 +129,7 @@

- Source code + 📝 Source code
# File actiontext/lib/action_text/fragment.rb, line 17
@@ -137,7 +137,7 @@ 

new(ActionText::HtmlConversion.fragment_for_html(html.to_s.strip)) end

- See on GitHub + 🔎 See on GitHub
@@ -164,7 +164,7 @@

- Source code + 📝 Source code
# File actiontext/lib/action_text/fragment.rb, line 24
@@ -172,7 +172,7 @@ 

@source = source end

- See on GitHub + 🔎 See on GitHub
@@ -199,7 +199,7 @@

- Source code + 📝 Source code
# File actiontext/lib/action_text/fragment.rb, line 6
@@ -214,7 +214,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -245,7 +245,7 @@

- Source code + 📝 Source code
# File actiontext/lib/action_text/fragment.rb, line 28
@@ -253,7 +253,7 @@ 

source.css(selector) end

- See on GitHub + 🔎 See on GitHub
@@ -280,7 +280,7 @@

- Source code + 📝 Source code
# File actiontext/lib/action_text/fragment.rb, line 37
@@ -293,7 +293,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -320,7 +320,7 @@

- Source code + 📝 Source code
# File actiontext/lib/action_text/fragment.rb, line 50
@@ -328,7 +328,7 @@ 

@html ||= HtmlConversion.node_to_html(source) end

- See on GitHub + 🔎 See on GitHub
@@ -355,7 +355,7 @@

- Source code + 📝 Source code
# File actiontext/lib/action_text/fragment.rb, line 46
@@ -363,7 +363,7 @@ 

@plain_text ||= PlainTextConversion.node_to_plain_text(source) end

- See on GitHub + 🔎 See on GitHub
@@ -390,7 +390,7 @@

- Source code + 📝 Source code
# File actiontext/lib/action_text/fragment.rb, line 54
@@ -398,7 +398,7 @@ 

to_html end

- See on GitHub + 🔎 See on GitHub
@@ -425,7 +425,7 @@

- Source code + 📝 Source code
# File actiontext/lib/action_text/fragment.rb, line 32
@@ -434,7 +434,7 @@ 

self.class.new(source) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionText/HtmlConversion.html b/src/classes/ActionText/HtmlConversion.html index 53ccde6b3f..b7dd797293 100644 --- a/src/classes/ActionText/HtmlConversion.html +++ b/src/classes/ActionText/HtmlConversion.html @@ -86,7 +86,7 @@

- Source code + 📝 Source code
# File actiontext/lib/action_text/html_conversion.rb, line 15
@@ -94,7 +94,7 @@ 

document.create_element(tag_name, attributes) end

- See on GitHub + 🔎 See on GitHub
@@ -121,7 +121,7 @@

- Source code + 📝 Source code
# File actiontext/lib/action_text/html_conversion.rb, line 11
@@ -129,7 +129,7 @@ 

document.fragment(html) end

- See on GitHub + 🔎 See on GitHub
@@ -156,7 +156,7 @@

- Source code + 📝 Source code
# File actiontext/lib/action_text/html_conversion.rb, line 7
@@ -164,7 +164,7 @@ 

node.to_html(save_with: Nokogiri::XML::Node::SaveOptions::AS_HTML) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionText/PlainTextConversion.html b/src/classes/ActionText/PlainTextConversion.html index 2ff1b50bab..1cc13808f9 100644 --- a/src/classes/ActionText/PlainTextConversion.html +++ b/src/classes/ActionText/PlainTextConversion.html @@ -78,7 +78,7 @@

- Source code + 📝 Source code
# File actiontext/lib/action_text/plain_text_conversion.rb, line 7
@@ -86,7 +86,7 @@ 

remove_trailing_newlines(plain_text_for_node(node)) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionText/RichText.html b/src/classes/ActionText/RichText.html index f7b1001ce2..6e669b853a 100644 --- a/src/classes/ActionText/RichText.html +++ b/src/classes/ActionText/RichText.html @@ -110,15 +110,15 @@

- Source code + 📝 Source code
# File actiontext/app/models/action_text/rich_text.rb, line 37
     def to_plain_text
-      body&.to_plain_text.to_s
+      body&.to_plain_text.to_s
     end
- See on GitHub + 🔎 See on GitHub
@@ -156,15 +156,15 @@

- Source code + 📝 Source code
# File actiontext/app/models/action_text/rich_text.rb, line 53
     def to_trix_html
-      body&.to_trix_html
+      body&.to_trix_html
     end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionText/Serialization.html b/src/classes/ActionText/Serialization.html index ae28b1d975..3a6b4dc7ea 100644 --- a/src/classes/ActionText/Serialization.html +++ b/src/classes/ActionText/Serialization.html @@ -86,7 +86,7 @@

- Source code + 📝 Source code
# File actiontext/lib/action_text/serialization.rb, line 32
@@ -94,7 +94,7 @@ 

self.class.dump(self) end

- See on GitHub + 🔎 See on GitHub
@@ -121,7 +121,7 @@

- Source code + 📝 Source code
# File actiontext/lib/action_text/serialization.rb, line 12
@@ -138,7 +138,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -165,7 +165,7 @@

- Source code + 📝 Source code
# File actiontext/lib/action_text/serialization.rb, line 8
@@ -173,7 +173,7 @@ 

new(content) if content end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionText/SystemTestHelper.html b/src/classes/ActionText/SystemTestHelper.html index c8b9ab7ac1..5689df986c 100644 --- a/src/classes/ActionText/SystemTestHelper.html +++ b/src/classes/ActionText/SystemTestHelper.html @@ -111,15 +111,15 @@

- Source code + 📝 Source code
# File actiontext/lib/action_text/system_test_helper.rb, line 32
     def fill_in_rich_text_area(locator = nil, with:)
-      find(:rich_text_area, locator).execute_script("this.editor.loadHTML(arguments[0])", with.to_s)
+      find(:rich_text_area, locator).execute_script("this.editor.loadHTML(arguments[0])", with.to_s)
     end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionText/TagHelper.html b/src/classes/ActionText/TagHelper.html index efe8c72bb9..1404f751ab 100644 --- a/src/classes/ActionText/TagHelper.html +++ b/src/classes/ActionText/TagHelper.html @@ -94,7 +94,7 @@

Example

- Source code + 📝 Source code
# File actiontext/app/helpers/action_text/tag_helper.rb, line 24
@@ -102,20 +102,20 @@ 

Example

options = options.symbolize_keys form = options.delete(:form) - options[:input] ||= "trix_input_#{ActionText::TagHelper.id += 1}" - options[:class] ||= "trix-content" + options[:input] ||= "trix_input_#{ActionText::TagHelper.id += 1}" + options[:class] ||= "trix-content" options[:data] ||= {} options[:data][:direct_upload_url] ||= main_app.rails_direct_uploads_url - options[:data][:blob_url_template] ||= main_app.rails_service_blob_url(":signed_id", ":filename") + options[:data][:blob_url_template] ||= main_app.rails_service_blob_url(":signed_id", ":filename") - editor_tag = content_tag("trix-editor", "", options) + editor_tag = content_tag("trix-editor", "", options) input_tag = hidden_field_tag(name, value.try(:to_trix_html) || value, id: options[:input], form: form) input_tag + editor_tag end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionText/TrixAttachment.html b/src/classes/ActionText/TrixAttachment.html index 35c6de63b5..73c82c8407 100644 --- a/src/classes/ActionText/TrixAttachment.html +++ b/src/classes/ActionText/TrixAttachment.html @@ -81,11 +81,6 @@

Constants

%w( sgid contentType url href filename filesize width height previewable content ) + COMPOSED_ATTRIBUTES - -   - - - ATTRIBUTE_TYPES @@ -99,11 +94,6 @@

Constants

} - -   - - - COMPOSED_ATTRIBUTES @@ -111,11 +101,6 @@

Constants

%w( caption presentation ) - -   - - - SELECTOR @@ -123,11 +108,6 @@

Constants

"[data-trix-attachment]" - -   - - - TAG_NAME @@ -135,11 +115,6 @@

Constants

"figure" - -   - - - @@ -185,7 +160,7 @@

- Source code + 📝 Source code
# File actiontext/lib/action_text/trix_attachment.rb, line 19
@@ -196,13 +171,13 @@ 

trix_attributes = attributes.slice(*COMPOSED_ATTRIBUTES) node = ActionText::HtmlConversion.create_element(TAG_NAME) - node["data-trix-attachment"] = JSON.generate(trix_attachment_attributes) - node["data-trix-attributes"] = JSON.generate(trix_attributes) if trix_attributes.any? + node["data-trix-attachment"] = JSON.generate(trix_attachment_attributes) + node["data-trix-attributes"] = JSON.generate(trix_attributes) if trix_attributes.any? new(node) end

- See on GitHub + 🔎 See on GitHub
@@ -229,7 +204,7 @@

- Source code + 📝 Source code
# File actiontext/lib/action_text/trix_attachment.rb, line 51
@@ -237,7 +212,7 @@ 

@node = node end

- See on GitHub + 🔎 See on GitHub
@@ -268,7 +243,7 @@

- Source code + 📝 Source code
# File actiontext/lib/action_text/trix_attachment.rb, line 55
@@ -276,7 +251,7 @@ 

@attributes ||= attachment_attributes.merge(composed_attributes).slice(*ATTRIBUTES) end

- See on GitHub + 🔎 See on GitHub
@@ -303,7 +278,7 @@

- Source code + 📝 Source code
# File actiontext/lib/action_text/trix_attachment.rb, line 59
@@ -311,7 +286,7 @@ 

ActionText::HtmlConversion.node_to_html(node) end

- See on GitHub + 🔎 See on GitHub
@@ -338,7 +313,7 @@

- Source code + 📝 Source code
# File actiontext/lib/action_text/trix_attachment.rb, line 63
@@ -346,7 +321,7 @@ 

to_html end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionText/VERSION.html b/src/classes/ActionText/VERSION.html index 0a027cb1a8..07f2f9958b 100644 --- a/src/classes/ActionText/VERSION.html +++ b/src/classes/ActionText/VERSION.html @@ -50,11 +50,6 @@

Constants

7 - -   - - - MINOR @@ -62,11 +57,6 @@

Constants

1 - -   - - - PRE @@ -74,11 +64,6 @@

Constants

nil - -   - - - STRING @@ -86,11 +71,6 @@

Constants

[MAJOR, MINOR, TINY, PRE].compact.join(".") - -   - - - TINY @@ -98,11 +78,6 @@

Constants

0 - -   - - - diff --git a/src/classes/ActionView.html b/src/classes/ActionView.html index e8de26f301..7d1a5c7c80 100644 --- a/src/classes/ActionView.html +++ b/src/classes/ActionView.html @@ -421,11 +421,6 @@

Constants

'#.*coding[:=]\s*(\S+)[ \t]*' - -   - - - TemplateError @@ -433,11 +428,6 @@

Constants

Template::Error - -   - - - @@ -469,7 +459,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view.rb, line 93
@@ -479,7 +469,7 @@ 

ActionView::Template.eager_load! end

- See on GitHub + 🔎 See on GitHub
@@ -506,7 +496,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/gem_version.rb, line 5
@@ -514,7 +504,7 @@ 

Gem::Version.new VERSION::STRING end

- See on GitHub + 🔎 See on GitHub
@@ -541,7 +531,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/version.rb, line 7
@@ -549,7 +539,7 @@ 

gem_version end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionView/AbstractRenderer/RenderedCollection/EmptyCollection.html b/src/classes/ActionView/AbstractRenderer/RenderedCollection/EmptyCollection.html index f98d5d349b..7bf6d51bae 100644 --- a/src/classes/ActionView/AbstractRenderer/RenderedCollection/EmptyCollection.html +++ b/src/classes/ActionView/AbstractRenderer/RenderedCollection/EmptyCollection.html @@ -101,7 +101,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/renderer/abstract_renderer.rb, line 133
@@ -109,7 +109,7 @@ 

@format = format end

- See on GitHub + 🔎 See on GitHub
@@ -140,13 +140,13 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/renderer/abstract_renderer.rb, line 137
         def body; nil; end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionView/Base.html b/src/classes/ActionView/Base.html index 7328732409..e7a49a8447 100644 --- a/src/classes/ActionView/Base.html +++ b/src/classes/ActionView/Base.html @@ -255,7 +255,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/base.rb, line 171
@@ -263,7 +263,7 @@ 

ActionView::Resolver.caching? end

- See on GitHub + 🔎 See on GitHub
@@ -290,7 +290,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/base.rb, line 175
@@ -298,7 +298,7 @@ 

ActionView::Resolver.caching = value end

- See on GitHub + 🔎 See on GitHub
@@ -325,15 +325,15 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/base.rb, line 191
           def inspect
-            "#"
+            "#<ActionView::Base:#{'%#016x' % (object_id << 1)}>"
           end
- See on GitHub + 🔎 See on GitHub
@@ -364,36 +364,36 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/base.rb, line 245
-    def _run(method, template, locals, buffer, add_to_stack: true, has_strict_locals: false, &block)
+    def _run(method, template, locals, buffer, add_to_stack: true, has_strict_locals: false, &block)
       _old_output_buffer, _old_virtual_path, _old_template = @output_buffer, @virtual_path, @current_template
       @current_template = template if add_to_stack
       @output_buffer = buffer
 
       if has_strict_locals
         begin
-          public_send(method, buffer, **locals, &block)
-        rescue ArgumentError => argument_error
+          public_send(method, buffer, **locals, &block)
+        rescue ArgumentError => argument_error
           raise(
             ArgumentError,
             argument_error.
               message.
-                gsub("unknown keyword:", "unknown local:").
-                gsub("missing keyword:", "missing local:").
-                gsub("no keywords accepted", "no locals accepted")
+                gsub("unknown keyword:", "unknown local:").
+                gsub("missing keyword:", "missing local:").
+                gsub("no keywords accepted", "no locals accepted")
           )
         end
       else
-        public_send(method, locals, buffer, &block)
+        public_send(method, locals, buffer, &block)
       end
     ensure
       @output_buffer, @virtual_path, @current_template = _old_output_buffer, _old_virtual_path, _old_template
     end
- See on GitHub + 🔎 See on GitHub
@@ -420,19 +420,19 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/base.rb, line 270
     def compiled_method_container
-      raise NotImplementedError, <<~msg.squish
+      raise NotImplementedError, <<~msg.squish
         Subclasses of ActionView::Base must implement `compiled_method_container`
         or use the class method `with_empty_template_cache` for constructing
         an ActionView::Base subclass that has an empty cache.
       msg
     end
- See on GitHub + 🔎 See on GitHub
@@ -459,7 +459,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/base.rb, line 278
@@ -467,10 +467,10 @@ 

old_view_renderer = @view_renderer old_lookup_context = @lookup_context - if !lookup_context.html_fallback_for_js && options[:formats] + if !lookup_context.html_fallback_for_js && options[:formats] formats = Array(options[:formats]) if formats == [:js] - formats << :html + formats << :html end @lookup_context = lookup_context.with_prepended_formats(formats) @view_renderer = ActionView::Renderer.new @lookup_context @@ -482,7 +482,7 @@

@lookup_context = old_lookup_context end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionView/Context.html b/src/classes/ActionView/Context.html index cda77fa675..cfb95b2475 100644 --- a/src/classes/ActionView/Context.html +++ b/src/classes/ActionView/Context.html @@ -114,7 +114,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/context.rb, line 27
@@ -123,7 +123,7 @@ 

view_flow.get(name).html_safe end

- See on GitHub + 🔎 See on GitHub
@@ -150,7 +150,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/context.rb, line 18
@@ -160,7 +160,7 @@ 

@virtual_path = nil end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionView/Digestor.html b/src/classes/ActionView/Digestor.html index 00f15cc16d..4110886567 100644 --- a/src/classes/ActionView/Digestor.html +++ b/src/classes/ActionView/Digestor.html @@ -121,33 +121,33 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/digestor.rb, line 16
       def digest(name:, format: nil, finder:, dependencies: nil)
         if dependencies.nil? || dependencies.empty?
-          cache_key = "#{name}.#{format}"
+          cache_key = "#{name}.#{format}"
         else
-          dependencies_suffix = dependencies.flatten.tap(&:compact!).join(".")
-          cache_key = "#{name}.#{format}.#{dependencies_suffix}"
+          dependencies_suffix = dependencies.flatten.tap(&:compact!).join(".")
+          cache_key = "#{name}.#{format}.#{dependencies_suffix}"
         end
 
         # this is a correctly done double-checked locking idiom
-        # (Concurrent::Map's lookups have volatile semantics)
+        # (Concurrent::Map's lookups have volatile semantics)
         finder.digest_cache[cache_key] || @@digest_mutex.synchronize do
           finder.digest_cache.fetch(cache_key) do # re-check under lock
             path = TemplatePath.parse(name)
             root = tree(path.to_s, finder, path.partial?)
             dependencies.each do |injected_dep|
-              root.children << Injected.new(injected_dep, nil, nil)
+              root.children << Injected.new(injected_dep, nil, nil)
             end if dependencies
             finder.digest_cache[cache_key] = root.digest(finder)
           end
         end
       end
- See on GitHub + 🔎 See on GitHub
@@ -174,7 +174,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/digestor.rb, line 38
@@ -182,7 +182,7 @@ 

ActionView::Base.logger || NullLogger end

- See on GitHub + 🔎 See on GitHub
@@ -209,38 +209,38 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/digestor.rb, line 43
       def tree(name, finder, partial = false, seen = {})
-        logical_name = name.gsub(%r|/_|, "/")
-        interpolated = name.include?("#")
+        logical_name = name.gsub(%r|/_|, "/")
+        interpolated = name.include?("#")
 
         path = TemplatePath.parse(name)
 
-        if !interpolated && (template = find_template(finder, path.name, [path.prefix], partial, []))
+        if !interpolated && (template = find_template(finder, path.name, [path.prefix], partial, []))
           if node = seen[template.identifier] # handle cycles in the tree
             node
           else
             node = seen[template.identifier] = Node.create(name, logical_name, template, partial)
 
             deps = DependencyTracker.find_dependencies(name, template, finder.view_paths)
-            deps.uniq { |n| n.gsub(%r|/_|, "/") }.each do |dep_file|
-              node.children << tree(dep_file, finder, true, seen)
+            deps.uniq { |n| n.gsub(%r|/_|, "/") }.each do |dep_file|
+              node.children << tree(dep_file, finder, true, seen)
             end
             node
           end
         else
           unless interpolated # Dynamic template partial names can never be tracked
-            logger.error "  Couldn't find template for digesting: #{name}"
+            logger.error "  Couldn't find template for digesting: #{name}"
           end
 
           seen[name] ||= Missing.new(name, logical_name, nil)
         end
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionView/Digestor/Injected.html b/src/classes/ActionView/Digestor/Injected.html index e50f761477..6490970b0e 100644 --- a/src/classes/ActionView/Digestor/Injected.html +++ b/src/classes/ActionView/Digestor/Injected.html @@ -84,13 +84,13 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/digestor.rb, line 122
       def digest(finder, _ = []) name end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionView/Digestor/Missing.html b/src/classes/ActionView/Digestor/Missing.html index a7104274bb..e88d149f6d 100644 --- a/src/classes/ActionView/Digestor/Missing.html +++ b/src/classes/ActionView/Digestor/Missing.html @@ -84,13 +84,13 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/digestor.rb, line 118
-      def digest(finder, _ = []) "" end
+ def digest(finder, _ = []) "" end

- See on GitHub + 🔎 See on GitHub diff --git a/src/classes/ActionView/Digestor/Node.html b/src/classes/ActionView/Digestor/Node.html index 21993530ac..06f87b7c4d 100644 --- a/src/classes/ActionView/Digestor/Node.html +++ b/src/classes/ActionView/Digestor/Node.html @@ -137,7 +137,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/digestor.rb, line 81
@@ -146,7 +146,7 @@ 

klass.new(name, logical_name, template, []) end

- See on GitHub + 🔎 See on GitHub
@@ -173,7 +173,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/digestor.rb, line 86
@@ -184,7 +184,7 @@ 

@children = children end

- See on GitHub + 🔎 See on GitHub
@@ -215,7 +215,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/digestor.rb, line 97
@@ -229,10 +229,10 @@ 

node.digest(finder, stack).tap { stack.pop } end end - end.join("-") + end.join("-") end

- See on GitHub + 🔎 See on GitHub
@@ -259,15 +259,15 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/digestor.rb, line 93
       def digest(finder, stack = [])
-        ActiveSupport::Digest.hexdigest("#{template.source}-#{dependency_digest(finder, stack)}")
+        ActiveSupport::Digest.hexdigest("#{template.source}-#{dependency_digest(finder, stack)}")
       end
- See on GitHub + 🔎 See on GitHub
@@ -294,15 +294,15 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/digestor.rb, line 110
       def to_dep_map
-        children.any? ? { name => children.map(&:to_dep_map) } : name
+        children.any? ? { name => children.map(&:to_dep_map) } : name
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionView/Digestor/NullLogger.html b/src/classes/ActionView/Digestor/NullLogger.html index 64273b8b48..ea3a811bc7 100644 --- a/src/classes/ActionView/Digestor/NullLogger.html +++ b/src/classes/ActionView/Digestor/NullLogger.html @@ -87,13 +87,13 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/digestor.rb, line 126
       def self.debug(_); end
- See on GitHub + 🔎 See on GitHub
@@ -120,13 +120,13 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/digestor.rb, line 127
       def self.error(_); end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionView/FileSystemResolver.html b/src/classes/ActionView/FileSystemResolver.html index 770e2f16c0..4910375ffd 100644 --- a/src/classes/ActionView/FileSystemResolver.html +++ b/src/classes/ActionView/FileSystemResolver.html @@ -123,19 +123,19 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/template/resolver.rb, line 96
     def initialize(path)
-      raise ArgumentError, "path already is a Resolver class" if path.is_a?(Resolver)
+      raise ArgumentError, "path already is a Resolver class" if path.is_a?(Resolver)
       @unbound_templates = Concurrent::Map.new
       @path_parser = PathParser.new
       @path = File.expand_path(path)
       super()
     end
- See on GitHub + 🔎 See on GitHub
@@ -191,7 +191,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/template/resolver.rb, line 104
@@ -201,7 +201,7 @@ 

super end

- See on GitHub + 🔎 See on GitHub
@@ -232,15 +232,15 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/template/resolver.rb, line 115
     def eql?(resolver)
-      self.class.equal?(resolver.class) && to_path == resolver.to_path
+      self.class.equal?(resolver.class) && to_path == resolver.to_path
     end
- See on GitHub + 🔎 See on GitHub
@@ -296,7 +296,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/template/resolver.rb, line 110
@@ -304,7 +304,7 @@ 

@path.to_s end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionView/FixtureResolver.html b/src/classes/ActionView/FixtureResolver.html index 5e9a555b7e..f9f12a9415 100644 --- a/src/classes/ActionView/FixtureResolver.html +++ b/src/classes/ActionView/FixtureResolver.html @@ -97,17 +97,17 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/testing/resolvers.rb, line 11
     def initialize(hash = {})
-      super("")
+      super("")
       @hash = hash
-      @path = ""
+      @path = ""
     end
- See on GitHub + 🔎 See on GitHub
@@ -138,7 +138,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/testing/resolvers.rb, line 17
@@ -146,7 +146,7 @@ 

@hash end

- See on GitHub + 🔎 See on GitHub
@@ -173,15 +173,15 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/testing/resolvers.rb, line 21
     def to_s
-      @hash.keys.join(", ")
+      @hash.keys.join(", ")
     end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionView/Helpers/ActiveModelInstanceTag.html b/src/classes/ActionView/Helpers/ActiveModelInstanceTag.html index cf6825a9a1..bea38328a4 100644 --- a/src/classes/ActionView/Helpers/ActiveModelInstanceTag.html +++ b/src/classes/ActionView/Helpers/ActiveModelInstanceTag.html @@ -100,7 +100,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/active_model_helper.rb, line 20
@@ -108,7 +108,7 @@ 

select_markup_helper?(type) ? super : error_wrapping(super) end

- See on GitHub + 🔎 See on GitHub
@@ -135,7 +135,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/active_model_helper.rb, line 36
@@ -143,7 +143,7 @@ 

object.errors[@method_name] end

- See on GitHub + 🔎 See on GitHub
@@ -170,19 +170,19 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/active_model_helper.rb, line 28
       def error_wrapping(html_tag)
         if object_has_errors?
-          @template_object.instance_exec(html_tag, self, &Base.field_error_proc)
+          @template_object.instance_exec(html_tag, self, &Base.field_error_proc)
         else
           html_tag
         end
       end
- See on GitHub + 🔎 See on GitHub
@@ -209,7 +209,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/active_model_helper.rb, line 13
@@ -220,7 +220,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -247,7 +247,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/active_model_helper.rb, line 24
@@ -255,7 +255,7 @@ 

tag_generate_errors?(options) ? error_wrapping(super) : super end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionView/Helpers/AssetTagHelper.html b/src/classes/ActionView/Helpers/AssetTagHelper.html index df2a4c8921..57c9020e19 100644 --- a/src/classes/ActionView/Helpers/AssetTagHelper.html +++ b/src/classes/ActionView/Helpers/AssetTagHelper.html @@ -164,15 +164,15 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/asset_tag_helper.rb, line 581
       def audio_tag(*sources)
-        multiple_sources_tag_builder("audio", sources)
+        multiple_sources_tag_builder("audio", sources)
       end
- See on GitHub + 🔎 See on GitHub
@@ -226,25 +226,25 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/asset_tag_helper.rb, line 259
       def auto_discovery_link_tag(type = :rss, url_options = {}, tag_options = {})
-        if !(type == :rss || type == :atom || type == :json) && tag_options[:type].blank?
-          raise ArgumentError.new("You should pass :type tag_option key explicitly, because you have passed #{type} type other than :rss, :atom, or :json.")
+        if !(type == :rss || type == :atom || type == :json) && tag_options[:type].blank?
+          raise ArgumentError.new("You should pass :type tag_option key explicitly, because you have passed #{type} type other than :rss, :atom, or :json.")
         end
 
         tag(
-          "link",
-          "rel"   => tag_options[:rel] || "alternate",
-          "type"  => tag_options[:type] || Template::Types[type].to_s,
-          "title" => tag_options[:title] || type.to_s.upcase,
-          "href"  => url_options.is_a?(Hash) ? url_for(url_options.merge(only_path: false)) : url_options
+          "link",
+          "rel"   => tag_options[:rel] || "alternate",
+          "type"  => tag_options[:type] || Template::Types[type].to_s,
+          "title" => tag_options[:title] || type.to_s.upcase,
+          "href"  => url_options.is_a?(Hash) ? url_for(url_options.merge(only_path: false)) : url_options
         )
       end
- See on GitHub + 🔎 See on GitHub
@@ -290,19 +290,19 @@

Examples

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/asset_tag_helper.rb, line 418
@@ -381,13 +381,13 @@ 

Examples

check_for_image_tag_errors(options) skip_pipeline = options.delete(:skip_pipeline) - options[:src] = resolve_asset_source("image", source, skip_pipeline) + options[:src] = resolve_asset_source("image", source, skip_pipeline) - if options[:srcset] && !options[:srcset].is_a?(String) + if options[:srcset] && !options[:srcset].is_a?(String) options[:srcset] = options[:srcset].map do |src_path, size| src_path = path_to_image(src_path, skip_pipeline: skip_pipeline) - "#{src_path} #{size}" - end.join(", ") + "#{src_path} #{size}" + end.join(", ") end options[:width], options[:height] = extract_dimensions(options.delete(:size)) if options[:size] @@ -395,10 +395,10 @@

Examples

options[:loading] ||= image_loading if image_loading options[:decoding] ||= image_decoding if image_decoding - tag("img", options) + tag("img", options) end
- See on GitHub + 🔎 See on GitHub
@@ -492,39 +492,39 @@

Examples

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/asset_tag_helper.rb, line 111
       def javascript_include_tag(*sources)
         options = sources.extract_options!.stringify_keys
-        path_options = options.extract!("protocol", "extname", "host", "skip_pipeline").symbolize_keys
+        path_options = options.extract!("protocol", "extname", "host", "skip_pipeline").symbolize_keys
         preload_links = []
-        use_preload_links_header = options["preload_links_header"].nil? ? preload_links_header : options.delete("preload_links_header")
-        nopush = options["nopush"].nil? ? true : options.delete("nopush")
-        crossorigin = options.delete("crossorigin")
-        crossorigin = "anonymous" if crossorigin == true
-        integrity = options["integrity"]
-        rel = options["type"] == "module" ? "modulepreload" : "preload"
+        use_preload_links_header = options["preload_links_header"].nil? ? preload_links_header : options.delete("preload_links_header")
+        nopush = options["nopush"].nil? ? true : options.delete("nopush")
+        crossorigin = options.delete("crossorigin")
+        crossorigin = "anonymous" if crossorigin == true
+        integrity = options["integrity"]
+        rel = options["type"] == "module" ? "modulepreload" : "preload"
 
         sources_tags = sources.uniq.map { |source|
           href = path_to_javascript(source, path_options)
-          if use_preload_links_header && !options["defer"] && href.present? && !href.start_with?("data:")
-            preload_link = "<#{href}>; rel=#{rel}; as=script"
-            preload_link += "; crossorigin=#{crossorigin}" unless crossorigin.nil?
-            preload_link += "; integrity=#{integrity}" unless integrity.nil?
-            preload_link += "; nopush" if nopush
-            preload_links << preload_link
+          if use_preload_links_header && !options["defer"] && href.present? && !href.start_with?("data:")
+            preload_link = "<#{href}>; rel=#{rel}; as=script"
+            preload_link += "; crossorigin=#{crossorigin}" unless crossorigin.nil?
+            preload_link += "; integrity=#{integrity}" unless integrity.nil?
+            preload_link += "; nopush" if nopush
+            preload_links << preload_link
           end
           tag_options = {
-            "src" => href,
-            "crossorigin" => crossorigin
+            "src" => href,
+            "crossorigin" => crossorigin
           }.merge!(options)
-          if tag_options["nonce"] == true
-            tag_options["nonce"] = content_security_policy_nonce
+          if tag_options["nonce"] == true
+            tag_options["nonce"] = content_security_policy_nonce
           end
-          content_tag("script", "", tag_options)
-        }.join("\n").html_safe
+          content_tag("script", "", tag_options)
+        }.join("\n").html_safe
 
         if use_preload_links_header
           send_preload_links_header(preload_links)
@@ -533,7 +533,7 @@ 

Examples

sources_tags end
- See on GitHub + 🔎 See on GitHub
@@ -593,33 +593,33 @@

Examples

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/asset_tag_helper.rb, line 479
-      def picture_tag(*sources, &block)
+      def picture_tag(*sources, &block)
         sources.flatten!
         options = sources.extract_options!.symbolize_keys
         image_options = options.delete(:image) || {}
         skip_pipeline = options.delete(:skip_pipeline)
 
-        content_tag("picture", options) do
+        content_tag("picture", options) do
           if block.present?
-            capture(&block).html_safe
-          elsif sources.size <= 1
+            capture(&block).html_safe
+          elsif sources.size <= 1
             image_tag(sources.last, image_options)
           else
             source_tags = sources.map do |source|
-              tag("source",
-               srcset: resolve_asset_source("image", source, skip_pipeline),
-               type: Template::Types[File.extname(source)[1..]]&.to_s)
+              tag("source",
+               srcset: resolve_asset_source("image", source, skip_pipeline),
+               type: Template::Types[File.extname(source)[1..]]&.to_s)
             end
-            safe_join(source_tags << image_tag(sources.last, image_options))
+            safe_join(source_tags << image_tag(sources.last, image_options))
           end
         end
       end
- See on GitHub + 🔎 See on GitHub
@@ -683,20 +683,20 @@
- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/asset_tag_helper.rb, line 343
       def preload_link_tag(source, options = {})
         href = path_to_asset(source, skip_pipeline: options.delete(:skip_pipeline))
-        extname = File.extname(source).downcase.delete(".")
-        mime_type = options.delete(:type) || Template::Types[extname]&.to_s
+        extname = File.extname(source).downcase.delete(".")
+        mime_type = options.delete(:type) || Template::Types[extname]&.to_s
         as_type = options.delete(:as) || resolve_link_as(extname, mime_type)
         crossorigin = options.delete(:crossorigin)
-        crossorigin = "anonymous" if crossorigin == true || (crossorigin.blank? && as_type == "font")
+        crossorigin = "anonymous" if crossorigin == true || (crossorigin.blank? && as_type == "font")
         integrity = options[:integrity]
         nopush = options.delete(:nopush) || false
-        rel = mime_type == "module" ? "modulepreload" : "preload"
+        rel = mime_type == "module" ? "modulepreload" : "preload"
 
         link_tag = tag.link(**{
           rel: rel,
@@ -706,18 +706,18 @@ 
           crossorigin: crossorigin
         }.merge!(options.symbolize_keys))
 
-        preload_link = "<#{href}>; rel=#{rel}; as=#{as_type}"
-        preload_link += "; type=#{mime_type}" if mime_type
-        preload_link += "; crossorigin=#{crossorigin}" if crossorigin
-        preload_link += "; integrity=#{integrity}" if integrity
-        preload_link += "; nopush" if nopush
+        preload_link = "<#{href}>; rel=#{rel}; as=#{as_type}"
+        preload_link += "; type=#{mime_type}" if mime_type
+        preload_link += "; crossorigin=#{crossorigin}" if crossorigin
+        preload_link += "; integrity=#{integrity}" if integrity
+        preload_link += "; nopush" if nopush
 
         send_preload_links_header([preload_link])
 
         link_tag
       end
- See on GitHub + 🔎 See on GitHub
@@ -784,41 +784,41 @@
- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/asset_tag_helper.rb, line 193
       def stylesheet_link_tag(*sources)
         options = sources.extract_options!.stringify_keys
-        path_options = options.extract!("protocol", "extname", "host", "skip_pipeline").symbolize_keys
-        use_preload_links_header = options["preload_links_header"].nil? ? preload_links_header : options.delete("preload_links_header")
+        path_options = options.extract!("protocol", "extname", "host", "skip_pipeline").symbolize_keys
+        use_preload_links_header = options["preload_links_header"].nil? ? preload_links_header : options.delete("preload_links_header")
         preload_links = []
-        crossorigin = options.delete("crossorigin")
-        crossorigin = "anonymous" if crossorigin == true
-        nopush = options["nopush"].nil? ? true : options.delete("nopush")
-        integrity = options["integrity"]
+        crossorigin = options.delete("crossorigin")
+        crossorigin = "anonymous" if crossorigin == true
+        nopush = options["nopush"].nil? ? true : options.delete("nopush")
+        integrity = options["integrity"]
 
         sources_tags = sources.uniq.map { |source|
           href = path_to_stylesheet(source, path_options)
-          if use_preload_links_header && href.present? && !href.start_with?("data:")
-            preload_link = "<#{href}>; rel=preload; as=style"
-            preload_link += "; crossorigin=#{crossorigin}" unless crossorigin.nil?
-            preload_link += "; integrity=#{integrity}" unless integrity.nil?
-            preload_link += "; nopush" if nopush
-            preload_links << preload_link
+          if use_preload_links_header && href.present? && !href.start_with?("data:")
+            preload_link = "<#{href}>; rel=preload; as=style"
+            preload_link += "; crossorigin=#{crossorigin}" unless crossorigin.nil?
+            preload_link += "; integrity=#{integrity}" unless integrity.nil?
+            preload_link += "; nopush" if nopush
+            preload_links << preload_link
           end
           tag_options = {
-            "rel" => "stylesheet",
-            "crossorigin" => crossorigin,
-            "href" => href
+            "rel" => "stylesheet",
+            "crossorigin" => crossorigin,
+            "href" => href
           }.merge!(options)
 
-          if apply_stylesheet_media_default && tag_options["media"].blank?
-            tag_options["media"] = "screen"
+          if apply_stylesheet_media_default && tag_options["media"].blank?
+            tag_options["media"] = "screen"
           end
 
           tag(:link, tag_options)
-        }.join("\n").html_safe
+        }.join("\n").html_safe
 
         if use_preload_links_header
           send_preload_links_header(preload_links)
@@ -827,7 +827,7 @@ 
         sources_tags
       end
- See on GitHub + 🔎 See on GitHub
@@ -897,21 +897,21 @@

Examples

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/asset_tag_helper.rb, line 549
       def video_tag(*sources)
         options = sources.extract_options!.symbolize_keys
         public_poster_folder = options.delete(:poster_skip_pipeline)
-        sources << options
-        multiple_sources_tag_builder("video", sources) do |tag_options|
+        sources << options
+        multiple_sources_tag_builder("video", sources) do |tag_options|
           tag_options[:poster] = path_to_image(tag_options[:poster], skip_pipeline: public_poster_folder) if tag_options[:poster]
           tag_options[:width], tag_options[:height] = extract_dimensions(tag_options.delete(:size)) if tag_options[:size]
         end
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionView/Helpers/AssetUrlHelper.html b/src/classes/ActionView/Helpers/AssetUrlHelper.html index 47bd8c09ce..f318afb4f8 100644 --- a/src/classes/ActionView/Helpers/AssetUrlHelper.html +++ b/src/classes/ActionView/Helpers/AssetUrlHelper.html @@ -276,11 +276,6 @@

Constants

} - -   - - - ASSET_PUBLIC_DIRECTORIES @@ -307,11 +302,6 @@

Constants

%r{^[-a-z]+://|^(?:cid|data):|^//}i - -   - - - @@ -407,21 +397,21 @@

Options applyi
- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/asset_url_helper.rb, line 187
       def asset_path(source, options = {})
-        raise ArgumentError, "nil is not a valid asset source" if source.nil?
+        raise ArgumentError, "nil is not a valid asset source" if source.nil?
 
         source = source.to_s
-        return "" if source.blank?
+        return "" if source.blank?
         return source if URI_REGEXP.match?(source)
 
-        tail, source = source[/([?#].+)$/], source.sub(/([?#].+)$/, "")
+        tail, source = source[/([?#].+)$/], source.sub(/([?#].+)$/, "")
 
         if extname = compute_asset_extname(source, options)
-          source = "#{source}#{extname}"
+          source = "#{source}#{extname}"
         end
 
         unless source.start_with?(?/)
@@ -432,19 +422,19 @@ 

Options applyi end end - relative_url_root = defined?(config.relative_url_root) && config.relative_url_root + relative_url_root = defined?(config.relative_url_root) && config.relative_url_root if relative_url_root - source = File.join(relative_url_root, source) unless source.start_with?("#{relative_url_root}/") + source = File.join(relative_url_root, source) unless source.start_with?("#{relative_url_root}/") end if host = compute_asset_host(source, options) source = File.join(host, source) end - "#{source}#{tail}" + "#{source}#{tail}" end

- See on GitHub + 🔎 See on GitHub
@@ -481,7 +471,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/asset_url_helper.rb, line 231
@@ -489,7 +479,7 @@ 

path_to_asset(source, options.merge(protocol: :request)) end

- See on GitHub + 🔎 See on GitHub
@@ -527,7 +517,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/asset_url_helper.rb, line 430
@@ -535,7 +525,7 @@ 

path_to_asset(source, { type: :audio }.merge!(options)) end

- See on GitHub + 🔎 See on GitHub
@@ -569,7 +559,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/asset_url_helper.rb, line 442
@@ -577,7 +567,7 @@ 

url_to_asset(source, { type: :audio }.merge!(options)) end

- See on GitHub + 🔎 See on GitHub
@@ -604,21 +594,21 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/asset_url_helper.rb, line 243
       def compute_asset_extname(source, options = {})
         return if options[:extname] == false
         extname = options[:extname] || ASSET_EXTENSIONS[options[:type]]
-        if extname && File.extname(source) != extname
+        if extname && File.extname(source) != extname
           extname
         else
           nil
         end
       end
- See on GitHub + 🔎 See on GitHub
@@ -645,11 +635,11 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/asset_url_helper.rb, line 277
-      def compute_asset_host(source = "", options = {})
+      def compute_asset_host(source = "", options = {})
         request = self.request if respond_to?(:request)
         host = options[:host]
         host ||= config.asset_host if defined? config.asset_host
@@ -658,14 +648,14 @@ 

if host.respond_to?(:call) arity = host.respond_to?(:arity) ? host.arity : host.method(:call).arity args = [source] - args << request if request && (arity > 1 || arity < 0) + args << request if request && (arity > 1 || arity < 0) host = host.call(*args) - elsif host.include?("%d") + elsif host.include?("%d") host = host % (Zlib.crc32(source) % 4) end end - host ||= request.base_url if request && options[:protocol] == :request + host ||= request.base_url if request && options[:protocol] == :request return unless host if URI_REGEXP.match?(host) @@ -674,16 +664,16 @@

protocol = options[:protocol] || config.default_asset_host_protocol || (request ? :request : :relative) case protocol when :relative - "//#{host}" + "//#{host}" when :request - "#{request.protocol}#{host}" + "#{request.protocol}#{host}" else - "#{protocol}://#{host}" + "#{protocol}://#{host}" end end end

- See on GitHub + 🔎 See on GitHub
@@ -714,16 +704,16 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/asset_url_helper.rb, line 266
       def compute_asset_path(source, options = {})
-        dir = ASSET_PUBLIC_DIRECTORIES[options[:type]] || ""
+        dir = ASSET_PUBLIC_DIRECTORIES[options[:type]] || ""
         File.join(dir, source)
       end
- See on GitHub + 🔎 See on GitHub
@@ -761,7 +751,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/asset_url_helper.rb, line 455
@@ -769,7 +759,7 @@ 

path_to_asset(source, { type: :font }.merge!(options)) end

- See on GitHub + 🔎 See on GitHub
@@ -803,7 +793,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/asset_url_helper.rb, line 467
@@ -811,7 +801,7 @@ 

url_to_asset(source, { type: :font }.merge!(options)) end

- See on GitHub + 🔎 See on GitHub
@@ -851,7 +841,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/asset_url_helper.rb, line 378
@@ -859,7 +849,7 @@ 

path_to_asset(source, { type: :image }.merge!(options)) end

- See on GitHub + 🔎 See on GitHub
@@ -893,7 +883,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/asset_url_helper.rb, line 390
@@ -901,7 +891,7 @@ 

url_to_asset(source, { type: :image }.merge!(options)) end

- See on GitHub + 🔎 See on GitHub
@@ -939,7 +929,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/asset_url_helper.rb, line 321
@@ -947,7 +937,7 @@ 

path_to_asset(source, { type: :javascript }.merge!(options)) end

- See on GitHub + 🔎 See on GitHub
@@ -981,7 +971,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/asset_url_helper.rb, line 333
@@ -989,7 +979,7 @@ 

url_to_asset(source, { type: :javascript }.merge!(options)) end

- See on GitHub + 🔎 See on GitHub
@@ -1227,7 +1217,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/asset_url_helper.rb, line 348
@@ -1235,7 +1225,7 @@ 

path_to_asset(source, { type: :stylesheet }.merge!(options)) end

- See on GitHub + 🔎 See on GitHub
@@ -1269,7 +1259,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/asset_url_helper.rb, line 360
@@ -1277,7 +1267,7 @@ 

url_to_asset(source, { type: :stylesheet }.merge!(options)) end

- See on GitHub + 🔎 See on GitHub
@@ -1490,7 +1480,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/asset_url_helper.rb, line 404
@@ -1498,7 +1488,7 @@ 

path_to_asset(source, { type: :video }.merge!(options)) end

- See on GitHub + 🔎 See on GitHub
@@ -1532,7 +1522,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/asset_url_helper.rb, line 416
@@ -1540,7 +1530,7 @@ 

url_to_asset(source, { type: :video }.merge!(options)) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionView/Helpers/AtomFeedHelper.html b/src/classes/ActionView/Helpers/AtomFeedHelper.html index 99870f8ef5..541e358d2e 100644 --- a/src/classes/ActionView/Helpers/AtomFeedHelper.html +++ b/src/classes/ActionView/Helpers/AtomFeedHelper.html @@ -173,15 +173,15 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/atom_feed_helper.rb, line 98
-      def atom_feed(options = {}, &block)
+      def atom_feed(options = {}, &block)
         if options[:schema_date]
-          options[:schema_date] = options[:schema_date].strftime("%Y-%m-%d") if options[:schema_date].respond_to?(:strftime)
+          options[:schema_date] = options[:schema_date].strftime("%Y-%m-%d") if options[:schema_date].respond_to?(:strftime)
         else
-          options[:schema_date] = "2005" # The Atom spec copyright date
+          options[:schema_date] = "2005" # The Atom spec copyright date
         end
 
         xml = options.delete(:xml) || block.binding.local_variable_get(:xml)
@@ -196,19 +196,19 @@ 

end end - feed_opts = { "xml:lang" => options[:language] || "en-US", "xmlns" => "http://www.w3.org/2005/Atom" } - feed_opts.merge!(options).select! { |k, _| k.start_with?("xml") } + feed_opts = { "xml:lang" => options[:language] || "en-US", "xmlns" => "http://www.w3.org/2005/Atom" } + feed_opts.merge!(options).select! { |k, _| k.start_with?("xml") } xml.feed(feed_opts) do - xml.id(options[:id] || "tag:#{request.host},#{options[:schema_date]}:#{request.fullpath.split(".")[0]}") - xml.link(rel: "alternate", type: "text/html", href: options[:root_url] || (request.protocol + request.host_with_port)) - xml.link(rel: "self", type: "application/atom+xml", href: options[:url] || request.url) + xml.id(options[:id] || "tag:#{request.host},#{options[:schema_date]}:#{request.fullpath.split(".")[0]}") + xml.link(rel: "alternate", type: "text/html", href: options[:root_url] || (request.protocol + request.host_with_port)) + xml.link(rel: "self", type: "application/atom+xml", href: options[:url] || request.url) yield AtomFeedBuilder.new(xml, self, options) end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionView/Helpers/CacheHelper.html b/src/classes/ActionView/Helpers/CacheHelper.html index 5ca1593c12..8e3e76a7ca 100644 --- a/src/classes/ActionView/Helpers/CacheHelper.html +++ b/src/classes/ActionView/Helpers/CacheHelper.html @@ -252,15 +252,15 @@

Collection Caching

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/cache_helper.rb, line 168
-      def cache(name = {}, options = {}, &block)
-        if controller.respond_to?(:perform_caching) && controller.perform_caching
+      def cache(name = {}, options = {}, &block)
+        if controller.respond_to?(:perform_caching) && controller.perform_caching
           CachingRegistry.track_caching do
             name_options = options.slice(:skip_digest)
-            safe_concat(fragment_for(cache_fragment_name(name, **name_options), options, &block))
+            safe_concat(fragment_for(cache_fragment_name(name, **name_options), options, &block))
           end
         else
           yield
@@ -269,7 +269,7 @@ 

Collection Caching

nil end
- See on GitHub + 🔎 See on GitHub
@@ -296,7 +296,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/cache_helper.rb, line 240
@@ -308,7 +308,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -341,13 +341,13 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/cache_helper.rb, line 215
-      def cache_if(condition, name = {}, options = {}, &block)
+      def cache_if(condition, name = {}, options = {}, &block)
         if condition
-          cache(name, options, &block)
+          cache(name, options, &block)
         else
           yield
         end
@@ -355,7 +355,7 @@ 

nil end

- See on GitHub + 🔎 See on GitHub
@@ -388,15 +388,15 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/cache_helper.rb, line 231
-      def cache_unless(condition, name = {}, options = {}, &block)
-        cache_if !condition, name, options, &block
+      def cache_unless(condition, name = {}, options = {}, &block)
+        cache_if !condition, name, options, &block
       end
- See on GitHub + 🔎 See on GitHub
@@ -430,7 +430,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/cache_helper.rb, line 188
@@ -438,7 +438,7 @@ 

CachingRegistry.caching? end

- See on GitHub + 🔎 See on GitHub
@@ -478,15 +478,15 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/cache_helper.rb, line 205
       def uncacheable!
-        raise UncacheableFragmentError, "can't be fragment cached" if caching?
+        raise UncacheableFragmentError, "can't be fragment cached" if caching?
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionView/Helpers/CaptureHelper.html b/src/classes/ActionView/Helpers/CaptureHelper.html index f2418ec4d0..30ed133f13 100644 --- a/src/classes/ActionView/Helpers/CaptureHelper.html +++ b/src/classes/ActionView/Helpers/CaptureHelper.html @@ -132,11 +132,11 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/capture_helper.rb, line 47
-      def capture(*args, &block)
+      def capture(*args, &block)
         value = nil
         @output_buffer ||= ActionView::OutputBuffer.new
         buffer = @output_buffer.capture { value = yield(*args) }
@@ -151,7 +151,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -288,15 +288,15 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/capture_helper.rb, line 166
-      def content_for(name, content = nil, options = {}, &block)
+      def content_for(name, content = nil, options = {}, &block)
         if content || block_given?
           if block_given?
             options = content if content
-            content = capture(&block)
+            content = capture(&block)
           end
           if content
             options[:flush] ? @view_flow.set(name, content) : @view_flow.append(name, content)
@@ -307,7 +307,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -349,7 +349,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/capture_helper.rb, line 209
@@ -357,7 +357,7 @@ 

@view_flow.get(name).present? end

- See on GitHub + 🔎 See on GitHub
@@ -386,17 +386,17 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/capture_helper.rb, line 188
-      def provide(name, content = nil, &block)
-        content = capture(&block) if block_given?
+      def provide(name, content = nil, &block)
+        content = capture(&block) if block_given?
         result = @view_flow.append!(name, content) if content
         result unless content
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionView/Helpers/ContentExfiltrationPreventionHelper.html b/src/classes/ActionView/Helpers/ContentExfiltrationPreventionHelper.html index a374363fb2..4fd71488f9 100644 --- a/src/classes/ActionView/Helpers/ContentExfiltrationPreventionHelper.html +++ b/src/classes/ActionView/Helpers/ContentExfiltrationPreventionHelper.html @@ -135,11 +135,6 @@

Constants

(CLOSE_QUOTES_COMMENT + CLOSE_CDATA_COMMENT + CLOSE_OPTION_TAG + CLOSE_FORM_TAG).freeze - -   - - - @@ -172,7 +167,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/content_exfiltration_prevention_helper.rb, line 61
@@ -184,7 +179,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionView/Helpers/CspHelper.html b/src/classes/ActionView/Helpers/CspHelper.html index 681f6d0d0b..171e6ebec3 100644 --- a/src/classes/ActionView/Helpers/CspHelper.html +++ b/src/classes/ActionView/Helpers/CspHelper.html @@ -91,19 +91,19 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/csp_helper.rb, line 17
       def csp_meta_tag(**options)
         if content_security_policy?
-          options[:name] = "csp-nonce"
+          options[:name] = "csp-nonce"
           options[:content] = content_security_policy_nonce
-          tag("meta", options)
+          tag("meta", options)
         end
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionView/Helpers/CsrfHelper.html b/src/classes/ActionView/Helpers/CsrfHelper.html index 3df8078042..499a113c91 100644 --- a/src/classes/ActionView/Helpers/CsrfHelper.html +++ b/src/classes/ActionView/Helpers/CsrfHelper.html @@ -128,20 +128,20 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/csrf_helper.rb, line 22
       def csrf_meta_tags
-        if defined?(protect_against_forgery?) && protect_against_forgery?
+        if defined?(protect_against_forgery?) && protect_against_forgery?
           [
-            tag("meta", name: "csrf-param", content: request_forgery_protection_token),
-            tag("meta", name: "csrf-token", content: form_authenticity_token)
-          ].join("\n").html_safe
+            tag("meta", name: "csrf-param", content: request_forgery_protection_token),
+            tag("meta", name: "csrf-token", content: form_authenticity_token)
+          ].join("\n").html_safe
         end
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionView/Helpers/DateHelper.html b/src/classes/ActionView/Helpers/DateHelper.html index b313f15acf..0778be3c9b 100644 --- a/src/classes/ActionView/Helpers/DateHelper.html +++ b/src/classes/ActionView/Helpers/DateHelper.html @@ -134,11 +134,6 @@

Constants

131400 - -   - - - MINUTES_IN_THREE_QUARTERS_YEAR @@ -146,11 +141,6 @@

Constants

394200 - -   - - - MINUTES_IN_YEAR @@ -158,11 +148,6 @@

Constants

525600 - -   - - - @@ -301,7 +286,7 @@

Options

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/date_helper.rb, line 290
@@ -309,7 +294,7 @@ 

Options

Tags::DateSelect.new(object_name, method, self, options, html_options).render end
- See on GitHub + 🔎 See on GitHub
@@ -365,7 +350,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/date_helper.rb, line 366
@@ -373,7 +358,7 @@ 

Tags::DatetimeSelect.new(object_name, method, self, options, html_options).render end

- See on GitHub + 🔎 See on GitHub
@@ -466,18 +451,18 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/date_helper.rb, line 95
       def distance_of_time_in_words(from_time, to_time = 0, options = {})
         options = {
-          scope: :'datetime.distance_in_words'
+          scope: :'datetime.distance_in_words'
         }.merge!(options)
 
         from_time = normalize_distance_of_time_argument_to_time(from_time)
         to_time = normalize_distance_of_time_argument_to_time(to_time)
-        from_time, to_time = to_time, from_time if from_time > to_time
+        from_time, to_time = to_time, from_time if from_time > to_time
         distance_in_minutes = ((to_time - from_time) / 60.0).round
         distance_in_seconds = (to_time - from_time).round
 
@@ -511,10 +496,10 @@ 

when 86400...525600 then locale.t :x_months, count: (distance_in_minutes.to_f / 43200.0).round else from_year = from_time.year - from_year += 1 if from_time.month >= 3 + from_year += 1 if from_time.month >= 3 to_year = to_time.year - to_year -= 1 if to_time.month < 3 - leap_years = (from_year > to_year) ? 0 : (from_year..to_year).count { |x| Date.leap?(x) } + to_year -= 1 if to_time.month < 3 + leap_years = (from_year > to_year) ? 0 : (from_year..to_year).count { |x| Date.leap?(x) } minute_offset_for_leap_year = leap_years * 1440 # Discount the leap year days when calculating year distance. # e.g. if there are 20 leap year days between 2 dates having the same day @@ -524,9 +509,9 @@

minutes_with_offset = distance_in_minutes - minute_offset_for_leap_year remainder = (minutes_with_offset % MINUTES_IN_YEAR) distance_in_years = (minutes_with_offset.div MINUTES_IN_YEAR) - if remainder < MINUTES_IN_QUARTER_YEAR + if remainder < MINUTES_IN_QUARTER_YEAR locale.t(:about_x_years, count: distance_in_years) - elsif remainder < MINUTES_IN_THREE_QUARTERS_YEAR + elsif remainder < MINUTES_IN_THREE_QUARTERS_YEAR locale.t(:over_x_years, count: distance_in_years) else locale.t(:almost_x_years, count: distance_in_years + 1) @@ -535,7 +520,7 @@

end end

- See on GitHub + 🔎 See on GitHub
@@ -619,7 +604,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/date_helper.rb, line 454
@@ -627,7 +612,7 @@ 

DateTimeSelector.new(date, options, html_options).select_date end

- See on GitHub + 🔎 See on GitHub
@@ -694,7 +679,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/date_helper.rb, line 415
@@ -702,7 +687,7 @@ 

DateTimeSelector.new(datetime, options, html_options).select_datetime end

- See on GitHub + 🔎 See on GitHub
@@ -749,7 +734,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/date_helper.rb, line 597
@@ -757,7 +742,7 @@ 

DateTimeSelector.new(date, options, html_options).select_day end

- See on GitHub + 🔎 See on GitHub
@@ -807,7 +792,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/date_helper.rb, line 570
@@ -815,7 +800,7 @@ 

DateTimeSelector.new(datetime, options, html_options).select_hour end

- See on GitHub + 🔎 See on GitHub
@@ -859,7 +844,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/date_helper.rb, line 541
@@ -867,7 +852,7 @@ 

DateTimeSelector.new(datetime, options, html_options).select_minute end

- See on GitHub + 🔎 See on GitHub
@@ -927,7 +912,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/date_helper.rb, line 642
@@ -935,7 +920,7 @@ 

DateTimeSelector.new(date, options, html_options).select_month end

- See on GitHub + 🔎 See on GitHub
@@ -979,7 +964,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/date_helper.rb, line 517
@@ -987,7 +972,7 @@ 

DateTimeSelector.new(datetime, options, html_options).select_second end

- See on GitHub + 🔎 See on GitHub
@@ -1048,7 +1033,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/date_helper.rb, line 494
@@ -1056,7 +1041,7 @@ 

DateTimeSelector.new(datetime, options, html_options).select_time end

- See on GitHub + 🔎 See on GitHub
@@ -1104,7 +1089,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/date_helper.rb, line 671
@@ -1112,7 +1097,7 @@ 

DateTimeSelector.new(date, options, html_options).select_year end

- See on GitHub + 🔎 See on GitHub
@@ -1158,7 +1143,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/date_helper.rb, line 176
@@ -1166,7 +1151,7 @@ 

distance_of_time_in_words(from_time, Time.now, options) end

- See on GitHub + 🔎 See on GitHub
@@ -1224,7 +1209,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/date_helper.rb, line 331
@@ -1232,7 +1217,7 @@ 

Tags::TimeSelect.new(object_name, method, self, options, html_options).render end

- See on GitHub + 🔎 See on GitHub
@@ -1274,19 +1259,19 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/date_helper.rb, line 690
-      def time_tag(date_or_time, *args, &block)
+      def time_tag(date_or_time, *args, &block)
         options  = args.extract_options!
         format   = options.delete(:format) || :long
         content  = args.first || I18n.l(date_or_time, format: format)
 
-        content_tag("time", content, options.reverse_merge(datetime: date_or_time.iso8601), &block)
+        content_tag("time", content, options.reverse_merge(datetime: date_or_time.iso8601), &block)
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionView/Helpers/DebugHelper.html b/src/classes/ActionView/Helpers/DebugHelper.html index ed76cb3790..d014998c38 100644 --- a/src/classes/ActionView/Helpers/DebugHelper.html +++ b/src/classes/ActionView/Helpers/DebugHelper.html @@ -113,20 +113,20 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/debug_helper.rb, line 28
       def debug(object)
         Marshal.dump(object)
         object = ERB::Util.html_escape(object.to_yaml)
-        content_tag(:pre, object, class: "debug_dump")
+        content_tag(:pre, object, class: "debug_dump")
       rescue # errors from Marshal or YAML
-        # Object couldn't be dumped, perhaps because of singleton methods -- this is the fallback
-        content_tag(:code, object.inspect, class: "debug_dump")
+        # Object couldn't be dumped, perhaps because of singleton methods -- this is the fallback
+        content_tag(:code, object.inspect, class: "debug_dump")
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionView/Helpers/FormBuilder.html b/src/classes/ActionView/Helpers/FormBuilder.html index d3cac64769..ef95f3e05e 100644 --- a/src/classes/ActionView/Helpers/FormBuilder.html +++ b/src/classes/ActionView/Helpers/FormBuilder.html @@ -362,15 +362,15 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/form_helper.rb, line 1701
       def self._to_partial_path
-        @_to_partial_path ||= name.demodulize.underscore.sub!(/_builder$/, "")
+        @_to_partial_path ||= name.demodulize.underscore.sub!(/_builder$/, "")
       end
- See on GitHub + 🔎 See on GitHub
@@ -397,7 +397,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/form_helper.rb, line 1713
@@ -409,11 +409,11 @@ 

convert_to_legacy_options(@options) - if @object_name&.end_with?("[]") - if (object ||= @template.instance_variable_get("@#{@object_name[0..-3]}")) && object.respond_to?(:to_param) + if @object_name&.end_with?("[]") + if (object ||= @template.instance_variable_get("@#{@object_name[0..-3]}")) && object.respond_to?(:to_param) @auto_index = object.to_param else - raise ArgumentError, "object[] naming but object param and @object var don't exist or don't respond to to_param: #{object.inspect}" + raise ArgumentError, "object[] naming but object param and @object var don't exist or don't respond to to_param: #{object.inspect}" end end @@ -421,7 +421,7 @@

@index = options[:index] || options[:child_index] end

- See on GitHub + 🔎 See on GitHub
@@ -507,11 +507,11 @@

Examples

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/form_helper.rb, line 2640
-      def button(value = nil, options = {}, &block)
+      def button(value = nil, options = {}, &block)
         case value
         when Hash
           value, options = nil, value
@@ -525,14 +525,14 @@ 

Examples

end formmethod = options[:formmethod] - if formmethod.present? && !/post|get/i.match?(formmethod) && !options.key?(:name) && !options.key?(:value) - options.merge! formmethod: :post, name: "_method", value: formmethod + if formmethod.present? && !/post|get/i.match?(formmethod) && !options.key?(:name) && !options.key?(:value) + options.merge! formmethod: :post, name: "_method", value: formmethod end @template.button_tag(value, options) end
- See on GitHub + 🔎 See on GitHub
@@ -611,15 +611,15 @@

Examples

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/form_helper.rb, line 2464
-      def check_box(method, options = {}, checked_value = "1", unchecked_value = "0")
+      def check_box(method, options = {}, checked_value = "1", unchecked_value = "0")
         @template.check_box(@object_name, method, objectify_options(options), checked_value, unchecked_value)
       end
- See on GitHub + 🔎 See on GitHub
@@ -654,15 +654,15 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/form_options_helper.rb, line 908
-      def collection_check_boxes(method, collection, value_method, text_method, options = {}, html_options = {}, &block)
-        @template.collection_check_boxes(@object_name, method, collection, value_method, text_method, objectify_options(options), @default_html_options.merge(html_options), &block)
+      def collection_check_boxes(method, collection, value_method, text_method, options = {}, html_options = {}, &block)
+        @template.collection_check_boxes(@object_name, method, collection, value_method, text_method, objectify_options(options), @default_html_options.merge(html_options), &block)
       end
- See on GitHub + 🔎 See on GitHub
@@ -697,15 +697,15 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/form_options_helper.rb, line 920
-      def collection_radio_buttons(method, collection, value_method, text_method, options = {}, html_options = {}, &block)
-        @template.collection_radio_buttons(@object_name, method, collection, value_method, text_method, objectify_options(options), @default_html_options.merge(html_options), &block)
+      def collection_radio_buttons(method, collection, value_method, text_method, options = {}, html_options = {}, &block)
+        @template.collection_radio_buttons(@object_name, method, collection, value_method, text_method, objectify_options(options), @default_html_options.merge(html_options), &block)
       end
- See on GitHub + 🔎 See on GitHub
@@ -740,7 +740,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/form_options_helper.rb, line 860
@@ -748,7 +748,7 @@ 

@template.collection_select(@object_name, method, collection, value_method, text_method, objectify_options(options), @default_html_options.merge(html_options)) end

- See on GitHub + 🔎 See on GitHub
@@ -781,7 +781,7 @@

- See on GitHub + 🔎 See on GitHub @@ -812,7 +812,7 @@

- See on GitHub + 🔎 See on GitHub @@ -845,7 +845,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/date_helper.rb, line 1237
@@ -853,7 +853,7 @@ 

@template.date_select(@object_name, method, objectify_options(options), html_options) end

- See on GitHub + 🔎 See on GitHub
@@ -886,7 +886,7 @@

- See on GitHub + 🔎 See on GitHub @@ -917,7 +917,7 @@

- See on GitHub + 🔎 See on GitHub @@ -950,7 +950,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/date_helper.rb, line 1261
@@ -958,7 +958,7 @@ 

@template.datetime_select(@object_name, method, objectify_options(options), html_options) end

- See on GitHub + 🔎 See on GitHub
@@ -991,7 +991,7 @@

- See on GitHub + 🔎 See on GitHub @@ -1027,7 +1027,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/form_helper.rb, line 1770
@@ -1035,7 +1035,7 @@ 

@template.field_id(@object_name, method, *suffixes, namespace: namespace, index: index) end

- See on GitHub + 🔎 See on GitHub
@@ -1075,7 +1075,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/form_helper.rb, line 1790
@@ -1085,7 +1085,7 @@ 

@template.field_name(object_name, method, *methods, index: index, multiple: multiple) end

- See on GitHub + 🔎 See on GitHub
@@ -1112,20 +1112,20 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/form_helper.rb, line 2320
-      def fields(scope = nil, model: nil, **options, &block)
+      def fields(scope = nil, model: nil, **options, &block)
         options[:allow_method_names_outside_object] = true
         options[:skip_default_ids] = !FormHelper.form_with_generates_ids
 
         convert_to_legacy_options(options)
 
-        fields_for(scope || model, model, options, &block)
+        fields_for(scope || model, model, options, &block)
       end
- See on GitHub + 🔎 See on GitHub
@@ -1359,12 +1359,12 @@

One-to-many

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/form_helper.rb, line 2282
-      def fields_for(record_name, record_object = nil, fields_options = nil, &block)
-        fields_options, record_object = record_object, nil if fields_options.nil? && record_object.is_a?(Hash) && record_object.extractable_options?
+      def fields_for(record_name, record_object = nil, fields_options = nil, &block)
+        fields_options, record_object = record_object, nil if fields_options.nil? && record_object.is_a?(Hash) && record_object.extractable_options?
         fields_options ||= {}
         fields_options[:builder] ||= options[:builder]
         fields_options[:namespace] = options[:namespace]
@@ -1384,23 +1384,23 @@ 

One-to-many

index = if options.has_key?(:index) options[:index] elsif defined?(@auto_index) - object_name = object_name.to_s.delete_suffix("[]") + object_name = object_name.to_s.delete_suffix("[]") @auto_index end record_name = if index - "#{object_name}[#{index}][#{record_name}]" - elsif record_name.end_with?("[]") - "#{object_name}[#{record_name[0..-3]}][#{record_object.id}]" + "#{object_name}[#{index}][#{record_name}]" + elsif record_name.end_with?("[]") + "#{object_name}[#{record_name[0..-3]}][#{record_object.id}]" else - "#{object_name}[#{record_name}]" + "#{object_name}[#{record_name}]" end fields_options[:child_index] = index - @template.fields_for(record_name, record_object, fields_options, &block) + @template.fields_for(record_name, record_object, fields_options, &block) end
- See on GitHub + 🔎 See on GitHub
@@ -1465,7 +1465,7 @@

Examples

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/form_helper.rb, line 2547
@@ -1474,7 +1474,7 @@ 

Examples

@template.file_field(@object_name, method, objectify_options(options)) end
- See on GitHub + 🔎 See on GitHub
@@ -1509,7 +1509,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/form_options_helper.rb, line 872
@@ -1517,7 +1517,7 @@ 

@template.grouped_collection_select(@object_name, method, collection, group_method, group_label_method, option_key_method, option_value_method, objectify_options(options), @default_html_options.merge(html_options)) end

- See on GitHub + 🔎 See on GitHub
@@ -1559,7 +1559,7 @@

Examples

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/form_helper.rb, line 2508
@@ -1568,7 +1568,7 @@ 

Examples

@template.hidden_field(@object_name, method, objectify_options(options)) end
- See on GitHub + 🔎 See on GitHub
@@ -1608,7 +1608,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/form_helper.rb, line 1750
@@ -1616,7 +1616,7 @@ 

options.dig(:html, :id) || options[:id] end

- See on GitHub + 🔎 See on GitHub
@@ -1706,15 +1706,15 @@

Examples

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/form_helper.rb, line 2395
-      def label(method, text = nil, options = {}, &block)
-        @template.label(@object_name, method, text, objectify_options(options), &block)
+      def label(method, text = nil, options = {}, &block)
+        @template.label(@object_name, method, text, objectify_options(options), &block)
       end
- See on GitHub + 🔎 See on GitHub
@@ -1747,7 +1747,7 @@

- See on GitHub + 🔎 See on GitHub @@ -1772,7 +1772,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/form_helper.rb, line 1693
@@ -1784,7 +1784,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -1817,7 +1817,7 @@

- See on GitHub + 🔎 See on GitHub @@ -1848,7 +1848,7 @@

- See on GitHub + 🔎 See on GitHub @@ -1879,7 +1879,7 @@

- See on GitHub + 🔎 See on GitHub @@ -1919,7 +1919,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/form_helper.rb, line 2486
@@ -1927,7 +1927,7 @@ 

@template.radio_button(@object_name, method, tag_value, objectify_options(options)) end

- See on GitHub + 🔎 See on GitHub
@@ -1960,7 +1960,7 @@

- See on GitHub + 🔎 See on GitHub @@ -1992,7 +1992,7 @@

- Source code + 📝 Source code
# File actiontext/app/helpers/action_text/tag_helper.rb, line 93
@@ -2000,7 +2000,7 @@ 

@template.rich_text_area(@object_name, method, objectify_options(options)) end

- See on GitHub + 🔎 See on GitHub
@@ -2033,7 +2033,7 @@

- See on GitHub + 🔎 See on GitHub @@ -2066,15 +2066,15 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/form_options_helper.rb, line 848
-      def select(method, choices = nil, options = {}, html_options = {}, &block)
-        @template.select(@object_name, method, choices, objectify_options(options), @default_html_options.merge(html_options), &block)
+      def select(method, choices = nil, options = {}, html_options = {}, &block)
+        @template.select(@object_name, method, choices, objectify_options(options), @default_html_options.merge(html_options), &block)
       end
- See on GitHub + 🔎 See on GitHub
@@ -2126,7 +2126,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/form_helper.rb, line 2579
@@ -2136,7 +2136,7 @@ 

@template.submit_tag(value, options) end

- See on GitHub + 🔎 See on GitHub
@@ -2169,7 +2169,7 @@

- See on GitHub + 🔎 See on GitHub @@ -2200,7 +2200,7 @@

- See on GitHub + 🔎 See on GitHub @@ -2231,7 +2231,7 @@

- See on GitHub + 🔎 See on GitHub @@ -2262,7 +2262,7 @@

- See on GitHub + 🔎 See on GitHub @@ -2295,7 +2295,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/date_helper.rb, line 1249
@@ -2303,7 +2303,7 @@ 

@template.time_select(@object_name, method, objectify_options(options), html_options) end

- See on GitHub + 🔎 See on GitHub
@@ -2338,7 +2338,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/form_options_helper.rb, line 884
@@ -2346,7 +2346,7 @@ 

@template.time_zone_select(@object_name, method, priority_zones, objectify_options(options), @default_html_options.merge(html_options)) end

- See on GitHub + 🔎 See on GitHub
@@ -2373,7 +2373,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/form_helper.rb, line 1709
@@ -2381,7 +2381,7 @@ 

self end

- See on GitHub + 🔎 See on GitHub
@@ -2408,7 +2408,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/form_helper.rb, line 1705
@@ -2416,7 +2416,7 @@ 

self.class._to_partial_path end

- See on GitHub + 🔎 See on GitHub
@@ -2449,7 +2449,7 @@

- See on GitHub + 🔎 See on GitHub @@ -2480,7 +2480,7 @@

- See on GitHub + 🔎 See on GitHub @@ -2513,7 +2513,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/form_options_helper.rb, line 896
@@ -2521,7 +2521,7 @@ 

@template.weekday_select(@object_name, method, objectify_options(options), @default_html_options.merge(html_options)) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionView/Helpers/FormHelper.html b/src/classes/ActionView/Helpers/FormHelper.html index e9d1d862a4..f4e699ea2b 100644 --- a/src/classes/ActionView/Helpers/FormHelper.html +++ b/src/classes/ActionView/Helpers/FormHelper.html @@ -344,15 +344,15 @@

Examples

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/form_helper.rb, line 1341
-      def check_box(object_name, method, options = {}, checked_value = "1", unchecked_value = "0")
+      def check_box(object_name, method, options = {}, checked_value = "1", unchecked_value = "0")
         Tags::CheckBox.new(object_name, method, self, checked_value, unchecked_value, options).render
       end
- See on GitHub + 🔎 See on GitHub
@@ -383,7 +383,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/form_helper.rb, line 1371
@@ -391,7 +391,7 @@ 

Tags::ColorField.new(object_name, method, self, options).render end

- See on GitHub + 🔎 See on GitHub
@@ -441,7 +441,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/form_helper.rb, line 1435
@@ -449,7 +449,7 @@ 

Tags::DateField.new(object_name, method, self, options).render end

- See on GitHub + 🔎 See on GitHub
@@ -510,7 +510,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/form_helper.rb, line 1508
@@ -518,7 +518,7 @@ 

Tags::DatetimeLocalField.new(object_name, method, self, options).render end

- See on GitHub + 🔎 See on GitHub
@@ -574,7 +574,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/form_helper.rb, line 1562
@@ -582,7 +582,7 @@ 

Tags::EmailField.new(object_name, method, self, options).render end

- See on GitHub + 🔎 See on GitHub
@@ -647,11 +647,11 @@

Mixing with other
- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/form_helper.rb, line 1077
-      def fields(scope = nil, model: nil, **options, &block)
+      def fields(scope = nil, model: nil, **options, &block)
         options = { allow_method_names_outside_object: true, skip_default_ids: !form_with_generates_ids }.merge!(options)
 
         if model
@@ -660,10 +660,10 @@ 

Mixing with other end builder = instantiate_builder(scope, model, options) - capture(builder, &block) + capture(builder, &block) end

- See on GitHub + 🔎 See on GitHub
@@ -886,17 +886,17 @@

One-to-many

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/form_helper.rb, line 1026
-      def fields_for(record_name, record_object = nil, options = {}, &block)
+      def fields_for(record_name, record_object = nil, options = {}, &block)
         options = { model: record_object, allow_method_names_outside_object: false, skip_default_ids: false }.merge!(options)
 
-        fields(record_name, **options, &block)
+        fields(record_name, **options, &block)
       end
- See on GitHub + 🔎 See on GitHub
@@ -956,7 +956,7 @@

Examples

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/form_helper.rb, line 1243
@@ -966,7 +966,7 @@ 

Examples

Tags::FileField.new(object_name, method, self, convert_direct_upload_option_to_url(options.dup)).render end
- See on GitHub + 🔎 See on GitHub
@@ -1257,12 +1257,12 @@

Form to external res
- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/form_helper.rb, line 434
-      def form_for(record, options = {}, &block)
-        raise ArgumentError, "Missing block" unless block_given?
+      def form_for(record, options = {}, &block)
+        raise ArgumentError, "Missing block" unless block_given?
 
         case record
         when String, Symbol
@@ -1271,14 +1271,14 @@ 

Form to external res else model = record object = _object_for_form_builder(record) - raise ArgumentError, "First argument in form cannot contain nil or be empty" unless object + raise ArgumentError, "First argument in form cannot contain nil or be empty" unless object object_name = options[:as] || model_name_from_record_or_class(object).param_key apply_form_for_options!(object, options) end remote = options.delete(:remote) - if remote && !embed_authenticity_token_in_remote_forms && options[:authenticity_token].blank? + if remote && !embed_authenticity_token_in_remote_forms && options[:authenticity_token].blank? options[:authenticity_token] = false end @@ -1288,10 +1288,10 @@

Form to external res options[:skip_default_ids] = false options[:allow_method_names_outside_object] = options.fetch(:allow_method_names_outside_object, false) - form_with(**options, &block) + form_with(**options, &block) end

- See on GitHub + 🔎 See on GitHub
@@ -1554,11 +1554,11 @@

Customized form build
- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/form_helper.rb, line 755
-      def form_with(model: nil, scope: nil, url: nil, format: nil, **options, &block)
+      def form_with(model: nil, scope: nil, url: nil, format: nil, **options, &block)
         options = { allow_method_names_outside_object: true, skip_default_ids: !form_with_generates_ids }.merge!(options)
 
         if model
@@ -1576,7 +1576,7 @@ 

Customized form build if block_given? builder = instantiate_builder(scope, model, options) - output = capture(builder, &block) + output = capture(builder, &block) options[:multipart] ||= builder.multipart? html_options = html_options_for_form_with(url, model, **options) @@ -1587,7 +1587,7 @@

Customized form build end end

- See on GitHub + 🔎 See on GitHub
@@ -1626,7 +1626,7 @@

Examples

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/form_helper.rb, line 1210
@@ -1634,7 +1634,7 @@ 

Examples

Tags::HiddenField.new(object_name, method, self, options).render end
- See on GitHub + 🔎 See on GitHub
@@ -1716,15 +1716,15 @@

Examples

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/form_helper.rb, line 1147
-      def label(object_name, method, content_or_options = nil, options = nil, &block)
-        Tags::Label.new(object_name, method, self, content_or_options, options).render(&block)
+      def label(object_name, method, content_or_options = nil, options = nil, &block)
+        Tags::Label.new(object_name, method, self, content_or_options, options).render(&block)
       end
- See on GitHub + 🔎 See on GitHub
@@ -1762,7 +1762,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/form_helper.rb, line 1527
@@ -1770,7 +1770,7 @@ 

Tags::MonthField.new(object_name, method, self, options).render end

- See on GitHub + 🔎 See on GitHub
@@ -1801,7 +1801,7 @@

Options

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/form_helper.rb, line 1571
@@ -1809,7 +1809,7 @@ 

Options

Tags::NumberField.new(object_name, method, self, options).render end
- See on GitHub + 🔎 See on GitHub
@@ -1851,7 +1851,7 @@

Examples

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/form_helper.rb, line 1192
@@ -1859,7 +1859,7 @@ 

Examples

Tags::PasswordField.new(object_name, method, self, options).render end
- See on GitHub + 🔎 See on GitHub
@@ -1926,7 +1926,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/form_helper.rb, line 1363
@@ -1934,7 +1934,7 @@ 

Tags::RadioButton.new(object_name, method, self, tag_value, options).render end

- See on GitHub + 🔎 See on GitHub
@@ -1965,7 +1965,7 @@

Options

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/form_helper.rb, line 1580
@@ -1973,7 +1973,7 @@ 

Options

Tags::RangeField.new(object_name, method, self, options).render end
- See on GitHub + 🔎 See on GitHub
@@ -2026,7 +2026,7 @@

Example

- Source code + 📝 Source code
# File actiontext/app/helpers/action_text/tag_helper.rb, line 80
@@ -2034,7 +2034,7 @@ 

Example

Tags::ActionText.new(object_name, method, self, options).render end
- See on GitHub + 🔎 See on GitHub
@@ -2078,7 +2078,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/form_helper.rb, line 1394
@@ -2086,7 +2086,7 @@ 

Tags::SearchField.new(object_name, method, self, options).render end

- See on GitHub + 🔎 See on GitHub
@@ -2121,7 +2121,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/form_helper.rb, line 1403
@@ -2129,7 +2129,7 @@ 

Tags::TelField.new(object_name, method, self, options).render end

- See on GitHub + 🔎 See on GitHub
@@ -2179,7 +2179,7 @@

Examples

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/form_helper.rb, line 1273
@@ -2187,7 +2187,7 @@ 

Examples

Tags::TextArea.new(object_name, method, self, options).render end
- See on GitHub + 🔎 See on GitHub
@@ -2232,7 +2232,7 @@

Examples

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/form_helper.rb, line 1171
@@ -2240,7 +2240,7 @@ 

Examples

Tags::TextField.new(object_name, method, self, options).render end
- See on GitHub + 🔎 See on GitHub
@@ -2297,7 +2297,7 @@

Examples

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/form_helper.rb, line 1473
@@ -2305,7 +2305,7 @@ 

Examples

Tags::TimeField.new(object_name, method, self, options).render end
- See on GitHub + 🔎 See on GitHub
@@ -2336,7 +2336,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/form_helper.rb, line 1553
@@ -2344,7 +2344,7 @@ 

Tags::UrlField.new(object_name, method, self, options).render end

- See on GitHub + 🔎 See on GitHub
@@ -2382,7 +2382,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/form_helper.rb, line 1544
@@ -2390,7 +2390,7 @@ 

Tags::WeekField.new(object_name, method, self, options).render end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionView/Helpers/FormOptionsHelper.html b/src/classes/ActionView/Helpers/FormOptionsHelper.html index 19cff9ea42..4911710991 100644 --- a/src/classes/ActionView/Helpers/FormOptionsHelper.html +++ b/src/classes/ActionView/Helpers/FormOptionsHelper.html @@ -309,15 +309,15 @@

Gotcha

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/form_options_helper.rb, line 782
-      def collection_check_boxes(object, method, collection, value_method, text_method, options = {}, html_options = {}, &block)
-        Tags::CollectionCheckBoxes.new(object, method, self, collection, value_method, text_method, options, html_options).render(&block)
+      def collection_check_boxes(object, method, collection, value_method, text_method, options = {}, html_options = {}, &block)
+        Tags::CollectionCheckBoxes.new(object, method, self, collection, value_method, text_method, options, html_options).render(&block)
       end
- See on GitHub + 🔎 See on GitHub
@@ -412,15 +412,15 @@

Gotcha

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/form_options_helper.rb, line 698
-      def collection_radio_buttons(object, method, collection, value_method, text_method, options = {}, html_options = {}, &block)
-        Tags::CollectionRadioButtons.new(object, method, self, collection, value_method, text_method, options, html_options).render(&block)
+      def collection_radio_buttons(object, method, collection, value_method, text_method, options = {}, html_options = {}, &block)
+        Tags::CollectionRadioButtons.new(object, method, self, collection, value_method, text_method, options, html_options).render(&block)
       end
- See on GitHub + 🔎 See on GitHub
@@ -479,7 +479,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/form_options_helper.rb, line 199
@@ -487,7 +487,7 @@ 

Tags::CollectionSelect.new(object, method, self, collection, value_method, text_method, options, html_options).render end

- See on GitHub + 🔎 See on GitHub
@@ -568,7 +568,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/form_options_helper.rb, line 258
@@ -576,7 +576,7 @@ 

Tags::GroupedCollectionSelect.new(object, method, self, collection, group_method, group_label_method, option_key_method, option_value_method, options, html_options).render end

- See on GitHub + 🔎 See on GitHub
@@ -675,7 +675,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/form_options_helper.rb, line 534
@@ -683,10 +683,10 @@ 

prompt = options[:prompt] divider = options[:divider] - body = "".html_safe + body = "".html_safe if prompt - body.safe_concat content_tag("option", prompt_text(prompt), value: "") + body.safe_concat content_tag("option", prompt_text(prompt), value: "") end grouped_options.each do |container| @@ -699,13 +699,13 @@

end html_attributes = { label: label }.merge!(html_attributes) - body.safe_concat content_tag("optgroup", options_for_select(container, selected_key), html_attributes) + body.safe_concat content_tag("optgroup", options_for_select(container, selected_key), html_attributes) end body end

- See on GitHub + 🔎 See on GitHub
@@ -782,7 +782,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/form_options_helper.rb, line 462
@@ -791,11 +791,11 @@ 

option_tags = options_from_collection_for_select( value_for_collection(group, group_method), option_key_method, option_value_method, selected_key) - content_tag("optgroup", option_tags, label: value_for_collection(group, group_label_method)) + content_tag("optgroup", option_tags, label: value_for_collection(group, group_label_method)) end.join.html_safe end

- See on GitHub + 🔎 See on GitHub
@@ -875,7 +875,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/form_options_helper.rb, line 358
@@ -883,22 +883,22 @@ 

return container if String === container selected, disabled = extract_selected_and_disabled(selected).map do |r| - Array(r).map(&:to_s) + Array(r).map(&:to_s) end container.map do |element| html_attributes = option_html_attributes(element) - text, value = option_text_and_value(element).map(&:to_s) + text, value = option_text_and_value(element).map(&:to_s) html_attributes[:selected] ||= option_value_selected?(value, selected) - html_attributes[:disabled] ||= disabled && option_value_selected?(value, disabled) + html_attributes[:disabled] ||= disabled && option_value_selected?(value, disabled) html_attributes[:value] = value tag_builder.content_tag_string(:option, text, html_attributes) - end.join("\n").html_safe + end.join("\n").html_safe end

- See on GitHub + 🔎 See on GitHub
@@ -952,7 +952,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/form_options_helper.rb, line 401
@@ -969,7 +969,7 @@ 

options_for_select(options, select_deselect) end

- See on GitHub + 🔎 See on GitHub
@@ -1046,15 +1046,15 @@

Gotcha

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/form_options_helper.rb, line 159
-      def select(object, method, choices = nil, options = {}, html_options = {}, &block)
-        Tags::Select.new(object, method, self, choices, options, html_options, &block).render
+      def select(object, method, choices = nil, options = {}, html_options = {}, &block)
+        Tags::Select.new(object, method, self, choices, options, html_options, &block).render
       end
- See on GitHub + 🔎 See on GitHub
@@ -1087,12 +1087,12 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/form_options_helper.rb, line 579
       def time_zone_options_for_select(selected = nil, priority_zones = nil, model = ::ActiveSupport::TimeZone)
-        zone_options = "".html_safe
+        zone_options = "".html_safe
 
         zones = model.all
         convert_zones = lambda { |list| list.map { |z| [ z.to_s, z.name ] } }
@@ -1103,8 +1103,8 @@ 

end zone_options.safe_concat options_for_select(convert_zones[priority_zones], selected) - zone_options.safe_concat content_tag("option", "-------------", value: "", disabled: true) - zone_options.safe_concat "\n" + zone_options.safe_concat content_tag("option", "-------------", value: "", disabled: true) + zone_options.safe_concat "\n" zones = zones - priority_zones end @@ -1112,7 +1112,7 @@

zone_options.safe_concat options_for_select(convert_zones[zones], selected) end

- See on GitHub + 🔎 See on GitHub
@@ -1158,7 +1158,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/form_options_helper.rb, line 292
@@ -1166,7 +1166,7 @@ 

Tags::TimeZoneSelect.new(object, method, self, priority_zones, options, html_options).render end

- See on GitHub + 🔎 See on GitHub
@@ -1204,19 +1204,19 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/form_options_helper.rb, line 611
       def weekday_options_for_select(selected = nil, index_as_value: false, day_format: :day_names, beginning_of_week: Date.beginning_of_week)
-        day_names = I18n.translate("date.#{day_format}")
+        day_names = I18n.translate("date.#{day_format}")
         day_names = day_names.map.with_index.to_a if index_as_value
         day_names = day_names.rotate(Date::DAYS_INTO_WEEK.fetch(beginning_of_week))
 
         options_for_select(day_names, selected)
       end
- See on GitHub + 🔎 See on GitHub
@@ -1243,15 +1243,15 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/form_options_helper.rb, line 298
-      def weekday_select(object, method, options = {}, html_options = {}, &block)
-        Tags::WeekdaySelect.new(object, method, self, options, html_options, &block).render
+      def weekday_select(object, method, options = {}, html_options = {}, &block)
+        Tags::WeekdaySelect.new(object, method, self, options, html_options, &block).render
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionView/Helpers/FormTagHelper.html b/src/classes/ActionView/Helpers/FormTagHelper.html index dfba7d7e2d..afa6afda7e 100644 --- a/src/classes/ActionView/Helpers/FormTagHelper.html +++ b/src/classes/ActionView/Helpers/FormTagHelper.html @@ -282,27 +282,27 @@

Deprecated
- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/form_tag_helper.rb, line 605
-      def button_tag(content_or_options = nil, options = nil, &block)
+      def button_tag(content_or_options = nil, options = nil, &block)
         if content_or_options.is_a? Hash
           options = content_or_options
         else
           options ||= {}
         end
 
-        options = { "name" => "button", "type" => "submit" }.merge!(options.stringify_keys)
+        options = { "name" => "button", "type" => "submit" }.merge!(options.stringify_keys)
 
         if block_given?
-          content_tag :button, options, &block
+          content_tag :button, options, &block
         else
-          content_tag :button, content_or_options || "Button", options
+          content_tag :button, content_or_options || "Button", options
         end
       end
- See on GitHub + 🔎 See on GitHub
@@ -359,22 +359,22 @@

Examples

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/form_tag_helper.rb, line 455
       def check_box_tag(name, *args)
-        if args.length >= 4
-          raise ArgumentError, "wrong number of arguments (given #{args.length + 1}, expected 1..4)"
+        if args.length >= 4
+          raise ArgumentError, "wrong number of arguments (given #{args.length + 1}, expected 1..4)"
         end
         options = args.extract_options!
-        value, checked = args.empty? ? ["1", false] : [*args, false]
-        html_options = { "type" => "checkbox", "name" => name, "id" => sanitize_to_id(name), "value" => value }.update(options.stringify_keys)
-        html_options["checked"] = "checked" if checked
+        value, checked = args.empty? ? ["1", false] : [*args, false]
+        html_options = { "type" => "checkbox", "name" => name, "id" => sanitize_to_id(name), "value" => value }.update(options.stringify_keys)
+        html_options["checked"] = "checked" if checked
         tag :input, html_options
       end
- See on GitHub + 🔎 See on GitHub
@@ -420,7 +420,7 @@

Examples

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/form_tag_helper.rb, line 703
@@ -428,7 +428,7 @@ 

Examples

text_field_tag(name, value, options.merge(type: :color)) end
- See on GitHub + 🔎 See on GitHub
@@ -474,7 +474,7 @@

Examples

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/form_tag_helper.rb, line 773
@@ -482,7 +482,7 @@ 

Examples

text_field_tag(name, value, options.merge(type: :date)) end
- See on GitHub + 🔎 See on GitHub
@@ -526,15 +526,15 @@

Options

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/form_tag_helper.rb, line 801
       def datetime_field_tag(name, value = nil, options = {})
-        text_field_tag(name, value, options.merge(type: "datetime-local"))
+        text_field_tag(name, value, options.merge(type: "datetime-local"))
       end
- See on GitHub + 🔎 See on GitHub
@@ -605,7 +605,7 @@

Examples

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/form_tag_helper.rb, line 875
@@ -613,7 +613,7 @@ 

Examples

text_field_tag(name, value, options.merge(type: :email)) end
- See on GitHub + 🔎 See on GitHub
@@ -649,7 +649,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/form_tag_helper.rb, line 102
@@ -658,9 +658,9 @@ 

object_name = object_name.model_name.singular end - sanitized_object_name = object_name.to_s.gsub(/\]\[|[^-a-zA-Z0-9:.]/, "_").delete_suffix("_") + sanitized_object_name = object_name.to_s.gsub(/\]\[|[^-a-zA-Z0-9:.]/, "_").delete_suffix("_") - sanitized_method_name = method_name.to_s.delete_suffix("?") + sanitized_method_name = method_name.to_s.delete_suffix("?") [ namespace, @@ -668,10 +668,10 @@

(index unless sanitized_object_name.empty?), sanitized_method_name, *suffixes, - ].tap(&:compact!).join("_") + ].tap(&:compact!).join("_") end

- See on GitHub + 🔎 See on GitHub
@@ -707,25 +707,25 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/form_tag_helper.rb, line 132
       def field_name(object_name, method_name, *method_names, multiple: false, index: nil)
-        names = method_names.map! { |name| "[#{name}]" }.join
+        names = method_names.map! { |name| "[#{name}]" }.join
 
         # a little duplication to construct fewer strings
         case
         when object_name.blank?
-          "#{method_name}#{names}#{multiple ? "[]" : ""}"
+          "#{method_name}#{names}#{multiple ? "[]" : ""}"
         when index
-          "#{object_name}[#{index}][#{method_name}]#{names}#{multiple ? "[]" : ""}"
+          "#{object_name}[#{index}][#{method_name}]#{names}#{multiple ? "[]" : ""}"
         else
-          "#{object_name}[#{method_name}]#{names}#{multiple ? "[]" : ""}"
+          "#{object_name}[#{method_name}]#{names}#{multiple ? "[]" : ""}"
         end
       end
- See on GitHub + 🔎 See on GitHub
@@ -772,18 +772,18 @@

Examples

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/form_tag_helper.rb, line 677
-      def field_set_tag(legend = nil, options = nil, &block)
+      def field_set_tag(legend = nil, options = nil, &block)
         output = tag(:fieldset, options, true)
-        output.safe_concat(content_tag("legend", legend)) unless legend.blank?
-        output.concat(capture(&block)) if block_given?
-        output.safe_concat("")
+        output.safe_concat(content_tag("legend", legend)) unless legend.blank?
+        output.concat(capture(&block)) if block_given?
+        output.safe_concat("</fieldset>")
       end
- See on GitHub + 🔎 See on GitHub
@@ -850,7 +850,7 @@

Examples

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/form_tag_helper.rb, line 347
@@ -858,7 +858,7 @@ 

Examples

text_field_tag(name, nil, convert_direct_upload_option_to_url(options.merge(type: :file))) end
- See on GitHub + 🔎 See on GitHub
@@ -929,20 +929,20 @@

Examples

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/form_tag_helper.rb, line 78
-      def form_tag(url_for_options = {}, options = {}, &block)
+      def form_tag(url_for_options = {}, options = {}, &block)
         html_options = html_options_for_form(url_for_options, options)
         if block_given?
-          form_tag_with_body(html_options, capture(&block))
+          form_tag_with_body(html_options, capture(&block))
         else
           form_tag_html(html_options)
         end
       end
- See on GitHub + 🔎 See on GitHub
@@ -987,15 +987,15 @@

Examples

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/form_tag_helper.rb, line 308
       def hidden_field_tag(name, value = nil, options = {})
-        text_field_tag(name, value, options.merge(type: :hidden, autocomplete: "off"))
+        text_field_tag(name, value, options.merge(type: :hidden, autocomplete: "off"))
       end
- See on GitHub + 🔎 See on GitHub
@@ -1056,17 +1056,17 @@

Examples

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/form_tag_helper.rb, line 651
       def image_submit_tag(source, options = {})
         options = options.stringify_keys
-        src = path_to_image(source, skip_pipeline: options.delete("skip_pipeline"))
-        tag :input, { "type" => "image", "src" => src }.update(options)
+        src = path_to_image(source, skip_pipeline: options.delete("skip_pipeline"))
+        tag :input, { "type" => "image", "src" => src }.update(options)
       end
- See on GitHub + 🔎 See on GitHub
@@ -1110,22 +1110,22 @@

Examples

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/form_tag_helper.rb, line 281
-      def label_tag(name = nil, content_or_options = nil, options = nil, &block)
-        if block_given? && content_or_options.is_a?(Hash)
+      def label_tag(name = nil, content_or_options = nil, options = nil, &block)
+        if block_given? && content_or_options.is_a?(Hash)
           options = content_or_options = content_or_options.stringify_keys
         else
           options ||= {}
           options = options.stringify_keys
         end
-        options["for"] = sanitize_to_id(name) unless name.blank? || options.has_key?("for")
-        content_tag :label, content_or_options || name.to_s.humanize, options, &block
+        options["for"] = sanitize_to_id(name) unless name.blank? || options.has_key?("for")
+        content_tag :label, content_or_options || name.to_s.humanize, options, &block
       end
- See on GitHub + 🔎 See on GitHub
@@ -1163,7 +1163,7 @@

Options

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/form_tag_helper.rb, line 816
@@ -1171,7 +1171,7 @@ 

Options

text_field_tag(name, value, options.merge(type: :month)) end
- See on GitHub + 🔎 See on GitHub
@@ -1246,20 +1246,20 @@

Examples

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/form_tag_helper.rb, line 923
       def number_field_tag(name, value = nil, options = {})
         options = options.stringify_keys
-        options["type"] ||= "number"
-        if range = options.delete("in") || options.delete("within")
-          options.update("min" => range.min, "max" => range.max)
+        options["type"] ||= "number"
+        if range = options.delete("in") || options.delete("within")
+          options.update("min" => range.min, "max" => range.max)
         end
         text_field_tag(name, value, options)
       end
- See on GitHub + 🔎 See on GitHub
@@ -1321,15 +1321,15 @@

Examples

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/form_tag_helper.rb, line 380
-      def password_field_tag(name = "password", value = nil, options = {})
+      def password_field_tag(name = "password", value = nil, options = {})
         text_field_tag(name, value, options.merge(type: :password))
       end
- See on GitHub + 🔎 See on GitHub
@@ -1406,22 +1406,22 @@

Examples

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/form_tag_helper.rb, line 491
       def radio_button_tag(name, value, *args)
-        if args.length >= 3
-          raise ArgumentError, "wrong number of arguments (given #{args.length + 2}, expected 2..4)"
+        if args.length >= 3
+          raise ArgumentError, "wrong number of arguments (given #{args.length + 2}, expected 2..4)"
         end
         options = args.extract_options!
         checked = args.empty? ? false : args.first
-        html_options = { "type" => "radio", "name" => name, "id" => "#{sanitize_to_id(name)}_#{sanitize_to_id(value)}", "value" => value }.update(options.stringify_keys)
-        html_options["checked"] = "checked" if checked
+        html_options = { "type" => "radio", "name" => name, "id" => "#{sanitize_to_id(name)}_#{sanitize_to_id(value)}", "value" => value }.update(options.stringify_keys)
+        html_options["checked"] = "checked" if checked
         tag :input, html_options
       end
- See on GitHub + 🔎 See on GitHub
@@ -1452,7 +1452,7 @@

Options

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/form_tag_helper.rb, line 937
@@ -1460,7 +1460,7 @@ 

Options

number_field_tag(name, value, options.merge(type: :range)) end
- See on GitHub + 🔎 See on GitHub
@@ -1506,7 +1506,7 @@

Examples

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/form_tag_helper.rb, line 726
@@ -1514,7 +1514,7 @@ 

Examples

text_field_tag(name, value, options.merge(type: :search)) end
- See on GitHub + 🔎 See on GitHub
@@ -1601,37 +1601,37 @@

Examples

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/form_tag_helper.rb, line 201
       def select_tag(name, option_tags = nil, options = {})
-        option_tags ||= ""
-        html_name = (options[:multiple] == true && !name.end_with?("[]")) ? "#{name}[]" : name
+        option_tags ||= ""
+        html_name = (options[:multiple] == true && !name.end_with?("[]")) ? "#{name}[]" : name
 
         if options.include?(:include_blank)
           include_blank = options[:include_blank]
           options = options.except(:include_blank)
-          options_for_blank_options_tag = { value: "" }
+          options_for_blank_options_tag = { value: "" }
 
           if include_blank == true
-            include_blank = ""
-            options_for_blank_options_tag[:label] = " "
+            include_blank = ""
+            options_for_blank_options_tag[:label] = " "
           end
 
           if include_blank
-            option_tags = content_tag("option", include_blank, options_for_blank_options_tag).safe_concat(option_tags)
+            option_tags = content_tag("option", include_blank, options_for_blank_options_tag).safe_concat(option_tags)
           end
         end
 
         if prompt = options.delete(:prompt)
-          option_tags = content_tag("option", prompt, value: "").safe_concat(option_tags)
+          option_tags = content_tag("option", prompt, value: "").safe_concat(option_tags)
         end
 
-        content_tag "select", option_tags, { "name" => html_name, "id" => sanitize_to_id(name) }.update(options.stringify_keys)
+        content_tag "select", option_tags, { "name" => html_name, "id" => sanitize_to_id(name) }.update(options.stringify_keys)
       end
- See on GitHub + 🔎 See on GitHub
@@ -1698,18 +1698,18 @@

Deprecated
- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/form_tag_helper.rb, line 544
-      def submit_tag(value = "Save changes", options = {})
+      def submit_tag(value = "Save changes", options = {})
         options = options.deep_stringify_keys
-        tag_options = { "type" => "submit", "name" => "commit", "value" => value }.update(options)
+        tag_options = { "type" => "submit", "name" => "commit", "value" => value }.update(options)
         set_default_disable_with value, tag_options
         tag :input, tag_options
       end
- See on GitHub + 🔎 See on GitHub
@@ -1759,7 +1759,7 @@

Examples

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/form_tag_helper.rb, line 749
@@ -1767,7 +1767,7 @@ 

Examples

text_field_tag(name, value, options.merge(type: :tel)) end
- See on GitHub + 🔎 See on GitHub
@@ -1830,24 +1830,24 @@

Examples

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/form_tag_helper.rb, line 413
       def text_area_tag(name, content = nil, options = {})
         options = options.stringify_keys
 
-        if size = options.delete("size")
-          options["cols"], options["rows"] = size.split("x") if size.respond_to?(:split)
+        if size = options.delete("size")
+          options["cols"], options["rows"] = size.split("x") if size.respond_to?(:split)
         end
 
-        escape = options.delete("escape") { true }
+        escape = options.delete("escape") { true }
         content = ERB::Util.html_escape(content) if escape
 
-        content_tag :textarea, content.to_s.html_safe, { "name" => name, "id" => sanitize_to_id(name) }.update(options)
+        content_tag :textarea, content.to_s.html_safe, { "name" => name, "id" => sanitize_to_id(name) }.update(options)
       end
- See on GitHub + 🔎 See on GitHub
@@ -1914,15 +1914,15 @@

Examples

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/form_tag_helper.rb, line 263
       def text_field_tag(name, value = nil, options = {})
-        tag :input, { "type" => "text", "name" => name, "id" => sanitize_to_id(name), "value" => value }.update(options.stringify_keys)
+        tag :input, { "type" => "text", "name" => name, "id" => sanitize_to_id(name), "value" => value }.update(options.stringify_keys)
       end
- See on GitHub + 🔎 See on GitHub
@@ -1962,7 +1962,7 @@

Options

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/form_tag_helper.rb, line 787
@@ -1970,7 +1970,7 @@ 

Options

text_field_tag(name, value, options.merge(type: :time)) end
- See on GitHub + 🔎 See on GitHub
@@ -2016,7 +2016,7 @@

Examples

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/form_tag_helper.rb, line 852
@@ -2024,7 +2024,7 @@ 

Examples

text_field_tag(name, value, options.merge(type: :url)) end
- See on GitHub + 🔎 See on GitHub
@@ -2051,7 +2051,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/form_tag_helper.rb, line 943
@@ -2059,10 +2059,10 @@ 

# Use raw HTML to ensure the value is written as an HTML entity; it # needs to be the right character regardless of which encoding the # browser infers. - ''.html_safe + '<input name="utf8" type="hidden" value="&#x2713;" autocomplete="off" />'.html_safe end

- See on GitHub + 🔎 See on GitHub
@@ -2100,7 +2100,7 @@

Options

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/form_tag_helper.rb, line 829
@@ -2108,7 +2108,7 @@ 

Options

text_field_tag(name, value, options.merge(type: :week)) end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionView/Helpers/JavaScriptHelper.html b/src/classes/ActionView/Helpers/JavaScriptHelper.html index 0f796a1a12..3c6dc87ac2 100644 --- a/src/classes/ActionView/Helpers/JavaScriptHelper.html +++ b/src/classes/ActionView/Helpers/JavaScriptHelper.html @@ -83,11 +83,6 @@

Constants

} - -   - - - @@ -129,21 +124,21 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/javascript_helper.rb, line 28
       def escape_javascript(javascript)
         javascript = javascript.to_s
         if javascript.empty?
-          result = ""
+          result = ""
         else
-          result = javascript.gsub(/(\\|<\/|\r\n|\342\200\250|\342\200\251|[\n\r"']|[`]|[$])/u, JS_ESCAPE_MAP)
+          result = javascript.gsub(/(\\|<\/|\r\n|\342\200\250|\342\200\251|[\n\r"']|[`]|[$])/u, JS_ESCAPE_MAP)
         end
         javascript.html_safe? ? result.html_safe : result
       end
- See on GitHub + 🔎 See on GitHub
@@ -235,15 +230,15 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/javascript_helper.rb, line 75
-      def javascript_tag(content_or_options_with_block = nil, html_options = {}, &block)
+      def javascript_tag(content_or_options_with_block = nil, html_options = {}, &block)
         content =
           if block_given?
             html_options = content_or_options_with_block if content_or_options_with_block.is_a?(Hash)
-            capture(&block)
+            capture(&block)
           else
             content_or_options_with_block
           end
@@ -252,10 +247,10 @@ 

html_options[:nonce] = content_security_policy_nonce end - content_tag("script", javascript_cdata_section(content), html_options) + content_tag("script", javascript_cdata_section(content), html_options) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionView/Helpers/NumberHelper.html b/src/classes/ActionView/Helpers/NumberHelper.html index 6105c20f2c..264368ec6a 100644 --- a/src/classes/ActionView/Helpers/NumberHelper.html +++ b/src/classes/ActionView/Helpers/NumberHelper.html @@ -170,7 +170,7 @@

Examples

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/number_helper.rb, line 128
@@ -178,7 +178,7 @@ 

Examples

delegate_number_helper_method(:number_to_currency, number, options) end
- See on GitHub + 🔎 See on GitHub
@@ -300,7 +300,7 @@

Custom Unit Quan
- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/number_helper.rb, line 405
@@ -308,7 +308,7 @@ 

Custom Unit Quan delegate_number_helper_method(:number_to_human, number, options) end

- See on GitHub + 🔎 See on GitHub
@@ -371,7 +371,7 @@

Examples

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/number_helper.rb, line 298
@@ -379,7 +379,7 @@ 

Examples

delegate_number_helper_method(:number_to_human_size, number, options) end
- See on GitHub + 🔎 See on GitHub
@@ -439,7 +439,7 @@

Examples

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/number_helper.rb, line 168
@@ -447,7 +447,7 @@ 

Examples

delegate_number_helper_method(:number_to_percentage, number, options) end
- See on GitHub + 🔎 See on GitHub
@@ -510,7 +510,7 @@

Examples

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/number_helper.rb, line 63
@@ -522,7 +522,7 @@ 

Examples

ERB::Util.html_escape(ActiveSupport::NumberHelper.number_to_phone(number, options)) end
- See on GitHub + 🔎 See on GitHub
@@ -581,7 +581,7 @@

Examples

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/number_helper.rb, line 207
@@ -589,7 +589,7 @@ 

Examples

delegate_number_helper_method(:number_to_delimited, number, options) end
- See on GitHub + 🔎 See on GitHub
@@ -652,7 +652,7 @@

Examples

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/number_helper.rb, line 252
@@ -660,7 +660,7 @@ 

Examples

delegate_number_helper_method(:number_to_rounded, number, options) end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionView/Helpers/NumberHelper/InvalidNumberError.html b/src/classes/ActionView/Helpers/NumberHelper/InvalidNumberError.html index d063d4e67e..2c2cadb870 100644 --- a/src/classes/ActionView/Helpers/NumberHelper/InvalidNumberError.html +++ b/src/classes/ActionView/Helpers/NumberHelper/InvalidNumberError.html @@ -103,7 +103,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/number_helper.rb, line 22
@@ -111,7 +111,7 @@ 

@number = number end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionView/Helpers/OutputSafetyHelper.html b/src/classes/ActionView/Helpers/OutputSafetyHelper.html index 59e928e166..76af0b63ed 100644 --- a/src/classes/ActionView/Helpers/OutputSafetyHelper.html +++ b/src/classes/ActionView/Helpers/OutputSafetyHelper.html @@ -98,7 +98,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/output_safety_helper.rb, line 18
@@ -106,7 +106,7 @@ 

stringish.to_s.html_safe end

- See on GitHub + 🔎 See on GitHub
@@ -140,7 +140,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/output_safety_helper.rb, line 33
@@ -150,7 +150,7 @@ 

array.flatten.map! { |i| ERB::Util.unwrapped_html_escape(i) }.join(sep).html_safe end

- See on GitHub + 🔎 See on GitHub
@@ -177,7 +177,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/output_safety_helper.rb, line 43
@@ -185,19 +185,19 @@ 

options.assert_valid_keys(:words_connector, :two_words_connector, :last_word_connector, :locale) default_connectors = { - words_connector: ", ", - two_words_connector: " and ", - last_word_connector: ", and " + words_connector: ", ", + two_words_connector: " and ", + last_word_connector: ", and " } if defined?(I18n) - i18n_connectors = I18n.translate(:'support.array', locale: options[:locale], default: {}) + i18n_connectors = I18n.translate(:'support.array', locale: options[:locale], default: {}) default_connectors.merge!(i18n_connectors) end options = default_connectors.merge!(options) case array.length when 0 - "".html_safe + "".html_safe when 1 ERB::Util.html_escape(array[0]) when 2 @@ -207,7 +207,7 @@

end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionView/Helpers/RenderingHelper.html b/src/classes/ActionView/Helpers/RenderingHelper.html index 6dae91756c..f6017200ed 100644 --- a/src/classes/ActionView/Helpers/RenderingHelper.html +++ b/src/classes/ActionView/Helpers/RenderingHelper.html @@ -132,21 +132,21 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/rendering_helper.rb, line 97
-      def _layout_for(*args, &block)
+      def _layout_for(*args, &block)
         name = args.first
 
-        if block && !name.is_a?(Symbol)
-          capture(*args, &block)
+        if block && !name.is_a?(Symbol)
+          capture(*args, &block)
         else
           super
         end
       end
- See on GitHub + 🔎 See on GitHub
@@ -192,30 +192,30 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/rendering_helper.rb, line 30
-      def render(options = {}, locals = {}, &block)
+      def render(options = {}, locals = {}, &block)
         case options
         when Hash
           in_rendering_context(options) do |renderer|
             if block_given?
-              view_renderer.render_partial(self, options.merge(partial: options[:layout]), &block)
+              view_renderer.render_partial(self, options.merge(partial: options[:layout]), &block)
             else
               view_renderer.render(self, options)
             end
           end
         else
           if options.respond_to?(:render_in)
-            options.render_in(self, &block)
+            options.render_in(self, &block)
           else
-            view_renderer.render_partial(self, partial: options, locals: locals, &block)
+            view_renderer.render_partial(self, partial: options, locals: locals, &block)
           end
         end
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionView/Helpers/SanitizeHelper.html b/src/classes/ActionView/Helpers/SanitizeHelper.html index 0160f58406..e9e4b5db7a 100644 --- a/src/classes/ActionView/Helpers/SanitizeHelper.html +++ b/src/classes/ActionView/Helpers/SanitizeHelper.html @@ -178,15 +178,15 @@

Examples

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/sanitize_helper.rb, line 100
       def sanitize(html, options = {})
-        self.class.safe_list_sanitizer.sanitize(html, options)&.html_safe
+        self.class.safe_list_sanitizer.sanitize(html, options)&.html_safe
       end
- See on GitHub + 🔎 See on GitHub
@@ -213,7 +213,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/sanitize_helper.rb, line 105
@@ -221,7 +221,7 @@ 

self.class.safe_list_sanitizer.sanitize_css(style) end

- See on GitHub + 🔎 See on GitHub
@@ -261,7 +261,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/sanitize_helper.rb, line 122
       def strip_tags(html)
-        self.class.full_sanitizer.sanitize(html)&.html_safe
+        self.class.full_sanitizer.sanitize(html)&.html_safe
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionView/Helpers/TagHelper.html b/src/classes/ActionView/Helpers/TagHelper.html index c582312de5..d339673249 100644 --- a/src/classes/ActionView/Helpers/TagHelper.html +++ b/src/classes/ActionView/Helpers/TagHelper.html @@ -113,11 +113,6 @@

Constants

["aria", :aria].to_set.freeze - -   - - - BOOLEAN_ATTRIBUTES @@ -133,11 +128,6 @@

Constants

typemustmatch visible).to_set - -   - - - DATA_PREFIXES @@ -145,11 +135,6 @@

Constants

["data", :data].to_set.freeze - -   - - - PRE_CONTENT_STRINGS @@ -157,11 +142,6 @@

Constants

Hash.new { "" } - -   - - - TAG_TYPES @@ -169,11 +149,6 @@

Constants

{} - -   - - - @@ -205,7 +180,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/tag_helper.rb, line 403
@@ -216,19 +191,19 @@ 

case tag_value when Hash tag_value.each do |key, val| - tag_values << key.to_s if val && key.present? + tag_values << key.to_s if val && key.present? end when Array tag_values.concat build_tag_values(*tag_value) else - tag_values << tag_value.to_s if tag_value.present? + tag_values << tag_value.to_s if tag_value.present? end end tag_values end

- See on GitHub + 🔎 See on GitHub
@@ -269,16 +244,16 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/tag_helper.rb, line 386
       def cdata_section(content)
-        splitted = content.to_s.gsub(/\]\]>/, "]]]]>")
-        "".html_safe
+        splitted = content.to_s.gsub(/\]\]>/, "]]]]><![CDATA[>")
+        "<![CDATA[#{splitted}]]>".html_safe
       end
- See on GitHub + 🔎 See on GitHub
@@ -353,20 +328,20 @@

Examples

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/tag_helper.rb, line 346
-      def content_tag(name, content_or_options_with_block = nil, options = nil, escape = true, &block)
+      def content_tag(name, content_or_options_with_block = nil, options = nil, escape = true, &block)
         if block_given?
           options = content_or_options_with_block if content_or_options_with_block.is_a?(Hash)
-          tag_builder.content_tag_string(name, capture(&block), options, escape)
+          tag_builder.content_tag_string(name, capture(&block), options, escape)
         else
           tag_builder.content_tag_string(name, content_or_options_with_block, options, escape)
         end
       end
- See on GitHub + 🔎 See on GitHub
@@ -400,7 +375,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/tag_helper.rb, line 398
@@ -408,7 +383,7 @@ 

ERB::Util.html_escape_once(html) end

- See on GitHub + 🔎 See on GitHub
@@ -567,7 +542,7 @@

Examples

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/tag_helper.rb, line 309
@@ -576,11 +551,11 @@ 

Examples

tag_builder else name = ERB::Util.xml_name_escape(name) if escape - "<#{name}#{tag_builder.tag_options(options, escape) if options}#{open ? ">" : " />"}".html_safe + "<#{name}#{tag_builder.tag_options(options, escape) if options}#{open ? ">" : " />"}".html_safe end end
- See on GitHub + 🔎 See on GitHub
@@ -623,17 +598,17 @@

Examples

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/tag_helper.rb, line 366
       def token_list(*args)
         tokens = build_tag_values(*args).flat_map { |value| CGI.unescape_html(value.to_s).split(/\s+/) }.uniq
 
-        safe_join(tokens, " ")
+        safe_join(tokens, " ")
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionView/Helpers/Tags/ActionText.html b/src/classes/ActionView/Helpers/Tags/ActionText.html index 44b5ef073a..39618e6ef9 100644 --- a/src/classes/ActionView/Helpers/Tags/ActionText.html +++ b/src/classes/ActionView/Helpers/Tags/ActionText.html @@ -84,19 +84,19 @@

- Source code + 📝 Source code
# File actiontext/app/helpers/action_text/tag_helper.rb, line 49
     def render
       options = @options.stringify_keys
       add_default_name_and_id(options)
-      options["input"] ||= dom_id(object, [options["id"], :trix_input].compact.join("_")) if object
-      html_tag = @template_object.rich_text_area_tag(options.delete("name"), options.fetch("value") { value }, options.except("value"))
+      options["input"] ||= dom_id(object, [options["id"], :trix_input].compact.join("_")) if object
+      html_tag = @template_object.rich_text_area_tag(options.delete("name"), options.fetch("value") { value }, options.except("value"))
       error_wrapping(html_tag)
     end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionView/Helpers/TextHelper.html b/src/classes/ActionView/Helpers/TextHelper.html index 1c833223b8..23f3ead336 100644 --- a/src/classes/ActionView/Helpers/TextHelper.html +++ b/src/classes/ActionView/Helpers/TextHelper.html @@ -186,15 +186,15 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/text_helper.rb, line 59
       def concat(string)
-        output_buffer << string
+        output_buffer << string
       end
- See on GitHub + 🔎 See on GitHub
@@ -230,16 +230,16 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/text_helper.rb, line 398
-      def current_cycle(name = "default")
+      def current_cycle(name = "default")
         cycle = get_cycle(name)
         cycle.current_value if cycle
       end
- See on GitHub + 🔎 See on GitHub
@@ -295,24 +295,24 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/text_helper.rb, line 374
       def cycle(first_value, *values)
         options = values.extract_options!
-        name = options.fetch(:name, "default")
+        name = options.fetch(:name, "default")
 
         values.unshift(*first_value)
 
         cycle = get_cycle(name)
-        unless cycle && cycle.values == values
+        unless cycle && cycle.values == values
           cycle = set_cycle(name, Cycle.new(*values))
         end
         cycle.to_s
       end
- See on GitHub + 🔎 See on GitHub
@@ -358,14 +358,14 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/text_helper.rb, line 183
       def excerpt(text, phrase, options = {})
-        return unless text && phrase
+        return unless text && phrase
 
-        separator = options.fetch(:separator, nil) || ""
+        separator = options.fetch(:separator, nil) || ""
         case phrase
         when Regexp
           regex = phrase
@@ -394,7 +394,7 @@ 

[prefix, affix, postfix].join end

- See on GitHub + 🔎 See on GitHub
@@ -443,24 +443,24 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/text_helper.rb, line 137
-      def highlight(text, phrases, options = {}, &block)
+      def highlight(text, phrases, options = {}, &block)
         text = sanitize(text) if options.fetch(:sanitize, true)
 
         if text.blank? || phrases.blank?
-          text || ""
+          text || ""
         else
           patterns = Array(phrases).map { |phrase| Regexp === phrase ? phrase : Regexp.escape(phrase) }
-          pattern = /(#{patterns.join("|")})/i
-          highlighter = options.fetch(:highlighter, '\1') unless block
+          pattern = /(#{patterns.join("|")})/i
+          highlighter = options.fetch(:highlighter, '<mark>\1</mark>') unless block
 
-          text.scan(/<[^>]*|[^<]+/).each do |segment|
-            if !segment.start_with?("<")
+          text.scan(/<[^>]*|[^<]+/).each do |segment|
+            if !segment.start_with?("<")
               if block
-                segment.gsub!(pattern, &block)
+                segment.gsub!(pattern, &block)
               else
                 segment.gsub!(pattern, highlighter)
               end
@@ -469,7 +469,7 @@ 

end.html_safe end

- See on GitHub + 🔎 See on GitHub
@@ -514,7 +514,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/text_helper.rb, line 238
@@ -525,10 +525,10 @@ 

plural || singular.pluralize(locale) end - "#{count || 0} #{word}" + "#{count || 0} #{word}" end

- See on GitHub + 🔎 See on GitHub
@@ -572,16 +572,16 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/text_helper.rb, line 421
-      def reset_cycle(name = "default")
+      def reset_cycle(name = "default")
         cycle = get_cycle(name)
         cycle.reset if cycle
       end
- See on GitHub + 🔎 See on GitHub
@@ -608,7 +608,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/text_helper.rb, line 63
@@ -616,7 +616,7 @@ 

output_buffer.respond_to?(:safe_concat) ? output_buffer.safe_concat(string) : concat(string) end

- See on GitHub + 🔎 See on GitHub
@@ -682,12 +682,12 @@

Examples

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/text_helper.rb, line 322
       def simple_format(text, html_options = {}, options = {})
-        wrapper_tag = options[:wrapper_tag] || "p"
+        wrapper_tag = options[:wrapper_tag] || "p"
 
         text = sanitize(text, options.fetch(:sanitize_options, {})) if options.fetch(:sanitize, true)
         paragraphs = split_paragraphs(text)
@@ -697,11 +697,11 @@ 

Examples

else paragraphs.map! { |paragraph| content_tag(wrapper_tag, raw(paragraph), html_options) - }.join("\n\n").html_safe + }.join("\n\n").html_safe end end
- See on GitHub + 🔎 See on GitHub
@@ -756,22 +756,22 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/text_helper.rb, line 99
-      def truncate(text, options = {}, &block)
+      def truncate(text, options = {}, &block)
         if text
           length  = options.fetch(:length, 30)
 
           content = text.truncate(length, options)
           content = options[:escape] == false ? content.html_safe : ERB::Util.html_escape(content)
-          content << capture(&block) if block_given? && text.length > length
+          content << capture(&block) if block_given? && text.length > length
           content
         end
       end
- See on GitHub + 🔎 See on GitHub
@@ -816,11 +816,11 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/text_helper.rb, line 268
-      def word_wrap(text, line_width: 80, break_sequence: "\n")
+      def word_wrap(text, line_width: 80, break_sequence: "\n")
         # Match up to `line_width` characters, followed by one of
         #   (1) non-newline whitespace plus an optional newline
         #   (2) the end of the string, ignoring any trailing newlines
@@ -831,10 +831,10 @@ 

# Match an empty line pattern = /(.{1,#{line_width}})(?:[^\S\n]+\n?|\n*\Z|\n)|\n/ - text.gsub(pattern, "\\1#{break_sequence}").chomp!(break_sequence) + text.gsub(pattern, "\\1#{break_sequence}").chomp!(break_sequence) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionView/Helpers/TranslationHelper.html b/src/classes/ActionView/Helpers/TranslationHelper.html index ab471860da..3c91d1380b 100644 --- a/src/classes/ActionView/Helpers/TranslationHelper.html +++ b/src/classes/ActionView/Helpers/TranslationHelper.html @@ -155,7 +155,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/translation_helper.rb, line 116
@@ -163,7 +163,7 @@ 

I18n.localize(object, **options) end

- See on GitHub + 🔎 See on GitHub
@@ -252,23 +252,23 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/translation_helper.rb, line 73
       def translate(key, **options)
         return key.map { |k| translate(k, **options) } if key.is_a?(Array)
-        key = key&.to_s unless key.is_a?(Symbol)
+        key = key&.to_s unless key.is_a?(Symbol)
 
         alternatives = if options.key?(:default)
           options[:default].is_a?(Array) ? options.delete(:default).compact : [options.delete(:default)]
         end
 
-        options[:raise] = true if options[:raise].nil? && TranslationHelper.raise_on_missing_translations
+        options[:raise] = true if options[:raise].nil? && TranslationHelper.raise_on_missing_translations
         default = MISSING_TRANSLATION
 
         translation = while key || alternatives.present?
-          if alternatives.blank? && !options[:raise].nil?
+          if alternatives.blank? && !options[:raise].nil?
             default = NO_DEFAULT # let I18n handle missing translation
           end
 
@@ -278,15 +278,15 @@ 

break translated unless translated == MISSING_TRANSLATION - if alternatives.present? && !alternatives.first.is_a?(Symbol) - break alternatives.first && I18n.translate(nil, **options, default: alternatives) + if alternatives.present? && !alternatives.first.is_a?(Symbol) + break alternatives.first && I18n.translate(nil, **options, default: alternatives) end first_key ||= key - key = alternatives&.shift + key = alternatives&.shift end - if key.nil? && !first_key.nil? + if key.nil? && !first_key.nil? translation = missing_translation(first_key, options) key = first_key end @@ -294,7 +294,7 @@

block_given? ? yield(translation, key) : translation end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionView/Helpers/UrlHelper.html b/src/classes/ActionView/Helpers/UrlHelper.html index 69d63628e4..7b63369824 100644 --- a/src/classes/ActionView/Helpers/UrlHelper.html +++ b/src/classes/ActionView/Helpers/UrlHelper.html @@ -156,11 +156,6 @@

Constants

}.freeze - -   - - - @@ -319,11 +314,11 @@
Rails UJS Examples
- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/url_helper.rb, line 357
-      def button_to(name = nil, options = nil, html_options = nil, &block)
+      def button_to(name = nil, options = nil, html_options = nil, &block)
         html_options, options = options, name if block_given?
         html_options ||= {}
         html_options = html_options.stringify_keys
@@ -334,52 +329,52 @@ 
Rails UJS Examples
else url_for(options) end - remote = html_options.delete("remote") - params = html_options.delete("params") + remote = html_options.delete("remote") + params = html_options.delete("params") - authenticity_token = html_options.delete("authenticity_token") + authenticity_token = html_options.delete("authenticity_token") - method = (html_options.delete("method").presence || method_for_options(options)).to_s - method_tag = BUTTON_TAG_METHOD_VERBS.include?(method) ? method_tag(method) : "".html_safe + method = (html_options.delete("method").presence || method_for_options(options)).to_s + method_tag = BUTTON_TAG_METHOD_VERBS.include?(method) ? method_tag(method) : "".html_safe - form_method = method == "get" ? "get" : "post" - form_options = html_options.delete("form") || {} - form_options[:class] ||= html_options.delete("form_class") || "button_to" + form_method = method == "get" ? "get" : "post" + form_options = html_options.delete("form") || {} + form_options[:class] ||= html_options.delete("form_class") || "button_to" form_options[:method] = form_method form_options[:action] = url - form_options[:'data-remote'] = true if remote + form_options[:'data-remote'] = true if remote - request_token_tag = if form_method == "post" - request_method = method.empty? ? "post" : method + request_token_tag = if form_method == "post" + request_method = method.empty? ? "post" : method token_tag(authenticity_token, form_options: { action: url, method: request_method }) else - "" + "" end html_options = convert_options_to_data_attributes(options, html_options) - html_options["type"] = "submit" + html_options["type"] = "submit" button = if block_given? - content_tag("button", html_options, &block) + content_tag("button", html_options, &block) elsif button_to_generates_button_tag - content_tag("button", name || url, html_options, &block) + content_tag("button", name || url, html_options, &block) else - html_options["value"] = name || url - tag("input", html_options) + html_options["value"] = name || url + tag("input", html_options) end inner_tags = method_tag.safe_concat(button).safe_concat(request_token_tag) if params to_form_params(params).each do |param| - inner_tags.safe_concat tag(:input, type: "hidden", name: param[:name], value: param[:value], - autocomplete: "off") + inner_tags.safe_concat tag(:input, type: "hidden", name: param[:name], value: param[:value], + autocomplete: "off") end end - html = content_tag("form", inner_tags, form_options) + html = content_tag("form", inner_tags, form_options) prevent_content_exfiltration(html) end
- See on GitHub + 🔎 See on GitHub
@@ -456,32 +451,32 @@

Examples

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/url_helper.rb, line 609
       def current_page?(options = nil, check_parameters: false, **options_as_kwargs)
         unless request
-          raise "You cannot use helpers that need to determine the current " \
-                "page unless your view context provides a Request object " \
-                "in a #request method"
+          raise "You cannot use helpers that need to determine the current " \
+                "page unless your view context provides a Request object " \
+                "in a #request method"
         end
 
         return false unless request.get? || request.head?
 
         options ||= options_as_kwargs
-        check_parameters ||= options.is_a?(Hash) && options.delete(:check_parameters)
+        check_parameters ||= options.is_a?(Hash) && options.delete(:check_parameters)
         url_string = URI::DEFAULT_PARSER.unescape(url_for(options)).force_encoding(Encoding::BINARY)
 
         # We ignore any extra parameters in the request_uri if the
-        # submitted URL doesn't have any either. This lets the function
+        # submitted URL doesn't have any either. This lets the function
         # work with things like ?order=asc
         # the behavior can be disabled with check_parameters: true
-        request_uri = url_string.index("?") || check_parameters ? request.fullpath : request.path
+        request_uri = url_string.index("?") || check_parameters ? request.fullpath : request.path
         request_uri = URI::DEFAULT_PARSER.unescape(request_uri).force_encoding(Encoding::BINARY)
 
         if %r{^\w+://}.match?(url_string)
-          request_uri = +"#{request.protocol}#{request.host_with_port}#{request_uri}"
+          request_uri = +"#{request.protocol}#{request.host_with_port}#{request_uri}"
         end
 
         remove_trailing_slash!(url_string)
@@ -490,7 +485,7 @@ 

Examples

url_string == request_uri end
- See on GitHub + 🔎 See on GitHub
@@ -677,23 +672,23 @@
- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/url_helper.rb, line 234
-      def link_to(name = nil, options = nil, html_options = nil, &block)
+      def link_to(name = nil, options = nil, html_options = nil, &block)
         html_options, options, name = options, name, block if block_given?
         options ||= {}
 
         html_options = convert_options_to_data_attributes(options, html_options)
 
         url = url_target(name, options)
-        html_options["href"] ||= url
+        html_options["href"] ||= url
 
-        content_tag("a", name || url, html_options, &block)
+        content_tag("a", name || url, html_options, &block)
       end
- See on GitHub + 🔎 See on GitHub
@@ -737,23 +732,23 @@
- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/url_helper.rb, line 498
-      def link_to_if(condition, name, options = {}, html_options = {}, &block)
+      def link_to_if(condition, name, options = {}, html_options = {}, &block)
         if condition
           link_to(name, options, html_options)
         else
           if block_given?
-            block.arity <= 1 ? capture(name, &block) : capture(name, options, html_options, &block)
+            block.arity <= 1 ? capture(name, &block) : capture(name, options, html_options, &block)
           else
             ERB::Util.html_escape(name)
           end
         end
       end
- See on GitHub + 🔎 See on GitHub
@@ -797,15 +792,15 @@
- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/url_helper.rb, line 475
-      def link_to_unless(condition, name, options = {}, html_options = {}, &block)
-        link_to_if !condition, name, options, html_options, &block
+      def link_to_unless(condition, name, options = {}, html_options = {}, &block)
+        link_to_if !condition, name, options, html_options, &block
       end
- See on GitHub + 🔎 See on GitHub
@@ -867,15 +862,15 @@
- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/url_helper.rb, line 451
-      def link_to_unless_current(name, options = {}, html_options = {}, &block)
-        link_to_unless current_page?(options), name, options, html_options, &block
+      def link_to_unless_current(name, options = {}, html_options = {}, &block)
+        link_to_unless current_page?(options), name, options, html_options, &block
       end
- See on GitHub + 🔎 See on GitHub
@@ -944,27 +939,27 @@

Examples

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/url_helper.rb, line 548
-      def mail_to(email_address, name = nil, html_options = {}, &block)
+      def mail_to(email_address, name = nil, html_options = {}, &block)
         html_options, name = name, nil if name.is_a?(Hash)
         html_options = (html_options || {}).stringify_keys
 
         extras = %w{ cc bcc body subject reply_to }.map! { |item|
           option = html_options.delete(item).presence || next
-          "#{item.dasherize}=#{ERB::Util.url_encode(option)}"
+          "#{item.dasherize}=#{ERB::Util.url_encode(option)}"
         }.compact
-        extras = extras.empty? ? "" : "?" + extras.join("&")
+        extras = extras.empty? ? "" : "?" + extras.join("&")
 
-        encoded_email_address = ERB::Util.url_encode(email_address).gsub("%40", "@")
-        html_options["href"] = "mailto:#{encoded_email_address}#{extras}"
+        encoded_email_address = ERB::Util.url_encode(email_address).gsub("%40", "@")
+        html_options["href"] = "mailto:#{encoded_email_address}#{extras}"
 
-        content_tag("a", name || email_address, html_options, &block)
+        content_tag("a", name || email_address, html_options, &block)
       end
- See on GitHub + 🔎 See on GitHub
@@ -1024,24 +1019,24 @@

Examples

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/url_helper.rb, line 743
-      def phone_to(phone_number, name = nil, html_options = {}, &block)
+      def phone_to(phone_number, name = nil, html_options = {}, &block)
         html_options, name = name, nil if name.is_a?(Hash)
         html_options = (html_options || {}).stringify_keys
 
-        country_code = html_options.delete("country_code").presence
-        country_code = country_code.nil? ? "" : "+#{ERB::Util.url_encode(country_code)}"
+        country_code = html_options.delete("country_code").presence
+        country_code = country_code.nil? ? "" : "+#{ERB::Util.url_encode(country_code)}"
 
         encoded_phone_number = ERB::Util.url_encode(phone_number)
-        html_options["href"] = "tel:#{country_code}#{encoded_phone_number}"
+        html_options["href"] = "tel:#{country_code}#{encoded_phone_number}"
 
-        content_tag("a", name || phone_number, html_options, &block)
+        content_tag("a", name || phone_number, html_options, &block)
       end
- See on GitHub + 🔎 See on GitHub
@@ -1106,27 +1101,27 @@

Examples

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/url_helper.rb, line 692
-      def sms_to(phone_number, name = nil, html_options = {}, &block)
+      def sms_to(phone_number, name = nil, html_options = {}, &block)
         html_options, name = name, nil if name.is_a?(Hash)
         html_options = (html_options || {}).stringify_keys
 
-        country_code = html_options.delete("country_code").presence
-        country_code = country_code ? "+#{ERB::Util.url_encode(country_code)}" : ""
+        country_code = html_options.delete("country_code").presence
+        country_code = country_code ? "+#{ERB::Util.url_encode(country_code)}" : ""
 
-        body = html_options.delete("body").presence
-        body = body ? "?&body=#{ERB::Util.url_encode(body)}" : ""
+        body = html_options.delete("body").presence
+        body = body ? "?&body=#{ERB::Util.url_encode(body)}" : ""
 
         encoded_phone_number = ERB::Util.url_encode(phone_number)
-        html_options["href"] = "sms:#{country_code}#{encoded_phone_number};#{body}"
+        html_options["href"] = "sms:#{country_code}#{encoded_phone_number};#{body}"
 
-        content_tag("a", name || phone_number, html_options, &block)
+        content_tag("a", name || phone_number, html_options, &block)
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionView/Helpers/UrlHelper/ClassMethods.html b/src/classes/ActionView/Helpers/UrlHelper/ClassMethods.html index 4b38a1435b..01ba532ecd 100644 --- a/src/classes/ActionView/Helpers/UrlHelper/ClassMethods.html +++ b/src/classes/ActionView/Helpers/UrlHelper/ClassMethods.html @@ -78,7 +78,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/helpers/url_helper.rb, line 30
@@ -86,7 +86,7 @@ 

ActionView::RoutingUrlFor end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionView/Layouts.html b/src/classes/ActionView/Layouts.html index a09159c1d9..5de7df667b 100644 --- a/src/classes/ActionView/Layouts.html +++ b/src/classes/ActionView/Layouts.html @@ -310,7 +310,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/layouts.rb, line 374
@@ -318,7 +318,7 @@ 

@_action_has_layout end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionView/Layouts/ClassMethods.html b/src/classes/ActionView/Layouts/ClassMethods.html index e70bb6bbc6..e9496df6bd 100644 --- a/src/classes/ActionView/Layouts/ClassMethods.html +++ b/src/classes/ActionView/Layouts/ClassMethods.html @@ -113,21 +113,21 @@

Options (conditions)

- Source code + 📝 Source code
# File actionview/lib/action_view/layouts.rb, line 271
       def layout(layout, conditions = {})
         include LayoutConditions unless conditions.empty?
 
-        conditions.each { |k, v| conditions[k] = Array(v).map(&:to_s) }
+        conditions.each { |k, v| conditions[k] = Array(v).map(&:to_s) }
         self._layout_conditions = conditions
 
         self._layout = layout
         _write_layout_method
       end
- See on GitHub + 🔎 See on GitHub diff --git a/src/classes/ActionView/LogSubscriber.html b/src/classes/ActionView/LogSubscriber.html index de58dce797..7f27044aa3 100644 --- a/src/classes/ActionView/LogSubscriber.html +++ b/src/classes/ActionView/LogSubscriber.html @@ -101,11 +101,6 @@

Constants

/^app\/views\// - -   - - - @@ -137,18 +132,18 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/log_subscriber.rb, line 101
     def self.attach_to(*)
-      ActiveSupport::Notifications.subscribe("render_template.action_view", ActionView::LogSubscriber::Start.new)
-      ActiveSupport::Notifications.subscribe("render_layout.action_view", ActionView::LogSubscriber::Start.new)
+      ActiveSupport::Notifications.subscribe("render_template.action_view", ActionView::LogSubscriber::Start.new)
+      ActiveSupport::Notifications.subscribe("render_layout.action_view", ActionView::LogSubscriber::Start.new)
 
       super
     end
- See on GitHub + 🔎 See on GitHub
@@ -175,7 +170,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/log_subscriber.rb, line 12
@@ -184,7 +179,7 @@ 

super end

- See on GitHub + 🔎 See on GitHub
@@ -215,22 +210,22 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/log_subscriber.rb, line 45
     def render_collection(event)
-      identifier = event.payload[:identifier] || "templates"
+      identifier = event.payload[:identifier] || "templates"
 
       debug do
-        message = +"  Rendered collection of #{from_rails_root(identifier)}"
-        message << " within #{from_rails_root(event.payload[:layout])}" if event.payload[:layout]
-        message << " #{render_count(event.payload)} (Duration: #{event.duration.round(1)}ms | Allocations: #{event.allocations})"
+        message = +"  Rendered collection of #{from_rails_root(identifier)}"
+        message << " within #{from_rails_root(event.payload[:layout])}" if event.payload[:layout]
+        message << " #{render_count(event.payload)} (Duration: #{event.duration.round(1)}ms | Allocations: #{event.allocations})"
         message
       end
     end
- See on GitHub + 🔎 See on GitHub
@@ -257,18 +252,18 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/log_subscriber.rb, line 37
     def render_layout(event)
       info do
-        message = +"  Rendered layout #{from_rails_root(event.payload[:identifier])}"
-        message << " (Duration: #{event.duration.round(1)}ms | Allocations: #{event.allocations})"
+        message = +"  Rendered layout #{from_rails_root(event.payload[:identifier])}"
+        message << " (Duration: #{event.duration.round(1)}ms | Allocations: #{event.allocations})"
       end
     end
- See on GitHub + 🔎 See on GitHub
@@ -295,21 +290,21 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/log_subscriber.rb, line 26
     def render_partial(event)
       debug do
-        message = +"  Rendered #{from_rails_root(event.payload[:identifier])}"
-        message << " within #{from_rails_root(event.payload[:layout])}" if event.payload[:layout]
-        message << " (Duration: #{event.duration.round(1)}ms | Allocations: #{event.allocations})"
-        message << " #{cache_message(event.payload)}" unless event.payload[:cache_hit].nil?
+        message = +"  Rendered #{from_rails_root(event.payload[:identifier])}"
+        message << " within #{from_rails_root(event.payload[:layout])}" if event.payload[:layout]
+        message << " (Duration: #{event.duration.round(1)}ms | Allocations: #{event.allocations})"
+        message << " #{cache_message(event.payload)}" unless event.payload[:cache_hit].nil?
         message
       end
     end
- See on GitHub + 🔎 See on GitHub
@@ -336,19 +331,19 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/log_subscriber.rb, line 17
     def render_template(event)
       info do
-        message = +"  Rendered #{from_rails_root(event.payload[:identifier])}"
-        message << " within #{from_rails_root(event.payload[:layout])}" if event.payload[:layout]
-        message << " (Duration: #{event.duration.round(1)}ms | Allocations: #{event.allocations})"
+        message = +"  Rendered #{from_rails_root(event.payload[:identifier])}"
+        message << " within #{from_rails_root(event.payload[:layout])}" if event.payload[:layout]
+        message << " (Duration: #{event.duration.round(1)}ms | Allocations: #{event.allocations})"
       end
     end
- See on GitHub + 🔎 See on GitHub
@@ -378,20 +373,20 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/log_subscriber.rb, line 117
     def cache_message(payload) # :doc:
       case payload[:cache_hit]
       when :hit
-        "[cache hit]"
+        "[cache hit]"
       when :miss
-        "[cache miss]"
+        "[cache miss]"
       end
     end
- See on GitHub + 🔎 See on GitHub
@@ -418,19 +413,19 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/log_subscriber.rb, line 109
     def render_count(payload) # :doc:
       if payload[:cache_hits]
-        "[#{payload[:cache_hits]} / #{payload[:count]} cache hits]"
+        "[#{payload[:cache_hits]} / #{payload[:count]} cache hits]"
       else
-        "[#{payload[:count]} times]"
+        "[#{payload[:count]} times]"
       end
     end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionView/LookupContext/DetailsCache.html b/src/classes/ActionView/LookupContext/DetailsCache.html index 15311e2759..d0622debaf 100644 --- a/src/classes/ActionView/LookupContext/DetailsCache.html +++ b/src/classes/ActionView/LookupContext/DetailsCache.html @@ -102,7 +102,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/lookup_context.rb, line 108
@@ -113,7 +113,7 @@ 

@cache = old_value end

- See on GitHub + 🔎 See on GitHub
@@ -143,7 +143,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/lookup_context.rb, line 116
@@ -154,7 +154,7 @@ 

@details[key] = value end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionView/LookupContext/ViewPaths.html b/src/classes/ActionView/LookupContext/ViewPaths.html index 35e5f9dfe2..4b0fe54a88 100644 --- a/src/classes/ActionView/LookupContext/ViewPaths.html +++ b/src/classes/ActionView/LookupContext/ViewPaths.html @@ -146,7 +146,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/lookup_context.rb, line 148
@@ -156,7 +156,7 @@ 

@view_paths.exists?(name, prefixes, partial, details, details_key, []) end

- See on GitHub + 🔎 See on GitHub
@@ -208,7 +208,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/lookup_context.rb, line 155
@@ -216,7 +216,7 @@ 

@view_paths = build_view_paths(@view_paths.to_a + paths) end

- See on GitHub + 🔎 See on GitHub
@@ -247,7 +247,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/lookup_context.rb, line 141
@@ -257,7 +257,7 @@ 

@view_paths.exists?(name, prefixes, partial, details, details_key, keys) end

- See on GitHub + 🔎 See on GitHub
@@ -288,7 +288,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/lookup_context.rb, line 128
@@ -298,7 +298,7 @@ 

@view_paths.find(name, prefixes, partial, details, details_key, keys) end

- See on GitHub + 🔎 See on GitHub
@@ -325,7 +325,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/lookup_context.rb, line 135
@@ -335,7 +335,7 @@ 

@view_paths.find_all(name, prefixes, partial, details, details_key, keys) end

- See on GitHub + 🔎 See on GitHub
@@ -387,7 +387,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/lookup_context.rb, line 159
@@ -395,7 +395,7 @@ 

@view_paths = build_view_paths(paths + @view_paths.to_a) end

- See on GitHub + 🔎 See on GitHub
@@ -450,7 +450,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/lookup_context.rb, line 175
@@ -467,7 +467,7 @@ 

[user_details, details_key] end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionView/NullResolver.html b/src/classes/ActionView/NullResolver.html index b1d177fdd6..0d0d6df90b 100644 --- a/src/classes/ActionView/NullResolver.html +++ b/src/classes/ActionView/NullResolver.html @@ -84,17 +84,17 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/testing/resolvers.rb, line 38
     def find_templates(name, prefix, partial, details, locals = [])
       path = TemplatePath.build(name, prefix, partial)
       handler = ActionView::Template::Handlers::Raw
-      [ActionView::Template.new("Template generated by Null Resolver", path.virtual, handler, virtual_path: path.virtual, format: nil, variant: nil, locals: locals)]
+      [ActionView::Template.new("Template generated by Null Resolver", path.virtual, handler, virtual_path: path.virtual, format: nil, variant: nil, locals: locals)]
     end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionView/PartialIteration.html b/src/classes/ActionView/PartialIteration.html index 26ec8807fa..52d1324b64 100644 --- a/src/classes/ActionView/PartialIteration.html +++ b/src/classes/ActionView/PartialIteration.html @@ -113,7 +113,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/renderer/collection_renderer.rb, line 13
@@ -122,7 +122,7 @@ 

@index = 0 end

- See on GitHub + 🔎 See on GitHub
@@ -153,7 +153,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/renderer/collection_renderer.rb, line 19
@@ -161,7 +161,7 @@ 

index == 0 end

- See on GitHub + 🔎 See on GitHub
@@ -188,7 +188,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/renderer/collection_renderer.rb, line 24
@@ -196,7 +196,7 @@ 

index == size - 1 end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionView/PartialRenderer.html b/src/classes/ActionView/PartialRenderer.html index c0c5d011f4..1a6a836c1c 100644 --- a/src/classes/ActionView/PartialRenderer.html +++ b/src/classes/ActionView/PartialRenderer.html @@ -299,7 +299,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/renderer/partial_renderer.rb, line 223
@@ -310,7 +310,7 @@ 

@details = extract_details(@options) end

- See on GitHub + 🔎 See on GitHub
@@ -341,21 +341,21 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/renderer/partial_renderer.rb, line 230
     def render(partial, context, block)
       template = find_template(partial, template_keys(partial))
 
-      if !block && (layout = @options[:layout])
+      if !block && (layout = @options[:layout])
         layout = find_template(layout.to_s, template_keys(partial))
       end
 
       render_partial_template(context, @locals, template, layout, block)
     end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionView/RecordIdentifier.html b/src/classes/ActionView/RecordIdentifier.html index 871213ded3..08d08b2520 100644 --- a/src/classes/ActionView/RecordIdentifier.html +++ b/src/classes/ActionView/RecordIdentifier.html @@ -121,11 +121,6 @@

Constants

"_" - -   - - - NEW @@ -133,11 +128,6 @@

Constants

"new" - -   - - - @@ -180,16 +170,16 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/record_identifier.rb, line 78
     def dom_class(record_or_class, prefix = nil)
       singular = model_name_from_record_or_class(record_or_class).param_key
-      prefix ? "#{prefix}#{JOIN}#{singular}" : singular
+      prefix ? "#{prefix}#{JOIN}#{singular}" : singular
     end
- See on GitHub + 🔎 See on GitHub
@@ -226,22 +216,22 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/record_identifier.rb, line 93
     def dom_id(record_or_class, prefix = nil)
-      raise ArgumentError, "dom_id must be passed a record_or_class as the first argument, you passed #{record_or_class.inspect}" unless record_or_class
+      raise ArgumentError, "dom_id must be passed a record_or_class as the first argument, you passed #{record_or_class.inspect}" unless record_or_class
 
       record_id = record_key_for_dom_id(record_or_class) unless record_or_class.is_a?(Class)
       if record_id
-        "#{dom_class(record_or_class, prefix)}#{JOIN}#{record_id}"
+        "#{dom_class(record_or_class, prefix)}#{JOIN}#{record_id}"
       else
         dom_class(record_or_class, prefix || NEW)
       end
     end
- See on GitHub + 🔎 See on GitHub
@@ -271,16 +261,16 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/record_identifier.rb, line 113
     def record_key_for_dom_id(record) # :doc:
       key = convert_to_model(record).to_key
-      key && key.all? ? key.join(JOIN) : nil
+      key && key.all? ? key.join(JOIN) : nil
     end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionView/Renderer.html b/src/classes/ActionView/Renderer.html index 88fc0d2efb..9d78e58ede 100644 --- a/src/classes/ActionView/Renderer.html +++ b/src/classes/ActionView/Renderer.html @@ -115,7 +115,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/renderer/renderer.rb, line 18
@@ -123,7 +123,7 @@ 

@lookup_context = lookup_context end

- See on GitHub + 🔎 See on GitHub
@@ -154,7 +154,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/renderer/renderer.rb, line 23
@@ -162,7 +162,7 @@ 

render_to_object(context, options).body end

- See on GitHub + 🔎 See on GitHub
@@ -191,7 +191,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/renderer/renderer.rb, line 40
@@ -203,7 +203,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionView/Rendering.html b/src/classes/ActionView/Rendering.html index ad945a70b3..2d6e909f9f 100644 --- a/src/classes/ActionView/Rendering.html +++ b/src/classes/ActionView/Rendering.html @@ -130,7 +130,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/rendering.rb, line 32
@@ -139,7 +139,7 @@ 

super end

- See on GitHub + 🔎 See on GitHub
@@ -170,7 +170,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/rendering.rb, line 119
@@ -179,7 +179,7 @@ 

_render_template(options) end

- See on GitHub + 🔎 See on GitHub
@@ -215,7 +215,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/rendering.rb, line 109
@@ -223,7 +223,7 @@ 

view_context_class.new(lookup_context, view_assigns, self) end

- See on GitHub + 🔎 See on GitHub
@@ -250,7 +250,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/rendering.rb, line 95
@@ -258,7 +258,7 @@ 

self.class.view_context_class end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionView/Rendering/ClassMethods.html b/src/classes/ActionView/Rendering/ClassMethods.html index 70a03365ff..7319950732 100644 --- a/src/classes/ActionView/Rendering/ClassMethods.html +++ b/src/classes/ActionView/Rendering/ClassMethods.html @@ -98,14 +98,14 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/rendering.rb, line 49
       def _helpers
       end
- See on GitHub + 🔎 See on GitHub
@@ -132,14 +132,14 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/rendering.rb, line 46
       def _routes
       end
- See on GitHub + 🔎 See on GitHub
@@ -166,7 +166,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/rendering.rb, line 59
@@ -187,7 +187,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -214,7 +214,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/rendering.rb, line 76
@@ -224,7 +224,7 @@ 

nil end

- See on GitHub + 🔎 See on GitHub
@@ -251,18 +251,18 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/rendering.rb, line 52
       def inherit_view_context_class?
-        superclass.respond_to?(:view_context_class) &&
-          supports_path? == superclass.supports_path? &&
-          _routes.equal?(superclass._routes) &&
+        superclass.respond_to?(:view_context_class) &&
+          supports_path? == superclass.supports_path? &&
+          _routes.equal?(superclass._routes) &&
           _helpers.equal?(superclass._helpers)
       end
- See on GitHub + 🔎 See on GitHub
@@ -289,7 +289,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/rendering.rb, line 82
@@ -305,7 +305,7 @@ 

@view_context_class end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionView/Resolver.html b/src/classes/ActionView/Resolver.html index 6f9bf92af6..ed5c4d08c9 100644 --- a/src/classes/ActionView/Resolver.html +++ b/src/classes/ActionView/Resolver.html @@ -108,14 +108,14 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/template/resolver.rb, line 59
     def clear_cache
     end
- See on GitHub + 🔎 See on GitHub
@@ -142,7 +142,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/template/resolver.rb, line 63
@@ -150,7 +150,7 @@ 

_find_all(name, prefix, partial, details, key, locals) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionView/RoutingUrlFor.html b/src/classes/ActionView/RoutingUrlFor.html index 2cfeb8a4e8..1cbad72062 100644 --- a/src/classes/ActionView/RoutingUrlFor.html +++ b/src/classes/ActionView/RoutingUrlFor.html @@ -154,7 +154,7 @@

Examples

- Source code + 📝 Source code
# File actionview/lib/action_view/routing_url_for.rb, line 82
@@ -200,7 +200,7 @@ 

Examples

end end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionView/Template.html b/src/classes/ActionView/Template.html index 6a2307eef1..88df2ad2d0 100644 --- a/src/classes/ActionView/Template.html +++ b/src/classes/ActionView/Template.html @@ -176,11 +176,6 @@

Constants

Object.new - -   - - - STRICT_LOCALS_REGEX @@ -188,11 +183,6 @@

Constants

/\#\s+locals:\s+\((.*)\)/ - -   - - - @@ -286,12 +276,12 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/template.rb, line 171
       def mime_types_implementation=(implementation)
-        # This method isn't thread-safe, but it's not supposed
+        # This method isn't thread-safe, but it's not supposed
         # to be called after initialization
         if self::Types != implementation
           remove_const(:Types)
@@ -299,7 +289,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -326,7 +316,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/template.rb, line 186
@@ -339,7 +329,7 @@ 

@virtual_path = virtual_path @variable = if @virtual_path - base = @virtual_path.end_with?("/") ? "" : ::File.basename(@virtual_path) + base = @virtual_path.end_with?("/") ? "" : ::File.basename(@virtual_path) base =~ /\A_?(.*?)(?:\.\w+)*\z/ $1.to_sym end @@ -351,7 +341,7 @@

@type = nil end

- See on GitHub + 🔎 See on GitHub
@@ -384,7 +374,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/template.rb, line 290
@@ -393,10 +383,10 @@ 

return source unless source.encoding == Encoding::BINARY - # Look for # encoding: *. If we find one, we'll encode the - # String in that encoding, otherwise, we'll use the + # Look for # encoding: *. If we find one, we'll encode the + # String in that encoding, otherwise, we'll use the # default external encoding. - if source.sub!(LEADING_ENCODING_REGEXP, "") + if source.sub!(LEADING_ENCODING_REGEXP, "") encoding = magic_encoding = $1 else encoding = Encoding.default_external @@ -406,14 +396,14 @@

# or the encoding specified in the file source.force_encoding(encoding) - # If the user didn't specify an encoding, and the handler + # If the user didn't specify an encoding, and the handler # handles encodings, we simply pass the String as is to # the handler (with the default_external tag) - if !magic_encoding && @handler.respond_to?(:handles_encoding?) && @handler.handles_encoding? + if !magic_encoding && @handler.respond_to?(:handles_encoding?) && @handler.handles_encoding? source # Otherwise, if the String is valid in the encoding, # encode immediately to default_internal. This means - # that if a handler doesn't handle encodings, it will + # that if a handler doesn't handle encodings, it will # always get Strings in the default_internal elsif source.valid_encoding? source.encode! @@ -424,7 +414,7 @@

end end

- See on GitHub + 🔎 See on GitHub
@@ -451,15 +441,15 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/template.rb, line 269
     def inspect
-      "#<#{self.class.name} #{short_identifier} locals=#{locals.inspect}>"
+      "#<#{self.class.name} #{short_identifier} locals=#{locals.inspect}>"
     end
- See on GitHub + 🔎 See on GitHub
@@ -541,7 +531,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/template.rb, line 152
@@ -558,7 +548,7 @@ 

autoload :Types end

- See on GitHub + 🔎 See on GitHub
@@ -585,7 +575,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/template.rb, line 209
@@ -597,7 +587,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -626,25 +616,25 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/template.rb, line 247
-    def render(view, locals, buffer = nil, add_to_stack: true, &block)
+    def render(view, locals, buffer = nil, add_to_stack: true, &block)
       instrument_render_template do
         compile!(view)
         if buffer
-          view._run(method_name, self, locals, buffer, add_to_stack: add_to_stack, has_strict_locals: strict_locals?, &block)
+          view._run(method_name, self, locals, buffer, add_to_stack: add_to_stack, has_strict_locals: strict_locals?, &block)
           nil
         else
-          view._run(method_name, self, locals, OutputBuffer.new, add_to_stack: add_to_stack, has_strict_locals: strict_locals?, &block)&.to_s
+          view._run(method_name, self, locals, OutputBuffer.new, add_to_stack: add_to_stack, has_strict_locals: strict_locals?, &block)&.to_s
         end
       end
-    rescue => e
+    rescue => e
       handle_render_error(view, e)
     end
- See on GitHub + 🔎 See on GitHub
@@ -671,15 +661,15 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/template.rb, line 265
     def short_identifier
-      @short_identifier ||= defined?(Rails.root) ? identifier.delete_prefix("#{Rails.root}/") : identifier
+      @short_identifier ||= defined?(Rails.root) ? identifier.delete_prefix("#{Rails.root}/") : identifier
     end
- See on GitHub + 🔎 See on GitHub
@@ -706,7 +696,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/template.rb, line 273
@@ -714,7 +704,7 @@ 

@source.to_s end

- See on GitHub + 🔎 See on GitHub
@@ -746,24 +736,24 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/template.rb, line 335
     def strict_locals!
       if @strict_locals == NONE
-        self.source.sub!(STRICT_LOCALS_REGEX, "")
+        self.source.sub!(STRICT_LOCALS_REGEX, "")
         @strict_locals = $1
 
         return if @strict_locals.nil? # Magic comment not found
 
-        @strict_locals = "**nil" if @strict_locals.blank?
+        @strict_locals = "**nil" if @strict_locals.blank?
       end
 
       @strict_locals
     end
- See on GitHub + 🔎 See on GitHub
@@ -790,7 +780,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/template.rb, line 349
@@ -798,7 +788,7 @@ 

strict_locals! end

- See on GitHub + 🔎 See on GitHub
@@ -825,15 +815,15 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/template.rb, line 237
     def supports_streaming?
-      handler.respond_to?(:supports_streaming?) && handler.supports_streaming?
+      handler.respond_to?(:supports_streaming?) && handler.supports_streaming?
     end
- See on GitHub + 🔎 See on GitHub
@@ -860,7 +850,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/template.rb, line 227
@@ -872,7 +862,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -899,7 +889,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/template.rb, line 261
@@ -907,7 +897,7 @@ 

@type ||= Types[format] end

- See on GitHub + 🔎 See on GitHub
@@ -937,15 +927,15 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/template.rb, line 530
-      def instrument(action, &block) # :doc:
-        ActiveSupport::Notifications.instrument("#{action}.action_view", instrument_payload, &block)
+      def instrument(action, &block) # :doc:
+        ActiveSupport::Notifications.instrument("#{action}.action_view", instrument_payload, &block)
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionView/Template/Handlers/Builder.html b/src/classes/ActionView/Template/Handlers/Builder.html index 81d013a993..2ad0cad69a 100644 --- a/src/classes/ActionView/Template/Handlers/Builder.html +++ b/src/classes/ActionView/Template/Handlers/Builder.html @@ -88,19 +88,19 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/template/handlers/builder.rb, line 8
       def call(template, source)
         require_engine
-        # the double assignment is to silence "assigned but unused variable" warnings
-        "xml = xml = ::Builder::XmlMarkup.new(indent: 2, target: output_buffer.raw);" \
-          "#{source};" \
-          "output_buffer.to_s"
+        # the double assignment is to silence "assigned but unused variable" warnings
+        "xml = xml = ::Builder::XmlMarkup.new(indent: 2, target: output_buffer.raw);" \
+          "#{source};" \
+          "output_buffer.to_s"
       end
- See on GitHub + 🔎 See on GitHub
@@ -130,18 +130,18 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/template/handlers/builder.rb, line 17
         def require_engine # :doc:
           @required ||= begin
-            require "builder"
+            require "builder"
             true
           end
         end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionView/Template/Handlers/ERB.html b/src/classes/ActionView/Template/Handlers/ERB.html index 2b1f224e3e..f22c036639 100644 --- a/src/classes/ActionView/Template/Handlers/ERB.html +++ b/src/classes/ActionView/Template/Handlers/ERB.html @@ -83,11 +83,6 @@

Constants

Regexp.new("\\A(<%#{ENCODING_FLAG}-?%>)[ \\t]*") - -   - - - @@ -119,7 +114,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/template/handlers/erb.rb, line 29
@@ -127,7 +122,7 @@ 

new.call(template, source) end

- See on GitHub + 🔎 See on GitHub
@@ -158,18 +153,18 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/template/handlers/erb.rb, line 61
         def call(template, source)
           # First, convert to BINARY, so in case the encoding is
           # wrong, we can still find an encoding tag
-          # (<%# encoding %>) inside the String using a regular
+          # (<%# encoding %>) inside the String using a regular
           # expression
           template_source = source.b
 
-          erb = template_source.gsub(ENCODING_TAG, "")
+          erb = template_source.gsub(ENCODING_TAG, "")
           encoding = $2
 
           erb.force_encoding valid_encoding(source.dup, encoding)
@@ -182,18 +177,18 @@ 

options = { escape: (self.class.escape_ignore_list.include? template.type), - trim: (self.class.erb_trim_mode == "-") + trim: (self.class.erb_trim_mode == "-") } - if ActionView::Base.annotate_rendered_view_with_filenames && template.format == :html - options[:preamble] = "@output_buffer.safe_append='';" - options[:postamble] = "@output_buffer.safe_append='';@output_buffer" + if ActionView::Base.annotate_rendered_view_with_filenames && template.format == :html + options[:preamble] = "@output_buffer.safe_append='<!-- BEGIN #{template.short_identifier} -->';" + options[:postamble] = "@output_buffer.safe_append='<!-- END #{template.short_identifier} -->';@output_buffer" end self.class.erb_implementation.new(erb, options).src end

- See on GitHub + 🔎 See on GitHub
@@ -220,7 +215,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/template/handlers/erb.rb, line 37
@@ -228,7 +223,7 @@ 

true end

- See on GitHub + 🔎 See on GitHub
@@ -255,7 +250,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/template/handlers/erb.rb, line 33
@@ -263,7 +258,7 @@ 

true end

- See on GitHub + 🔎 See on GitHub
@@ -290,7 +285,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/template/handlers/erb.rb, line 43
@@ -312,7 +307,7 @@ 

nil end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionView/Template/Handlers/Html.html b/src/classes/ActionView/Template/Handlers/Html.html index 1d94c9c77f..f7dc46df83 100644 --- a/src/classes/ActionView/Template/Handlers/Html.html +++ b/src/classes/ActionView/Template/Handlers/Html.html @@ -84,15 +84,15 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/template/handlers/html.rb, line 6
       def call(template, source)
-        "ActionView::OutputBuffer.new #{super}"
+        "ActionView::OutputBuffer.new #{super}"
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionView/Template/Handlers/Raw.html b/src/classes/ActionView/Template/Handlers/Raw.html index 5958cdeb8f..17b06e8bab 100644 --- a/src/classes/ActionView/Template/Handlers/Raw.html +++ b/src/classes/ActionView/Template/Handlers/Raw.html @@ -84,15 +84,15 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/template/handlers/raw.rb, line 6
       def call(template, source)
-        "#{source.inspect}.html_safe;"
+        "#{source.inspect}.html_safe;"
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionView/Template/Sources/File.html b/src/classes/ActionView/Template/Sources/File.html index 8d19f3c7c2..ae7a3bf365 100644 --- a/src/classes/ActionView/Template/Sources/File.html +++ b/src/classes/ActionView/Template/Sources/File.html @@ -87,7 +87,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/template/sources/file.rb, line 7
@@ -95,7 +95,7 @@ 

@filename = filename end

- See on GitHub + 🔎 See on GitHub
@@ -126,7 +126,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/template/sources/file.rb, line 11
@@ -134,7 +134,7 @@ 

::File.binread @filename end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionView/TemplateDetails/Requested.html b/src/classes/ActionView/TemplateDetails/Requested.html index 780b4311ba..9dc259ebb9 100644 --- a/src/classes/ActionView/TemplateDetails/Requested.html +++ b/src/classes/ActionView/TemplateDetails/Requested.html @@ -65,11 +65,6 @@

Constants

Hash.new(1).merge(nil => 0).freeze - -   - - - @@ -171,7 +166,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/template_details.rb, line 11
@@ -191,7 +186,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionView/TemplatePath.html b/src/classes/ActionView/TemplatePath.html index b026b0f825..673978c00e 100644 --- a/src/classes/ActionView/TemplatePath.html +++ b/src/classes/ActionView/TemplatePath.html @@ -175,7 +175,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/template_path.rb, line 43
@@ -183,7 +183,7 @@ 

new name, prefix, partial, virtual(name, prefix, partial) end

- See on GitHub + 🔎 See on GitHub
@@ -210,7 +210,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/template_path.rb, line 47
@@ -221,7 +221,7 @@ 

@virtual = virtual end

- See on GitHub + 🔎 See on GitHub
@@ -248,25 +248,25 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/template_path.rb, line 28
     def self.parse(virtual)
-      if nameidx = virtual.rindex("/")
+      if nameidx = virtual.rindex("/")
         prefix = virtual[0, nameidx]
         name = virtual.from(nameidx + 1)
-        prefix = prefix[1..] if prefix.start_with?("/")
+        prefix = prefix[1..] if prefix.start_with?("/")
       else
-        prefix = ""
+        prefix = ""
         name = virtual
       end
-      partial = name.start_with?("_")
+      partial = name.start_with?("_")
       name = name[1..] if partial
       new name, prefix, partial, virtual
     end
- See on GitHub + 🔎 See on GitHub
@@ -293,21 +293,21 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/template_path.rb, line 17
     def self.virtual(name, prefix, partial)
       if prefix.empty?
-        "#{partial ? "_" : ""}#{name}"
+        "#{partial ? "_" : ""}#{name}"
       elsif partial
-        "#{prefix}/_#{name}"
+        "#{prefix}/_#{name}"
       else
-        "#{prefix}/#{name}"
+        "#{prefix}/#{name}"
       end
     end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionView/TestCase/Behavior.html b/src/classes/ActionView/TestCase/Behavior.html index 8dc11c1b9c..ed8c15d2ed 100644 --- a/src/classes/ActionView/TestCase/Behavior.html +++ b/src/classes/ActionView/TestCase/Behavior.html @@ -212,11 +212,6 @@

Constants

] - -   - - - @@ -279,7 +274,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/test_case.rb, line 296
@@ -287,7 +282,7 @@ 

@controller._routes if @controller.respond_to?(:_routes) end

- See on GitHub + 🔎 See on GitHub
@@ -314,7 +309,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/test_case.rb, line 213
@@ -322,7 +317,7 @@ 

controller._test_case end

- See on GitHub + 🔎 See on GitHub
@@ -349,7 +344,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/test_case.rb, line 231
@@ -357,7 +352,7 @@ 

@controller.config if @controller.respond_to?(:config) end

- See on GitHub + 🔎 See on GitHub
@@ -384,7 +379,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/test_case.rb, line 209
@@ -392,7 +387,7 @@ 

false end

- See on GitHub + 🔎 See on GitHub
@@ -419,17 +414,17 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/test_case.rb, line 235
-      def render(options = {}, local_assigns = {}, &block)
+      def render(options = {}, local_assigns = {}, &block)
         view.assign(view_assigns)
-        @rendered << output = view.render(options, local_assigns, &block)
+        @rendered << output = view.render(options, local_assigns, &block)
         output
       end
- See on GitHub + 🔎 See on GitHub
@@ -499,7 +494,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/test_case.rb, line 292
@@ -507,7 +502,7 @@ 

@_rendered ||= self.class.content_class.new(@rendered) end

- See on GitHub + 🔎 See on GitHub
@@ -534,7 +529,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/test_case.rb, line 241
@@ -542,7 +537,7 @@ 

@_rendered_views ||= RenderedViewsCollection.new end

- See on GitHub + 🔎 See on GitHub
@@ -569,7 +564,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/test_case.rb, line 219
@@ -579,13 +574,13 @@ 

@request = @controller.request @view_flow = ActionView::OutputFlow.new @output_buffer = ActionView::OutputBuffer.new - @rendered = +"" + @rendered = +"" test_case_instance = self controller_class.define_method(:_test_case) { test_case_instance } end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionView/TestCase/Behavior/ClassMethods.html b/src/classes/ActionView/TestCase/Behavior/ClassMethods.html index 2bdcb5f58c..6c0d6bf254 100644 --- a/src/classes/ActionView/TestCase/Behavior/ClassMethods.html +++ b/src/classes/ActionView/TestCase/Behavior/ClassMethods.html @@ -112,17 +112,17 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/test_case.rb, line 162
         def determine_default_helper_class(name)
           determine_constant_from_test_name(name) do |constant|
-            Module === constant && !(Class === constant)
+            Module === constant && !(Class === constant)
           end
         end
- See on GitHub + 🔎 See on GitHub
@@ -149,7 +149,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/test_case.rb, line 182
@@ -157,7 +157,7 @@ 

@helper_class ||= determine_default_helper_class(name) end

- See on GitHub + 🔎 See on GitHub
@@ -184,23 +184,23 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/test_case.rb, line 168
         def helper_method(*methods)
           # Almost a duplicate from ActionController::Helpers
           methods.flatten.each do |method|
-            _helpers_for_modification.module_eval <<~end_eval, __FILE__, __LINE__ + 1
-              def #{method}(*args, &block)                    # def current_user(*args, &block)
-                _test_case.send(:'#{method}', *args, &block)  #   _test_case.send(:'current_user', *args, &block)
+            _helpers_for_modification.module_eval <<~end_eval, __FILE__, __LINE__ + 1
+              def #{method}(*args, &block)                    # def current_user(*args, &block)
+                _test_case.send(:'#{method}', *args, &block)  #   _test_case.send(:'current_user', *args, &block)
               end                                             # end
-              ruby2_keywords(:'#{method}')
+              ruby2_keywords(:'#{method}')
             end_eval
           end
         end
- See on GitHub + 🔎 See on GitHub
@@ -227,7 +227,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/test_case.rb, line 186
@@ -236,7 +236,7 @@ 

super end

- See on GitHub + 🔎 See on GitHub
@@ -334,18 +334,18 @@

Examples

- Source code + 📝 Source code
# File actionview/lib/action_view/test_case.rb, line 146
-        def register_parser(format, callable = nil, &block)
+        def register_parser(format, callable = nil, &block)
           parser = callable || block || :itself.to_proc
           content_class.redefine_method(format) do
             parser.call(to_s)
           end
         end
- See on GitHub + 🔎 See on GitHub
@@ -372,20 +372,20 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/test_case.rb, line 153
         def tests(helper_class)
           case helper_class
           when String, Symbol
-            self.helper_class = "#{helper_class.to_s.underscore}_helper".camelize.safe_constantize
+            self.helper_class = "#{helper_class.to_s.underscore}_helper".camelize.safe_constantize
           when Module
             self.helper_class = helper_class
           end
         end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionView/TestCase/Behavior/Locals.html b/src/classes/ActionView/TestCase/Behavior/Locals.html index ce912e1840..00d890130c 100644 --- a/src/classes/ActionView/TestCase/Behavior/Locals.html +++ b/src/classes/ActionView/TestCase/Behavior/Locals.html @@ -92,7 +92,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/test_case.rb, line 338
@@ -111,7 +111,7 @@ 

super end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionView/TestCase/Behavior/RenderedViewsCollection.html b/src/classes/ActionView/TestCase/Behavior/RenderedViewsCollection.html index 5fe37bcbc0..265901deab 100644 --- a/src/classes/ActionView/TestCase/Behavior/RenderedViewsCollection.html +++ b/src/classes/ActionView/TestCase/Behavior/RenderedViewsCollection.html @@ -105,7 +105,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/test_case.rb, line 305
@@ -113,7 +113,7 @@ 

@rendered_views ||= Hash.new { |hash, key| hash[key] = [] } end

- See on GitHub + 🔎 See on GitHub
@@ -144,16 +144,16 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/test_case.rb, line 309
         def add(view, locals)
           @rendered_views[view] ||= []
-          @rendered_views[view] << locals
+          @rendered_views[view] << locals
         end
- See on GitHub + 🔎 See on GitHub
@@ -180,7 +180,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/test_case.rb, line 314
@@ -188,7 +188,7 @@ 

@rendered_views[view] end

- See on GitHub + 🔎 See on GitHub
@@ -215,7 +215,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/test_case.rb, line 318
@@ -223,7 +223,7 @@ 

@rendered_views.keys end

- See on GitHub + 🔎 See on GitHub
@@ -250,7 +250,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/test_case.rb, line 322
@@ -260,7 +260,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionView/TestCase/TestController.html b/src/classes/ActionView/TestCase/TestController.html index c40c6a20c0..0b4f2f66fc 100644 --- a/src/classes/ActionView/TestCase/TestController.html +++ b/src/classes/ActionView/TestCase/TestController.html @@ -143,15 +143,15 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/test_case.rb, line 30
       def self.controller_name
-        "test"
+        "test"
       end
- See on GitHub + 🔎 See on GitHub
@@ -178,21 +178,21 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/test_case.rb, line 34
       def initialize
         super
-        self.class.controller_path = ""
+        self.class.controller_path = ""
         @request = ActionController::TestRequest.create(self.class)
         @response = ActionDispatch::TestResponse.new
 
-        @request.env.delete("PATH_INFO")
+        @request.env.delete("PATH_INFO")
         @params = ActionController::Parameters.new
       end
- See on GitHub + 🔎 See on GitHub
@@ -223,7 +223,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/test_case.rb, line 26
@@ -231,7 +231,7 @@ 

self.class.controller_path = path end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionView/UnboundTemplate.html b/src/classes/ActionView/UnboundTemplate.html index 07ad3db6c1..9c0998115a 100644 --- a/src/classes/ActionView/UnboundTemplate.html +++ b/src/classes/ActionView/UnboundTemplate.html @@ -109,7 +109,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/unbound_template.rb, line 10
@@ -123,7 +123,7 @@ 

@write_lock = Mutex.new end

- See on GitHub + 🔎 See on GitHub
@@ -154,7 +154,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/unbound_template.rb, line 20
@@ -167,7 +167,7 @@ 

# while holding the lock. template = (@templates[normalized_locals] ||= build_template(normalized_locals)) - # This may have already been assigned, but we've already de-dup'd so + # This may have already been assigned, but we've already de-dup'd so # reassignment is fine. @templates[locals.dup] = template @@ -182,7 +182,7 @@

template end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionView/VERSION.html b/src/classes/ActionView/VERSION.html index 1f56ce63df..2312c5ac15 100644 --- a/src/classes/ActionView/VERSION.html +++ b/src/classes/ActionView/VERSION.html @@ -50,11 +50,6 @@

Constants

7 - -   - - - MINOR @@ -62,11 +57,6 @@

Constants

1 - -   - - - PRE @@ -74,11 +64,6 @@

Constants

nil - -   - - - STRING @@ -86,11 +71,6 @@

Constants

[MAJOR, MINOR, TINY, PRE].compact.join(".") - -   - - - TINY @@ -98,11 +78,6 @@

Constants

0 - -   - - - diff --git a/src/classes/ActionView/ViewPaths.html b/src/classes/ActionView/ViewPaths.html index 527048ab4b..e640decfcb 100644 --- a/src/classes/ActionView/ViewPaths.html +++ b/src/classes/ActionView/ViewPaths.html @@ -108,7 +108,7 @@

Parameters

- Source code + 📝 Source code
# File actionview/lib/action_view/view_paths.rb, line 103
@@ -116,7 +116,7 @@ 

Parameters

lookup_context.append_view_paths(self.class._build_view_paths(path)) end
- See on GitHub + 🔎 See on GitHub
@@ -143,7 +143,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/view_paths.rb, line 93
@@ -151,7 +151,7 @@ 

{} end

- See on GitHub + 🔎 See on GitHub
@@ -178,7 +178,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/view_paths.rb, line 88
@@ -187,7 +187,7 @@ 

ActionView::LookupContext.new(self.class._view_paths, details_for_lookup, _prefixes) end

- See on GitHub + 🔎 See on GitHub
@@ -219,7 +219,7 @@

Parameters

- Source code + 📝 Source code
# File actionview/lib/action_view/view_paths.rb, line 113
@@ -227,7 +227,7 @@ 

Parameters

lookup_context.prepend_view_paths(self.class._build_view_paths(path)) end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActionView/ViewPaths/ClassMethods.html b/src/classes/ActionView/ViewPaths/ClassMethods.html index 5d8f5f9686..f2ca88ddab 100644 --- a/src/classes/ActionView/ViewPaths/ClassMethods.html +++ b/src/classes/ActionView/ViewPaths/ClassMethods.html @@ -98,7 +98,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/view_paths.rb, line 15
@@ -106,7 +106,7 @@ 

ActionView::PathRegistry.get_view_paths(self) end

- See on GitHub + 🔎 See on GitHub
@@ -133,7 +133,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/view_paths.rb, line 19
@@ -141,7 +141,7 @@ 

ActionView::PathRegistry.set_view_paths(self, paths) end

- See on GitHub + 🔎 See on GitHub
@@ -173,7 +173,7 @@

Parameters

- Source code + 📝 Source code
# File actionview/lib/action_view/view_paths.rb, line 44
@@ -181,7 +181,7 @@ 

Parameters

self._view_paths = view_paths + _build_view_paths(path) end
- See on GitHub + 🔎 See on GitHub
@@ -213,7 +213,7 @@

Parameters

- Source code + 📝 Source code
# File actionview/lib/action_view/view_paths.rb, line 54
@@ -221,7 +221,7 @@ 

Parameters

self._view_paths = _build_view_paths(path) + view_paths end
- See on GitHub + 🔎 See on GitHub
@@ -248,7 +248,7 @@

- Source code + 📝 Source code
# File actionview/lib/action_view/view_paths.rb, line 59
@@ -256,7 +256,7 @@ 

_view_paths end

- See on GitHub + 🔎 See on GitHub
@@ -288,7 +288,7 @@

Parameters

- Source code + 📝 Source code
# File actionview/lib/action_view/view_paths.rb, line 68
@@ -296,7 +296,7 @@ 

Parameters

self._view_paths = _build_view_paths(paths) end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveJob.html b/src/classes/ActiveJob.html index 52ee16b434..5e958a2494 100644 --- a/src/classes/ActiveJob.html +++ b/src/classes/ActiveJob.html @@ -342,7 +342,7 @@

- Source code + 📝 Source code
# File activejob/lib/active_job/gem_version.rb, line 5
@@ -350,7 +350,7 @@ 

Gem::Version.new VERSION::STRING end

- See on GitHub + 🔎 See on GitHub
@@ -377,13 +377,13 @@

- Source code + 📝 Source code
# File activejob/lib/active_job/enqueuing.rb, line 16
     def perform_all_later(*jobs)
       jobs.flatten!
-      jobs.group_by(&:queue_adapter).each do |queue_adapter, adapter_jobs|
+      jobs.group_by(&:queue_adapter).each do |queue_adapter, adapter_jobs|
         instrument_enqueue_all(queue_adapter, adapter_jobs) do
           if queue_adapter.respond_to?(:enqueue_all)
             queue_adapter.enqueue_all(adapter_jobs)
@@ -396,17 +396,17 @@ 

queue_adapter.enqueue(job) end job.successfully_enqueued = true - rescue EnqueueError => e + rescue EnqueueError => e job.enqueue_error = e end - adapter_jobs.count(&:successfully_enqueued?) + adapter_jobs.count(&:successfully_enqueued?) end end end nil end

- See on GitHub + 🔎 See on GitHub
@@ -433,14 +433,14 @@

- Source code + 📝 Source code
# File activejob/lib/active_job.rb, line 53
   singleton_class.attr_accessor :use_big_decimal_serializer
 
- See on GitHub + 🔎 See on GitHub
@@ -467,7 +467,7 @@

- Source code + 📝 Source code
# File activejob/lib/active_job/version.rb, line 7
@@ -475,7 +475,7 @@ 

gem_version end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveJob/Arguments.html b/src/classes/ActiveJob/Arguments.html index b1592b8df4..1604da233c 100644 --- a/src/classes/ActiveJob/Arguments.html +++ b/src/classes/ActiveJob/Arguments.html @@ -86,7 +86,7 @@

- Source code + 📝 Source code
# File activejob/lib/active_job/arguments.rb, line 42
@@ -96,7 +96,7 @@ 

raise DeserializationError end

- See on GitHub + 🔎 See on GitHub
@@ -123,7 +123,7 @@

- Source code + 📝 Source code
# File activejob/lib/active_job/arguments.rb, line 34
@@ -131,7 +131,7 @@ 

arguments.map { |argument| serialize_argument(argument) } end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveJob/Callbacks/ClassMethods.html b/src/classes/ActiveJob/Callbacks/ClassMethods.html index adb0069ad9..51f377e9a9 100644 --- a/src/classes/ActiveJob/Callbacks/ClassMethods.html +++ b/src/classes/ActiveJob/Callbacks/ClassMethods.html @@ -117,15 +117,15 @@

- Source code + 📝 Source code
# File activejob/lib/active_job/callbacks.rb, line 143
-      def after_enqueue(*filters, &blk)
-        set_callback(:enqueue, :after, *filters, &blk)
+      def after_enqueue(*filters, &blk)
+        set_callback(:enqueue, :after, *filters, &blk)
       end
- See on GitHub + 🔎 See on GitHub
@@ -165,15 +165,15 @@

- Source code + 📝 Source code
# File activejob/lib/active_job/callbacks.rb, line 72
-      def after_perform(*filters, &blk)
-        set_callback(:perform, :after, *filters, &blk)
+      def after_perform(*filters, &blk)
+        set_callback(:perform, :after, *filters, &blk)
       end
- See on GitHub + 🔎 See on GitHub
@@ -215,15 +215,15 @@

- Source code + 📝 Source code
# File activejob/lib/active_job/callbacks.rb, line 164
-      def around_enqueue(*filters, &blk)
-        set_callback(:enqueue, :around, *filters, &blk)
+      def around_enqueue(*filters, &blk)
+        set_callback(:enqueue, :around, *filters, &blk)
       end
- See on GitHub + 🔎 See on GitHub
@@ -279,15 +279,15 @@

- Source code + 📝 Source code
# File activejob/lib/active_job/callbacks.rb, line 105
-      def around_perform(*filters, &blk)
-        set_callback(:perform, :around, *filters, &blk)
+      def around_perform(*filters, &blk)
+        set_callback(:perform, :around, *filters, &blk)
       end
- See on GitHub + 🔎 See on GitHub
@@ -327,15 +327,15 @@

- Source code + 📝 Source code
# File activejob/lib/active_job/callbacks.rb, line 124
-      def before_enqueue(*filters, &blk)
-        set_callback(:enqueue, :before, *filters, &blk)
+      def before_enqueue(*filters, &blk)
+        set_callback(:enqueue, :before, *filters, &blk)
       end
- See on GitHub + 🔎 See on GitHub
@@ -375,15 +375,15 @@

- Source code + 📝 Source code
# File activejob/lib/active_job/callbacks.rb, line 53
-      def before_perform(*filters, &blk)
-        set_callback(:perform, :before, *filters, &blk)
+      def before_perform(*filters, &blk)
+        set_callback(:perform, :before, *filters, &blk)
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveJob/Core.html b/src/classes/ActiveJob/Core.html index a35f953272..a39a701cfa 100644 --- a/src/classes/ActiveJob/Core.html +++ b/src/classes/ActiveJob/Core.html @@ -224,7 +224,7 @@

- Source code + 📝 Source code
# File activejob/lib/active_job/core.rb, line 95
@@ -237,10 +237,10 @@ 

@priority = self.class.priority @executions = 0 @exception_executions = {} - @timezone = Time.zone&.name + @timezone = Time.zone&.name end

- See on GitHub + 🔎 See on GitHub
@@ -296,25 +296,25 @@

Examples

- Source code + 📝 Source code
# File activejob/lib/active_job/core.rb, line 153
     def deserialize(job_data)
-      self.job_id               = job_data["job_id"]
-      self.provider_job_id      = job_data["provider_job_id"]
-      self.queue_name           = job_data["queue_name"]
-      self.priority             = job_data["priority"]
-      self.serialized_arguments = job_data["arguments"]
-      self.executions           = job_data["executions"]
-      self.exception_executions = job_data["exception_executions"]
-      self.locale               = job_data["locale"] || I18n.locale.to_s
-      self.timezone             = job_data["timezone"] || Time.zone&.name
-      self.enqueued_at          = Time.iso8601(job_data["enqueued_at"]) if job_data["enqueued_at"]
-      self.scheduled_at         = Time.iso8601(job_data["scheduled_at"]) if job_data["scheduled_at"]
+      self.job_id               = job_data["job_id"]
+      self.provider_job_id      = job_data["provider_job_id"]
+      self.queue_name           = job_data["queue_name"]
+      self.priority             = job_data["priority"]
+      self.serialized_arguments = job_data["arguments"]
+      self.executions           = job_data["executions"]
+      self.exception_executions = job_data["exception_executions"]
+      self.locale               = job_data["locale"] || I18n.locale.to_s
+      self.timezone             = job_data["timezone"] || Time.zone&.name
+      self.enqueued_at          = Time.iso8601(job_data["enqueued_at"]) if job_data["enqueued_at"]
+      self.scheduled_at         = Time.iso8601(job_data["scheduled_at"]) if job_data["scheduled_at"]
     end
- See on GitHub + 🔎 See on GitHub
@@ -341,13 +341,13 @@

- Source code + 📝 Source code
# File activejob/lib/active_job/core.rb, line 177
     def scheduled_at=(value)
-      @_scheduled_at_time = if value&.is_a?(Numeric)
-        ActiveJob.deprecator.warn(<<~MSG.squish)
+      @_scheduled_at_time = if value&.is_a?(Numeric)
+        ActiveJob.deprecator.warn(<<~MSG.squish)
           Assigning a numeric/epoch value to scheduled_at is deprecated. Use a Time object instead.
         MSG
         Time.at(value)
@@ -357,7 +357,7 @@ 

@scheduled_at = value end

- See on GitHub + 🔎 See on GitHub
@@ -384,28 +384,28 @@

- Source code + 📝 Source code
# File activejob/lib/active_job/core.rb, line 110
     def serialize
       {
-        "job_class"  => self.class.name,
-        "job_id"     => job_id,
-        "provider_job_id" => provider_job_id,
-        "queue_name" => queue_name,
-        "priority"   => priority,
-        "arguments"  => serialize_arguments_if_needed(arguments),
-        "executions" => executions,
-        "exception_executions" => exception_executions,
-        "locale"     => I18n.locale.to_s,
-        "timezone"   => timezone,
-        "enqueued_at" => Time.now.utc.iso8601(9),
-        "scheduled_at" => _scheduled_at_time ? _scheduled_at_time.utc.iso8601(9) : nil,
+        "job_class"  => self.class.name,
+        "job_id"     => job_id,
+        "provider_job_id" => provider_job_id,
+        "queue_name" => queue_name,
+        "priority"   => priority,
+        "arguments"  => serialize_arguments_if_needed(arguments),
+        "executions" => executions,
+        "exception_executions" => exception_executions,
+        "locale"     => I18n.locale.to_s,
+        "timezone"   => timezone,
+        "enqueued_at" => Time.now.utc.iso8601(9),
+        "scheduled_at" => _scheduled_at_time ? _scheduled_at_time.utc.iso8601(9) : nil,
       }
     end
- See on GitHub + 🔎 See on GitHub
@@ -432,7 +432,7 @@

- Source code + 📝 Source code
# File activejob/lib/active_job/core.rb, line 53
@@ -440,7 +440,7 @@ 

@successfully_enqueued end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveJob/Core/ClassMethods.html b/src/classes/ActiveJob/Core/ClassMethods.html index 2a809a4841..c226e48e1c 100644 --- a/src/classes/ActiveJob/Core/ClassMethods.html +++ b/src/classes/ActiveJob/Core/ClassMethods.html @@ -88,17 +88,17 @@

- Source code + 📝 Source code
# File activejob/lib/active_job/core.rb, line 64
       def deserialize(job_data)
-        job = job_data["job_class"].constantize.new
+        job = job_data["job_class"].constantize.new
         job.deserialize(job_data)
         job
       end
- See on GitHub + 🔎 See on GitHub
@@ -146,7 +146,7 @@

Examples

- Source code + 📝 Source code
# File activejob/lib/active_job/core.rb, line 88
@@ -154,7 +154,7 @@ 

Examples

ConfiguredJob.new(self, options) end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveJob/Enqueuing.html b/src/classes/ActiveJob/Enqueuing.html index 07d101fcda..5391e0cd88 100644 --- a/src/classes/ActiveJob/Enqueuing.html +++ b/src/classes/ActiveJob/Enqueuing.html @@ -111,7 +111,7 @@

Examples

- Source code + 📝 Source code
# File activejob/lib/active_job/enqueuing.rb, line 89
@@ -127,7 +127,7 @@ 

Examples

end self.successfully_enqueued = true - rescue EnqueueError => e + rescue EnqueueError => e self.enqueue_error = e end @@ -138,7 +138,7 @@

Examples

end end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveJob/Enqueuing/ClassMethods.html b/src/classes/ActiveJob/Enqueuing/ClassMethods.html index 640c89c681..8bba0f71e0 100644 --- a/src/classes/ActiveJob/Enqueuing/ClassMethods.html +++ b/src/classes/ActiveJob/Enqueuing/ClassMethods.html @@ -92,7 +92,7 @@

- Source code + 📝 Source code
# File activejob/lib/active_job/enqueuing.rb, line 58
@@ -105,7 +105,7 @@ 

enqueue_result end

- See on GitHub + 🔎 See on GitHub
@@ -135,7 +135,7 @@

- Source code + 📝 Source code
# File activejob/lib/active_job/enqueuing.rb, line 68
@@ -143,7 +143,7 @@ 

args.first.is_a?(self) ? args.first : new(*args) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveJob/Exceptions.html b/src/classes/ActiveJob/Exceptions.html index b2b367991d..e00af71afe 100644 --- a/src/classes/ActiveJob/Exceptions.html +++ b/src/classes/ActiveJob/Exceptions.html @@ -121,7 +121,7 @@

Examples

- Source code + 📝 Source code
# File activejob/lib/active_job/exceptions.rb, line 157
@@ -131,7 +131,7 @@ 

Examples

end end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveJob/Exceptions/ClassMethods.html b/src/classes/ActiveJob/Exceptions/ClassMethods.html index df86c21f5f..def5d7b568 100644 --- a/src/classes/ActiveJob/Exceptions/ClassMethods.html +++ b/src/classes/ActiveJob/Exceptions/ClassMethods.html @@ -98,15 +98,15 @@

Example

- Source code + 📝 Source code
# File activejob/lib/active_job/exceptions.rb, line 130
-      def after_discard(&blk)
+      def after_discard(&blk)
         self.after_discard_procs += [blk]
       end
- See on GitHub + 🔎 See on GitHub
@@ -152,7 +152,7 @@

Example

- Source code + 📝 Source code
# File activejob/lib/active_job/exceptions.rb, line 109
@@ -165,7 +165,7 @@ 

Example

end end
- See on GitHub + 🔎 See on GitHub
@@ -235,20 +235,20 @@

Examples

- Source code + 📝 Source code
# File activejob/lib/active_job/exceptions.rb, line 62
       def retry_on(*exceptions, wait: 3.seconds, attempts: 5, queue: nil, priority: nil, jitter: JITTER_DEFAULT)
         if wait == :exponentially_longer
-          ActiveJob.deprecator.warn(<<~MSG.squish)
+          ActiveJob.deprecator.warn(<<~MSG.squish)
             `wait: :exponentially_longer` will actually wait polynomially longer and is therefore deprecated.
             Prefer `wait: :polynomially_longer` to avoid confusion and keep the same behavior.
           MSG
         end
         rescue_from(*exceptions) do |error|
           executions = executions_for(exceptions)
-          if attempts == :unlimited || executions < attempts
+          if attempts == :unlimited || executions < attempts
             retry_job wait: determine_delay(seconds_or_duration_or_algorithm: wait, executions: executions, jitter: jitter), queue: queue, priority: priority, error: error
           else
             if block_given?
@@ -265,7 +265,7 @@ 

Examples

end end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveJob/Execution.html b/src/classes/ActiveJob/Execution.html index 53e0bf8ecc..f071725a3b 100644 --- a/src/classes/ActiveJob/Execution.html +++ b/src/classes/ActiveJob/Execution.html @@ -117,7 +117,7 @@

- Source code + 📝 Source code
# File activejob/lib/active_job/execution.rb, line 61
@@ -125,7 +125,7 @@ 

fail NotImplementedError end

- See on GitHub + 🔎 See on GitHub
@@ -161,7 +161,7 @@

- Source code + 📝 Source code
# File activejob/lib/active_job/execution.rb, line 46
@@ -172,7 +172,7 @@ 

deserialize_arguments_if_needed _perform_job - rescue Exception => exception + rescue Exception => exception handled = rescue_with_handler(exception) return handled if handled @@ -180,7 +180,7 @@

raise end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveJob/Execution/ClassMethods.html b/src/classes/ActiveJob/Execution/ClassMethods.html index 6943e4c5b2..44c2fd4bfc 100644 --- a/src/classes/ActiveJob/Execution/ClassMethods.html +++ b/src/classes/ActiveJob/Execution/ClassMethods.html @@ -87,7 +87,7 @@

- Source code + 📝 Source code
# File activejob/lib/active_job/execution.rb, line 23
@@ -95,7 +95,7 @@ 

job_or_instantiate(...).perform_now end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveJob/QueueAdapter/ClassMethods.html b/src/classes/ActiveJob/QueueAdapter/ClassMethods.html index 631106f793..a9e222613f 100644 --- a/src/classes/ActiveJob/QueueAdapter/ClassMethods.html +++ b/src/classes/ActiveJob/QueueAdapter/ClassMethods.html @@ -73,11 +73,6 @@

Constants

[:enqueue, :enqueue_at].freeze - -   - - - @@ -110,7 +105,7 @@

- Source code + 📝 Source code
# File activejob/lib/active_job/queue_adapter.rb, line 35
@@ -118,7 +113,7 @@ 

_queue_adapter end

- See on GitHub + 🔎 See on GitHub
@@ -145,7 +140,7 @@

- Source code + 📝 Source code
# File activejob/lib/active_job/queue_adapter.rb, line 48
@@ -164,7 +159,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -191,7 +186,7 @@

- Source code + 📝 Source code
# File activejob/lib/active_job/queue_adapter.rb, line 41
@@ -199,7 +194,7 @@ 

_queue_adapter_name end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveJob/QueueAdapters.html b/src/classes/ActiveJob/QueueAdapters.html index 0b885772ee..a8d210d75f 100644 --- a/src/classes/ActiveJob/QueueAdapters.html +++ b/src/classes/ActiveJob/QueueAdapters.html @@ -249,15 +249,15 @@

- Source code + 📝 Source code
# File activejob/lib/active_job/queue_adapters.rb, line 137
       def lookup(name)
-        const_get(name.to_s.camelize << ADAPTER)
+        const_get(name.to_s.camelize << ADAPTER)
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveJob/QueueAdapters/AsyncAdapter.html b/src/classes/ActiveJob/QueueAdapters/AsyncAdapter.html index 951977bdf0..87470bcc15 100644 --- a/src/classes/ActiveJob/QueueAdapters/AsyncAdapter.html +++ b/src/classes/ActiveJob/QueueAdapters/AsyncAdapter.html @@ -108,7 +108,7 @@

- Source code + 📝 Source code
# File activejob/lib/active_job/queue_adapters/async_adapter.rb, line 35
@@ -116,7 +116,7 @@ 

@scheduler = Scheduler.new(**executor_options) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveJob/QueueAdapters/QueueClassicAdapter.html b/src/classes/ActiveJob/QueueAdapters/QueueClassicAdapter.html index 5572e8dc70..bcabe588bc 100644 --- a/src/classes/ActiveJob/QueueAdapters/QueueClassicAdapter.html +++ b/src/classes/ActiveJob/QueueAdapters/QueueClassicAdapter.html @@ -101,7 +101,7 @@

- Source code + 📝 Source code
# File activejob/lib/active_job/queue_adapters/queue_classic_adapter.rb, line 45
@@ -109,7 +109,7 @@ 

QC::Queue.new(queue_name) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveJob/QueueAdapters/SneakersAdapter.html b/src/classes/ActiveJob/QueueAdapters/SneakersAdapter.html index c6e19d7d52..7d9573eb79 100644 --- a/src/classes/ActiveJob/QueueAdapters/SneakersAdapter.html +++ b/src/classes/ActiveJob/QueueAdapters/SneakersAdapter.html @@ -98,7 +98,7 @@

- Source code + 📝 Source code
# File activejob/lib/active_job/queue_adapters/sneakers_adapter.rb, line 21
@@ -106,7 +106,7 @@ 

@monitor = Monitor.new end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveJob/QueueAdapters/TestAdapter.html b/src/classes/ActiveJob/QueueAdapters/TestAdapter.html index 965faa1a75..948846382f 100644 --- a/src/classes/ActiveJob/QueueAdapters/TestAdapter.html +++ b/src/classes/ActiveJob/QueueAdapters/TestAdapter.html @@ -171,7 +171,7 @@

- Source code + 📝 Source code
# File activejob/lib/active_job/queue_adapters/test_adapter.rb, line 19
@@ -179,7 +179,7 @@ 

@enqueued_jobs ||= [] end

- See on GitHub + 🔎 See on GitHub
@@ -206,7 +206,7 @@

- Source code + 📝 Source code
# File activejob/lib/active_job/queue_adapters/test_adapter.rb, line 24
@@ -214,7 +214,7 @@ 

@performed_jobs ||= [] end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveJob/QueueName.html b/src/classes/ActiveJob/QueueName.html index 9e7516a166..f4cd0a50d9 100644 --- a/src/classes/ActiveJob/QueueName.html +++ b/src/classes/ActiveJob/QueueName.html @@ -91,18 +91,18 @@

- Source code + 📝 Source code
# File activejob/lib/active_job/queue_name.rb, line 61
     def queue_name
       if @queue_name.is_a?(Proc)
-        @queue_name = self.class.queue_name_from_part(instance_exec(&@queue_name))
+        @queue_name = self.class.queue_name_from_part(instance_exec(&@queue_name))
       end
       @queue_name
     end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveJob/QueueName/ClassMethods.html b/src/classes/ActiveJob/QueueName/ClassMethods.html index fd863b02d6..c03e7b483a 100644 --- a/src/classes/ActiveJob/QueueName/ClassMethods.html +++ b/src/classes/ActiveJob/QueueName/ClassMethods.html @@ -112,11 +112,11 @@

- Source code + 📝 Source code
# File activejob/lib/active_job/queue_name.rb, line 39
-      def queue_as(part_name = nil, &block)
+      def queue_as(part_name = nil, &block)
         if block_given?
           self.queue_name = block
         else
@@ -124,7 +124,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveJob/QueuePriority.html b/src/classes/ActiveJob/QueuePriority.html index d3d2c5d0c6..8084184764 100644 --- a/src/classes/ActiveJob/QueuePriority.html +++ b/src/classes/ActiveJob/QueuePriority.html @@ -91,18 +91,18 @@

- Source code + 📝 Source code
# File activejob/lib/active_job/queue_priority.rb, line 53
     def priority
       if @priority.is_a?(Proc)
-        @priority = instance_exec(&@priority)
+        @priority = instance_exec(&@priority)
       end
       @priority
     end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveJob/QueuePriority/ClassMethods.html b/src/classes/ActiveJob/QueuePriority/ClassMethods.html index 6985ef49e4..f5d7f4fa29 100644 --- a/src/classes/ActiveJob/QueuePriority/ClassMethods.html +++ b/src/classes/ActiveJob/QueuePriority/ClassMethods.html @@ -112,11 +112,11 @@

- Source code + 📝 Source code
# File activejob/lib/active_job/queue_priority.rb, line 39
-      def queue_with_priority(priority = nil, &block)
+      def queue_with_priority(priority = nil, &block)
         if block_given?
           self.priority = block
         else
@@ -124,7 +124,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveJob/Serializers/ObjectSerializer.html b/src/classes/ActiveJob/Serializers/ObjectSerializer.html index d9db01180d..37a54184e3 100644 --- a/src/classes/ActiveJob/Serializers/ObjectSerializer.html +++ b/src/classes/ActiveJob/Serializers/ObjectSerializer.html @@ -135,7 +135,7 @@

- Source code + 📝 Source code
# File activejob/lib/active_job/serializers/object_serializer.rb, line 42
@@ -143,7 +143,7 @@ 

raise NotImplementedError end

- See on GitHub + 🔎 See on GitHub
@@ -170,15 +170,15 @@

- Source code + 📝 Source code
# File activejob/lib/active_job/serializers/object_serializer.rb, line 37
       def serialize(hash)
-        { Arguments::OBJECT_SERIALIZER_KEY => self.class.name }.merge!(hash)
+        { Arguments::OBJECT_SERIALIZER_KEY => self.class.name }.merge!(hash)
       end
- See on GitHub + 🔎 See on GitHub
@@ -205,7 +205,7 @@

- Source code + 📝 Source code
# File activejob/lib/active_job/serializers/object_serializer.rb, line 32
@@ -213,7 +213,7 @@ 

argument.is_a?(klass) end

- See on GitHub + 🔎 See on GitHub
@@ -243,7 +243,7 @@

- Source code + 📝 Source code
# File activejob/lib/active_job/serializers/object_serializer.rb, line 48
@@ -251,7 +251,7 @@ 

raise NotImplementedError end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveJob/Serializers/RangeSerializer.html b/src/classes/ActiveJob/Serializers/RangeSerializer.html index e14263bc0f..18fac9cc50 100644 --- a/src/classes/ActiveJob/Serializers/RangeSerializer.html +++ b/src/classes/ActiveJob/Serializers/RangeSerializer.html @@ -69,11 +69,6 @@

Constants

%w[begin end exclude_end].freeze - -   - - - @@ -106,7 +101,7 @@

- Source code + 📝 Source code
# File activejob/lib/active_job/serializers/range_serializer.rb, line 13
@@ -114,7 +109,7 @@ 

klass.new(*Arguments.deserialize(hash.values_at(*KEYS))) end

- See on GitHub + 🔎 See on GitHub
@@ -141,7 +136,7 @@

- Source code + 📝 Source code
# File activejob/lib/active_job/serializers/range_serializer.rb, line 8
@@ -150,7 +145,7 @@ 

super(KEYS.zip(args).to_h) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveJob/TestHelper.html b/src/classes/ActiveJob/TestHelper.html index 699c1f9d4d..017cf9a19d 100644 --- a/src/classes/ActiveJob/TestHelper.html +++ b/src/classes/ActiveJob/TestHelper.html @@ -198,15 +198,15 @@

- Source code + 📝 Source code
# File activejob/lib/active_job/test_helper.rb, line 123
-    def assert_enqueued_jobs(number, only: nil, except: nil, queue: nil, &block)
+    def assert_enqueued_jobs(number, only: nil, except: nil, queue: nil, &block)
       if block_given?
         original_jobs = enqueued_jobs_with(only: only, except: except, queue: queue)
 
-        _assert_nothing_raised_or_warn("assert_enqueued_jobs", &block)
+        _assert_nothing_raised_or_warn("assert_enqueued_jobs", &block)
 
         new_jobs = enqueued_jobs_with(only: only, except: except, queue: queue)
 
@@ -215,10 +215,10 @@ 

actual_count = enqueued_jobs_with(only: only, except: except, queue: queue).count end - assert_equal number, actual_count, "#{number} jobs expected, but #{actual_count} were enqueued" + assert_equal number, actual_count, "#{number} jobs expected, but #{actual_count} were enqueued" end

- See on GitHub + 🔎 See on GitHub
@@ -299,11 +299,11 @@

- Source code + 📝 Source code
# File activejob/lib/active_job/test_helper.rb, line 399
-    def assert_enqueued_with(job: nil, args: nil, at: nil, queue: nil, priority: nil, &block)
+    def assert_enqueued_with(job: nil, args: nil, at: nil, queue: nil, priority: nil, &block)
       expected = { job: job, args: args, at: at, queue: queue, priority: priority }.compact
       expected_args = prepare_args_for_assertion(expected)
       potential_matches = []
@@ -311,7 +311,7 @@ 

if block_given? original_enqueued_jobs = enqueued_jobs.dup - _assert_nothing_raised_or_warn("assert_enqueued_with", &block) + _assert_nothing_raised_or_warn("assert_enqueued_with", &block) jobs = enqueued_jobs - original_enqueued_jobs else @@ -320,7 +320,7 @@

matching_job = jobs.find do |enqueued_job| deserialized_job = deserialize_args_for_assertion(enqueued_job) - potential_matches << deserialized_job + potential_matches << deserialized_job expected_args.all? do |key, value| if value.respond_to?(:call) @@ -332,24 +332,24 @@

end matching_class = potential_matches.select do |enqueued_job| - enqueued_job["job_class"] == job.to_s + enqueued_job["job_class"] == job.to_s end - message = +"No enqueued job found with #{expected}" + message = +"No enqueued job found with #{expected}" if potential_matches.empty? - message << "\n\nNo jobs were enqueued" + message << "\n\nNo jobs were enqueued" elsif matching_class.empty? - message << "\n\nNo jobs of class #{expected[:job]} were enqueued, job classes enqueued: " - message << potential_matches.map { |job| job["job_class"] }.join(", ") + message << "\n\nNo jobs of class #{expected[:job]} were enqueued, job classes enqueued: " + message << potential_matches.map { |job| job["job_class"] }.join(", ") else - message << "\n\nPotential matches: #{matching_class.join("\n")}" + message << "\n\nPotential matches: #{matching_class.join("\n")}" end assert matching_job, message instantiate_job(matching_job) end

- See on GitHub + 🔎 See on GitHub
@@ -426,15 +426,15 @@

- Source code + 📝 Source code
# File activejob/lib/active_job/test_helper.rb, line 185
-    def assert_no_enqueued_jobs(only: nil, except: nil, queue: nil, &block)
-      assert_enqueued_jobs 0, only: only, except: except, queue: queue, &block
+    def assert_no_enqueued_jobs(only: nil, except: nil, queue: nil, &block)
+      assert_enqueued_jobs 0, only: only, except: except, queue: queue, &block
     end
- See on GitHub + 🔎 See on GitHub
@@ -514,15 +514,15 @@

- Source code + 📝 Source code
# File activejob/lib/active_job/test_helper.rb, line 343
-    def assert_no_performed_jobs(only: nil, except: nil, queue: nil, &block)
-      assert_performed_jobs 0, only: only, except: except, queue: queue, &block
+    def assert_no_performed_jobs(only: nil, except: nil, queue: nil, &block)
+      assert_performed_jobs 0, only: only, except: except, queue: queue, &block
     end
- See on GitHub + 🔎 See on GitHub
@@ -635,15 +635,15 @@

- Source code + 📝 Source code
# File activejob/lib/active_job/test_helper.rb, line 275
-    def assert_performed_jobs(number, only: nil, except: nil, queue: nil, &block)
+    def assert_performed_jobs(number, only: nil, except: nil, queue: nil, &block)
       if block_given?
         original_count = performed_jobs.size
 
-        perform_enqueued_jobs(only: only, except: except, queue: queue, &block)
+        perform_enqueued_jobs(only: only, except: except, queue: queue, &block)
 
         new_count = performed_jobs.size
 
@@ -652,10 +652,10 @@ 

performed_jobs_size = performed_jobs_with(only: only, except: except, queue: queue).count end - assert_equal number, performed_jobs_size, "#{number} jobs expected, but #{performed_jobs_size} were performed" + assert_equal number, performed_jobs_size, "#{number} jobs expected, but #{performed_jobs_size} were performed" end

- See on GitHub + 🔎 See on GitHub
@@ -738,11 +738,11 @@

- Source code + 📝 Source code
# File activejob/lib/active_job/test_helper.rb, line 501
-    def assert_performed_with(job: nil, args: nil, at: nil, queue: nil, priority: nil, &block)
+    def assert_performed_with(job: nil, args: nil, at: nil, queue: nil, priority: nil, &block)
       expected = { job: job, args: args, at: at, queue: queue, priority: priority }.compact
       expected_args = prepare_args_for_assertion(expected)
       potential_matches = []
@@ -750,7 +750,7 @@ 

if block_given? original_performed_jobs_count = performed_jobs.count - perform_enqueued_jobs(&block) + perform_enqueued_jobs(&block) jobs = performed_jobs.drop(original_performed_jobs_count) else @@ -759,7 +759,7 @@

matching_job = jobs.find do |enqueued_job| deserialized_job = deserialize_args_for_assertion(enqueued_job) - potential_matches << deserialized_job + potential_matches << deserialized_job expected_args.all? do |key, value| if value.respond_to?(:call) @@ -771,17 +771,17 @@

end matching_class = potential_matches.select do |enqueued_job| - enqueued_job["job_class"] == job.to_s + enqueued_job["job_class"] == job.to_s end - message = +"No performed job found with #{expected}" + message = +"No performed job found with #{expected}" if potential_matches.empty? - message << "\n\nNo jobs were performed" + message << "\n\nNo jobs were performed" elsif matching_class.empty? - message << "\n\nNo jobs of class #{expected[:job]} were performed, job classes performed: " - message << potential_matches.map { |job| job["job_class"] }.join(", ") + message << "\n\nNo jobs of class #{expected[:job]} were performed, job classes performed: " + message << potential_matches.map { |job| job["job_class"] }.join(", ") else - message << "\n\nPotential matches: #{matching_class.join("\n")}" + message << "\n\nPotential matches: #{matching_class.join("\n")}" end assert matching_job, message @@ -789,7 +789,7 @@

instantiate_job(matching_job) end

- See on GitHub + 🔎 See on GitHub
@@ -871,14 +871,14 @@

- Source code + 📝 Source code
# File activejob/lib/active_job/test_helper.rb, line 608
-    def perform_enqueued_jobs(only: nil, except: nil, queue: nil, at: nil, &block)
+    def perform_enqueued_jobs(only: nil, except: nil, queue: nil, at: nil, &block)
       return flush_enqueued_jobs(only: only, except: except, queue: queue, at: at) unless block_given?
 
-      return _assert_nothing_raised_or_warn("perform_enqueued_jobs", &block) unless using_test_adapter?
+      return _assert_nothing_raised_or_warn("perform_enqueued_jobs", &block) unless using_test_adapter?
 
       validate_option(only: only, except: except)
 
@@ -897,7 +897,7 @@ 

queue_adapter.queue = queue queue_adapter.at = at - _assert_nothing_raised_or_warn("perform_enqueued_jobs", &block) + _assert_nothing_raised_or_warn("perform_enqueued_jobs", &block) ensure queue_adapter.perform_enqueued_jobs = old_perform_enqueued_jobs queue_adapter.perform_enqueued_at_jobs = old_perform_enqueued_at_jobs @@ -908,7 +908,7 @@

end end

- See on GitHub + 🔎 See on GitHub
@@ -940,7 +940,7 @@

- Source code + 📝 Source code
# File activejob/lib/active_job/test_helper.rb, line 646
@@ -948,7 +948,7 @@ 

ActiveJob::Base.queue_adapter end

- See on GitHub + 🔎 See on GitHub
@@ -979,7 +979,7 @@

- Source code + 📝 Source code
# File activejob/lib/active_job/test_helper.rb, line 66
@@ -987,7 +987,7 @@ 

ActiveJob::QueueAdapters::TestAdapter.new end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveJob/TestHelper/TestQueueAdapter/ClassMethods.html b/src/classes/ActiveJob/TestHelper/TestQueueAdapter/ClassMethods.html index 3922b5a143..56fa26a734 100644 --- a/src/classes/ActiveJob/TestHelper/TestQueueAdapter/ClassMethods.html +++ b/src/classes/ActiveJob/TestHelper/TestQueueAdapter/ClassMethods.html @@ -86,7 +86,7 @@

- Source code + 📝 Source code
# File activejob/lib/active_job/test_helper.rb, line 27
@@ -94,7 +94,7 @@ 

self._test_adapter = nil end

- See on GitHub + 🔎 See on GitHub
@@ -121,7 +121,7 @@

- Source code + 📝 Source code
# File activejob/lib/active_job/test_helper.rb, line 31
@@ -129,7 +129,7 @@ 

self._test_adapter = test_adapter end

- See on GitHub + 🔎 See on GitHub
@@ -156,7 +156,7 @@

- Source code + 📝 Source code
# File activejob/lib/active_job/test_helper.rb, line 23
@@ -164,7 +164,7 @@ 

self._test_adapter.nil? ? super : self._test_adapter end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveJob/VERSION.html b/src/classes/ActiveJob/VERSION.html index f311691f29..0166efb1b7 100644 --- a/src/classes/ActiveJob/VERSION.html +++ b/src/classes/ActiveJob/VERSION.html @@ -50,11 +50,6 @@

Constants

7 - -   - - - MINOR @@ -62,11 +57,6 @@

Constants

1 - -   - - - PRE @@ -74,11 +64,6 @@

Constants

nil - -   - - - STRING @@ -86,11 +71,6 @@

Constants

[MAJOR, MINOR, TINY, PRE].compact.join(".") - -   - - - TINY @@ -98,11 +78,6 @@

Constants

0 - -   - - - diff --git a/src/classes/ActiveModel.html b/src/classes/ActiveModel.html index bd722c9c3c..48063975a9 100644 --- a/src/classes/ActiveModel.html +++ b/src/classes/ActiveModel.html @@ -596,7 +596,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model.rb, line 76
@@ -605,7 +605,7 @@ 

ActiveModel::Serializers.eager_load! end

- See on GitHub + 🔎 See on GitHub
@@ -632,7 +632,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/gem_version.rb, line 5
@@ -640,7 +640,7 @@ 

Gem::Version.new VERSION::STRING end

- See on GitHub + 🔎 See on GitHub
@@ -667,7 +667,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/version.rb, line 7
@@ -675,7 +675,7 @@ 

gem_version end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveModel/API.html b/src/classes/ActiveModel/API.html index 10c01ba4c1..09ec6ef2bc 100644 --- a/src/classes/ActiveModel/API.html +++ b/src/classes/ActiveModel/API.html @@ -174,7 +174,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/api.rb, line 80
@@ -184,7 +184,7 @@ 

super() end

- See on GitHub + 🔎 See on GitHub
@@ -224,7 +224,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/api.rb, line 95
@@ -232,7 +232,7 @@ 

false end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveModel/AttributeAssignment.html b/src/classes/ActiveModel/AttributeAssignment.html index 643b76ee11..6320093ff6 100644 --- a/src/classes/ActiveModel/AttributeAssignment.html +++ b/src/classes/ActiveModel/AttributeAssignment.html @@ -102,20 +102,20 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/attribute_assignment.rb, line 28
     def assign_attributes(new_attributes)
       unless new_attributes.respond_to?(:each_pair)
-        raise ArgumentError, "When assigning attributes, you must pass a hash as an argument, #{new_attributes.class} passed."
+        raise ArgumentError, "When assigning attributes, you must pass a hash as an argument, #{new_attributes.class} passed."
       end
       return if new_attributes.empty?
 
       _assign_attributes(sanitize_for_mass_assignment(new_attributes))
     end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveModel/AttributeMethods.html b/src/classes/ActiveModel/AttributeMethods.html index 6011bf6aa2..e57e659104 100644 --- a/src/classes/ActiveModel/AttributeMethods.html +++ b/src/classes/ActiveModel/AttributeMethods.html @@ -142,11 +142,6 @@

Constants

/\A[a-zA-Z_]\w*[!?]?\z/ - -   - - - FORWARD_PARAMETERS @@ -154,11 +149,6 @@

Constants

"*args" - -   - - - NAME_COMPILABLE_REGEXP @@ -166,11 +156,6 @@

Constants

/\A[a-zA-Z_]\w*[!?=]?\z/ - -   - - - @@ -203,15 +188,15 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/attribute_methods.rb, line 498
-    def attribute_missing(match, *args, &block)
-      __send__(match.proxy_target, match.attr_name, *args, &block)
+    def attribute_missing(match, *args, &block)
+      __send__(match.proxy_target, match.attr_name, *args, &block)
     end
- See on GitHub + 🔎 See on GitHub
@@ -240,20 +225,20 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/attribute_methods.rb, line 484
-    def method_missing(method, *args, &block)
+    def method_missing(method, *args, &block)
       if respond_to_without_attributes?(method, true)
         super
       else
         match = matched_attribute_method(method.to_s)
-        match ? attribute_missing(match, *args, &block) : super
+        match ? attribute_missing(match, *args, &block) : super
       end
     end
- See on GitHub + 🔎 See on GitHub
@@ -284,15 +269,15 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/attribute_methods.rb, line 507
     def respond_to?(method, include_private_methods = false)
       if super
         true
-      elsif !include_private_methods && super(method, true)
-        # If we're here then we haven't found among non-private methods
+      elsif !include_private_methods && super(method, true)
+        # If we're here then we haven't found among non-private methods
         # but found among all methods. Which means that the given method is private.
         false
       else
@@ -300,7 +285,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveModel/AttributeMethods/ClassMethods.html b/src/classes/ActiveModel/AttributeMethods/ClassMethods.html index 1a0c5a4a76..5193ae787b 100644 --- a/src/classes/ActiveModel/AttributeMethods/ClassMethods.html +++ b/src/classes/ActiveModel/AttributeMethods/ClassMethods.html @@ -137,19 +137,19 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/attribute_methods.rb, line 204
       def alias_attribute(new_name, old_name)
         old_name = old_name.to_s
         new_name = new_name.to_s
-        self.attribute_aliases = attribute_aliases.merge(new_name => old_name)
-        aliases_by_attribute_name[old_name] << new_name
+        self.attribute_aliases = attribute_aliases.merge(new_name => old_name)
+        aliases_by_attribute_name[old_name] << new_name
         eagerly_generate_alias_attribute_methods(new_name, old_name)
       end
- See on GitHub + 🔎 See on GitHub
@@ -176,7 +176,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/attribute_methods.rb, line 258
@@ -184,7 +184,7 @@ 

attribute_aliases[name.to_s] end

- See on GitHub + 🔎 See on GitHub
@@ -211,7 +211,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/attribute_methods.rb, line 253
@@ -219,7 +219,7 @@ 

attribute_aliases.key? new_name.to_s end

- See on GitHub + 🔎 See on GitHub
@@ -275,7 +275,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/attribute_methods.rb, line 176
@@ -284,7 +284,7 @@ 

undefine_attribute_methods end

- See on GitHub + 🔎 See on GitHub
@@ -341,7 +341,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/attribute_methods.rb, line 107
@@ -350,7 +350,7 @@ 

undefine_attribute_methods end

- See on GitHub + 🔎 See on GitHub
@@ -406,7 +406,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/attribute_methods.rb, line 141
@@ -415,7 +415,7 @@ 

undefine_attribute_methods end

- See on GitHub + 🔎 See on GitHub
@@ -467,7 +467,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/attribute_methods.rb, line 324
@@ -477,7 +477,7 @@ 

method_name = pattern.method_name(attr_name) unless instance_method_already_implemented?(method_name) - generate_method = "define_method_#{pattern.proxy_target}" + generate_method = "define_method_#{pattern.proxy_target}" if respond_to?(generate_method, true) send(generate_method, attr_name.to_s, owner: owner) @@ -490,7 +490,7 @@

end end

- See on GitHub + 🔎 See on GitHub
@@ -537,7 +537,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/attribute_methods.rb, line 285
@@ -552,7 +552,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -579,7 +579,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/attribute_methods.rb, line 218
@@ -589,7 +589,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -641,7 +641,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/attribute_methods.rb, line 368
@@ -652,7 +652,7 @@ 

attribute_method_patterns_cache.clear end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveModel/Attributes.html b/src/classes/ActiveModel/Attributes.html index 09f65bef45..f96f144bfd 100644 --- a/src/classes/ActiveModel/Attributes.html +++ b/src/classes/ActiveModel/Attributes.html @@ -146,7 +146,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/attributes.rb, line 133
@@ -154,7 +154,7 @@ 

@attributes.keys end

- See on GitHub + 🔎 See on GitHub
@@ -195,7 +195,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/attributes.rb, line 118
@@ -203,7 +203,7 @@ 

@attributes.to_hash end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveModel/Attributes/ClassMethods.html b/src/classes/ActiveModel/Attributes/ClassMethods.html index 91bc1f783a..5e8822a7cd 100644 --- a/src/classes/ActiveModel/Attributes/ClassMethods.html +++ b/src/classes/ActiveModel/Attributes/ClassMethods.html @@ -97,7 +97,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/attributes.rb, line 59
@@ -106,7 +106,7 @@ 

define_attribute_method(name) end

- See on GitHub + 🔎 See on GitHub
@@ -143,7 +143,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/attributes.rb, line 74
@@ -151,7 +151,7 @@ 

attribute_types.keys end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveModel/Callbacks.html b/src/classes/ActiveModel/Callbacks.html index 3d2c0f30b7..195ce0e57c 100644 --- a/src/classes/ActiveModel/Callbacks.html +++ b/src/classes/ActiveModel/Callbacks.html @@ -182,7 +182,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/callbacks.rb, line 109
@@ -200,12 +200,12 @@ 

define_callbacks(callback, options) types.each do |type| - send("_define_#{type}_model_callback", self, callback) + send("_define_#{type}_model_callback", self, callback) end end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveModel/Conversion.html b/src/classes/ActiveModel/Conversion.html index a1a4582586..1d18d65f4e 100644 --- a/src/classes/ActiveModel/Conversion.html +++ b/src/classes/ActiveModel/Conversion.html @@ -119,14 +119,14 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/conversion.rb, line 32
-      class_attribute :param_delimiter, instance_reader: false, default: "-"
+      class_attribute :param_delimiter, instance_reader: false, default: "-"
 
- See on GitHub + 🔎 See on GitHub
@@ -170,16 +170,16 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/conversion.rb, line 67
     def to_key
-      key = respond_to?(:id) && id
+      key = respond_to?(:id) && id
       key ? Array(key) : nil
     end
- See on GitHub + 🔎 See on GitHub
@@ -216,7 +216,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/conversion.rb, line 49
@@ -224,7 +224,7 @@ 

self end

- See on GitHub + 🔎 See on GitHub
@@ -268,15 +268,15 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/conversion.rb, line 90
     def to_param
-      (persisted? && (key = to_key) && key.all?) ? key.join(self.class.param_delimiter) : nil
+      (persisted? && (key = to_key) && key.all?) ? key.join(self.class.param_delimiter) : nil
     end
- See on GitHub + 🔎 See on GitHub
@@ -311,7 +311,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/conversion.rb, line 103
@@ -319,7 +319,7 @@ 

self.class._to_partial_path end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveModel/Dirty.html b/src/classes/ActiveModel/Dirty.html index e0dc80fb61..d1d05b7150 100644 --- a/src/classes/ActiveModel/Dirty.html +++ b/src/classes/ActiveModel/Dirty.html @@ -310,7 +310,7 @@

- See on GitHub + 🔎 See on GitHub @@ -340,7 +340,7 @@

- See on GitHub + 🔎 See on GitHub @@ -371,7 +371,7 @@

- See on GitHub + 🔎 See on GitHub @@ -404,7 +404,7 @@

- See on GitHub + 🔎 See on GitHub @@ -435,7 +435,7 @@

- See on GitHub + 🔎 See on GitHub @@ -465,7 +465,7 @@

- See on GitHub + 🔎 See on GitHub @@ -495,7 +495,7 @@

- See on GitHub + 🔎 See on GitHub @@ -520,7 +520,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/dirty.rb, line 293
@@ -528,7 +528,7 @@ 

mutations_from_database.changed?(attr_name.to_s, **options) end

- See on GitHub + 🔎 See on GitHub
@@ -555,7 +555,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/dirty.rb, line 303
@@ -563,7 +563,7 @@ 

mutations_before_last_save.changed?(attr_name.to_s, **options) end

- See on GitHub + 🔎 See on GitHub
@@ -590,7 +590,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/dirty.rb, line 308
@@ -598,7 +598,7 @@ 

mutations_before_last_save.original_value(attr_name.to_s) end

- See on GitHub + 🔎 See on GitHub
@@ -625,7 +625,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/dirty.rb, line 298
@@ -633,7 +633,7 @@ 

mutations_from_database.original_value(attr_name.to_s) end

- See on GitHub + 🔎 See on GitHub
@@ -665,7 +665,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/dirty.rb, line 288
@@ -673,7 +673,7 @@ 

mutations_from_database.changed_attribute_names end

- See on GitHub + 🔎 See on GitHub
@@ -705,7 +705,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/dirty.rb, line 279
@@ -713,7 +713,7 @@ 

mutations_from_database.any_changes? end

- See on GitHub + 🔎 See on GitHub
@@ -745,7 +745,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/dirty.rb, line 336
@@ -753,7 +753,7 @@ 

mutations_from_database.changed_values end

- See on GitHub + 🔎 See on GitHub
@@ -785,7 +785,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/dirty.rb, line 346
@@ -793,7 +793,7 @@ 

mutations_from_database.changes end

- See on GitHub + 🔎 See on GitHub
@@ -820,7 +820,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/dirty.rb, line 265
@@ -833,7 +833,7 @@ 

@mutations_from_database = nil end

- See on GitHub + 🔎 See on GitHub
@@ -869,14 +869,14 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/dirty.rb, line 241
-      attribute_method_suffix "_previously_changed?", "_changed?", parameters: "**options"
+      attribute_method_suffix "_previously_changed?", "_changed?", parameters: "**options"
 
- See on GitHub + 🔎 See on GitHub
@@ -903,7 +903,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/dirty.rb, line 324
@@ -913,7 +913,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -940,7 +940,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/dirty.rb, line 318
@@ -950,7 +950,7 @@ 

@mutations_from_database = nil end

- See on GitHub + 🔎 See on GitHub
@@ -983,7 +983,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/dirty.rb, line 356
@@ -991,7 +991,7 @@ 

mutations_before_last_save.changes end

- See on GitHub + 🔎 See on GitHub
@@ -1024,7 +1024,7 @@

- See on GitHub + 🔎 See on GitHub @@ -1049,7 +1049,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/dirty.rb, line 313
@@ -1057,7 +1057,7 @@ 

attr_names.each { |attr_name| restore_attribute!(attr_name) } end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveModel/EachValidator.html b/src/classes/ActiveModel/EachValidator.html index a46f66da1e..cc85182366 100644 --- a/src/classes/ActiveModel/EachValidator.html +++ b/src/classes/ActiveModel/EachValidator.html @@ -119,18 +119,18 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/validator.rb, line 140
     def initialize(options)
       @attributes = Array(options.delete(:attributes))
-      raise ArgumentError, ":attributes cannot be blank" if @attributes.empty?
+      raise ArgumentError, ":attributes cannot be blank" if @attributes.empty?
       super
       check_validity!
     end
- See on GitHub + 🔎 See on GitHub
@@ -161,14 +161,14 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/validator.rb, line 168
     def check_validity!
     end
- See on GitHub + 🔎 See on GitHub
@@ -195,20 +195,20 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/validator.rb, line 150
     def validate(record)
       attributes.each do |attribute|
         value = record.read_attribute_for_validation(attribute)
-        next if (value.nil? && options[:allow_nil]) || (value.blank? && options[:allow_blank])
+        next if (value.nil? && options[:allow_nil]) || (value.blank? && options[:allow_blank])
         value = prepare_value_for_validation(value, record, attribute)
         validate_each(record, attribute, value)
       end
     end
- See on GitHub + 🔎 See on GitHub
@@ -235,15 +235,15 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/validator.rb, line 161
     def validate_each(record, attribute, value)
-      raise NotImplementedError, "Subclasses must implement a validate_each(record, attribute, value) method"
+      raise NotImplementedError, "Subclasses must implement a validate_each(record, attribute, value) method"
     end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveModel/Error.html b/src/classes/ActiveModel/Error.html index d07d2e543b..9a4e6945a9 100644 --- a/src/classes/ActiveModel/Error.html +++ b/src/classes/ActiveModel/Error.html @@ -101,11 +101,6 @@

Constants

[:if, :unless, :on, :allow_nil, :allow_blank, :strict] - -   - - - MESSAGE_OPTIONS @@ -113,11 +108,6 @@

Constants

[:message] - -   - - - @@ -195,7 +185,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/error.rb, line 103
@@ -207,7 +197,7 @@ 

@options = options end

- See on GitHub + 🔎 See on GitHub
@@ -272,7 +262,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/error.rb, line 149
@@ -280,7 +270,7 @@ 

{ error: raw_type }.merge(options.except(*CALLBACKS_OPTIONS + MESSAGE_OPTIONS)) end

- See on GitHub + 🔎 See on GitHub
@@ -312,7 +302,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/error.rb, line 159
@@ -320,7 +310,7 @@ 

self.class.full_message(attribute, message, @base) end

- See on GitHub + 🔎 See on GitHub
@@ -349,12 +339,12 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/error.rb, line 166
     def match?(attribute, type = nil, **options)
-      if @attribute != attribute || (type && @type != type)
+      if @attribute != attribute || (type && @type != type)
         return false
       end
 
@@ -367,7 +357,7 @@ 

true end

- See on GitHub + 🔎 See on GitHub
@@ -399,7 +389,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/error.rb, line 135
@@ -412,7 +402,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -441,7 +431,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/error.rb, line 184
@@ -451,7 +441,7 @@ 

options == @options.except(*CALLBACKS_OPTIONS + MESSAGE_OPTIONS) end

- See on GitHub + 🔎 See on GitHub
@@ -481,7 +471,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/error.rb, line 204
@@ -489,7 +479,7 @@ 

[@base, @attribute, @raw_type, @options.except(*CALLBACKS_OPTIONS)] end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveModel/Errors.html b/src/classes/ActiveModel/Errors.html index face9d3aad..6f8a6e05e0 100644 --- a/src/classes/ActiveModel/Errors.html +++ b/src/classes/ActiveModel/Errors.html @@ -269,7 +269,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/errors.rb, line 91
@@ -278,7 +278,7 @@ 

@errors = [] end

- See on GitHub + 🔎 See on GitHub
@@ -313,7 +313,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/errors.rb, line 203
@@ -321,7 +321,7 @@ 

messages_for(attribute) end

- See on GitHub + 🔎 See on GitHub
@@ -393,7 +393,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/errors.rb, line 316
@@ -411,7 +411,7 @@ 

error end

- See on GitHub + 🔎 See on GitHub
@@ -453,7 +453,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/errors.rb, line 346
@@ -469,7 +469,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -500,15 +500,15 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/errors.rb, line 221
     def as_json(options = nil)
-      to_hash(options && options[:full_messages])
+      to_hash(options && options[:full_messages])
     end
- See on GitHub + 🔎 See on GitHub
@@ -539,15 +539,15 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/errors.rb, line 211
     def attribute_names
-      @errors.map(&:attribute).uniq.freeze
+      @errors.map(&:attribute).uniq.freeze
     end
- See on GitHub + 🔎 See on GitHub
@@ -579,7 +579,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/errors.rb, line 189
@@ -589,10 +589,10 @@ 

matches.each do |error| @errors.delete(error) end - matches.map(&:message).presence + matches.map(&:message).presence end

- See on GitHub + 🔎 See on GitHub
@@ -619,20 +619,20 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/errors.rb, line 250
     def details
       hash = group_by_attribute.transform_values do |errors|
-        errors.map(&:details)
+        errors.map(&:details)
       end
       hash.default = EMPTY_ARRAY
       hash.freeze
       hash
     end
- See on GitHub + 🔎 See on GitHub
@@ -662,7 +662,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/errors.rb, line 425
@@ -670,7 +670,7 @@ 

Error.full_message(attribute, message, @base) end

- See on GitHub + 🔎 See on GitHub
@@ -711,15 +711,15 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/errors.rb, line 389
     def full_messages
-      @errors.map(&:full_message)
+      @errors.map(&:full_message)
     end
- See on GitHub + 🔎 See on GitHub
@@ -756,15 +756,15 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/errors.rb, line 404
     def full_messages_for(attribute)
-      where(attribute).map(&:full_message).freeze
+      where(attribute).map(&:full_message).freeze
     end
- See on GitHub + 🔎 See on GitHub
@@ -812,7 +812,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/errors.rb, line 453
@@ -820,7 +820,7 @@ 

Error.generate_message(attribute, type, @base, options) end

- See on GitHub + 🔎 See on GitHub
@@ -851,15 +851,15 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/errors.rb, line 263
     def group_by_attribute
-      @errors.group_by(&:attribute)
+      @errors.group_by(&:attribute)
     end
- See on GitHub + 🔎 See on GitHub
@@ -918,7 +918,7 @@

Options

- Source code + 📝 Source code
# File activemodel/lib/active_model/errors.rb, line 128
@@ -931,7 +931,7 @@ 

Options

@errors.append(NestedError.new(@base, error, override_options)) end
- See on GitHub + 🔎 See on GitHub
@@ -967,7 +967,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/errors.rb, line 176
@@ -977,7 +977,7 @@ 

} end

- See on GitHub + 🔎 See on GitHub
@@ -1039,7 +1039,7 @@

Examples

- Source code + 📝 Source code
# File activemodel/lib/active_model/errors.rb, line 148
@@ -1051,7 +1051,7 @@ 

Examples

} end
- See on GitHub + 🔎 See on GitHub
@@ -1078,7 +1078,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/errors.rb, line 242
@@ -1089,7 +1089,7 @@ 

hash end

- See on GitHub + 🔎 See on GitHub
@@ -1126,15 +1126,15 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/errors.rb, line 418
     def messages_for(attribute)
-      where(attribute).map(&:message)
+      where(attribute).map(&:message)
     end
- See on GitHub + 🔎 See on GitHub
@@ -1171,7 +1171,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/errors.rb, line 369
@@ -1185,7 +1185,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -1241,18 +1241,18 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/errors.rb, line 230
     def to_hash(full_messages = false)
       message_method = full_messages ? :full_message : :message
       group_by_attribute.transform_values do |errors|
-        errors.map(&message_method)
+        errors.map(&message_method)
       end
     end
- See on GitHub + 🔎 See on GitHub
@@ -1286,7 +1286,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/errors.rb, line 163
@@ -1297,7 +1297,7 @@ 

} end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveModel/Lint/Tests.html b/src/classes/ActiveModel/Lint/Tests.html index 80124bbada..b931204851 100644 --- a/src/classes/ActiveModel/Lint/Tests.html +++ b/src/classes/ActiveModel/Lint/Tests.html @@ -114,16 +114,16 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/lint.rb, line 102
       def test_errors_aref
         assert_respond_to model, :errors
-        assert_equal [], model.errors[:hello], "errors#[] should return an empty Array"
+        assert_equal [], model.errors[:hello], "errors#[] should return an empty Array"
       end
- See on GitHub + 🔎 See on GitHub
@@ -152,7 +152,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/lint.rb, line 81
@@ -168,7 +168,7 @@ 

assert_equal model.model_name, model.class.model_name end

- See on GitHub + 🔎 See on GitHub
@@ -197,16 +197,16 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/lint.rb, line 70
       def test_persisted?
         assert_respond_to model, :persisted?
-        assert_boolean model.persisted?, "persisted?"
+        assert_boolean model.persisted?, "persisted?"
       end
- See on GitHub + 🔎 See on GitHub
@@ -235,17 +235,17 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/lint.rb, line 31
       def test_to_key
         assert_respond_to model, :to_key
         def model.persisted?() false end
-        assert model.to_key.nil?, "to_key should return nil when `persisted?` returns false"
+        assert model.to_key.nil?, "to_key should return nil when `persisted?` returns false"
       end
- See on GitHub + 🔎 See on GitHub
@@ -274,7 +274,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/lint.rb, line 46
@@ -282,10 +282,10 @@ 

assert_respond_to model, :to_param def model.to_key() [1] end def model.persisted?() false end - assert model.to_param.nil?, "to_param should return nil when `persisted?` returns false" + assert model.to_param.nil?, "to_param should return nil when `persisted?` returns false" end

- See on GitHub + 🔎 See on GitHub
@@ -314,7 +314,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/lint.rb, line 58
@@ -323,7 +323,7 @@ 

assert_kind_of String, model.to_partial_path end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveModel/Model.html b/src/classes/ActiveModel/Model.html index 4e2b55b671..0f0e4566c3 100644 --- a/src/classes/ActiveModel/Model.html +++ b/src/classes/ActiveModel/Model.html @@ -133,7 +133,7 @@

- See on GitHub + 🔎 See on GitHub @@ -157,7 +157,7 @@

- See on GitHub + 🔎 See on GitHub diff --git a/src/classes/ActiveModel/Name.html b/src/classes/ActiveModel/Name.html index 0e6dfec145..f21c692050 100644 --- a/src/classes/ActiveModel/Name.html +++ b/src/classes/ActiveModel/Name.html @@ -234,16 +234,16 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/naming.rb, line 166
     def initialize(klass, namespace = nil, name = nil, locale = :en)
       @name = name || klass.name
 
-      raise ArgumentError, "Class name cannot be blank. You need to supply a name argument when anonymous class given" if @name.blank?
+      raise ArgumentError, "Class name cannot be blank. You need to supply a name argument when anonymous class given" if @name.blank?
 
-      @unnamespaced = @name.delete_prefix("#{namespace.name}::") if namespace
+      @unnamespaced = @name.delete_prefix("#{namespace.name}::") if namespace
       @klass        = klass
       @singular     = _singularize(@name)
       @plural       = ActiveSupport::Inflector.pluralize(@singular, locale)
@@ -256,10 +256,10 @@ 

@route_key = (namespace ? ActiveSupport::Inflector.pluralize(@param_key, locale) : @plural.dup) @singular_route_key = ActiveSupport::Inflector.singularize(@route_key, locale) - @route_key << "_index" if @uncountable + @route_key << "_index" if @uncountable end

- See on GitHub + 🔎 See on GitHub
@@ -297,7 +297,7 @@

- See on GitHub + 🔎 See on GitHub @@ -330,7 +330,7 @@

- See on GitHub + 🔎 See on GitHub @@ -362,7 +362,7 @@

- See on GitHub + 🔎 See on GitHub @@ -394,7 +394,7 @@

- See on GitHub + 🔎 See on GitHub @@ -426,7 +426,7 @@

- See on GitHub + 🔎 See on GitHub @@ -458,7 +458,7 @@

- See on GitHub + 🔎 See on GitHub @@ -492,7 +492,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/naming.rb, line 197
@@ -500,15 +500,15 @@ 

return @human if i18n_keys.empty? || i18n_scope.empty? key, *defaults = i18n_keys - defaults << options[:default] if options[:default] - defaults << MISSING_TRANSLATION + defaults << options[:default] if options[:default] + defaults << MISSING_TRANSLATION translation = I18n.translate(key, scope: i18n_scope, count: 1, **options, default: defaults) translation = @human if translation == MISSING_TRANSLATION translation end

- See on GitHub + 🔎 See on GitHub
@@ -542,7 +542,7 @@

- See on GitHub + 🔎 See on GitHub @@ -573,7 +573,7 @@

- See on GitHub + 🔎 See on GitHub @@ -599,15 +599,15 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/naming.rb, line 151
-    delegate :==, :===, :<=>, :=~, :"!~", :eql?, :match?, :to_s,
+    delegate :==, :===, :<=>, :=~, :"!~", :eql?, :match?, :to_s,
              :to_str, :as_json, to: :name
 
- See on GitHub + 🔎 See on GitHub
@@ -634,7 +634,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/naming.rb, line 209
@@ -642,7 +642,7 @@ 

@uncountable end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveModel/Naming.html b/src/classes/ActiveModel/Naming.html index 7ee45f7894..485c0d829d 100644 --- a/src/classes/ActiveModel/Naming.html +++ b/src/classes/ActiveModel/Naming.html @@ -131,7 +131,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/naming.rb, line 338
@@ -139,7 +139,7 @@ 

model_name_from_record_or_class(record_or_class).param_key end

- See on GitHub + 🔎 See on GitHub
@@ -170,7 +170,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/naming.rb, line 283
@@ -178,7 +178,7 @@ 

model_name_from_record_or_class(record_or_class).plural end

- See on GitHub + 🔎 See on GitHub
@@ -214,7 +214,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/naming.rb, line 326
@@ -222,7 +222,7 @@ 

model_name_from_record_or_class(record_or_class).route_key end

- See on GitHub + 🔎 See on GitHub
@@ -253,7 +253,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/naming.rb, line 291
@@ -261,7 +261,7 @@ 

model_name_from_record_or_class(record_or_class).singular end

- See on GitHub + 🔎 See on GitHub
@@ -295,7 +295,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/naming.rb, line 311
@@ -303,7 +303,7 @@ 

model_name_from_record_or_class(record_or_class).singular_route_key end

- See on GitHub + 🔎 See on GitHub
@@ -334,7 +334,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/naming.rb, line 299
@@ -342,7 +342,7 @@ 

model_name_from_record_or_class(record_or_class).uncountable? end

- See on GitHub + 🔎 See on GitHub
@@ -383,20 +383,20 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/naming.rb, line 270
     def model_name
       @_model_name ||= begin
         namespace = module_parents.detect do |n|
-          n.respond_to?(:use_relative_model_naming?) && n.use_relative_model_naming?
+          n.respond_to?(:use_relative_model_naming?) && n.use_relative_model_naming?
         end
         ActiveModel::Name.new(self, namespace)
       end
     end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveModel/NestedError.html b/src/classes/ActiveModel/NestedError.html index 49d29a49fb..d2ed408ae6 100644 --- a/src/classes/ActiveModel/NestedError.html +++ b/src/classes/ActiveModel/NestedError.html @@ -97,7 +97,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/nested_error.rb, line 8
@@ -110,7 +110,7 @@ 

@options = inner_error.options end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveModel/SecurePassword/ClassMethods.html b/src/classes/ActiveModel/SecurePassword/ClassMethods.html index 93e9cc49de..a870393748 100644 --- a/src/classes/ActiveModel/SecurePassword/ClassMethods.html +++ b/src/classes/ActiveModel/SecurePassword/ClassMethods.html @@ -169,7 +169,7 @@

C
- Source code + 📝 Source code
# File activemodel/lib/active_model/secure_password.rb, line 101
@@ -178,9 +178,9 @@ 
C # This is to avoid ActiveModel (and by extension the entire framework) # being dependent on a binary library. begin - require "bcrypt" + require "bcrypt" rescue LoadError - warn "You don't have bcrypt installed in your application. Please add it to your Gemfile and run bundle install." + warn "You don't have bcrypt installed in your application. Please add it to your Gemfile and run bundle install." raise end @@ -194,15 +194,15 @@
C # when there is an error, the message is added to the password attribute instead # so that the error message will make sense to the end-user. validate do |record| - record.errors.add(attribute, :blank) unless record.public_send("#{attribute}_digest").present? + record.errors.add(attribute, :blank) unless record.public_send("#{attribute}_digest").present? end validate do |record| - if challenge = record.public_send(:"#{attribute}_challenge") - digest_was = record.public_send(:"#{attribute}_digest_was") if record.respond_to?(:"#{attribute}_digest_was") + if challenge = record.public_send(:"#{attribute}_challenge") + digest_was = record.public_send(:"#{attribute}_digest_was") if record.respond_to?(:"#{attribute}_digest_was") - unless digest_was.present? && BCrypt::Password.new(digest_was).is_password?(challenge) - record.errors.add(:"#{attribute}_challenge") + unless digest_was.present? && BCrypt::Password.new(digest_was).is_password?(challenge) + record.errors.add(:"#{attribute}_challenge") end end end @@ -210,7 +210,7 @@
C # Validates that the password does not exceed the maximum allowed bytes for BCrypt (72 bytes). validate do |record| password_value = record.public_send(attribute) - if password_value.present? && password_value.bytesize > ActiveModel::SecurePassword::MAX_PASSWORD_LENGTH_ALLOWED + if password_value.present? && password_value.bytesize > ActiveModel::SecurePassword::MAX_PASSWORD_LENGTH_ALLOWED record.errors.add(attribute, :password_too_long) end end @@ -219,7 +219,7 @@
C end end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveModel/SecurePassword/InstanceMethodsOnActivation.html b/src/classes/ActiveModel/SecurePassword/InstanceMethodsOnActivation.html index 8f37c813bf..2c6732f588 100644 --- a/src/classes/ActiveModel/SecurePassword/InstanceMethodsOnActivation.html +++ b/src/classes/ActiveModel/SecurePassword/InstanceMethodsOnActivation.html @@ -83,51 +83,51 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/secure_password.rb, line 149
       def initialize(attribute)
         attr_reader attribute
 
-        define_method("#{attribute}=") do |unencrypted_password|
+        define_method("#{attribute}=") do |unencrypted_password|
           if unencrypted_password.nil?
-            instance_variable_set("@#{attribute}", nil)
-            self.public_send("#{attribute}_digest=", nil)
+            instance_variable_set("@#{attribute}", nil)
+            self.public_send("#{attribute}_digest=", nil)
           elsif !unencrypted_password.empty?
-            instance_variable_set("@#{attribute}", unencrypted_password)
+            instance_variable_set("@#{attribute}", unencrypted_password)
             cost = ActiveModel::SecurePassword.min_cost ? BCrypt::Engine::MIN_COST : BCrypt::Engine.cost
-            self.public_send("#{attribute}_digest=", BCrypt::Password.create(unencrypted_password, cost: cost))
+            self.public_send("#{attribute}_digest=", BCrypt::Password.create(unencrypted_password, cost: cost))
           end
         end
 
-        attr_accessor :"#{attribute}_confirmation", :"#{attribute}_challenge"
+        attr_accessor :"#{attribute}_confirmation", :"#{attribute}_challenge"
 
         # Returns +self+ if the password is correct, otherwise +false+.
         #
-        #   class User < ActiveRecord::Base
+        #   class User < ActiveRecord::Base
         #     has_secure_password validations: false
         #   end
         #
-        #   user = User.new(name: 'david', password: 'mUc3m00RsqyRe')
+        #   user = User.new(name: 'david', password: 'mUc3m00RsqyRe')
         #   user.save
-        #   user.authenticate_password('notright')      # => false
-        #   user.authenticate_password('mUc3m00RsqyRe') # => user
-        define_method("authenticate_#{attribute}") do |unencrypted_password|
-          attribute_digest = public_send("#{attribute}_digest")
-          attribute_digest.present? && BCrypt::Password.new(attribute_digest).is_password?(unencrypted_password) && self
+        #   user.authenticate_password('notright')      # => false
+        #   user.authenticate_password('mUc3m00RsqyRe') # => user
+        define_method("authenticate_#{attribute}") do |unencrypted_password|
+          attribute_digest = public_send("#{attribute}_digest")
+          attribute_digest.present? && BCrypt::Password.new(attribute_digest).is_password?(unencrypted_password) && self
         end
 
-        # Returns the salt, a small chunk of random data added to the password before it's hashed.
-        define_method("#{attribute}_salt") do
-          attribute_digest = public_send("#{attribute}_digest")
+        # Returns the salt, a small chunk of random data added to the password before it's hashed.
+        define_method("#{attribute}_salt") do
+          attribute_digest = public_send("#{attribute}_digest")
           attribute_digest.present? ? BCrypt::Password.new(attribute_digest).salt : nil
         end
 
         alias_method :authenticate, :authenticate_password if attribute == :password
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveModel/Serialization.html b/src/classes/ActiveModel/Serialization.html index add4516b19..e47c6522bd 100644 --- a/src/classes/ActiveModel/Serialization.html +++ b/src/classes/ActiveModel/Serialization.html @@ -200,7 +200,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/serialization.rb, line 125
@@ -210,9 +210,9 @@ 

return serializable_attributes(attribute_names) if options.blank? if only = options[:only] - attribute_names &= Array(only).map(&:to_s) + attribute_names &= Array(only).map(&:to_s) elsif except = options[:except] - attribute_names -= Array(except).map(&:to_s) + attribute_names -= Array(except).map(&:to_s) end hash = serializable_attributes(attribute_names) @@ -230,7 +230,7 @@

hash end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveModel/Serializers/JSON.html b/src/classes/ActiveModel/Serializers/JSON.html index 78167955d1..4075619caa 100644 --- a/src/classes/ActiveModel/Serializers/JSON.html +++ b/src/classes/ActiveModel/Serializers/JSON.html @@ -180,12 +180,12 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/serializers/json.rb, line 96
       def as_json(options = nil)
-        root = if options && options.key?(:root)
+        root = if options && options.key?(:root)
           options[:root]
         else
           include_root_in_json
@@ -194,13 +194,13 @@ 

hash = serializable_hash(options).as_json if root root = model_name.element if root == true - { root => hash } + { root => hash } else hash end end

- See on GitHub + 🔎 See on GitHub
@@ -261,7 +261,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/serializers/json.rb, line 146
@@ -272,7 +272,7 @@ 

self end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveModel/Translation.html b/src/classes/ActiveModel/Translation.html index 14885c70e6..d42a070778 100644 --- a/src/classes/ActiveModel/Translation.html +++ b/src/classes/ActiveModel/Translation.html @@ -125,37 +125,37 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/translation.rb, line 46
     def human_attribute_name(attribute, options = {})
       attribute = attribute.to_s
 
-      if attribute.include?(".")
-        namespace, _, attribute = attribute.rpartition(".")
-        namespace.tr!(".", "/")
+      if attribute.include?(".")
+        namespace, _, attribute = attribute.rpartition(".")
+        namespace.tr!(".", "/")
 
         defaults = lookup_ancestors.map do |klass|
-          :"#{i18n_scope}.attributes.#{klass.model_name.i18n_key}/#{namespace}.#{attribute}"
+          :"#{i18n_scope}.attributes.#{klass.model_name.i18n_key}/#{namespace}.#{attribute}"
         end
-        defaults << :"#{i18n_scope}.attributes.#{namespace}.#{attribute}"
+        defaults << :"#{i18n_scope}.attributes.#{namespace}.#{attribute}"
       else
         defaults = lookup_ancestors.map do |klass|
-          :"#{i18n_scope}.attributes.#{klass.model_name.i18n_key}.#{attribute}"
+          :"#{i18n_scope}.attributes.#{klass.model_name.i18n_key}.#{attribute}"
         end
       end
 
-      defaults << :"attributes.#{attribute}"
-      defaults << options[:default] if options[:default]
-      defaults << MISSING_TRANSLATION
+      defaults << :"attributes.#{attribute}"
+      defaults << options[:default] if options[:default]
+      defaults << MISSING_TRANSLATION
 
       translation = I18n.translate(defaults.shift, count: 1, **options, default: defaults)
       translation = attribute.humanize if translation == MISSING_TRANSLATION
       translation
     end
- See on GitHub + 🔎 See on GitHub
@@ -182,7 +182,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/translation.rb, line 26
@@ -190,7 +190,7 @@ 

:activemodel end

- See on GitHub + 🔎 See on GitHub
@@ -217,7 +217,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/translation.rb, line 34
@@ -225,7 +225,7 @@ 

ancestors.select { |x| x.respond_to?(:model_name) } end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveModel/Type.html b/src/classes/ActiveModel/Type.html index 164732606a..969e043520 100644 --- a/src/classes/ActiveModel/Type.html +++ b/src/classes/ActiveModel/Type.html @@ -167,15 +167,15 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/type.rb, line 30
-      def register(type_name, klass = nil, &block)
-        registry.register(type_name, klass, &block)
+      def register(type_name, klass = nil, &block)
+        registry.register(type_name, klass, &block)
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveModel/Type/Binary.html b/src/classes/ActiveModel/Type/Binary.html index ae8d6bd4d4..41d2a3b010 100644 --- a/src/classes/ActiveModel/Type/Binary.html +++ b/src/classes/ActiveModel/Type/Binary.html @@ -114,7 +114,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/type/binary.rb, line 16
@@ -122,7 +122,7 @@ 

true end

- See on GitHub + 🔎 See on GitHub
@@ -149,7 +149,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/type/binary.rb, line 20
@@ -158,12 +158,12 @@ 

value.to_s else value = super - value = value.b if ::String === value && value.encoding != Encoding::BINARY + value = value.b if ::String === value && value.encoding != Encoding::BINARY value end end

- See on GitHub + 🔎 See on GitHub
@@ -190,7 +190,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/type/binary.rb, line 35
@@ -199,7 +199,7 @@ 

old_value != value end

- See on GitHub + 🔎 See on GitHub
@@ -226,7 +226,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/type/binary.rb, line 30
@@ -235,7 +235,7 @@ 

Data.new(super) end

- See on GitHub + 🔎 See on GitHub
@@ -262,7 +262,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/type/binary.rb, line 12
@@ -270,7 +270,7 @@ 

:binary end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveModel/Type/Boolean.html b/src/classes/ActiveModel/Type/Boolean.html index e33d946928..42c643861f 100644 --- a/src/classes/ActiveModel/Type/Boolean.html +++ b/src/classes/ActiveModel/Type/Boolean.html @@ -82,11 +82,6 @@

Constants

].to_set.freeze - -   - - - diff --git a/src/classes/ActiveModel/Type/Date.html b/src/classes/ActiveModel/Type/Date.html index c74af4fa56..b063a938a0 100644 --- a/src/classes/ActiveModel/Type/Date.html +++ b/src/classes/ActiveModel/Type/Date.html @@ -108,11 +108,6 @@

Constants

/\A(\d{4})-(\d\d)-(\d\d)\z/ - -   - - - @@ -145,7 +140,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/type/date.rb, line 30
@@ -153,7 +148,7 @@ 

:date end

- See on GitHub + 🔎 See on GitHub
@@ -180,7 +175,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/type/date.rb, line 34
@@ -188,7 +183,7 @@ 

value.to_fs(:db).inspect end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveModel/Type/DateTime.html b/src/classes/ActiveModel/Type/DateTime.html index 6a8cdfc014..e12025f308 100644 --- a/src/classes/ActiveModel/Type/DateTime.html +++ b/src/classes/ActiveModel/Type/DateTime.html @@ -148,7 +148,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/type/date_time.rb, line 49
@@ -156,7 +156,7 @@ 

:datetime end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveModel/Type/Decimal.html b/src/classes/ActiveModel/Type/Decimal.html index 4eba130dab..1716bb3f1f 100644 --- a/src/classes/ActiveModel/Type/Decimal.html +++ b/src/classes/ActiveModel/Type/Decimal.html @@ -124,11 +124,6 @@

Constants

18 - -   - - - @@ -161,7 +156,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/type/decimal.rb, line 49
@@ -169,7 +164,7 @@ 

:decimal end

- See on GitHub + 🔎 See on GitHub
@@ -196,7 +191,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/type/decimal.rb, line 53
@@ -204,7 +199,7 @@ 

value.to_s.inspect end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveModel/Type/Float.html b/src/classes/ActiveModel/Type/Float.html index 221027e5e4..f14b8f1325 100644 --- a/src/classes/ActiveModel/Type/Float.html +++ b/src/classes/ActiveModel/Type/Float.html @@ -136,7 +136,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/type/float.rb, line 39
@@ -144,7 +144,7 @@ 

:float end

- See on GitHub + 🔎 See on GitHub
@@ -171,20 +171,20 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/type/float.rb, line 43
       def type_cast_for_schema(value)
-        return "::Float::NAN" if value.try(:nan?)
+        return "::Float::NAN" if value.try(:nan?)
         case value
-        when ::Float::INFINITY then "::Float::INFINITY"
-        when -::Float::INFINITY then "-::Float::INFINITY"
+        when ::Float::INFINITY then "::Float::INFINITY"
+        when -::Float::INFINITY then "-::Float::INFINITY"
         else super
         end
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveModel/Type/ImmutableString.html b/src/classes/ActiveModel/Type/ImmutableString.html index 9978b1b44d..bc4b9e6b36 100644 --- a/src/classes/ActiveModel/Type/ImmutableString.html +++ b/src/classes/ActiveModel/Type/ImmutableString.html @@ -126,17 +126,17 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/type/immutable_string.rb, line 38
       def initialize(**args)
-        @true  = -(args.delete(:true)&.to_s  || "t")
-        @false = -(args.delete(:false)&.to_s || "f")
+        @true  = -(args.delete(:true)&.to_s  || "t")
+        @false = -(args.delete(:false)&.to_s || "f")
         super
       end
- See on GitHub + 🔎 See on GitHub
@@ -167,7 +167,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/type/immutable_string.rb, line 48
@@ -180,7 +180,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -207,7 +207,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/type/immutable_string.rb, line 44
@@ -215,7 +215,7 @@ 

:string end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveModel/Type/Integer.html b/src/classes/ActiveModel/Type/Integer.html index d463299e73..6a96ade67a 100644 --- a/src/classes/ActiveModel/Type/Integer.html +++ b/src/classes/ActiveModel/Type/Integer.html @@ -171,7 +171,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/type/integer.rb, line 51
@@ -180,7 +180,7 @@ 

@range = min_value...max_value end

- See on GitHub + 🔎 See on GitHub
@@ -211,7 +211,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/type/integer.rb, line 60
@@ -220,7 +220,7 @@ 

value.to_i end

- See on GitHub + 🔎 See on GitHub
@@ -247,7 +247,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/type/integer.rb, line 74
@@ -259,7 +259,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -286,16 +286,16 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/type/integer.rb, line 65
       def serialize(value)
-        return if value.is_a?(::String) && non_numeric_string?(value)
+        return if value.is_a?(::String) && non_numeric_string?(value)
         ensure_in_range(super)
       end
- See on GitHub + 🔎 See on GitHub
@@ -322,7 +322,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/type/integer.rb, line 56
@@ -330,7 +330,7 @@ 

:integer end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveModel/Type/SerializeCastValue/ClassMethods.html b/src/classes/ActiveModel/Type/SerializeCastValue/ClassMethods.html index 6491942c18..7827b1e692 100644 --- a/src/classes/ActiveModel/Type/SerializeCastValue/ClassMethods.html +++ b/src/classes/ActiveModel/Type/SerializeCastValue/ClassMethods.html @@ -78,16 +78,16 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/type/serialize_cast_value.rb, line 9
         def serialize_cast_value_compatible?
           return @serialize_cast_value_compatible if defined?(@serialize_cast_value_compatible)
-          @serialize_cast_value_compatible = ancestors.index(instance_method(:serialize_cast_value).owner) <= ancestors.index(instance_method(:serialize).owner)
+          @serialize_cast_value_compatible = ancestors.index(instance_method(:serialize_cast_value).owner) <= ancestors.index(instance_method(:serialize).owner)
         end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveModel/Type/SerializeCastValue/DefaultImplementation.html b/src/classes/ActiveModel/Type/SerializeCastValue/DefaultImplementation.html index 4cc27d249c..4853b15528 100644 --- a/src/classes/ActiveModel/Type/SerializeCastValue/DefaultImplementation.html +++ b/src/classes/ActiveModel/Type/SerializeCastValue/DefaultImplementation.html @@ -78,7 +78,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/type/serialize_cast_value.rb, line 16
@@ -86,7 +86,7 @@ 

value end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveModel/Type/String.html b/src/classes/ActiveModel/Type/String.html index f4af58bcf6..fcb593df2f 100644 --- a/src/classes/ActiveModel/Type/String.html +++ b/src/classes/ActiveModel/Type/String.html @@ -98,7 +98,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/type/string.rb, line 16
@@ -108,7 +108,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -135,7 +135,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/type/string.rb, line 22
@@ -149,7 +149,7 @@ 

) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveModel/Type/Time.html b/src/classes/ActiveModel/Type/Time.html index ebd22df5ea..5716741430 100644 --- a/src/classes/ActiveModel/Type/Time.html +++ b/src/classes/ActiveModel/Type/Time.html @@ -149,7 +149,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/type/time.rb, line 45
@@ -157,7 +157,7 @@ 

:time end

- See on GitHub + 🔎 See on GitHub
@@ -184,7 +184,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/type/time.rb, line 49
@@ -193,7 +193,7 @@ 

case value when ::String - value = "2000-01-01 #{value}" + value = "2000-01-01 #{value}" time_hash = begin ::Date._parse(value) rescue ArgumentError @@ -207,7 +207,7 @@

super(value) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveModel/Type/Value.html b/src/classes/ActiveModel/Type/Value.html index 96dd148cec..43574b9d86 100644 --- a/src/classes/ActiveModel/Type/Value.html +++ b/src/classes/ActiveModel/Type/Value.html @@ -187,7 +187,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/type/value.rb, line 17
@@ -198,7 +198,7 @@ 

@limit = limit end

- See on GitHub + 🔎 See on GitHub
@@ -233,18 +233,18 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/type/value.rb, line 121
       def ==(other)
-        self.class == other.class &&
-          precision == other.precision &&
-          scale == other.scale &&
+        self.class == other.class &&
+          precision == other.precision &&
+          scale == other.scale &&
           limit == other.limit
       end
- See on GitHub + 🔎 See on GitHub
@@ -271,7 +271,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/type/value.rb, line 144
@@ -279,7 +279,7 @@ 

raise NoMethodError end

- See on GitHub + 🔎 See on GitHub
@@ -306,14 +306,14 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/type/value.rb, line 133
       def assert_valid_value(_)
       end
- See on GitHub + 🔎 See on GitHub
@@ -344,7 +344,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/type/value.rb, line 57
@@ -352,7 +352,7 @@ 

cast_value(value) unless value.nil? end

- See on GitHub + 🔎 See on GitHub
@@ -379,7 +379,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/type/value.rb, line 84
@@ -387,7 +387,7 @@ 

old_value != new_value end

- See on GitHub + 🔎 See on GitHub
@@ -426,7 +426,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/type/value.rb, line 105
@@ -434,7 +434,7 @@ 

false end

- See on GitHub + 🔎 See on GitHub
@@ -463,7 +463,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/type/value.rb, line 43
@@ -471,7 +471,7 @@ 

cast(value) end

- See on GitHub + 🔎 See on GitHub
@@ -523,7 +523,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/type/value.rb, line 129
@@ -531,7 +531,7 @@ 

[self.class, precision, scale, limit].hash end

- See on GitHub + 🔎 See on GitHub
@@ -558,7 +558,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/type/value.rb, line 28
@@ -566,7 +566,7 @@ 

true end

- See on GitHub + 🔎 See on GitHub
@@ -593,7 +593,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/type/value.rb, line 65
@@ -601,7 +601,7 @@ 

value end

- See on GitHub + 🔎 See on GitHub
@@ -628,14 +628,14 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/type/value.rb, line 34
       def type
       end
- See on GitHub + 🔎 See on GitHub
@@ -665,7 +665,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/type/value.rb, line 152
@@ -673,7 +673,7 @@ 

value end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveModel/UnknownAttributeError.html b/src/classes/ActiveModel/UnknownAttributeError.html index 6dbaaa450e..40b18a7529 100644 --- a/src/classes/ActiveModel/UnknownAttributeError.html +++ b/src/classes/ActiveModel/UnknownAttributeError.html @@ -123,17 +123,17 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/errors.rb, line 515
     def initialize(record, attribute)
       @record = record
       @attribute = attribute
-      super("unknown attribute '#{attribute}' for #{@record.class}.")
+      super("unknown attribute '#{attribute}' for #{@record.class}.")
     end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveModel/VERSION.html b/src/classes/ActiveModel/VERSION.html index 85389c789b..7e187ac8e6 100644 --- a/src/classes/ActiveModel/VERSION.html +++ b/src/classes/ActiveModel/VERSION.html @@ -50,11 +50,6 @@

Constants

7 - -   - - - MINOR @@ -62,11 +57,6 @@

Constants

1 - -   - - - PRE @@ -74,11 +64,6 @@

Constants

nil - -   - - - STRING @@ -86,11 +71,6 @@

Constants

[MAJOR, MINOR, TINY, PRE].compact.join(".") - -   - - - TINY @@ -98,11 +78,6 @@

Constants

0 - -   - - - diff --git a/src/classes/ActiveModel/ValidationError.html b/src/classes/ActiveModel/ValidationError.html index 92ddf2ac66..f03a2bf0d3 100644 --- a/src/classes/ActiveModel/ValidationError.html +++ b/src/classes/ActiveModel/ValidationError.html @@ -112,17 +112,17 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/validations.rb, line 463
     def initialize(model)
       @model = model
-      errors = @model.errors.full_messages.join(", ")
-      super(I18n.t(:"#{@model.class.i18n_scope}.errors.messages.model_invalid", errors: errors, default: :"errors.messages.model_invalid"))
+      errors = @model.errors.full_messages.join(", ")
+      super(I18n.t(:"#{@model.class.i18n_scope}.errors.messages.model_invalid", errors: errors, default: :"errors.messages.model_invalid"))
     end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveModel/Validations.html b/src/classes/ActiveModel/Validations.html index 55aaa1998c..9a717908ea 100644 --- a/src/classes/ActiveModel/Validations.html +++ b/src/classes/ActiveModel/Validations.html @@ -239,7 +239,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/validations.rb, line 330
@@ -247,7 +247,7 @@ 

@errors ||= Errors.new(self) end

- See on GitHub + 🔎 See on GitHub
@@ -302,7 +302,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/validations.rb, line 402
@@ -310,7 +310,7 @@ 

!valid?(context) end

- See on GitHub + 🔎 See on GitHub
@@ -369,7 +369,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/validations.rb, line 363
@@ -381,7 +381,7 @@ 

self.validation_context = current_context end

- See on GitHub + 🔎 See on GitHub
@@ -435,7 +435,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/validations.rb, line 411
@@ -443,7 +443,7 @@ 

valid?(context) || raise_validation_error end

- See on GitHub + 🔎 See on GitHub
@@ -500,21 +500,21 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/validations/with.rb, line 144
-    def validates_with(*args, &block)
+    def validates_with(*args, &block)
       options = args.extract_options!
       options[:class] = self.class
 
       args.each do |klass|
-        validator = klass.new(options.dup, &block)
+        validator = klass.new(options.dup, &block)
         validator.validate(self)
       end
     end
- See on GitHub + 🔎 See on GitHub
@@ -554,7 +554,7 @@

- See on GitHub + 🔎 See on GitHub @@ -582,7 +582,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/validations.rb, line 445
@@ -590,7 +590,7 @@ 

raise(ValidationError.new(self)) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveModel/Validations/AcceptanceValidator/LazilyDefineAttributes.html b/src/classes/ActiveModel/Validations/AcceptanceValidator/LazilyDefineAttributes.html index 02c4bd62d7..a09b989767 100644 --- a/src/classes/ActiveModel/Validations/AcceptanceValidator/LazilyDefineAttributes.html +++ b/src/classes/ActiveModel/Validations/AcceptanceValidator/LazilyDefineAttributes.html @@ -113,15 +113,15 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/validations/acceptance.rb, line 28
           def initialize(attributes)
-            @attributes = attributes.map(&:to_s)
+            @attributes = attributes.map(&:to_s)
           end
- See on GitHub + 🔎 See on GitHub
@@ -152,15 +152,15 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/validations/acceptance.rb, line 73
           def ==(other)
-            self.class == other.class && attributes == other.attributes
+            self.class == other.class && attributes == other.attributes
           end
- See on GitHub + 🔎 See on GitHub
@@ -187,16 +187,16 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/validations/acceptance.rb, line 56
           def define_on(klass)
-            @lock&.synchronize do
+            @lock&.synchronize do
               return unless @lock
 
               attr_readers = attributes.reject { |name| klass.attribute_method?(name) }
-              attr_writers = attributes.reject { |name| klass.attribute_method?("#{name}=") }
+              attr_writers = attributes.reject { |name| klass.attribute_method?("#{name}=") }
 
               attr_reader(*attr_readers)
               attr_writer(*attr_writers)
@@ -208,7 +208,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -235,7 +235,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/validations/acceptance.rb, line 32
@@ -248,17 +248,17 @@ 

super(method_name, include_private) || mod.matches?(method_name) end - define_method(:method_missing) do |method_name, *args, &block| + define_method(:method_missing) do |method_name, *args, &block| mod.define_on(klass) if mod.matches?(method_name) - send(method_name, *args, &block) + send(method_name, *args, &block) else - super(method_name, *args, &block) + super(method_name, *args, &block) end end end

- See on GitHub + 🔎 See on GitHub
@@ -285,16 +285,16 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/validations/acceptance.rb, line 51
           def matches?(method_name)
-            attr_name = method_name.to_s.chomp("=")
+            attr_name = method_name.to_s.chomp("=")
             attributes.any? { |name| name == attr_name }
           end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveModel/Validations/Callbacks/ClassMethods.html b/src/classes/ActiveModel/Validations/Callbacks/ClassMethods.html index c7690d11df..90e49ad9b8 100644 --- a/src/classes/ActiveModel/Validations/Callbacks/ClassMethods.html +++ b/src/classes/ActiveModel/Validations/Callbacks/ClassMethods.html @@ -107,21 +107,21 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/validations/callbacks.rb, line 88
-        def after_validation(*args, &block)
+        def after_validation(*args, &block)
           options = args.extract_options!
           options = options.dup
           options[:prepend] = true
 
           set_options_for_callback(options)
 
-          set_callback(:validation, :after, *args, options, &block)
+          set_callback(:validation, :after, *args, options, &block)
         end
- See on GitHub + 🔎 See on GitHub
@@ -170,19 +170,19 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/validations/callbacks.rb, line 55
-        def before_validation(*args, &block)
+        def before_validation(*args, &block)
           options = args.extract_options!
 
           set_options_for_callback(options)
 
-          set_callback(:validation, :before, *args, options, &block)
+          set_callback(:validation, :before, *args, options, &block)
         end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveModel/Validations/ClassMethods.html b/src/classes/ActiveModel/Validations/ClassMethods.html index db83f1adaa..d1e9c2a3bc 100644 --- a/src/classes/ActiveModel/Validations/ClassMethods.html +++ b/src/classes/ActiveModel/Validations/ClassMethods.html @@ -124,7 +124,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/validations.rb, line 284
@@ -132,7 +132,7 @@ 

method_defined?(attribute) end

- See on GitHub + 🔎 See on GitHub
@@ -192,7 +192,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/validations.rb, line 248
@@ -201,7 +201,7 @@ 

_validators.clear end

- See on GitHub + 🔎 See on GitHub
@@ -280,17 +280,17 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/validations.rb, line 171
-      def validate(*args, &block)
+      def validate(*args, &block)
         options = args.extract_options!
 
         if args.all?(Symbol)
           options.each_key do |k|
             unless VALID_OPTIONS_FOR_VALIDATE.include?(k)
-              raise ArgumentError.new("Unknown key: #{k.inspect}. Valid keys are: #{VALID_OPTIONS_FOR_VALIDATE.map(&:inspect).join(', ')}. Perhaps you meant to call `validates` instead of `validate`?")
+              raise ArgumentError.new("Unknown key: #{k.inspect}. Valid keys are: #{VALID_OPTIONS_FOR_VALIDATE.map(&:inspect).join(', ')}. Perhaps you meant to call `validates` instead of `validate`?")
             end
           end
         end
@@ -299,10 +299,10 @@ 

options = options.merge(if: [predicate_for_validation_context(options[:on]), *options[:if]]) end - set_callback(:validate, *args, options, &block) + set_callback(:validate, *args, options, &block) end

- See on GitHub + 🔎 See on GitHub
@@ -415,7 +415,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/validations/validates.rb, line 106
@@ -423,18 +423,18 @@ 

defaults = attributes.extract_options!.dup validations = defaults.slice!(*_validates_default_keys) - raise ArgumentError, "You need to supply at least one attribute" if attributes.empty? - raise ArgumentError, "You need to supply at least one validation" if validations.empty? + raise ArgumentError, "You need to supply at least one attribute" if attributes.empty? + raise ArgumentError, "You need to supply at least one validation" if validations.empty? defaults[:attributes] = attributes validations.each do |key, options| - key = "#{key.to_s.camelize}Validator" + key = "#{key.to_s.camelize}Validator" begin validator = const_get(key) rescue NameError - raise ArgumentError, "Unknown validator: '#{key}'" + raise ArgumentError, "Unknown validator: '#{key}'" end next unless options @@ -443,7 +443,7 @@

end end

- See on GitHub + 🔎 See on GitHub
@@ -483,17 +483,17 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/validations/validates.rb, line 148
       def validates!(*attributes)
         options = attributes.extract_options!
         options[:strict] = true
-        validates(*(attributes << options))
+        validates(*(attributes << options))
       end
- See on GitHub + 🔎 See on GitHub
@@ -544,15 +544,15 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/validations.rb, line 104
-      def validates_each(*attr_names, &block)
-        validates_with BlockValidator, _merge_attributes(attr_names), &block
+      def validates_each(*attr_names, &block)
+        validates_with BlockValidator, _merge_attributes(attr_names), &block
       end
- See on GitHub + 🔎 See on GitHub
@@ -635,30 +635,30 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/validations/with.rb, line 88
-      def validates_with(*args, &block)
+      def validates_with(*args, &block)
         options = args.extract_options!
         options[:class] = self
 
         args.each do |klass|
-          validator = klass.new(options.dup, &block)
+          validator = klass.new(options.dup, &block)
 
-          if validator.respond_to?(:attributes) && !validator.attributes.empty?
+          if validator.respond_to?(:attributes) && !validator.attributes.empty?
             validator.attributes.each do |attribute|
-              _validators[attribute.to_sym] << validator
+              _validators[attribute.to_sym] << validator
             end
           else
-            _validators[nil] << validator
+            _validators[nil] << validator
           end
 
           validate(validator, options)
         end
       end
- See on GitHub + 🔎 See on GitHub
@@ -701,7 +701,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/validations.rb, line 206
@@ -709,7 +709,7 @@ 

_validators.values.flatten.uniq end

- See on GitHub + 🔎 See on GitHub
@@ -751,7 +751,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/validations.rb, line 268
@@ -761,7 +761,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveModel/Validations/HelperMethods.html b/src/classes/ActiveModel/Validations/HelperMethods.html index 49df19ee8d..7e14cbb254 100644 --- a/src/classes/ActiveModel/Validations/HelperMethods.html +++ b/src/classes/ActiveModel/Validations/HelperMethods.html @@ -152,7 +152,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/validations/absence.rb, line 28
@@ -160,7 +160,7 @@ 

validates_with AbsenceValidator, _merge_attributes(attr_names) end

- See on GitHub + 🔎 See on GitHub
@@ -204,7 +204,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/validations/acceptance.rb, line 108
@@ -212,7 +212,7 @@ 

validates_with AcceptanceValidator, _merge_attributes(attr_names) end

- See on GitHub + 🔎 See on GitHub
@@ -286,7 +286,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/validations/comparison.rb, line 85
@@ -294,7 +294,7 @@ 

validates_with ComparisonValidator, _merge_attributes(attr_names) end

- See on GitHub + 🔎 See on GitHub
@@ -349,7 +349,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/validations/confirmation.rb, line 75
@@ -357,7 +357,7 @@ 

validates_with ConfirmationValidator, _merge_attributes(attr_names) end

- See on GitHub + 🔎 See on GitHub
@@ -405,7 +405,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/validations/exclusion.rb, line 44
@@ -413,7 +413,7 @@ 

validates_with ExclusionValidator, _merge_attributes(attr_names) end

- See on GitHub + 🔎 See on GitHub
@@ -480,7 +480,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/validations/format.rb, line 107
@@ -488,7 +488,7 @@ 

validates_with FormatValidator, _merge_attributes(attr_names) end

- See on GitHub + 🔎 See on GitHub
@@ -535,7 +535,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/validations/inclusion.rb, line 42
@@ -543,7 +543,7 @@ 

validates_with InclusionValidator, _merge_attributes(attr_names) end

- See on GitHub + 🔎 See on GitHub
@@ -621,7 +621,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/validations/length.rb, line 123
@@ -629,7 +629,7 @@ 

validates_with LengthValidator, _merge_attributes(attr_names) end

- See on GitHub + 🔎 See on GitHub
@@ -717,7 +717,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/validations/numericality.rb, line 217
@@ -725,7 +725,7 @@ 

validates_with NumericalityValidator, _merge_attributes(attr_names) end

- See on GitHub + 🔎 See on GitHub
@@ -770,7 +770,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/validations/presence.rb, line 34
@@ -778,7 +778,7 @@ 

validates_with PresenceValidator, _merge_attributes(attr_names) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveModel/Validator.html b/src/classes/ActiveModel/Validator.html index d0bd354c49..5da58ddb4e 100644 --- a/src/classes/ActiveModel/Validator.html +++ b/src/classes/ActiveModel/Validator.html @@ -207,15 +207,15 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/validator.rb, line 103
     def self.kind
-      @kind ||= name.split("::").last.underscore.chomp("_validator").to_sym unless anonymous?
+      @kind ||= name.split("::").last.underscore.chomp("_validator").to_sym unless anonymous?
     end
- See on GitHub + 🔎 See on GitHub
@@ -242,7 +242,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/validator.rb, line 108
@@ -250,7 +250,7 @@ 

@options = options.except(:class).freeze end

- See on GitHub + 🔎 See on GitHub
@@ -285,7 +285,7 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/validator.rb, line 116
@@ -293,7 +293,7 @@ 

self.class.kind end

- See on GitHub + 🔎 See on GitHub
@@ -320,15 +320,15 @@

- Source code + 📝 Source code
# File activemodel/lib/active_model/validator.rb, line 122
     def validate(record)
-      raise NotImplementedError, "Subclasses must implement a validate(record) method."
+      raise NotImplementedError, "Subclasses must implement a validate(record) method."
     end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord.html b/src/classes/ActiveRecord.html index 453484244d..659833a50b 100644 --- a/src/classes/ActiveRecord.html +++ b/src/classes/ActiveRecord.html @@ -1275,11 +1275,6 @@

Constants

Struct.new(:x, :y) - -   - - - UnknownAttributeError @@ -1485,7 +1480,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record.rb, line 211
@@ -1495,23 +1490,23 @@ 

when :ignore nil when :log - ->(warning) do - warning_message = "[#{warning.class}] #{warning.message}" - warning_message += " (#{warning.code})" if warning.code + ->(warning) do + warning_message = "[#{warning.class}] #{warning.message}" + warning_message += " (#{warning.code})" if warning.code ActiveRecord::Base.logger.warn(warning_message) end when :raise - ->(warning) { raise warning } + ->(warning) { raise warning } when :report - ->(warning) { Rails.error.report(warning, handled: true) } + ->(warning) { Rails.error.report(warning, handled: true) } when Proc action else - raise ArgumentError, "db_warnings_action must be one of :ignore, :log, :raise, :report, or a custom proc." + raise ArgumentError, "db_warnings_action must be one of :ignore, :log, :raise, :report, or a custom proc." end end

- See on GitHub + 🔎 See on GitHub
@@ -1538,19 +1533,19 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record.rb, line 196
   def self.default_timezone=(default_timezone)
     unless %i(local utc).include?(default_timezone)
-      raise ArgumentError, "default_timezone must be either :utc (default) or :local."
+      raise ArgumentError, "default_timezone must be either :utc (default) or :local."
     end
 
     @default_timezone = default_timezone
   end
- See on GitHub + 🔎 See on GitHub
@@ -1577,7 +1572,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record.rb, line 476
@@ -1585,7 +1580,7 @@ 

ConnectionAdapters::PoolConfig.disconnect_all! end

- See on GitHub + 🔎 See on GitHub
@@ -1612,7 +1607,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record.rb, line 465
@@ -1626,7 +1621,7 @@ 

ActiveRecord::Encryption.eager_load! end

- See on GitHub + 🔎 See on GitHub
@@ -1653,7 +1648,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/gem_version.rb, line 5
@@ -1661,7 +1656,7 @@ 

Gem::Version.new VERSION::STRING end

- See on GitHub + 🔎 See on GitHub
@@ -1688,19 +1683,19 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record.rb, line 278
   def self.global_executor_concurrency=(global_executor_concurrency)
     if self.async_query_executor.nil? || self.async_query_executor == :multi_thread_pool
-      raise ArgumentError, "`global_executor_concurrency` cannot be set when using the executor is nil or set to multi_thead_pool. For multiple thread pools, please set the concurrency in your database configuration."
+      raise ArgumentError, "`global_executor_concurrency` cannot be set when using the executor is nil or set to multi_thead_pool. For multiple thread pools, please set the concurrency in your database configuration."
     end
 
     @global_executor_concurrency = global_executor_concurrency
   end
- See on GitHub + 🔎 See on GitHub
@@ -1727,19 +1722,19 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record.rb, line 245
   def self.legacy_connection_handling=(_)
-    raise ArgumentError, <<~MSG.squish
+    raise ArgumentError, <<~MSG.squish
       The `legacy_connection_handling` setter was deprecated in 7.0 and removed in 7.1,
       but is still defined in your configuration. Please remove this call as it no longer
-      has any effect."
+      has any effect."
     MSG
   end
- See on GitHub + 🔎 See on GitHub
@@ -1766,7 +1761,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record.rb, line 457
@@ -1774,7 +1769,7 @@ 

Marshalling.format_version end

- See on GitHub + 🔎 See on GitHub
@@ -1801,7 +1796,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record.rb, line 461
@@ -1809,7 +1804,7 @@ 

Marshalling.format_version = value end

- See on GitHub + 🔎 See on GitHub
@@ -1836,18 +1831,18 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record.rb, line 395
   def self.suppress_multiple_database_warning
-    ActiveRecord.deprecator.warn(<<-MSG.squish)
+    ActiveRecord.deprecator.warn(<<-MSG.squish)
       config.active_record.suppress_multiple_database_warning is deprecated and will be removed in Rails 7.2.
       It no longer has any effect and should be removed from the configuration file.
     MSG
   end
- See on GitHub + 🔎 See on GitHub
@@ -1874,18 +1869,18 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record.rb, line 402
   def self.suppress_multiple_database_warning=(value)
-    ActiveRecord.deprecator.warn(<<-MSG.squish)
+    ActiveRecord.deprecator.warn(<<-MSG.squish)
       config.active_record.suppress_multiple_database_warning= is deprecated and will be removed in Rails 7.2.
       It no longer has any effect and should be removed from the configuration file.
     MSG
   end
- See on GitHub + 🔎 See on GitHub
@@ -1912,14 +1907,14 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record.rb, line 298
   singleton_class.attr_accessor :verbose_query_logs
 
- See on GitHub + 🔎 See on GitHub
@@ -1946,7 +1941,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/version.rb, line 7
@@ -1954,7 +1949,7 @@ 

gem_version end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/AdapterError.html b/src/classes/ActiveRecord/AdapterError.html index 03225ee9c6..b225411c83 100644 --- a/src/classes/ActiveRecord/AdapterError.html +++ b/src/classes/ActiveRecord/AdapterError.html @@ -103,7 +103,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/errors.rb, line 60
@@ -112,7 +112,7 @@ 

super(message) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/Aggregations/ClassMethods.html b/src/classes/ActiveRecord/Aggregations/ClassMethods.html index 554f8ddae0..bdbee2a377 100644 --- a/src/classes/ActiveRecord/Aggregations/ClassMethods.html +++ b/src/classes/ActiveRecord/Aggregations/ClassMethods.html @@ -256,14 +256,14 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/aggregations.rb, line 225
         def composed_of(part_id, options = {})
           options.assert_valid_keys(:class_name, :mapping, :allow_nil, :constructor, :converter)
 
-          unless self < Aggregations
+          unless self < Aggregations
             include Aggregations
           end
 
@@ -282,7 +282,7 @@ 

Reflection.add_aggregate_reflection self, part_id, reflection end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/Associations/ClassMethods.html b/src/classes/ActiveRecord/Associations/ClassMethods.html index 164cee4fda..ac16320f49 100644 --- a/src/classes/ActiveRecord/Associations/ClassMethods.html +++ b/src/classes/ActiveRecord/Associations/ClassMethods.html @@ -1050,7 +1050,7 @@

Options

- Source code + 📝 Source code
# File activerecord/lib/active_record/associations.rb, line 1886
@@ -1059,7 +1059,7 @@ 

Options

Reflection.add_reflection self, name, reflection end
- See on GitHub + 🔎 See on GitHub
@@ -1242,11 +1242,11 @@

Options

- Source code + 📝 Source code
# File activerecord/lib/active_record/associations.rb, line 2067
-        def has_and_belongs_to_many(name, scope = nil, **options, &extension)
+        def has_and_belongs_to_many(name, scope = nil, **options, &extension)
           habtm_reflection = ActiveRecord::Reflection::HasAndBelongsToManyReflection.new(name, scope, options, self)
 
           builder = Builder::HasAndBelongsToMany.new name, self, options
@@ -1263,7 +1263,7 @@ 

Options

middle_reflection.parent_reflection = habtm_reflection include Module.new { - class_eval <<-RUBY, __FILE__, __LINE__ + 1 + class_eval <<-RUBY, __FILE__, __LINE__ + 1 def destroy_associations association(:#{middle_reflection.name}).delete_all(:delete_all) association(:#{name}).reset @@ -1280,11 +1280,11 @@

Options

hm_options[k] = options[k] if options.key? k end - has_many name, scope, **hm_options, &extension + has_many name, scope, **hm_options, &extension _reflections[name.to_s].parent_reflection = habtm_reflection end
- See on GitHub + 🔎 See on GitHub
@@ -1522,16 +1522,16 @@

Options

- Source code + 📝 Source code
# File activerecord/lib/active_record/associations.rb, line 1522
-        def has_many(name, scope = nil, **options, &extension)
-          reflection = Builder::HasMany.build(self, name, scope, options, &extension)
+        def has_many(name, scope = nil, **options, &extension)
+          reflection = Builder::HasMany.build(self, name, scope, options, &extension)
           Reflection.add_reflection self, name, reflection
         end
- See on GitHub + 🔎 See on GitHub
@@ -1719,7 +1719,7 @@

Options

- Source code + 📝 Source code
# File activerecord/lib/active_record/associations.rb, line 1708
@@ -1728,7 +1728,7 @@ 

Options

Reflection.add_reflection self, name, reflection end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/Associations/CollectionProxy.html b/src/classes/ActiveRecord/Associations/CollectionProxy.html index 4bc7e6d658..12924df6ed 100644 --- a/src/classes/ActiveRecord/Associations/CollectionProxy.html +++ b/src/classes/ActiveRecord/Associations/CollectionProxy.html @@ -306,15 +306,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/associations/collection_proxy.rb, line 1036
-      def <<(*records)
-        proxy_association.concat(records) && self
+      def <<(*records)
+        proxy_association.concat(records) && self
       end
- See on GitHub + 🔎 See on GitHub
@@ -365,7 +365,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/associations/collection_proxy.rb, line 967
@@ -373,7 +373,7 @@ 

load_target == other end

- See on GitHub + 🔎 See on GitHub
@@ -429,7 +429,7 @@

- See on GitHub + 🔎 See on GitHub @@ -504,15 +504,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/associations/collection_proxy.rb, line 318
-      def build(attributes = {}, &block)
-        @association.build(attributes, &block)
+      def build(attributes = {}, &block)
+        @association.build(attributes, &block)
       end
- See on GitHub + 🔎 See on GitHub
@@ -539,7 +539,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/associations/collection_proxy.rb, line 724
@@ -547,7 +547,7 @@ 

null_scope? ? scope.calculate(operation, column_name) : super end

- See on GitHub + 🔎 See on GitHub
@@ -574,7 +574,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/associations/collection_proxy.rb, line 1053
@@ -583,7 +583,7 @@ 

self end

- See on GitHub + 🔎 See on GitHub
@@ -653,7 +653,7 @@

- See on GitHub + 🔎 See on GitHub @@ -702,15 +702,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/associations/collection_proxy.rb, line 349
-      def create(attributes = {}, &block)
-        @association.create(attributes, &block)
+      def create(attributes = {}, &block)
+        @association.create(attributes, &block)
       end
- See on GitHub + 🔎 See on GitHub
@@ -749,15 +749,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/associations/collection_proxy.rb, line 365
-      def create!(attributes = {}, &block)
-        @association.create!(attributes, &block)
+      def create!(attributes = {}, &block)
+        @association.create!(attributes, &block)
       end
- See on GitHub + 🔎 See on GitHub
@@ -894,7 +894,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/associations/collection_proxy.rb, line 620
@@ -902,7 +902,7 @@ 

@association.delete(*records).tap { reset_scope } end

- See on GitHub + 🔎 See on GitHub
@@ -1003,7 +1003,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/associations/collection_proxy.rb, line 474
@@ -1011,7 +1011,7 @@ 

@association.delete_all(dependent).tap { reset_scope } end

- See on GitHub + 🔎 See on GitHub
@@ -1104,7 +1104,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/associations/collection_proxy.rb, line 692
@@ -1112,7 +1112,7 @@ 

@association.destroy(*records).tap { reset_scope } end

- See on GitHub + 🔎 See on GitHub
@@ -1159,7 +1159,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/associations/collection_proxy.rb, line 501
@@ -1167,7 +1167,7 @@ 

@association.destroy_all.tap { reset_scope } end

- See on GitHub + 🔎 See on GitHub
@@ -1213,7 +1213,7 @@

- See on GitHub + 🔎 See on GitHub @@ -1251,7 +1251,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/associations/collection_proxy.rb, line 831
@@ -1259,7 +1259,7 @@ 

@association.empty? end

- See on GitHub + 🔎 See on GitHub
@@ -1285,7 +1285,7 @@

- See on GitHub + 🔎 See on GitHub @@ -1334,7 +1334,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/associations/collection_proxy.rb, line 138
@@ -1343,7 +1343,7 @@ 

@association.find(*args) end

- See on GitHub + 🔎 See on GitHub
@@ -1393,7 +1393,7 @@

- See on GitHub + 🔎 See on GitHub @@ -1417,7 +1417,7 @@

- See on GitHub + 🔎 See on GitHub @@ -1441,7 +1441,7 @@

- See on GitHub + 🔎 See on GitHub @@ -1476,7 +1476,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/associations/collection_proxy.rb, line 927
@@ -1484,7 +1484,7 @@ 

!!@association.include?(record) end

- See on GitHub + 🔎 See on GitHub
@@ -1535,7 +1535,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/associations/collection_proxy.rb, line 259
@@ -1544,7 +1544,7 @@ 

super end

- See on GitHub + 🔎 See on GitHub
@@ -1587,7 +1587,7 @@

- See on GitHub + 🔎 See on GitHub @@ -1612,7 +1612,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/associations/collection_proxy.rb, line 44
@@ -1620,7 +1620,7 @@ 

@association.load_target end

- See on GitHub + 🔎 See on GitHub
@@ -1681,7 +1681,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/associations/collection_proxy.rb, line 53
@@ -1689,7 +1689,7 @@ 

@association.loaded? end

- See on GitHub + 🔎 See on GitHub
@@ -1747,7 +1747,7 @@

- See on GitHub + 🔎 See on GitHub @@ -1797,7 +1797,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/associations/collection_proxy.rb, line 728
@@ -1805,7 +1805,7 @@ 

null_scope? ? scope.pluck(*column_names) : super end

- See on GitHub + 🔎 See on GitHub
@@ -1871,7 +1871,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/associations/collection_proxy.rb, line 1072
@@ -1880,7 +1880,7 @@ 

reset_scope end

- See on GitHub + 🔎 See on GitHub
@@ -1928,7 +1928,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/associations/collection_proxy.rb, line 391
@@ -1936,7 +1936,7 @@ 

@association.replace(other_array) end

- See on GitHub + 🔎 See on GitHub
@@ -1979,7 +1979,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/associations/collection_proxy.rb, line 1093
@@ -1989,7 +1989,7 @@ 

reset_scope end

- See on GitHub + 🔎 See on GitHub
@@ -2016,7 +2016,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/associations/collection_proxy.rb, line 936
@@ -2024,7 +2024,7 @@ 

@scope ||= @association.scope end

- See on GitHub + 🔎 See on GitHub
@@ -2050,7 +2050,7 @@

- See on GitHub + 🔎 See on GitHub @@ -2074,7 +2074,7 @@

- See on GitHub + 🔎 See on GitHub @@ -2141,7 +2141,7 @@

- See on GitHub + 🔎 See on GitHub @@ -2187,7 +2187,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/associations/collection_proxy.rb, line 782
@@ -2195,7 +2195,7 @@ 

@association.size end

- See on GitHub + 🔎 See on GitHub
@@ -2246,7 +2246,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/associations/collection_proxy.rb, line 289
@@ -2255,7 +2255,7 @@ 

super end

- See on GitHub + 🔎 See on GitHub
@@ -2282,7 +2282,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/associations/collection_proxy.rb, line 40
@@ -2290,7 +2290,7 @@ 

@association.target end

- See on GitHub + 🔎 See on GitHub
@@ -2316,7 +2316,7 @@

- See on GitHub + 🔎 See on GitHub @@ -2340,7 +2340,7 @@

- See on GitHub + 🔎 See on GitHub diff --git a/src/classes/ActiveRecord/AttributeAssignmentError.html b/src/classes/ActiveRecord/AttributeAssignmentError.html index d14fa5cad3..b26d2b8d64 100644 --- a/src/classes/ActiveRecord/AttributeAssignmentError.html +++ b/src/classes/ActiveRecord/AttributeAssignmentError.html @@ -111,7 +111,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/errors.rb, line 424
@@ -121,7 +121,7 @@ 

@attribute = attribute end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/AttributeMethods.html b/src/classes/ActiveRecord/AttributeMethods.html index 9e27f73181..a27f855f1c 100644 --- a/src/classes/ActiveRecord/AttributeMethods.html +++ b/src/classes/ActiveRecord/AttributeMethods.html @@ -222,11 +222,6 @@

Constants

%w(private public protected allocate new name parent superclass) - -   - - - @@ -278,7 +273,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/attribute_methods.rb, line 412
@@ -286,7 +281,7 @@ 

read_attribute(attr_name) { |n| missing_attribute(n, caller) } end

- See on GitHub + 🔎 See on GitHub
@@ -321,7 +316,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/attribute_methods.rb, line 425
@@ -329,7 +324,7 @@ 

write_attribute(attr_name, value) end

- See on GitHub + 🔎 See on GitHub
@@ -381,7 +376,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/attribute_methods.rb, line 457
@@ -389,7 +384,7 @@ 

@attributes.accessed end

- See on GitHub + 🔎 See on GitHub
@@ -428,7 +423,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/attribute_methods.rb, line 362
@@ -439,7 +434,7 @@ 

format_for_inspect(attr_name, value) end

- See on GitHub + 🔎 See on GitHub
@@ -474,7 +469,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/attribute_methods.rb, line 331
@@ -482,7 +477,7 @@ 

@attributes.keys end

- See on GitHub + 🔎 See on GitHub
@@ -521,7 +516,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/attribute_methods.rb, line 384
@@ -529,10 +524,10 @@ 

attr_name = attr_name.to_s attr_name = self.class.attribute_aliases[attr_name] || attr_name value = _read_attribute(attr_name) - !value.nil? && !(value.respond_to?(:empty?) && value.empty?) + !value.nil? && !(value.respond_to?(:empty?) && value.empty?) end

- See on GitHub + 🔎 See on GitHub
@@ -567,7 +562,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/attribute_methods.rb, line 343
@@ -575,7 +570,7 @@ 

@attributes.to_hash end

- See on GitHub + 🔎 See on GitHub
@@ -613,7 +608,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/attribute_methods.rb, line 313
@@ -623,7 +618,7 @@ 

@attributes.key?(attr_name) end

- See on GitHub + 🔎 See on GitHub
@@ -663,7 +658,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/attribute_methods.rb, line 286
@@ -683,7 +678,7 @@ 

true end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/AttributeMethods/BeforeTypeCast.html b/src/classes/ActiveRecord/AttributeMethods/BeforeTypeCast.html index b4c4f22093..f84404f901 100644 --- a/src/classes/ActiveRecord/AttributeMethods/BeforeTypeCast.html +++ b/src/classes/ActiveRecord/AttributeMethods/BeforeTypeCast.html @@ -127,7 +127,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/attribute_methods/before_type_cast.rb, line 82
@@ -135,7 +135,7 @@ 

@attributes.values_before_type_cast end

- See on GitHub + 🔎 See on GitHub
@@ -162,7 +162,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/attribute_methods/before_type_cast.rb, line 87
@@ -170,7 +170,7 @@ 

@attributes.values_for_database end

- See on GitHub + 🔎 See on GitHub
@@ -208,7 +208,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/attribute_methods/before_type_cast.rb, line 48
@@ -219,7 +219,7 @@ 

attribute_before_type_cast(name) end

- See on GitHub + 🔎 See on GitHub
@@ -255,7 +255,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/attribute_methods/before_type_cast.rb, line 65
@@ -266,7 +266,7 @@ 

attribute_for_database(name) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/AttributeMethods/ClassMethods.html b/src/classes/ActiveRecord/AttributeMethods/ClassMethods.html index 3d422ed125..00194a9cf4 100644 --- a/src/classes/ActiveRecord/AttributeMethods/ClassMethods.html +++ b/src/classes/ActiveRecord/AttributeMethods/ClassMethods.html @@ -102,7 +102,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/attribute_methods.rb, line 53
@@ -116,7 +116,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -143,7 +143,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/attribute_methods.rb, line 85
@@ -154,29 +154,29 @@ 

old_name = old_name.to_s method_defined = method_defined?(target_name) || private_method_defined?(target_name) - manually_defined = method_defined && + manually_defined = method_defined && !self.instance_method(target_name).owner.is_a?(GeneratedAttributeMethods) reserved_method_name = ::ActiveRecord::AttributeMethods.dangerous_attribute_methods.include?(target_name) - if !abstract_class? && !has_attribute?(old_name) + if !abstract_class? && !has_attribute?(old_name) # We only need to issue this deprecation warning once, so we issue it when defining the original reader method. should_warn = target_name == old_name if should_warn ActiveRecord.deprecator.warn( - "#{self} model aliases `#{old_name}`, but `#{old_name}` is not an attribute. " \ - "Starting in Rails 7.2, alias_attribute with non-attribute targets will raise. " \ - "Use `alias_method :#{new_name}, :#{old_name}` or define the method manually." + "#{self} model aliases `#{old_name}`, but `#{old_name}` is not an attribute. " \ + "Starting in Rails 7.2, alias_attribute with non-attribute targets will raise. " \ + "Use `alias_method :#{new_name}, :#{old_name}` or define the method manually." ) end super - elsif manually_defined && !reserved_method_name + elsif manually_defined && !reserved_method_name aliased_method_redefined_as_well = method_defined_within?(method_name, self) return if aliased_method_redefined_as_well ActiveRecord.deprecator.warn( - "#{self} model aliases `#{old_name}` and has a method called `#{target_name}` defined. " \ - "Starting in Rails 7.2 `#{method_name}` will not be calling `#{target_name}` anymore. " \ - "You may want to additionally define `#{method_name}` to preserve the current behavior." + "#{self} model aliases `#{old_name}` and has a method called `#{target_name}` defined. " \ + "Starting in Rails 7.2 `#{method_name}` will not be calling `#{target_name}` anymore. " \ + "You may want to additionally define `#{method_name}` to preserve the current behavior." ) super else @@ -186,7 +186,7 @@

end end

- See on GitHub + 🔎 See on GitHub
@@ -221,15 +221,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/attribute_methods.rb, line 219
       def attribute_method?(attribute)
-        super || (table_exists? && column_names.include?(attribute.to_s.delete_suffix("=")))
+        super || (table_exists? && column_names.include?(attribute.to_s.delete_suffix("=")))
       end
- See on GitHub + 🔎 See on GitHub
@@ -263,19 +263,19 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/attribute_methods.rb, line 231
       def attribute_names
-        @attribute_names ||= if !abstract_class? && table_exists?
+        @attribute_names ||= if !abstract_class? && table_exists?
           attribute_types.keys
         else
           []
         end.freeze
       end
- See on GitHub + 🔎 See on GitHub
@@ -302,7 +302,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/attribute_methods.rb, line 196
@@ -320,7 +320,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -357,7 +357,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/attribute_methods.rb, line 249
@@ -367,7 +367,7 @@ 

attribute_types.key?(attr_name) end

- See on GitHub + 🔎 See on GitHub
@@ -407,27 +407,27 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/attribute_methods.rb, line 160
       def instance_method_already_implemented?(method_name)
         if dangerous_attribute_method?(method_name)
-          raise DangerousAttributeError, "#{method_name} is defined by Active Record. Check to make sure that you don't have an attribute or method with the same name."
+          raise DangerousAttributeError, "#{method_name} is defined by Active Record. Check to make sure that you don't have an attribute or method with the same name."
         end
 
         if superclass == Base
           super
         else
-          # If ThisClass < ... < SomeSuperClass < ... < Base and SomeSuperClass
-          # defines its own attribute method, then we don't want to override that.
-          defined = method_defined_within?(method_name, superclass, Base) &&
+          # If ThisClass < ... < SomeSuperClass < ... < Base and SomeSuperClass
+          # defines its own attribute method, then we don't want to override that.
+          defined = method_defined_within?(method_name, superclass, Base) &&
             ! superclass.instance_method(method_name).owner.is_a?(GeneratedAttributeMethods)
           defined || super
         end
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/AttributeMethods/Dirty.html b/src/classes/ActiveRecord/AttributeMethods/Dirty.html index 0c25860366..4e0e2d63c6 100644 --- a/src/classes/ActiveRecord/AttributeMethods/Dirty.html +++ b/src/classes/ActiveRecord/AttributeMethods/Dirty.html @@ -179,7 +179,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/attribute_methods/dirty.rb, line 106
@@ -187,7 +187,7 @@ 

mutations_before_last_save.original_value(attr_name.to_s) end

- See on GitHub + 🔎 See on GitHub
@@ -218,7 +218,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/attribute_methods/dirty.rb, line 148
@@ -226,7 +226,7 @@ 

mutations_from_database.change_to_attribute(attr_name.to_s) end

- See on GitHub + 🔎 See on GitHub
@@ -255,7 +255,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/attribute_methods/dirty.rb, line 160
@@ -263,7 +263,7 @@ 

mutations_from_database.original_value(attr_name.to_s) end

- See on GitHub + 🔎 See on GitHub
@@ -292,7 +292,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/attribute_methods/dirty.rb, line 187
@@ -300,7 +300,7 @@ 

mutations_from_database.changed_values end

- See on GitHub + 🔎 See on GitHub
@@ -327,7 +327,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/attribute_methods/dirty.rb, line 177
@@ -335,7 +335,7 @@ 

mutations_from_database.changed_attribute_names end

- See on GitHub + 🔎 See on GitHub
@@ -362,7 +362,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/attribute_methods/dirty.rb, line 171
@@ -370,7 +370,7 @@ 

mutations_from_database.changes end

- See on GitHub + 🔎 See on GitHub
@@ -397,7 +397,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/attribute_methods/dirty.rb, line 165
@@ -405,7 +405,7 @@ 

mutations_from_database.any_changes? end

- See on GitHub + 🔎 See on GitHub
@@ -432,7 +432,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/attribute_methods/dirty.rb, line 63
@@ -443,7 +443,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -472,7 +472,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/attribute_methods/dirty.rb, line 96
@@ -480,7 +480,7 @@ 

mutations_before_last_save.change_to_attribute(attr_name.to_s) end

- See on GitHub + 🔎 See on GitHub
@@ -515,7 +515,7 @@

Options

- Source code + 📝 Source code
# File activerecord/lib/active_record/attribute_methods/dirty.rb, line 84
@@ -523,7 +523,7 @@ 

Options

mutations_before_last_save.changed?(attr_name.to_s, **options) end
- See on GitHub + 🔎 See on GitHub
@@ -550,7 +550,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/attribute_methods/dirty.rb, line 116
@@ -558,7 +558,7 @@ 

mutations_before_last_save.changes end

- See on GitHub + 🔎 See on GitHub
@@ -585,7 +585,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/attribute_methods/dirty.rb, line 111
@@ -593,7 +593,7 @@ 

mutations_before_last_save.any_changes? end

- See on GitHub + 🔎 See on GitHub
@@ -628,7 +628,7 @@

Options

- Source code + 📝 Source code
# File activerecord/lib/active_record/attribute_methods/dirty.rb, line 134
@@ -636,7 +636,7 @@ 

Options

mutations_from_database.changed?(attr_name.to_s, **options) end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/AttributeMethods/PrimaryKey.html b/src/classes/ActiveRecord/AttributeMethods/PrimaryKey.html index 41a819412a..18b15e5058 100644 --- a/src/classes/ActiveRecord/AttributeMethods/PrimaryKey.html +++ b/src/classes/ActiveRecord/AttributeMethods/PrimaryKey.html @@ -121,7 +121,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/attribute_methods/primary_key.rb, line 20
@@ -131,7 +131,7 @@ 

@primary_key.map { |pk| _read_attribute(pk) } end

- See on GitHub + 🔎 See on GitHub
@@ -158,20 +158,20 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/attribute_methods/primary_key.rb, line 34
       def id=(value)
         if self.class.composite_primary_key?
-          raise TypeError, "Expected value matching #{self.class.primary_key.inspect}, got #{value.inspect}." unless value.is_a?(Enumerable)
+          raise TypeError, "Expected value matching #{self.class.primary_key.inspect}, got #{value.inspect}." unless value.is_a?(Enumerable)
           @primary_key.zip(value) { |attr, value| _write_attribute(attr, value) }
         else
           _write_attribute(@primary_key, value)
         end
       end
- See on GitHub + 🔎 See on GitHub
@@ -198,7 +198,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/attribute_methods/primary_key.rb, line 45
@@ -210,7 +210,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -237,7 +237,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/attribute_methods/primary_key.rb, line 55
@@ -249,7 +249,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -276,7 +276,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/attribute_methods/primary_key.rb, line 75
@@ -288,7 +288,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -315,7 +315,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/attribute_methods/primary_key.rb, line 65
@@ -327,7 +327,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -354,7 +354,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/attribute_methods/primary_key.rb, line 13
@@ -363,7 +363,7 @@ 

Array(key) if key end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/AttributeMethods/PrimaryKey/ClassMethods.html b/src/classes/ActiveRecord/AttributeMethods/PrimaryKey/ClassMethods.html index 051f55c12f..83b1d843fc 100644 --- a/src/classes/ActiveRecord/AttributeMethods/PrimaryKey/ClassMethods.html +++ b/src/classes/ActiveRecord/AttributeMethods/PrimaryKey/ClassMethods.html @@ -75,11 +75,6 @@

Constants

%w(id id= id? id_before_type_cast id_was id_in_database id_for_database).to_set - -   - - - PRIMARY_KEY_NOT_SET @@ -87,11 +82,6 @@

Constants

BasicObject.new - -   - - - @@ -124,15 +114,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/attribute_methods/primary_key.rb, line 104
           def dangerous_attribute_method?(method_name)
-            super && !ID_ATTRIBUTE_METHODS.include?(method_name)
+            super && !ID_ATTRIBUTE_METHODS.include?(method_name)
           end
- See on GitHub + 🔎 See on GitHub
@@ -159,15 +149,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/attribute_methods/primary_key.rb, line 100
           def instance_method_already_implemented?(method_name)
-            super || primary_key && ID_ATTRIBUTE_METHODS.include?(method_name)
+            super || primary_key && ID_ATTRIBUTE_METHODS.include?(method_name)
           end
- See on GitHub + 🔎 See on GitHub
@@ -194,7 +184,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/attribute_methods/primary_key.rb, line 111
@@ -205,7 +195,7 @@ 

@primary_key end

- See on GitHub + 🔎 See on GitHub
@@ -248,7 +238,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/attribute_methods/primary_key.rb, line 165
@@ -258,7 +248,7 @@ 

@attributes_builder = nil end

- See on GitHub + 🔎 See on GitHub
@@ -285,7 +275,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/attribute_methods/primary_key.rb, line 124
@@ -293,7 +283,7 @@ 

@quoted_primary_key ||= connection.quote_column_name(primary_key) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/AttributeMethods/Query.html b/src/classes/ActiveRecord/AttributeMethods/Query.html index 588fa1f309..465b44bca9 100644 --- a/src/classes/ActiveRecord/AttributeMethods/Query.html +++ b/src/classes/ActiveRecord/AttributeMethods/Query.html @@ -88,7 +88,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/attribute_methods/query.rb, line 13
@@ -98,7 +98,7 @@ 

query_cast_attribute(attr_name, value) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/AttributeMethods/Read.html b/src/classes/ActiveRecord/AttributeMethods/Read.html index 80e1a341cc..33fb076a0c 100644 --- a/src/classes/ActiveRecord/AttributeMethods/Read.html +++ b/src/classes/ActiveRecord/AttributeMethods/Read.html @@ -84,30 +84,30 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/attribute_methods/read.rb, line 29
-      def read_attribute(attr_name, &block)
+      def read_attribute(attr_name, &block)
         name = attr_name.to_s
         name = self.class.attribute_aliases[name] || name
 
-        return @attributes.fetch_value(name, &block) unless name == "id" && @primary_key
+        return @attributes.fetch_value(name, &block) unless name == "id" && @primary_key
 
         if self.class.composite_primary_key?
-          @attributes.fetch_value("id", &block)
+          @attributes.fetch_value("id", &block)
         else
-          if @primary_key != "id"
-            ActiveRecord.deprecator.warn(<<-MSG.squish)
+          if @primary_key != "id"
+            ActiveRecord.deprecator.warn(<<-MSG.squish)
               Using read_attribute(:id) to read the primary key value is deprecated.
               Use #id instead.
             MSG
           end
-          @attributes.fetch_value(@primary_key, &block)
+          @attributes.fetch_value(@primary_key, &block)
         end
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/AttributeMethods/Serialization/ClassMethods.html b/src/classes/ActiveRecord/AttributeMethods/Serialization/ClassMethods.html index 2a3cf84a71..5bbb30c772 100644 --- a/src/classes/ActiveRecord/AttributeMethods/Serialization/ClassMethods.html +++ b/src/classes/ActiveRecord/AttributeMethods/Serialization/ClassMethods.html @@ -225,14 +225,14 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/attribute_methods/serialization.rb, line 183
         def serialize(attr_name, class_name_or_coder = nil, coder: nil, type: Object, yaml: {}, **options)
           unless class_name_or_coder.nil?
             if class_name_or_coder == ::JSON || [:load, :dump].all? { |x| class_name_or_coder.respond_to?(x) }
-              ActiveRecord.deprecator.warn(<<~MSG)
+              ActiveRecord.deprecator.warn(<<~MSG)
                 Passing the coder as positional argument is deprecated and will be removed in Rails 7.2.
 
                 Please pass the coder as a keyword argument:
@@ -241,7 +241,7 @@ 
See on GitHub + 🔎 See on GitHub diff --git a/src/classes/ActiveRecord/AttributeMethods/Serialization/ColumnNotSerializableError.html b/src/classes/ActiveRecord/AttributeMethods/Serialization/ColumnNotSerializableError.html index 8dd037ccb8..e383161d39 100644 --- a/src/classes/ActiveRecord/AttributeMethods/Serialization/ColumnNotSerializableError.html +++ b/src/classes/ActiveRecord/AttributeMethods/Serialization/ColumnNotSerializableError.html @@ -83,19 +83,19 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/attribute_methods/serialization.rb, line 10
         def initialize(name, type)
-          super <<~EOS
+          super <<~EOS
             Column `#{name}` of type #{type.class} does not support `serialize` feature.
             Usually it means that you are trying to use `serialize`
             on a column that already implements serialization natively.
           EOS
         end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/AttributeMethods/Write.html b/src/classes/ActiveRecord/AttributeMethods/Write.html index 7a39d4cb73..d17a6d4baa 100644 --- a/src/classes/ActiveRecord/AttributeMethods/Write.html +++ b/src/classes/ActiveRecord/AttributeMethods/Write.html @@ -84,7 +84,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/attribute_methods/write.rb, line 31
@@ -92,11 +92,11 @@ 

name = attr_name.to_s name = self.class.attribute_aliases[name] || name - name = @primary_key if name == "id" && @primary_key + name = @primary_key if name == "id" && @primary_key @attributes.write_from_user(name, value) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/Attributes/ClassMethods.html b/src/classes/ActiveRecord/Attributes/ClassMethods.html index 002dcb1f89..9990bcd341 100644 --- a/src/classes/ActiveRecord/Attributes/ClassMethods.html +++ b/src/classes/ActiveRecord/Attributes/ClassMethods.html @@ -259,7 +259,7 @@

Dirty Tracking

- Source code + 📝 Source code
# File activerecord/lib/active_record/attributes.rb, line 208
@@ -276,21 +276,21 @@ 

Dirty Tracking

if (prev_cast_type, prev_default = attributes_to_define_after_schema_loads[name]) default = prev_default if default == NO_DEFAULT_PROVIDED else - prev_cast_type = -> subtype { subtype } + prev_cast_type = -> subtype { subtype } end cast_type = if block_given? - -> subtype { yield Proc === prev_cast_type ? prev_cast_type[subtype] : prev_cast_type } + -> subtype { yield Proc === prev_cast_type ? prev_cast_type[subtype] : prev_cast_type } else prev_cast_type end end self.attributes_to_define_after_schema_loads = - attributes_to_define_after_schema_loads.merge(name => [cast_type, default]) + attributes_to_define_after_schema_loads.merge(name => [cast_type, default]) end
- See on GitHub + 🔎 See on GitHub
@@ -325,7 +325,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/attributes.rb, line 253
@@ -339,7 +339,7 @@ 

define_default_attribute(name, default, cast_type, from_user: user_provided_default) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/AutosaveAssociation.html b/src/classes/ActiveRecord/AutosaveAssociation.html index c9dac02813..3105c524bf 100644 --- a/src/classes/ActiveRecord/AutosaveAssociation.html +++ b/src/classes/ActiveRecord/AutosaveAssociation.html @@ -225,7 +225,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/autosave_association.rb, line 271
@@ -233,7 +233,7 @@ 

new_record? || has_changes_to_save? || marked_for_destruction? || nested_records_changed_for_autosave? end

- See on GitHub + 🔎 See on GitHub
@@ -262,7 +262,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/autosave_association.rb, line 265
@@ -270,7 +270,7 @@ 

@destroyed_by_association end

- See on GitHub + 🔎 See on GitHub
@@ -297,7 +297,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/autosave_association.rb, line 258
@@ -305,7 +305,7 @@ 

@destroyed_by_association = reflection end

- See on GitHub + 🔎 See on GitHub
@@ -334,7 +334,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/autosave_association.rb, line 245
@@ -342,7 +342,7 @@ 

@marked_for_destruction = true end

- See on GitHub + 🔎 See on GitHub
@@ -371,7 +371,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/autosave_association.rb, line 252
@@ -379,7 +379,7 @@ 

@marked_for_destruction end

- See on GitHub + 🔎 See on GitHub
@@ -406,7 +406,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/autosave_association.rb, line 234
@@ -416,7 +416,7 @@ 

super end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/Batches.html b/src/classes/ActiveRecord/Batches.html index 8f1f5cada6..a25d5026e7 100644 --- a/src/classes/ActiveRecord/Batches.html +++ b/src/classes/ActiveRecord/Batches.html @@ -88,11 +88,6 @@

Constants

:asc - -   - - - ORDER_IGNORE_MESSAGE @@ -100,11 +95,6 @@

Constants

"Scoped order is ignored, it's forced to be batch order." - -   - - - @@ -198,14 +188,14 @@

Options

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation/batches.rb, line 79
-    def find_each(start: nil, finish: nil, batch_size: 1000, error_on_ignore: nil, order: DEFAULT_ORDER, &block)
+    def find_each(start: nil, finish: nil, batch_size: 1000, error_on_ignore: nil, order: DEFAULT_ORDER, &block)
       if block_given?
         find_in_batches(start: start, finish: finish, batch_size: batch_size, error_on_ignore: error_on_ignore, order: order) do |records|
-          records.each(&block)
+          records.each(&block)
         end
       else
         enum_for(:find_each, start: start, finish: finish, batch_size: batch_size, error_on_ignore: error_on_ignore, order: order) do
@@ -215,7 +205,7 @@ 

Options

end end
- See on GitHub + 🔎 See on GitHub
@@ -294,7 +284,7 @@

Options

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation/batches.rb, line 148
@@ -312,7 +302,7 @@ 

Options

end end
- See on GitHub + 🔎 See on GitHub
@@ -412,13 +402,13 @@

Options

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation/batches.rb, line 239
-    def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, order: DEFAULT_ORDER, use_ranges: nil, &block)
+    def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, order: DEFAULT_ORDER, use_ranges: nil, &block)
       unless Array(order).all? { |ord| [:asc, :desc].include?(ord) }
-        raise ArgumentError, ":order must be :asc or :desc or an array consisting of :asc or :desc, got #{order.inspect}"
+        raise ArgumentError, ":order must be :asc or :desc or an array consisting of :asc or :desc, got #{order.inspect}"
       end
 
       unless block
@@ -433,7 +423,7 @@ 

Options

if limit_value remaining = limit_value - batch_limit = remaining if remaining < batch_limit + batch_limit = remaining if remaining < batch_limit end if self.loaded? @@ -443,7 +433,7 @@

Options

finish: finish, order: order, batch_limit: batch_limit, - &block + &block ) else batch_on_unloaded_relation( @@ -455,12 +445,12 @@

Options

use_ranges: use_ranges, remaining: remaining, batch_limit: batch_limit, - &block + &block ) end end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/Batches/BatchEnumerator.html b/src/classes/ActiveRecord/Batches/BatchEnumerator.html index 47d6815aa5..536fed920e 100644 --- a/src/classes/ActiveRecord/Batches/BatchEnumerator.html +++ b/src/classes/ActiveRecord/Batches/BatchEnumerator.html @@ -148,7 +148,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation/batches/batch_enumerator.rb, line 27
@@ -156,7 +156,7 @@ 

@of end

- See on GitHub + 🔎 See on GitHub
@@ -188,15 +188,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation/batches/batch_enumerator.rb, line 65
       def delete_all
-        sum(&:delete_all)
+        sum(&:delete_all)
       end
- See on GitHub + 🔎 See on GitHub
@@ -228,15 +228,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation/batches/batch_enumerator.rb, line 85
       def destroy_all
-        each(&:destroy_all)
+        each(&:destroy_all)
       end
- See on GitHub + 🔎 See on GitHub
@@ -268,17 +268,17 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation/batches/batch_enumerator.rb, line 94
-      def each(&block)
+      def each(&block)
         enum = @relation.to_enum(:in_batches, of: @of, start: @start, finish: @finish, load: false, order: @order, use_ranges: @use_ranges)
-        return enum.each(&block) if block_given?
+        return enum.each(&block) if block_given?
         enum
       end
- See on GitHub + 🔎 See on GitHub
@@ -323,19 +323,19 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation/batches/batch_enumerator.rb, line 52
-      def each_record(&block)
+      def each_record(&block)
         return to_enum(:each_record) unless block_given?
 
         @relation.to_enum(:in_batches, of: @of, start: @start, finish: @finish, load: true, order: @order).each do |relation|
-          relation.records.each(&block)
+          relation.records.each(&block)
         end
       end
- See on GitHub + 🔎 See on GitHub
@@ -367,7 +367,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation/batches/batch_enumerator.rb, line 74
@@ -377,7 +377,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/Calculations.html b/src/classes/ActiveRecord/Calculations.html index ac95a1e300..640474be28 100644 --- a/src/classes/ActiveRecord/Calculations.html +++ b/src/classes/ActiveRecord/Calculations.html @@ -148,7 +148,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation/calculations.rb, line 110
@@ -156,7 +156,7 @@ 

async.average(column_name) end

- See on GitHub + 🔎 See on GitHub
@@ -183,7 +183,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation/calculations.rb, line 97
@@ -191,7 +191,7 @@ 

async.count(column_name) end

- See on GitHub + 🔎 See on GitHub
@@ -218,7 +218,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation/calculations.rb, line 362
@@ -226,7 +226,7 @@ 

async.ids end

- See on GitHub + 🔎 See on GitHub
@@ -253,7 +253,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation/calculations.rb, line 138
@@ -261,7 +261,7 @@ 

async.maximum(column_name) end

- See on GitHub + 🔎 See on GitHub
@@ -288,7 +288,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation/calculations.rb, line 124
@@ -296,7 +296,7 @@ 

async.minimum(column_name) end

- See on GitHub + 🔎 See on GitHub
@@ -323,7 +323,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation/calculations.rb, line 319
@@ -331,7 +331,7 @@ 

async.pick(*column_names) end

- See on GitHub + 🔎 See on GitHub
@@ -358,7 +358,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation/calculations.rb, line 291
@@ -366,7 +366,7 @@ 

async.pluck(*column_names) end

- See on GitHub + 🔎 See on GitHub
@@ -393,7 +393,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation/calculations.rb, line 156
@@ -401,7 +401,7 @@ 

async.sum(identity_or_column) end

- See on GitHub + 🔎 See on GitHub
@@ -431,7 +431,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation/calculations.rb, line 105
@@ -439,7 +439,7 @@ 

calculate(:average, column_name) end

- See on GitHub + 🔎 See on GitHub
@@ -496,7 +496,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation/calculations.rb, line 191
@@ -505,10 +505,10 @@ 

if @none case operation - when "count", "sum" + when "count", "sum" result = group_values.any? ? Hash.new : 0 return @async ? Promise::Complete.new(result) : result - when "average", "minimum", "maximum" + when "average", "minimum", "maximum" result = group_values.any? ? Hash.new : nil return @async ? Promise::Complete.new(result) : result end @@ -517,7 +517,7 @@

if has_include?(column_name) relation = apply_join_dependency - if operation == "count" + if operation == "count" unless distinct_value || distinct_select?(column_name || select_for_count) relation.distinct! relation.select_values = [ klass.primary_key || table[Arel.star] ] @@ -532,7 +532,7 @@

end end

- See on GitHub + 🔎 See on GitHub
@@ -592,14 +592,14 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation/calculations.rb, line 84
     def count(column_name = nil)
       if block_given?
         unless column_name.nil?
-          raise ArgumentError, "Column name argument is not supported when a block is passed."
+          raise ArgumentError, "Column name argument is not supported when a block is passed."
         end
 
         super()
@@ -608,7 +608,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -639,7 +639,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation/calculations.rb, line 327
@@ -670,14 +670,14 @@ 

ActiveRecord::Result.empty else skip_query_cache_if_necessary do - klass.connection.select_all(relation, "#{klass.name} Ids", async: @async) + klass.connection.select_all(relation, "#{klass.name} Ids", async: @async) end end result.then { |result| type_cast_pluck_values(result, columns) } end

- See on GitHub + 🔎 See on GitHub
@@ -707,7 +707,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation/calculations.rb, line 133
@@ -715,7 +715,7 @@ 

calculate(:maximum, column_name) end

- See on GitHub + 🔎 See on GitHub
@@ -745,7 +745,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation/calculations.rb, line 119
@@ -753,7 +753,7 @@ 

calculate(:minimum, column_name) end

- See on GitHub + 🔎 See on GitHub
@@ -791,20 +791,20 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation/calculations.rb, line 309
     def pick(*column_names)
-      if loaded? && all_attributes?(column_names)
+      if loaded? && all_attributes?(column_names)
         result = records.pick(*column_names)
         return @async ? Promise::Complete.new(result) : result
       end
 
-      limit(1).pluck(*column_names).then(&:first)
+      limit(1).pluck(*column_names).then(&:first)
     end
- See on GitHub + 🔎 See on GitHub
@@ -864,14 +864,14 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation/calculations.rb, line 257
     def pluck(*column_names)
       return [] if @none
 
-      if loaded? && all_attributes?(column_names)
+      if loaded? && all_attributes?(column_names)
         result = records.pluck(*column_names)
         if @async
           return Promise::Complete.new(result)
@@ -892,7 +892,7 @@ 

if where_clause.contradiction? ActiveRecord::Result.empty(async: @async) else - klass.connection.select_all(relation.arel, "#{klass.name} Pluck", async: @async) + klass.connection.select_all(relation.arel, "#{klass.name} Pluck", async: @async) end end result.then do |result| @@ -901,7 +901,7 @@

end end

- See on GitHub + 🔎 See on GitHub
@@ -931,19 +931,19 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation/calculations.rb, line 147
-    def sum(initial_value_or_column = 0, &block)
+    def sum(initial_value_or_column = 0, &block)
       if block_given?
-        map(&block).sum(initial_value_or_column)
+        map(&block).sum(initial_value_or_column)
       else
         calculate(:sum, initial_value_or_column)
       end
     end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/Callbacks.html b/src/classes/ActiveRecord/Callbacks.html index 4b8ca15699..c8dd08f9a0 100644 --- a/src/classes/ActiveRecord/Callbacks.html +++ b/src/classes/ActiveRecord/Callbacks.html @@ -340,11 +340,6 @@

Constants

] - -   - - - diff --git a/src/classes/ActiveRecord/Callbacks/ClassMethods.html b/src/classes/ActiveRecord/Callbacks/ClassMethods.html index 8161e27475..9f5d837403 100644 --- a/src/classes/ActiveRecord/Callbacks/ClassMethods.html +++ b/src/classes/ActiveRecord/Callbacks/ClassMethods.html @@ -147,7 +147,7 @@

- See on GitHub + 🔎 See on GitHub @@ -171,7 +171,7 @@

- See on GitHub + 🔎 See on GitHub @@ -195,7 +195,7 @@

- See on GitHub + 🔎 See on GitHub @@ -219,7 +219,7 @@

- See on GitHub + 🔎 See on GitHub @@ -243,7 +243,7 @@

- See on GitHub + 🔎 See on GitHub @@ -267,7 +267,7 @@

- See on GitHub + 🔎 See on GitHub @@ -291,7 +291,7 @@

- See on GitHub + 🔎 See on GitHub @@ -315,7 +315,7 @@

- See on GitHub + 🔎 See on GitHub @@ -339,7 +339,7 @@

- See on GitHub + 🔎 See on GitHub @@ -363,7 +363,7 @@

- See on GitHub + 🔎 See on GitHub @@ -387,7 +387,7 @@

- See on GitHub + 🔎 See on GitHub @@ -411,7 +411,7 @@

- See on GitHub + 🔎 See on GitHub @@ -435,7 +435,7 @@

- See on GitHub + 🔎 See on GitHub @@ -459,7 +459,7 @@

- See on GitHub + 🔎 See on GitHub @@ -483,7 +483,7 @@

- See on GitHub + 🔎 See on GitHub diff --git a/src/classes/ActiveRecord/Coders/YAMLColumn/SafeCoder.html b/src/classes/ActiveRecord/Coders/YAMLColumn/SafeCoder.html index 8fe999bc75..778c053b89 100644 --- a/src/classes/ActiveRecord/Coders/YAMLColumn/SafeCoder.html +++ b/src/classes/ActiveRecord/Coders/YAMLColumn/SafeCoder.html @@ -91,7 +91,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/coders/yaml_column.rb, line 9
@@ -100,7 +100,7 @@ 

@unsafe_load = unsafe_load end

- See on GitHub + 🔎 See on GitHub
@@ -131,7 +131,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/coders/yaml_column.rb, line 15
@@ -147,7 +147,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -174,7 +174,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/coders/yaml_column.rb, line 33
@@ -190,7 +190,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/ConnectionAdapters/AbstractAdapter.html b/src/classes/ActiveRecord/ConnectionAdapters/AbstractAdapter.html index 4a1351de38..909bb87c6d 100644 --- a/src/classes/ActiveRecord/ConnectionAdapters/AbstractAdapter.html +++ b/src/classes/ActiveRecord/ConnectionAdapters/AbstractAdapter.html @@ -456,11 +456,6 @@

Constants

"Abstract" - -   - - - COMMENT_REGEX @@ -468,11 +463,6 @@

Constants

%r{(?:--.*\n)|/\*(?:[^*]|\*[^/])*\*/} - -   - - - EXTENDED_TYPE_MAPS @@ -480,11 +470,6 @@

Constants

Concurrent::Map.new - -   - - - SIMPLE_INT @@ -492,11 +477,6 @@

Constants

/\A\d+\z/ - -   - - - TYPE_MAP @@ -504,11 +484,6 @@

Constants

Type::TypeMap.new.tap { |m| initialize_type_map(m) } - -   - - - @@ -594,7 +569,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 382
@@ -602,7 +577,7 @@ 

new(config).database_exists? end

- See on GitHub + 🔎 See on GitHub
@@ -629,7 +604,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 124
@@ -637,7 +612,7 @@ 

raise NotImplementedError end

- See on GitHub + 🔎 See on GitHub
@@ -664,16 +639,16 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 95
       def self.find_cmd_and_exec(commands, *args) # :doc:
         commands = Array(commands)
 
-        dirs_on_path = ENV["PATH"].to_s.split(File::PATH_SEPARATOR)
-        unless (ext = RbConfig::CONFIG["EXEEXT"]).empty?
-          commands = commands.map { |cmd| "#{cmd}#{ext}" }
+        dirs_on_path = ENV["PATH"].to_s.split(File::PATH_SEPARATOR)
+        unless (ext = RbConfig::CONFIG["EXEEXT"]).empty?
+          commands = commands.map { |cmd| "#{cmd}#{ext}" }
         end
 
         full_path_command = nil
@@ -684,7 +659,7 @@ 

stat = File.stat(full_path_command) rescue SystemCallError else - stat.file? && stat.executable? + stat.file? && stat.executable? end end end @@ -692,11 +667,11 @@

if found exec full_path_command, *args else - abort("Couldn't find database client: #{commands.join(', ')}. Check your $PATH and try again.") + abort("Couldn't find database client: #{commands.join(', ')}. Check your $PATH and try again.") end end

- See on GitHub + 🔎 See on GitHub
@@ -723,19 +698,19 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 68
       def self.type_cast_config_to_boolean(config)
-        if config == "false"
+        if config == "false"
           false
         else
           config
         end
       end
- See on GitHub + 🔎 See on GitHub
@@ -762,7 +737,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 58
@@ -776,7 +751,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -803,21 +778,21 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 76
       def self.validate_default_timezone(config)
         case config
         when nil
-        when "utc", "local"
+        when "utc", "local"
           config.to_sym
         else
-          raise ArgumentError, "default_timezone must be either 'utc' or 'local'"
+          raise ArgumentError, "default_timezone must be either 'utc' or 'local'"
         end
       end
- See on GitHub + 🔎 See on GitHub
@@ -848,14 +823,14 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 674
       def active?
       end
- See on GitHub + 🔎 See on GitHub
@@ -882,7 +857,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 377
@@ -890,7 +865,7 @@ 

self.class::ADAPTER_NAME end

- See on GitHub + 🔎 See on GitHub
@@ -917,7 +892,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 655
@@ -928,7 +903,7 @@ 

false end

- See on GitHub + 🔎 See on GitHub
@@ -955,14 +930,14 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 666
       def check_all_foreign_keys_valid!
       end
- See on GitHub + 🔎 See on GitHub
@@ -989,7 +964,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 754
@@ -1005,7 +980,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -1032,7 +1007,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 846
@@ -1040,7 +1015,7 @@ 

pool.checkin self end

- See on GitHub + 🔎 See on GitHub
@@ -1067,7 +1042,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 794
@@ -1076,7 +1051,7 @@ 

self end

- See on GitHub + 🔎 See on GitHub
@@ -1103,7 +1078,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 222
@@ -1111,7 +1086,7 @@ 

(@config[:connection_retries] || 1).to_i end

- See on GitHub + 🔎 See on GitHub
@@ -1138,7 +1113,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 386
@@ -1149,7 +1124,7 @@ 

false end

- See on GitHub + 🔎 See on GitHub
@@ -1176,7 +1151,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 234
@@ -1184,7 +1159,7 @@ 

@default_timezone || ActiveRecord.default_timezone end

- See on GitHub + 🔎 See on GitHub
@@ -1211,14 +1186,14 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 592
       def disable_extension(name, **)
       end
- See on GitHub + 🔎 See on GitHub
@@ -1245,7 +1220,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 650
@@ -1253,7 +1228,7 @@ 

yield end

- See on GitHub + 🔎 See on GitHub
@@ -1282,7 +1257,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 729
@@ -1290,7 +1265,7 @@ 

# This should be overridden by concrete adapters. end

- See on GitHub + 🔎 See on GitHub
@@ -1317,7 +1292,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 717
@@ -1327,7 +1302,7 @@ 

@raw_connection_dirty = false end

- See on GitHub + 🔎 See on GitHub
@@ -1354,14 +1329,14 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 596
       def enable_extension(name, **)
       end
- See on GitHub + 🔎 See on GitHub
@@ -1388,26 +1363,26 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 334
       def expire
         if in_use?
           if @owner != ActiveSupport::IsolatedExecutionState.context
-            raise ActiveRecordError, "Cannot expire connection, " \
-              "it is owned by a different thread: #{@owner}. " \
-              "Current thread: #{ActiveSupport::IsolatedExecutionState.context}."
+            raise ActiveRecordError, "Cannot expire connection, " \
+              "it is owned by a different thread: #{@owner}. " \
+              "Current thread: #{ActiveSupport::IsolatedExecutionState.context}."
           end
 
           @idle_since = Process.clock_gettime(Process::CLOCK_MONOTONIC)
           @owner = nil
         else
-          raise ActiveRecordError, "Cannot expire connection, it is not currently leased."
+          raise ActiveRecordError, "Cannot expire connection, it is not currently leased."
         end
       end
- See on GitHub + 🔎 See on GitHub
@@ -1434,7 +1409,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 638
@@ -1442,7 +1417,7 @@ 

[] end

- See on GitHub + 🔎 See on GitHub
@@ -1469,7 +1444,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 643
@@ -1477,7 +1452,7 @@ 

{} end

- See on GitHub + 🔎 See on GitHub
@@ -1504,18 +1479,18 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 298
       def lease
         if in_use?
-          msg = +"Cannot lease connection, "
+          msg = +"Cannot lease connection, "
           if @owner == ActiveSupport::IsolatedExecutionState.context
-            msg << "it is already leased by the current thread."
+            msg << "it is already leased by the current thread."
           else
-            msg << "it is already in use by a different thread: #{@owner}. " \
-                   "Current thread: #{ActiveSupport::IsolatedExecutionState.context}."
+            msg << "it is already in use by a different thread: #{@owner}. " \
+                   "Current thread: #{ActiveSupport::IsolatedExecutionState.context}."
           end
           raise ActiveRecordError, msg
         end
@@ -1523,7 +1498,7 @@ 

@owner = ActiveSupport::IsolatedExecutionState.context end

- See on GitHub + 🔎 See on GitHub
@@ -1550,7 +1525,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 48
@@ -1562,7 +1537,7 @@ 

@pool.schema_reflection.load!(self) if ActiveRecord.lazily_load_schema_cache end

- See on GitHub + 🔎 See on GitHub
@@ -1589,7 +1564,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 426
@@ -1597,7 +1572,7 @@ 

false end

- See on GitHub + 🔎 See on GitHub
@@ -1653,15 +1628,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 265
       def prepared_statements?
-        @prepared_statements && !prepared_statements_disabled_cache.include?(object_id)
+        @prepared_statements && !prepared_statements_disabled_cache.include?(object_id)
       end
- See on GitHub + 🔎 See on GitHub
@@ -1690,7 +1665,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 242
@@ -1701,7 +1676,7 @@ 

connection_class.current_preventing_writes end

- See on GitHub + 🔎 See on GitHub
@@ -1732,7 +1707,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 814
@@ -1744,7 +1719,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -1771,13 +1746,13 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 680
       def reconnect!(restore_transactions: false)
         retries_available = connection_retries
-        deadline = retry_deadline && Process.clock_gettime(Process::CLOCK_MONOTONIC) + retry_deadline
+        deadline = retry_deadline && Process.clock_gettime(Process::CLOCK_MONOTONIC) + retry_deadline
 
         @lock.synchronize do
           reconnect
@@ -1790,11 +1765,11 @@ 

clear_cache!(new_connection: true) configure_connection end - rescue => original_exception + rescue => original_exception translated_exception = translate_exception_class(original_exception, nil, nil) - retry_deadline_exceeded = deadline && deadline < Process.clock_gettime(Process::CLOCK_MONOTONIC) + retry_deadline_exceeded = deadline && deadline < Process.clock_gettime(Process::CLOCK_MONOTONIC) - if !retry_deadline_exceeded && retries_available > 0 + if !retry_deadline_exceeded && retries_available > 0 retries_available -= 1 if retryable_connection_error?(translated_exception) @@ -1809,7 +1784,7 @@

end end

- See on GitHub + 🔎 See on GitHub
@@ -1836,7 +1811,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 214
@@ -1844,7 +1819,7 @@ 

@config[:replica] || false end

- See on GitHub + 🔎 See on GitHub
@@ -1871,7 +1846,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 767
@@ -1879,7 +1854,7 @@ 

false end

- See on GitHub + 🔎 See on GitHub
@@ -1908,7 +1883,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 741
@@ -1918,7 +1893,7 @@ 

configure_connection end

- See on GitHub + 🔎 See on GitHub
@@ -1945,7 +1920,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 226
@@ -1957,7 +1932,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -1984,7 +1959,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 319
@@ -1992,7 +1967,7 @@ 

@pool.role end

- See on GitHub + 🔎 See on GitHub
@@ -2019,7 +1994,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 410
@@ -2027,7 +2002,7 @@ 

false end

- See on GitHub + 🔎 See on GitHub
@@ -2054,7 +2029,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 329
@@ -2062,7 +2037,7 @@ 

@schema_cache ||= BoundSchemaReflection.new(@pool.schema_reflection, self) end

- See on GitHub + 🔎 See on GitHub
@@ -2089,7 +2064,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 881
@@ -2097,7 +2072,7 @@ 

migration_context.current_version end

- See on GitHub + 🔎 See on GitHub
@@ -2124,7 +2099,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 325
@@ -2132,7 +2107,7 @@ 

@pool.shard end

- See on GitHub + 🔎 See on GitHub
@@ -2159,7 +2134,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 419
@@ -2167,7 +2142,7 @@ 

false end

- See on GitHub + 🔎 See on GitHub
@@ -2194,7 +2169,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 399
@@ -2202,7 +2177,7 @@ 

false end

- See on GitHub + 🔎 See on GitHub
@@ -2229,7 +2204,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 491
@@ -2237,7 +2212,7 @@ 

false end

- See on GitHub + 🔎 See on GitHub
@@ -2264,7 +2239,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 526
@@ -2272,7 +2247,7 @@ 

false end

- See on GitHub + 🔎 See on GitHub
@@ -2299,7 +2274,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 531
@@ -2307,7 +2282,7 @@ 

false end

- See on GitHub + 🔎 See on GitHub
@@ -2334,7 +2309,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 550
@@ -2342,7 +2317,7 @@ 

false end

- See on GitHub + 🔎 See on GitHub
@@ -2369,7 +2344,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 574
@@ -2377,7 +2352,7 @@ 

true end

- See on GitHub + 🔎 See on GitHub
@@ -2404,7 +2379,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 516
@@ -2412,7 +2387,7 @@ 

false end

- See on GitHub + 🔎 See on GitHub
@@ -2439,7 +2414,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 395
@@ -2447,7 +2422,7 @@ 

false end

- See on GitHub + 🔎 See on GitHub
@@ -2474,7 +2449,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 486
@@ -2482,7 +2457,7 @@ 

false end

- See on GitHub + 🔎 See on GitHub
@@ -2509,7 +2484,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 496
@@ -2517,7 +2492,7 @@ 

false end

- See on GitHub + 🔎 See on GitHub
@@ -2544,7 +2519,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 455
@@ -2552,7 +2527,7 @@ 

false end

- See on GitHub + 🔎 See on GitHub
@@ -2579,7 +2554,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 450
@@ -2587,7 +2562,7 @@ 

false end

- See on GitHub + 🔎 See on GitHub
@@ -2614,7 +2589,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 465
@@ -2622,7 +2597,7 @@ 

false end

- See on GitHub + 🔎 See on GitHub
@@ -2649,7 +2624,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 476
@@ -2657,7 +2632,7 @@ 

false end

- See on GitHub + 🔎 See on GitHub
@@ -2684,7 +2659,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 541
@@ -2692,7 +2667,7 @@ 

false end

- See on GitHub + 🔎 See on GitHub
@@ -2719,7 +2694,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 445
@@ -2727,7 +2702,7 @@ 

false end

- See on GitHub + 🔎 See on GitHub
@@ -2754,7 +2729,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 435
@@ -2762,7 +2737,7 @@ 

false end

- See on GitHub + 🔎 See on GitHub
@@ -2789,7 +2764,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 471
@@ -2797,7 +2772,7 @@ 

false end

- See on GitHub + 🔎 See on GitHub
@@ -2824,7 +2799,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 570
@@ -2832,7 +2807,7 @@ 

false end

- See on GitHub + 🔎 See on GitHub
@@ -2859,7 +2834,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 562
@@ -2867,7 +2842,7 @@ 

false end

- See on GitHub + 🔎 See on GitHub
@@ -2894,7 +2869,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 566
@@ -2902,7 +2877,7 @@ 

false end

- See on GitHub + 🔎 See on GitHub
@@ -2929,7 +2904,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 558
@@ -2937,7 +2912,7 @@ 

false end

- See on GitHub + 🔎 See on GitHub
@@ -2964,7 +2939,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 521
@@ -2972,7 +2947,7 @@ 

false end

- See on GitHub + 🔎 See on GitHub
@@ -2999,7 +2974,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 554
@@ -3007,7 +2982,7 @@ 

false end

- See on GitHub + 🔎 See on GitHub
@@ -3034,7 +3009,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 511
@@ -3042,7 +3017,7 @@ 

false end

- See on GitHub + 🔎 See on GitHub
@@ -3069,7 +3044,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 578
@@ -3077,7 +3052,7 @@ 

false end

- See on GitHub + 🔎 See on GitHub
@@ -3104,7 +3079,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 546
@@ -3112,7 +3087,7 @@ 

false end

- See on GitHub + 🔎 See on GitHub
@@ -3139,7 +3114,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 440
@@ -3147,7 +3122,7 @@ 

false end

- See on GitHub + 🔎 See on GitHub
@@ -3174,7 +3149,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 430
@@ -3182,7 +3157,7 @@ 

false end

- See on GitHub + 🔎 See on GitHub
@@ -3209,7 +3184,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 414
@@ -3217,7 +3192,7 @@ 

false end

- See on GitHub + 🔎 See on GitHub
@@ -3244,7 +3219,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 404
@@ -3252,7 +3227,7 @@ 

false end

- See on GitHub + 🔎 See on GitHub
@@ -3279,7 +3254,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 460
@@ -3287,7 +3262,7 @@ 

false end

- See on GitHub + 🔎 See on GitHub
@@ -3314,7 +3289,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 501
@@ -3322,7 +3297,7 @@ 

false end

- See on GitHub + 🔎 See on GitHub
@@ -3349,7 +3324,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 481
@@ -3357,7 +3332,7 @@ 

false end

- See on GitHub + 🔎 See on GitHub
@@ -3384,7 +3359,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 506
@@ -3392,7 +3367,7 @@ 

false end

- See on GitHub + 🔎 See on GitHub
@@ -3419,7 +3394,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 536
@@ -3427,7 +3402,7 @@ 

false end

- See on GitHub + 🔎 See on GitHub
@@ -3454,7 +3429,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 748
@@ -3463,7 +3438,7 @@ 

disconnect! end

- See on GitHub + 🔎 See on GitHub
@@ -3490,7 +3465,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 368
@@ -3498,10 +3473,10 @@ 

cache = prepared_statements_disabled_cache.add?(object_id) if @prepared_statements yield ensure - cache&.delete(object_id) + cache&.delete(object_id) end

- See on GitHub + 🔎 See on GitHub
@@ -3528,7 +3503,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 218
@@ -3536,7 +3511,7 @@ 

@config.fetch(:use_metadata_table, true) end

- See on GitHub + 🔎 See on GitHub
@@ -3563,7 +3538,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 774
@@ -3587,7 +3562,7 @@ 

@verified = true end

- See on GitHub + 🔎 See on GitHub
@@ -3617,13 +3592,13 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 1133
-        def log(sql, name = "SQL", binds = [], type_casted_binds = [], statement_name = nil, async: false, &block) # :doc:
+        def log(sql, name = "SQL", binds = [], type_casted_binds = [], statement_name = nil, async: false, &block) # :doc:
           @instrumenter.instrument(
-            "sql.active_record",
+            "sql.active_record",
             sql:               sql,
             name:              name,
             binds:             binds,
@@ -3631,13 +3606,13 @@ 

statement_name: statement_name, async: async, connection: self, - &block + &block ) - rescue ActiveRecord::StatementInvalid => ex + rescue ActiveRecord::StatementInvalid => ex raise ex.set_query(sql, binds) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/ConnectionAdapters/AbstractAdapter/Version.html b/src/classes/ActiveRecord/ConnectionAdapters/AbstractAdapter/Version.html index ae0504142e..ebbfd3e031 100644 --- a/src/classes/ActiveRecord/ConnectionAdapters/AbstractAdapter/Version.html +++ b/src/classes/ActiveRecord/ConnectionAdapters/AbstractAdapter/Version.html @@ -117,16 +117,16 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 279
         def initialize(version_string, full_version_string = nil)
-          @version = version_string.split(".").map(&:to_i)
+          @version = version_string.split(".").map(&:to_i)
           @full_version_string = full_version_string
         end
- See on GitHub + 🔎 See on GitHub
@@ -157,15 +157,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 284
-        def <=>(version_string)
-          @version <=> version_string.split(".").map(&:to_i)
+        def <=>(version_string)
+          @version <=> version_string.split(".").map(&:to_i)
         end
- See on GitHub + 🔎 See on GitHub
@@ -192,15 +192,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 288
         def to_s
-          @version.join(".")
+          @version.join(".")
         end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/ConnectionAdapters/AbstractMysqlAdapter.html b/src/classes/ActiveRecord/ConnectionAdapters/AbstractMysqlAdapter.html index 0802ca2ec9..7d905e0ece 100644 --- a/src/classes/ActiveRecord/ConnectionAdapters/AbstractMysqlAdapter.html +++ b/src/classes/ActiveRecord/ConnectionAdapters/AbstractMysqlAdapter.html @@ -207,11 +207,6 @@

Constants

2006 - -   - - - CR_SERVER_LOST @@ -219,11 +214,6 @@

Constants

2013 - -   - - - EMULATE_BOOLEANS_TRUE @@ -231,11 +221,6 @@

Constants

{ emulate_booleans: true }.freeze - -   - - - ER_CANNOT_ADD_FOREIGN @@ -243,11 +228,6 @@

Constants

1215 - -   - - - ER_CANNOT_CREATE_TABLE @@ -255,11 +235,6 @@

Constants

1005 - -   - - - ER_CLIENT_INTERACTION_TIMEOUT @@ -267,11 +242,6 @@

Constants

4031 - -   - - - ER_CONNECTION_KILLED @@ -279,11 +249,6 @@

Constants

1927 - -   - - - ER_DATA_TOO_LONG @@ -291,11 +256,6 @@

Constants

1406 - -   - - - ER_DB_CREATE_EXISTS @@ -315,11 +275,6 @@

Constants

1364 - -   - - - ER_DUP_ENTRY @@ -327,11 +282,6 @@

Constants

1062 - -   - - - ER_FILSORT_ABORT @@ -339,11 +289,6 @@

Constants

1028 - -   - - - ER_FK_INCOMPATIBLE_COLUMNS @@ -351,11 +296,6 @@

Constants

3780 - -   - - - ER_LOCK_DEADLOCK @@ -363,11 +303,6 @@

Constants

1213 - -   - - - ER_LOCK_WAIT_TIMEOUT @@ -375,11 +310,6 @@

Constants

1205 - -   - - - ER_NOT_NULL_VIOLATION @@ -387,11 +317,6 @@

Constants

1048 - -   - - - ER_NO_REFERENCED_ROW @@ -399,11 +324,6 @@

Constants

1216 - -   - - - ER_NO_REFERENCED_ROW_2 @@ -411,11 +331,6 @@

Constants

1452 - -   - - - ER_OUT_OF_RANGE @@ -423,11 +338,6 @@

Constants

1264 - -   - - - ER_QUERY_INTERRUPTED @@ -435,11 +345,6 @@

Constants

1317 - -   - - - ER_QUERY_TIMEOUT @@ -447,11 +352,6 @@

Constants

3024 - -   - - - ER_ROW_IS_REFERENCED @@ -459,11 +359,6 @@

Constants

1217 - -   - - - ER_ROW_IS_REFERENCED_2 @@ -471,11 +366,6 @@

Constants

1451 - -   - - - EXTENDED_TYPE_MAPS @@ -483,11 +373,6 @@

Constants

Concurrent::Map.new - -   - - - NATIVE_DATABASE_TYPES @@ -511,11 +396,6 @@

Constants

} - -   - - - @@ -547,7 +427,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb, line 57
@@ -555,31 +435,31 @@ 

mysql_config = config.configuration_hash args = { - host: "--host", - port: "--port", - socket: "--socket", - username: "--user", - encoding: "--default-character-set", - sslca: "--ssl-ca", - sslcert: "--ssl-cert", - sslcapath: "--ssl-capath", - sslcipher: "--ssl-cipher", - sslkey: "--ssl-key", - ssl_mode: "--ssl-mode" - }.filter_map { |opt, arg| "#{arg}=#{mysql_config[opt]}" if mysql_config[opt] } - - if mysql_config[:password] && options[:include_password] - args << "--password=#{mysql_config[:password]}" - elsif mysql_config[:password] && !mysql_config[:password].to_s.empty? - args << "-p" + host: "--host", + port: "--port", + socket: "--socket", + username: "--user", + encoding: "--default-character-set", + sslca: "--ssl-ca", + sslcert: "--ssl-cert", + sslcapath: "--ssl-capath", + sslcipher: "--ssl-cipher", + sslkey: "--ssl-key", + ssl_mode: "--ssl-mode" + }.filter_map { |opt, arg| "#{arg}=#{mysql_config[opt]}" if mysql_config[opt] } + + if mysql_config[:password] && options[:include_password] + args << "--password=#{mysql_config[:password]}" + elsif mysql_config[:password] && !mysql_config[:password].to_s.empty? + args << "-p" end - args << config.database + args << config.database - find_cmd_and_exec(["mysql", "mysql5"], *args) + find_cmd_and_exec(["mysql", "mysql5"], *args) end

- See on GitHub + 🔎 See on GitHub
@@ -609,14 +489,14 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb, line 29
       class_attribute :emulate_booleans, default: true
 
- See on GitHub + 🔎 See on GitHub
@@ -647,15 +527,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb, line 304
       def charset
-        show_variable "character_set_database"
+        show_variable "character_set_database"
       end
- See on GitHub + 🔎 See on GitHub
@@ -682,7 +562,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb, line 509
@@ -690,9 +570,9 @@ 

if supports_check_constraints? scope = quoted_scope(table_name) - sql = <<~SQL - SELECT cc.constraint_name AS 'name', - cc.check_clause AS 'expression' + sql = <<~SQL + SELECT cc.constraint_name AS 'name', + cc.check_clause AS 'expression' FROM information_schema.check_constraints cc JOIN information_schema.table_constraints tc USING (constraint_schema, constraint_name) @@ -700,22 +580,22 @@

AND tc.table_name = #{scope[:name]} AND cc.constraint_schema = #{scope[:schema]} SQL - sql += " AND cc.table_name = #{scope[:name]}" if mariadb? + sql += " AND cc.table_name = #{scope[:name]}" if mariadb? - chk_info = internal_exec_query(sql, "SCHEMA") + chk_info = internal_exec_query(sql, "SCHEMA") chk_info.map do |row| options = { - name: row["name"] + name: row["name"] } - expression = row["expression"] - expression = expression[1..-2] if expression.start_with?("(") && expression.end_with?(")") + expression = row["expression"] + expression = expression[1..-2] if expression.start_with?("(") && expression.end_with?(")") expression = strip_whitespace_characters(expression) unless mariadb? # MySQL returns check constraints expression in an already escaped form. # This leads to duplicate escaping later (e.g. when the expression is used in the SchemaDumper). - expression = expression.gsub("\\'", "'") + expression = expression.gsub("\\'", "'") end CheckConstraintDefinition.new(table_name, expression, options) @@ -725,7 +605,7 @@

end end

- See on GitHub + 🔎 See on GitHub
@@ -752,15 +632,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb, line 309
       def collation
-        show_variable "collation_database"
+        show_variable "collation_database"
       end
- See on GitHub + 🔎 See on GitHub
@@ -794,23 +674,23 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb, line 279
       def create_database(name, options = {})
         if options[:collation]
-          execute "CREATE DATABASE #{quote_table_name(name)} DEFAULT COLLATE #{quote_table_name(options[:collation])}"
+          execute "CREATE DATABASE #{quote_table_name(name)} DEFAULT COLLATE #{quote_table_name(options[:collation])}"
         elsif options[:charset]
-          execute "CREATE DATABASE #{quote_table_name(name)} DEFAULT CHARACTER SET #{quote_table_name(options[:charset])}"
+          execute "CREATE DATABASE #{quote_table_name(name)} DEFAULT CHARACTER SET #{quote_table_name(options[:charset])}"
         elsif row_format_dynamic_by_default?
-          execute "CREATE DATABASE #{quote_table_name(name)} DEFAULT CHARACTER SET `utf8mb4`"
+          execute "CREATE DATABASE #{quote_table_name(name)} DEFAULT CHARACTER SET `utf8mb4`"
         else
-          raise "Configure a supported :charset and ensure innodb_large_prefix is enabled to support indexes on varchar(255) string columns."
+          raise "Configure a supported :charset and ensure innodb_large_prefix is enabled to support indexes on varchar(255) string columns."
         end
       end
- See on GitHub + 🔎 See on GitHub
@@ -837,15 +717,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb, line 299
       def current_database
-        query_value("SELECT database()", "SCHEMA")
+        query_value("SELECT database()", "SCHEMA")
       end
- See on GitHub + 🔎 See on GitHub
@@ -884,16 +764,16 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb, line 357
       def drop_table(table_name, **options)
         schema_cache.clear_data_source_cache!(table_name.to_s)
-        execute "DROP#{' TEMPORARY' if options[:temporary]} TABLE#{' IF EXISTS' if options[:if_exists]} #{quote_table_name(table_name)}#{' CASCADE' if options[:force] == :cascade}"
+        execute "DROP#{' TEMPORARY' if options[:temporary]} TABLE#{' IF EXISTS' if options[:if_exists]} #{quote_table_name(table_name)}#{' CASCADE' if options[:force] == :cascade}"
       end
- See on GitHub + 🔎 See on GitHub
@@ -920,7 +800,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb, line 464
@@ -930,14 +810,14 @@ 

scope = quoted_scope(table_name) # MySQL returns 1 row for each column of composite foreign keys. - fk_info = internal_exec_query(<<~SQL, "SCHEMA") - SELECT fk.referenced_table_name AS 'to_table', - fk.referenced_column_name AS 'primary_key', - fk.column_name AS 'column', - fk.constraint_name AS 'name', - fk.ordinal_position AS 'position', - rc.update_rule AS 'on_update', - rc.delete_rule AS 'on_delete' + fk_info = internal_exec_query(<<~SQL, "SCHEMA") + SELECT fk.referenced_table_name AS 'to_table', + fk.referenced_column_name AS 'primary_key', + fk.column_name AS 'column', + fk.constraint_name AS 'name', + fk.ordinal_position AS 'position', + rc.update_rule AS 'on_update', + rc.delete_rule AS 'on_delete' FROM information_schema.referential_constraints rc JOIN information_schema.key_column_usage fk USING (constraint_schema, constraint_name) @@ -948,28 +828,28 @@

AND rc.table_name = #{scope[:name]} SQL - grouped_fk = fk_info.group_by { |row| row["name"] }.values.each { |group| group.sort_by! { |row| row["position"] } } + grouped_fk = fk_info.group_by { |row| row["name"] }.values.each { |group| group.sort_by! { |row| row["position"] } } grouped_fk.map do |group| row = group.first options = { - name: row["name"], - on_update: extract_foreign_key_action(row["on_update"]), - on_delete: extract_foreign_key_action(row["on_delete"]) + name: row["name"], + on_update: extract_foreign_key_action(row["on_update"]), + on_delete: extract_foreign_key_action(row["on_delete"]) } if group.one? - options[:column] = unquote_identifier(row["column"]) - options[:primary_key] = row["primary_key"] + options[:column] = unquote_identifier(row["column"]) + options[:primary_key] = row["primary_key"] else - options[:column] = group.map { |row| unquote_identifier(row["column"]) } - options[:primary_key] = group.map { |row| row["primary_key"] } + options[:column] = group.map { |row| unquote_identifier(row["column"]) } + options[:primary_key] = group.map { |row| row["primary_key"] } end - ForeignKeyDefinition.new(table_name, unquote_identifier(row["to_table"]), options) + ForeignKeyDefinition.new(table_name, unquote_identifier(row["to_table"]), options) end end

- See on GitHub + 🔎 See on GitHub
@@ -996,20 +876,20 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb, line 185
       def index_algorithms
         {
-          default: "ALGORITHM = DEFAULT",
-          copy:    "ALGORITHM = COPY",
-          inplace: "ALGORITHM = INPLACE",
-          instant: "ALGORITHM = INSTANT",
+          default: "ALGORITHM = DEFAULT",
+          copy:    "ALGORITHM = COPY",
+          inplace: "ALGORITHM = INPLACE",
+          instant: "ALGORITHM = INSTANT",
         }
       end
- See on GitHub + 🔎 See on GitHub
@@ -1036,7 +916,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb, line 181
@@ -1044,7 +924,7 @@ 

NATIVE_DATABASE_TYPES end

- See on GitHub + 🔎 See on GitHub
@@ -1071,7 +951,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb, line 265
@@ -1082,7 +962,7 @@ 

sql end

- See on GitHub + 🔎 See on GitHub
@@ -1109,7 +989,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb, line 362
@@ -1117,13 +997,13 @@ 

if supports_rename_index? validate_index_length!(table_name, new_name) - execute "ALTER TABLE #{quote_table_name(table_name)} RENAME INDEX #{quote_table_name(old_name)} TO #{quote_table_name(new_name)}" + execute "ALTER TABLE #{quote_table_name(table_name)} RENAME INDEX #{quote_table_name(old_name)} TO #{quote_table_name(new_name)}" else super end end

- See on GitHub + 🔎 See on GitHub
@@ -1155,7 +1035,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb, line 334
@@ -1163,11 +1043,11 @@ 

validate_table_length!(new_name) unless options[:_uses_legacy_table_name] schema_cache.clear_data_source_cache!(table_name.to_s) schema_cache.clear_data_source_cache!(new_name.to_s) - execute "RENAME TABLE #{quote_table_name(table_name)} TO #{quote_table_name(new_name)}" + execute "RENAME TABLE #{quote_table_name(table_name)} TO #{quote_table_name(new_name)}" rename_table_indexes(table_name, new_name) end

- See on GitHub + 🔎 See on GitHub
@@ -1194,17 +1074,17 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb, line 578
       def show_variable(name)
-        query_value("SELECT @@#{name}", "SCHEMA")
+        query_value("SELECT @@#{name}", "SCHEMA")
       rescue ActiveRecord::StatementInvalid
         nil
       end
- See on GitHub + 🔎 See on GitHub
@@ -1231,7 +1111,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb, line 629
@@ -1239,7 +1119,7 @@ 

self.class.type_cast_config_to_boolean(@config.fetch(:strict, true)) end

- See on GitHub + 🔎 See on GitHub
@@ -1266,7 +1146,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb, line 161
@@ -1274,7 +1154,7 @@ 

true end

- See on GitHub + 🔎 See on GitHub
@@ -1301,7 +1181,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb, line 96
@@ -1309,7 +1189,7 @@ 

true end

- See on GitHub + 🔎 See on GitHub
@@ -1336,19 +1216,19 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb, line 128
       def supports_check_constraints?
         if mariadb?
-          database_version >= "10.3.10" || (database_version < "10.3" && database_version >= "10.2.22")
+          database_version >= "10.3.10" || (database_version < "10.3" && database_version >= "10.2.22")
         else
-          database_version >= "8.0.16"
+          database_version >= "8.0.16"
         end
       end
- See on GitHub + 🔎 See on GitHub
@@ -1375,19 +1255,19 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb, line 153
       def supports_common_table_expressions?
         if mariadb?
-          database_version >= "10.2.1"
+          database_version >= "10.2.1"
         else
-          database_version >= "8.0.1"
+          database_version >= "8.0.1"
         end
       end
- See on GitHub + 🔎 See on GitHub
@@ -1414,15 +1294,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb, line 140
       def supports_datetime_with_precision?
-        mariadb? || database_version >= "5.6.4"
+        mariadb? || database_version >= "5.6.4"
       end
- See on GitHub + 🔎 See on GitHub
@@ -1449,7 +1329,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb, line 116
@@ -1457,7 +1337,7 @@ 

true end

- See on GitHub + 🔎 See on GitHub
@@ -1484,15 +1364,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb, line 104
       def supports_expression_index?
-        !mariadb? && database_version >= "8.0.13"
+        !mariadb? && database_version >= "8.0.13"
       end
- See on GitHub + 🔎 See on GitHub
@@ -1519,7 +1399,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb, line 124
@@ -1527,7 +1407,7 @@ 

true end

- See on GitHub + 🔎 See on GitHub
@@ -1554,15 +1434,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb, line 100
       def supports_index_sort_order?
-        !mariadb? && database_version >= "8.0.1"
+        !mariadb? && database_version >= "8.0.1"
       end
- See on GitHub + 🔎 See on GitHub
@@ -1589,7 +1469,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb, line 120
@@ -1597,7 +1477,7 @@ 

true end

- See on GitHub + 🔎 See on GitHub
@@ -1624,7 +1504,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb, line 165
@@ -1632,7 +1512,7 @@ 

true end

- See on GitHub + 🔎 See on GitHub
@@ -1659,7 +1539,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb, line 169
@@ -1667,7 +1547,7 @@ 

true end

- See on GitHub + 🔎 See on GitHub
@@ -1694,15 +1574,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb, line 149
       def supports_optimizer_hints?
-        !mariadb? && database_version >= "5.7.7"
+        !mariadb? && database_version >= "5.7.7"
       end
- See on GitHub + 🔎 See on GitHub
@@ -1729,7 +1609,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb, line 112
@@ -1737,7 +1617,7 @@ 

true end

- See on GitHub + 🔎 See on GitHub
@@ -1764,7 +1644,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb, line 108
@@ -1772,7 +1652,7 @@ 

true end

- See on GitHub + 🔎 See on GitHub
@@ -1799,7 +1679,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb, line 136
@@ -1807,7 +1687,7 @@ 

true end

- See on GitHub + 🔎 See on GitHub
@@ -1834,15 +1714,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb, line 144
       def supports_virtual_columns?
-        mariadb? || database_version >= "5.7.5"
+        mariadb? || database_version >= "5.7.5"
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/ConnectionAdapters/BoundSchemaReflection.html b/src/classes/ActiveRecord/ConnectionAdapters/BoundSchemaReflection.html index 55fa29817a..0a4550f18f 100644 --- a/src/classes/ActiveRecord/ConnectionAdapters/BoundSchemaReflection.html +++ b/src/classes/ActiveRecord/ConnectionAdapters/BoundSchemaReflection.html @@ -143,7 +143,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/schema_cache.rb, line 150
@@ -152,7 +152,7 @@ 

@connection = connection end

- See on GitHub + 🔎 See on GitHub
@@ -183,7 +183,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/schema_cache.rb, line 175
@@ -191,7 +191,7 @@ 

@schema_reflection.add(@connection, name) end

- See on GitHub + 🔎 See on GitHub
@@ -218,7 +218,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/schema_cache.rb, line 163
@@ -226,7 +226,7 @@ 

@schema_reflection.cached?(table_name) end

- See on GitHub + 🔎 See on GitHub
@@ -253,7 +253,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/schema_cache.rb, line 155
@@ -261,7 +261,7 @@ 

@schema_reflection.clear! end

- See on GitHub + 🔎 See on GitHub
@@ -288,7 +288,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/schema_cache.rb, line 211
@@ -296,7 +296,7 @@ 

@schema_reflection.clear_data_source_cache!(@connection, name) end

- See on GitHub + 🔎 See on GitHub
@@ -323,7 +323,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/schema_cache.rb, line 183
@@ -331,7 +331,7 @@ 

@schema_reflection.columns(@connection, table_name) end

- See on GitHub + 🔎 See on GitHub
@@ -358,7 +358,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/schema_cache.rb, line 187
@@ -366,7 +366,7 @@ 

@schema_reflection.columns_hash(@connection, table_name) end

- See on GitHub + 🔎 See on GitHub
@@ -393,7 +393,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/schema_cache.rb, line 191
@@ -401,7 +401,7 @@ 

@schema_reflection.columns_hash?(@connection, table_name) end

- See on GitHub + 🔎 See on GitHub
@@ -428,7 +428,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/schema_cache.rb, line 171
@@ -436,7 +436,7 @@ 

@schema_reflection.data_source_exists?(@connection, name) end

- See on GitHub + 🔎 See on GitHub
@@ -463,7 +463,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/schema_cache.rb, line 179
@@ -471,7 +471,7 @@ 

@schema_reflection.data_sources(@connection, name) end

- See on GitHub + 🔎 See on GitHub
@@ -498,7 +498,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/schema_cache.rb, line 215
@@ -506,7 +506,7 @@ 

@schema_reflection.dump_to(@connection, filename) end

- See on GitHub + 🔎 See on GitHub
@@ -533,7 +533,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/schema_cache.rb, line 195
@@ -541,7 +541,7 @@ 

@schema_reflection.indexes(@connection, table_name) end

- See on GitHub + 🔎 See on GitHub
@@ -568,7 +568,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/schema_cache.rb, line 159
@@ -576,7 +576,7 @@ 

@schema_reflection.load!(@connection) end

- See on GitHub + 🔎 See on GitHub
@@ -603,7 +603,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/schema_cache.rb, line 167
@@ -611,7 +611,7 @@ 

@schema_reflection.primary_keys(@connection, table_name) end

- See on GitHub + 🔎 See on GitHub
@@ -638,7 +638,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/schema_cache.rb, line 207
@@ -646,7 +646,7 @@ 

@schema_reflection.size(@connection) end

- See on GitHub + 🔎 See on GitHub
@@ -673,7 +673,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/schema_cache.rb, line 203
@@ -681,7 +681,7 @@ 

@schema_reflection.version(@connection) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/ConnectionAdapters/ColumnMethods.html b/src/classes/ActiveRecord/ConnectionAdapters/ColumnMethods.html index 89ead669f3..e3a212c99c 100644 --- a/src/classes/ActiveRecord/ConnectionAdapters/ColumnMethods.html +++ b/src/classes/ActiveRecord/ConnectionAdapters/ColumnMethods.html @@ -89,7 +89,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb, line 320
@@ -101,7 +101,7 @@ 

alias :numeric :decimal end

- See on GitHub + 🔎 See on GitHub
@@ -128,7 +128,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb, line 305
@@ -136,7 +136,7 @@ 

column(name, type, **options.merge(primary_key: true)) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/ConnectionAdapters/ConnectionHandler.html b/src/classes/ActiveRecord/ConnectionAdapters/ConnectionHandler.html index 2c85d93d5d..60b20fba67 100644 --- a/src/classes/ActiveRecord/ConnectionAdapters/ConnectionHandler.html +++ b/src/classes/ActiveRecord/ConnectionAdapters/ConnectionHandler.html @@ -177,7 +177,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/connection_handler.rb, line 77
@@ -189,7 +189,7 @@ 

ObjectSpace.define_finalizer self, FINALIZER end

- See on GitHub + 🔎 See on GitHub
@@ -220,7 +220,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/connection_handler.rb, line 173
@@ -230,10 +230,10 @@ 

role = ActiveRecord::Base.current_role end - each_connection_pool(role).any?(&:active_connection?) + each_connection_pool(role).any?(&:active_connection?) end

- See on GitHub + 🔎 See on GitHub
@@ -260,19 +260,19 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/connection_handler.rb, line 97
       def all_connection_pools
-        ActiveRecord.deprecator.warn(<<-MSG.squish)
+        ActiveRecord.deprecator.warn(<<-MSG.squish)
           The `all_connection_pools` method is deprecated in favor of `connection_pool_list`.
           Call `connection_pool_list(:all)` to get the same behavior as `all_connection_pools`.
         MSG
-        connection_name_to_pool_manager.values.flat_map { |m| m.pool_configs.map(&:pool) }
+        connection_name_to_pool_manager.values.flat_map { |m| m.pool_configs.map(&:pool) }
       end
- See on GitHub + 🔎 See on GitHub
@@ -299,7 +299,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/connection_handler.rb, line 185
@@ -309,10 +309,10 @@ 

role = ActiveRecord::Base.current_role end - each_connection_pool(role).each(&:release_connection) + each_connection_pool(role).each(&:release_connection) end

- See on GitHub + 🔎 See on GitHub
@@ -339,7 +339,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/connection_handler.rb, line 206
@@ -349,10 +349,10 @@ 

role = ActiveRecord::Base.current_role end - each_connection_pool(role).each(&:disconnect!) + each_connection_pool(role).each(&:disconnect!) end

- See on GitHub + 🔎 See on GitHub
@@ -381,7 +381,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/connection_handler.rb, line 197
@@ -391,10 +391,10 @@ 

role = ActiveRecord::Base.current_role end - each_connection_pool(role).each(&:clear_reloadable_connections!) + each_connection_pool(role).each(&:clear_reloadable_connections!) end

- See on GitHub + 🔎 See on GitHub
@@ -421,16 +421,16 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/connection_handler.rb, line 251
       def connected?(connection_name, role: ActiveRecord::Base.current_role, shard: ActiveRecord::Base.current_shard)
         pool = retrieve_connection_pool(connection_name, role: role, shard: shard)
-        pool && pool.connected?
+        pool && pool.connected?
       end
- See on GitHub + 🔎 See on GitHub
@@ -461,7 +461,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/connection_handler.rb, line 107
@@ -469,15 +469,15 @@ 

if role.nil? deprecation_for_pool_handling(__method__) role = ActiveRecord::Base.current_role - connection_name_to_pool_manager.values.flat_map { |m| m.pool_configs(role).map(&:pool) } + connection_name_to_pool_manager.values.flat_map { |m| m.pool_configs(role).map(&:pool) } elsif role == :all - connection_name_to_pool_manager.values.flat_map { |m| m.pool_configs.map(&:pool) } + connection_name_to_pool_manager.values.flat_map { |m| m.pool_configs.map(&:pool) } else - connection_name_to_pool_manager.values.flat_map { |m| m.pool_configs(role).map(&:pool) } + connection_name_to_pool_manager.values.flat_map { |m| m.pool_configs(role).map(&:pool) } end end

- See on GitHub + 🔎 See on GitHub
@@ -529,7 +529,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/connection_handler.rb, line 131
@@ -542,16 +542,16 @@ 

pool_manager = set_pool_manager(pool_config.connection_name) # If there is an existing pool with the same values as the pool_config - # don't remove the connection. Connections should only be removed if we are + # don't remove the connection. Connections should only be removed if we are # establishing a connection on a class that is already connected to a different # configuration. existing_pool_config = pool_manager.get_pool_config(role, shard) - if !clobber && existing_pool_config && existing_pool_config.db_config == db_config - # Update the pool_config's connection class if it differs. This is used + if !clobber && existing_pool_config && existing_pool_config.db_config == db_config + # Update the pool_config's connection class if it differs. This is used # for ensuring that ActiveRecord::Base and the primary_abstract_class use # the same pool. Without this granular swapping will not work correctly. - if owner_name.primary_class? && (existing_pool_config.connection_class != owner_name) + if owner_name.primary_class? && (existing_pool_config.connection_class != owner_name) existing_pool_config.connection_class = owner_name end @@ -567,13 +567,13 @@

config: db_config.configuration_hash } - ActiveSupport::Notifications.instrumenter.instrument("!connection.active_record", payload) do + ActiveSupport::Notifications.instrumenter.instrument("!connection.active_record", payload) do pool_config.pool end end end

- See on GitHub + 🔎 See on GitHub
@@ -602,7 +602,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/connection_handler.rb, line 218
@@ -612,10 +612,10 @@ 

role = ActiveRecord::Base.current_role end - each_connection_pool(role).each(&:flush!) + each_connection_pool(role).each(&:flush!) end

- See on GitHub + 🔎 See on GitHub
@@ -642,7 +642,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/connection_handler.rb, line 256
@@ -652,7 +652,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -679,16 +679,16 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/connection_handler.rb, line 265
       def retrieve_connection_pool(connection_name, role: ActiveRecord::Base.current_role, shard: ActiveRecord::Base.current_shard)
-        pool_config = get_pool_manager(connection_name)&.get_pool_config(role, shard)
-        pool_config&.pool
+        pool_config = get_pool_manager(connection_name)&.get_pool_config(role, shard)
+        pool_config&.pool
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/ConnectionAdapters/ConnectionPool.html b/src/classes/ActiveRecord/ConnectionAdapters/ConnectionPool.html index 8dd9cdd4c6..22d1518795 100644 --- a/src/classes/ActiveRecord/ConnectionAdapters/ConnectionPool.html +++ b/src/classes/ActiveRecord/ConnectionAdapters/ConnectionPool.html @@ -312,7 +312,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb, line 122
@@ -332,11 +332,11 @@ 

# sole purpose of speeding up the +connection+ method. It is not the authoritative # registry of which thread owns which connection. Connection ownership is tracked by # the +connection.owner+ attr on each +connection+ instance. - # The invariant works like this: if there is mapping of thread => conn, + # The invariant works like this: if there is mapping of <tt>thread => conn</tt>, # then that +thread+ does indeed own that +conn+. However, an absence of such - # mapping does not mean that the +thread+ doesn't own the said connection. In + # mapping does not mean that the +thread+ doesn't own the said connection. In # that case +conn.owner+ attr should be consulted. - # Access and modification of @thread_cached_conns does not require + # Access and modification of <tt>@thread_cached_conns</tt> does not require # synchronization. @thread_cached_conns = Concurrent::Map.new(initial_capacity: @size) @@ -360,7 +360,7 @@

@reaper.run end

- See on GitHub + 🔎 See on GitHub
@@ -393,7 +393,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb, line 198
@@ -401,7 +401,7 @@ 

@thread_cached_conns[connection_cache_key(current_thread)] end

- See on GitHub + 🔎 See on GitHub
@@ -430,7 +430,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb, line 365
@@ -449,7 +449,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -487,7 +487,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb, line 354
@@ -497,7 +497,7 @@ 

connection end

- See on GitHub + 🔎 See on GitHub
@@ -529,7 +529,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb, line 312
@@ -543,13 +543,13 @@ 

end conn.disconnect! if conn.requires_reloading? end - @connections.delete_if(&:requires_reloading?) + @connections.delete_if(&:requires_reloading?) @available.clear end end end

- See on GitHub + 🔎 See on GitHub
@@ -578,7 +578,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb, line 336
@@ -586,7 +586,7 @@ 

clear_reloadable_connections(false) end

- See on GitHub + 🔎 See on GitHub
@@ -613,7 +613,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb, line 235
@@ -621,7 +621,7 @@ 

synchronize { @connections.any? } end

- See on GitHub + 🔎 See on GitHub
@@ -650,7 +650,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb, line 183
@@ -658,7 +658,7 @@ 

@thread_cached_conns[connection_cache_key(current_thread)] ||= checkout end

- See on GitHub + 🔎 See on GitHub
@@ -689,7 +689,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb, line 250
@@ -697,7 +697,7 @@ 

synchronize { @connections.dup } end

- See on GitHub + 🔎 See on GitHub
@@ -729,7 +729,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb, line 260
@@ -749,7 +749,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -778,7 +778,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb, line 282
@@ -786,7 +786,7 @@ 

disconnect(false) end

- See on GitHub + 🔎 See on GitHub
@@ -813,7 +813,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb, line 437
@@ -823,7 +823,7 @@ 

idle_connections = synchronize do return if self.discarded? @connections.select do |conn| - !conn.in_use? && conn.seconds_idle >= minimum_idle + !conn.in_use? && conn.seconds_idle >= minimum_idle end.each do |conn| conn.lease @@ -837,7 +837,7 @@

end end

- See on GitHub + 🔎 See on GitHub
@@ -864,7 +864,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb, line 459
@@ -873,7 +873,7 @@ 

flush(-1) end

- See on GitHub + 🔎 See on GitHub
@@ -900,7 +900,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb, line 166
@@ -916,7 +916,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -943,7 +943,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb, line 414
@@ -951,7 +951,7 @@ 

stale_connections = synchronize do return if self.discarded? @connections.select do |conn| - conn.in_use? && !conn.owner.alive? + conn.in_use? && !conn.owner.alive? end.each do |conn| conn.steal! end @@ -967,7 +967,7 @@

end end

- See on GitHub + 🔎 See on GitHub
@@ -996,7 +996,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb, line 209
@@ -1006,7 +1006,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -1033,7 +1033,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb, line 382
@@ -1046,13 +1046,13 @@ 

@connections.delete conn @available.delete conn - # @available.any_waiting? => true means that prior to removing this + # @available.any_waiting? => true means that prior to removing this # conn, the pool was at its max size (@connections.size == @size). - # This would mean that any threads stuck waiting in the queue wouldn't - # know they could checkout_new_connection, so let's do it for them. + # This would mean that any threads stuck waiting in the queue wouldn't + # know they could checkout_new_connection, so let's do it for them. # Because condition-wait loop is encapsulated in the Queue class # (that in turn is oblivious to ConnectionPool implementation), threads - # that are "stuck" there are helpless. They have no way of creating + # that are "stuck" there are helpless. They have no way of creating # new connections and are completely reliant on us feeding available # connections into the Queue. needs_new_connection = @available.any_waiting? @@ -1062,11 +1062,11 @@

# would like not to hold the main mutex while checking out new connections. # Thus there is some chance that needs_new_connection information is now # stale, we can live with that (bulk_make_new_connections will make - # sure not to exceed the pool's @size limit). + # sure not to exceed the pool's @size limit). bulk_make_new_connections(1) if needs_new_connection end

- See on GitHub + 🔎 See on GitHub
@@ -1096,7 +1096,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb, line 472
@@ -1105,8 +1105,8 @@ 

{ size: size, connections: @connections.size, - busy: @connections.count { |c| c.in_use? && c.owner.alive? }, - dead: @connections.count { |c| c.in_use? && !c.owner.alive? }, + busy: @connections.count { |c| c.in_use? && c.owner.alive? }, + dead: @connections.count { |c| c.in_use? && !c.owner.alive? }, idle: @connections.count { |c| !c.in_use? }, waiting: num_waiting_in_queue, checkout_timeout: checkout_timeout @@ -1114,7 +1114,7 @@

end end

- See on GitHub + 🔎 See on GitHub
@@ -1141,7 +1141,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb, line 224
@@ -1155,7 +1155,7 @@ 

release_connection if fresh_connection end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/ConnectionAdapters/ConnectionPool/Queue.html b/src/classes/ActiveRecord/ConnectionAdapters/ConnectionPool/Queue.html index 634409aede..0d1af9a42c 100644 --- a/src/classes/ActiveRecord/ConnectionAdapters/ConnectionPool/Queue.html +++ b/src/classes/ActiveRecord/ConnectionAdapters/ConnectionPool/Queue.html @@ -115,7 +115,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/connection_pool/queue.rb, line 14
@@ -126,7 +126,7 @@ 

@queue = [] end

- See on GitHub + 🔎 See on GitHub
@@ -157,7 +157,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/connection_pool/queue.rb, line 37
@@ -168,7 +168,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -195,17 +195,17 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/connection_pool/queue.rb, line 22
         def any_waiting?
           synchronize do
-            @num_waiting > 0
+            @num_waiting > 0
           end
         end
- See on GitHub + 🔎 See on GitHub
@@ -232,7 +232,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/connection_pool/queue.rb, line 52
@@ -242,7 +242,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -269,7 +269,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/connection_pool/queue.rb, line 45
@@ -279,7 +279,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -306,7 +306,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/connection_pool/queue.rb, line 30
@@ -316,7 +316,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -354,7 +354,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/connection_pool/queue.rb, line 72
@@ -362,7 +362,7 @@ 

synchronize { internal_poll(timeout) } end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/ConnectionAdapters/ConnectionPool/Reaper.html b/src/classes/ActiveRecord/ConnectionAdapters/ConnectionPool/Reaper.html index ebc1e03ba8..3945815318 100644 --- a/src/classes/ActiveRecord/ConnectionAdapters/ConnectionPool/Reaper.html +++ b/src/classes/ActiveRecord/ConnectionAdapters/ConnectionPool/Reaper.html @@ -119,7 +119,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/connection_pool/reaper.rb, line 20
@@ -128,7 +128,7 @@ 

@frequency = frequency end

- See on GitHub + 🔎 See on GitHub
@@ -159,16 +159,16 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/connection_pool/reaper.rb, line 71
         def run
-          return unless frequency && frequency > 0
+          return unless frequency && frequency > 0
           self.class.register_pool(pool, frequency)
         end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/ConnectionAdapters/DatabaseLimits.html b/src/classes/ActiveRecord/ConnectionAdapters/DatabaseLimits.html index 495e750952..db521a57c6 100644 --- a/src/classes/ActiveRecord/ConnectionAdapters/DatabaseLimits.html +++ b/src/classes/ActiveRecord/ConnectionAdapters/DatabaseLimits.html @@ -86,7 +86,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/database_limits.rb, line 21
@@ -94,7 +94,7 @@ 

max_identifier_length end

- See on GitHub + 🔎 See on GitHub
@@ -121,7 +121,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/database_limits.rb, line 16
@@ -129,7 +129,7 @@ 

max_identifier_length end

- See on GitHub + 🔎 See on GitHub
@@ -156,7 +156,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/database_limits.rb, line 11
@@ -164,7 +164,7 @@ 

max_identifier_length end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/ConnectionAdapters/DatabaseStatements.html b/src/classes/ActiveRecord/ConnectionAdapters/DatabaseStatements.html index 1088a1d528..a576e82e29 100644 --- a/src/classes/ActiveRecord/ConnectionAdapters/DatabaseStatements.html +++ b/src/classes/ActiveRecord/ConnectionAdapters/DatabaseStatements.html @@ -213,7 +213,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb, line 6
@@ -222,7 +222,7 @@ 

reset_transaction end

- See on GitHub + 🔎 See on GitHub
@@ -253,7 +253,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb, line 388
@@ -261,7 +261,7 @@ 

current_transaction.add_record(record, ensure_finalize) end

- See on GitHub + 🔎 See on GitHub
@@ -288,13 +288,13 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb, line 393
       def begin_db_transaction()    end
- See on GitHub + 🔎 See on GitHub
@@ -321,15 +321,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb, line 407
       def begin_isolated_db_transaction(isolation)
-        raise ActiveRecord::TransactionIsolationError, "adapter does not support setting transaction isolation"
+        raise ActiveRecord::TransactionIsolationError, "adapter does not support setting transaction isolation"
       end
- See on GitHub + 🔎 See on GitHub
@@ -356,13 +356,13 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb, line 412
       def commit_db_transaction()   end
- See on GitHub + 🔎 See on GitHub
@@ -414,7 +414,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb, line 434
@@ -422,7 +422,7 @@ 

nil end

- See on GitHub + 🔎 See on GitHub
@@ -449,7 +449,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb, line 204
@@ -458,7 +458,7 @@ 

exec_delete(sql, name, binds) end

- See on GitHub + 🔎 See on GitHub
@@ -485,15 +485,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb, line 466
       def empty_insert_statement_value(primary_key = nil)
-        "DEFAULT VALUES"
+        "DEFAULT VALUES"
       end
- See on GitHub + 🔎 See on GitHub
@@ -520,7 +520,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb, line 159
@@ -528,7 +528,7 @@ 

internal_exec_query(sql, name, binds) end

- See on GitHub + 🔎 See on GitHub
@@ -555,7 +555,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb, line 151
@@ -564,7 +564,7 @@ 

internal_exec_query(sql, name, binds) end

- See on GitHub + 🔎 See on GitHub
@@ -593,15 +593,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb, line 141
-      def exec_query(sql, name = "SQL", binds = [], prepare: false)
+      def exec_query(sql, name = "SQL", binds = [], prepare: false)
         internal_exec_query(sql, name, binds, prepare: prepare)
       end
- See on GitHub + 🔎 See on GitHub
@@ -628,7 +628,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb, line 166
@@ -636,7 +636,7 @@ 

internal_exec_query(sql, name, binds) end

- See on GitHub + 🔎 See on GitHub
@@ -669,7 +669,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb, line 130
@@ -677,7 +677,7 @@ 

internal_execute(sql, name, allow_retry: allow_retry) end

- See on GitHub + 🔎 See on GitHub
@@ -706,7 +706,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb, line 504
@@ -714,7 +714,7 @@ 

HIGH_PRECISION_CURRENT_TIMESTAMP end

- See on GitHub + 🔎 See on GitHub
@@ -749,7 +749,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb, line 189
@@ -760,7 +760,7 @@ 

returning.nil? ? last_inserted_id(value) : returning_column_values(value) end

- See on GitHub + 🔎 See on GitHub
@@ -787,15 +787,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb, line 448
       def insert_fixture(fixture, table_name)
-        execute(build_fixture_sql(Array.wrap(fixture), table_name), "Fixture Insert")
+        execute(build_fixture_sql(Array.wrap(fixture), table_name), "Fixture Insert")
       end
- See on GitHub + 🔎 See on GitHub
@@ -822,25 +822,25 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb, line 452
       def insert_fixtures_set(fixture_set, tables_to_delete = [])
         fixture_inserts = build_fixture_statements(fixture_set)
-        table_deletes = tables_to_delete.map { |table| "DELETE FROM #{quote_table_name(table)}" }
+        table_deletes = tables_to_delete.map { |table| "DELETE FROM #{quote_table_name(table)}" }
         statements = table_deletes + fixture_inserts
 
         with_multi_statements do
           disable_referential_integrity do
             transaction(requires_new: true) do
-              execute_batch(statements, "Fixtures Load")
+              execute_batch(statements, "Fixtures Load")
             end
           end
         end
       end
- See on GitHub + 🔎 See on GitHub
@@ -867,7 +867,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb, line 439
@@ -875,7 +875,7 @@ 

# Do nothing by default. Implement for PostgreSQL, Oracle, ... end

- See on GitHub + 🔎 See on GitHub
@@ -902,7 +902,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb, line 424
@@ -910,7 +910,7 @@ 

exec_restart_db_transaction end

- See on GitHub + 🔎 See on GitHub
@@ -937,17 +937,17 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb, line 416
       def rollback_db_transaction
         exec_rollback_db_transaction
       rescue ActiveRecord::ConnectionNotEstablished, ActiveRecord::ConnectionFailed
-        # Connection's gone; that counts as a rollback
+        # Connection's gone; that counts as a rollback
       end
- See on GitHub + 🔎 See on GitHub
@@ -974,7 +974,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb, line 430
@@ -982,7 +982,7 @@ 

exec_rollback_to_savepoint(name) end

- See on GitHub + 🔎 See on GitHub
@@ -1013,7 +1013,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb, line 476
@@ -1025,7 +1025,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -1052,7 +1052,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb, line 67
@@ -1060,12 +1060,12 @@ 

arel = arel_from_relation(arel) sql, binds, preparable = to_sql_and_binds(arel, binds, preparable) - select(sql, name, binds, prepare: prepared_statements && preparable, async: async && FutureResult::SelectAll) + select(sql, name, binds, prepare: prepared_statements && preparable, async: async && FutureResult::SelectAll) rescue ::RangeError ActiveRecord::Result.empty(async: async) end

- See on GitHub + 🔎 See on GitHub
@@ -1092,15 +1092,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb, line 78
       def select_one(arel, name = nil, binds = [], async: false)
-        select_all(arel, name, binds, async: async).then(&:first)
+        select_all(arel, name, binds, async: async).then(&:first)
       end
- See on GitHub + 🔎 See on GitHub
@@ -1127,15 +1127,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb, line 95
       def select_rows(arel, name = nil, binds = [], async: false)
-        select_all(arel, name, binds, async: async).then(&:rows)
+        select_all(arel, name, binds, async: async).then(&:rows)
       end
- See on GitHub + 🔎 See on GitHub
@@ -1162,7 +1162,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb, line 83
@@ -1170,7 +1170,7 @@ 

select_rows(arel, name, binds, async: async).then { |rows| single_value_from_rows(rows) } end

- See on GitHub + 🔎 See on GitHub
@@ -1200,15 +1200,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb, line 89
       def select_values(arel, name = nil, binds = [])
-        select_rows(arel, name, binds).map(&:first)
+        select_rows(arel, name, binds).map(&:first)
       end
- See on GitHub + 🔎 See on GitHub
@@ -1235,7 +1235,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb, line 12
@@ -1244,7 +1244,7 @@ 

sql end

- See on GitHub + 🔎 See on GitHub
@@ -1364,24 +1364,24 @@

Transaction isolation<
- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb, line 335
-      def transaction(requires_new: nil, isolation: nil, joinable: true, &block)
-        if !requires_new && current_transaction.joinable?
+      def transaction(requires_new: nil, isolation: nil, joinable: true, &block)
+        if !requires_new && current_transaction.joinable?
           if isolation
-            raise ActiveRecord::TransactionIsolationError, "cannot set isolation when joining a transaction"
+            raise ActiveRecord::TransactionIsolationError, "cannot set isolation when joining a transaction"
           end
           yield
         else
-          transaction_manager.within_new_transaction(isolation: isolation, joinable: joinable, &block)
+          transaction_manager.within_new_transaction(isolation: isolation, joinable: joinable, &block)
         end
       rescue ActiveRecord::Rollback
         # rollbacks are silently swallowed
       end
- See on GitHub + 🔎 See on GitHub
@@ -1408,20 +1408,20 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb, line 395
       def transaction_isolation_levels
         {
-          read_uncommitted: "READ UNCOMMITTED",
-          read_committed:   "READ COMMITTED",
-          repeatable_read:  "REPEATABLE READ",
-          serializable:     "SERIALIZABLE"
+          read_uncommitted: "READ UNCOMMITTED",
+          read_committed:   "READ COMMITTED",
+          repeatable_read:  "REPEATABLE READ",
+          serializable:     "SERIALIZABLE"
         }
       end
- See on GitHub + 🔎 See on GitHub
@@ -1448,7 +1448,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb, line 362
@@ -1456,7 +1456,7 @@ 

current_transaction.open? end

- See on GitHub + 🔎 See on GitHub
@@ -1483,7 +1483,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb, line 210
@@ -1491,7 +1491,7 @@ 

execute(build_truncate_statement(table_name), name) end

- See on GitHub + 🔎 See on GitHub
@@ -1518,7 +1518,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb, line 198
@@ -1527,7 +1527,7 @@ 

exec_update(sql, name, binds) end

- See on GitHub + 🔎 See on GitHub
@@ -1554,7 +1554,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb, line 112
@@ -1562,7 +1562,7 @@ 

raise NotImplementedError end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/ConnectionAdapters/Deduplicable.html b/src/classes/ActiveRecord/ConnectionAdapters/Deduplicable.html index 7e8e019565..635c1280ce 100644 --- a/src/classes/ActiveRecord/ConnectionAdapters/Deduplicable.html +++ b/src/classes/ActiveRecord/ConnectionAdapters/Deduplicable.html @@ -124,7 +124,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/deduplicable.rb, line 18
@@ -132,7 +132,7 @@ 

self.class.registry[self] ||= deduplicated end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/ConnectionAdapters/Deduplicable/ClassMethods.html b/src/classes/ActiveRecord/ConnectionAdapters/Deduplicable/ClassMethods.html index d1b7f5ae57..0f77cfe0d8 100644 --- a/src/classes/ActiveRecord/ConnectionAdapters/Deduplicable/ClassMethods.html +++ b/src/classes/ActiveRecord/ConnectionAdapters/Deduplicable/ClassMethods.html @@ -82,7 +82,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/deduplicable.rb, line 13
@@ -90,7 +90,7 @@ 

super.deduplicate end

- See on GitHub + 🔎 See on GitHub
@@ -117,7 +117,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/deduplicable.rb, line 9
@@ -125,7 +125,7 @@ 

@registry ||= {} end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/ConnectionAdapters/MySQL/ColumnMethods.html b/src/classes/ActiveRecord/ConnectionAdapters/MySQL/ColumnMethods.html index 3e3946751b..7554d66ca1 100644 --- a/src/classes/ActiveRecord/ConnectionAdapters/MySQL/ColumnMethods.html +++ b/src/classes/ActiveRecord/ConnectionAdapters/MySQL/ColumnMethods.html @@ -116,7 +116,7 @@

- See on GitHub + 🔎 See on GitHub @@ -139,7 +139,7 @@

- See on GitHub + 🔎 See on GitHub @@ -162,7 +162,7 @@

- See on GitHub + 🔎 See on GitHub @@ -185,7 +185,7 @@

- See on GitHub + 🔎 See on GitHub @@ -208,7 +208,7 @@

- See on GitHub + 🔎 See on GitHub @@ -231,7 +231,7 @@

- See on GitHub + 🔎 See on GitHub @@ -254,7 +254,7 @@

- See on GitHub + 🔎 See on GitHub @@ -277,7 +277,7 @@

- See on GitHub + 🔎 See on GitHub @@ -302,7 +302,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/mysql/schema_definitions.rb, line 53
@@ -312,7 +312,7 @@ 

:unsigned_float, :unsigned_decimal end

- See on GitHub + 🔎 See on GitHub
@@ -337,7 +337,7 @@

- See on GitHub + 🔎 See on GitHub @@ -360,7 +360,7 @@

- See on GitHub + 🔎 See on GitHub diff --git a/src/classes/ActiveRecord/ConnectionAdapters/MySQL/DatabaseStatements.html b/src/classes/ActiveRecord/ConnectionAdapters/MySQL/DatabaseStatements.html index 84b54fea6b..f47546df2d 100644 --- a/src/classes/ActiveRecord/ConnectionAdapters/MySQL/DatabaseStatements.html +++ b/src/classes/ActiveRecord/ConnectionAdapters/MySQL/DatabaseStatements.html @@ -86,23 +86,23 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/mysql/database_statements.rb, line 36
         def build_explain_clause(options = [])
-          return "EXPLAIN" if options.empty?
+          return "EXPLAIN" if options.empty?
 
-          explain_clause = "EXPLAIN #{options.join(" ").upcase}"
+          explain_clause = "EXPLAIN #{options.join(" ").upcase}"
 
-          if analyze_without_explain? && explain_clause.include?("ANALYZE")
-            explain_clause.sub("EXPLAIN ", "")
+          if analyze_without_explain? && explain_clause.include?("ANALYZE")
+            explain_clause.sub("EXPLAIN ", "")
           else
             explain_clause
           end
         end
- See on GitHub + 🔎 See on GitHub
@@ -129,20 +129,20 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/mysql/database_statements.rb, line 27
         def explain(arel, binds = [], options = [])
-          sql     = build_explain_clause(options) + " " + to_sql(arel, binds)
+          sql     = build_explain_clause(options) + " " + to_sql(arel, binds)
           start   = Process.clock_gettime(Process::CLOCK_MONOTONIC)
-          result  = internal_exec_query(sql, "EXPLAIN", binds)
+          result  = internal_exec_query(sql, "EXPLAIN", binds)
           elapsed = Process.clock_gettime(Process::CLOCK_MONOTONIC) - start
 
           MySQL::ExplainPrettyPrinter.new.pp(result, elapsed)
         end
- See on GitHub + 🔎 See on GitHub
@@ -169,7 +169,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/mysql/database_statements.rb, line 23
@@ -177,7 +177,7 @@ 

HIGH_PRECISION_CURRENT_TIMESTAMP end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/ConnectionAdapters/MySQL/TableDefinition.html b/src/classes/ActiveRecord/ConnectionAdapters/MySQL/TableDefinition.html index 13b6115895..f4dd722bfd 100644 --- a/src/classes/ActiveRecord/ConnectionAdapters/MySQL/TableDefinition.html +++ b/src/classes/ActiveRecord/ConnectionAdapters/MySQL/TableDefinition.html @@ -125,7 +125,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/mysql/schema_definitions.rb, line 66
@@ -135,7 +135,7 @@ 

@collation = collation end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/ConnectionAdapters/Mysql2Adapter.html b/src/classes/ActiveRecord/ConnectionAdapters/Mysql2Adapter.html index 945b42f2ad..b8541f18d8 100644 --- a/src/classes/ActiveRecord/ConnectionAdapters/Mysql2Adapter.html +++ b/src/classes/ActiveRecord/ConnectionAdapters/Mysql2Adapter.html @@ -129,11 +129,6 @@

Constants

"Mysql2" - -   - - - ER_ACCESS_DENIED_ERROR @@ -141,11 +136,6 @@

Constants

1045 - -   - - - ER_BAD_DB_ERROR @@ -153,11 +143,6 @@

Constants

1049 - -   - - - ER_CONN_HOST_ERROR @@ -165,11 +150,6 @@

Constants

2003 - -   - - - ER_DBACCESS_DENIED_ERROR @@ -177,11 +157,6 @@

Constants

1044 - -   - - - ER_UNKNOWN_HOST_ERROR @@ -189,11 +164,6 @@

Constants

2005 - -   - - - TYPE_MAP @@ -201,11 +171,6 @@

Constants

Type::TypeMap.new.tap { |m| initialize_type_map(m) } - -   - - - @@ -237,7 +202,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb, line 66
@@ -247,7 +212,7 @@ 

@config[:flags] ||= 0 if @config[:flags].kind_of? Array - @config[:flags].push "FOUND_ROWS" + @config[:flags].push "FOUND_ROWS" else @config[:flags] |= ::Mysql2::Client::FOUND_ROWS end @@ -255,7 +220,7 @@

@connection_parameters ||= @config end

- See on GitHub + 🔎 See on GitHub
@@ -282,13 +247,13 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb, line 35
         def new_client(config)
           ::Mysql2::Client.new(config)
-        rescue ::Mysql2::Error => error
+        rescue ::Mysql2::Error => error
           case error.error_number
           when ER_BAD_DB_ERROR
             raise ActiveRecord::NoDatabaseError.db_error(config[:database])
@@ -301,7 +266,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -332,15 +297,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb, line 133
       def active?
-        !!@raw_connection&.ping
+        !!@raw_connection&.ping
       end
- See on GitHub + 🔎 See on GitHub
@@ -367,17 +332,17 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb, line 141
       def disconnect!
         super
-        @raw_connection&.close
+        @raw_connection&.close
         @raw_connection = nil
       end
- See on GitHub + 🔎 See on GitHub
@@ -404,7 +369,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb, line 114
@@ -412,7 +377,7 @@ 

exception.error_number if exception.respond_to?(:error_number) end

- See on GitHub + 🔎 See on GitHub
@@ -439,7 +404,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb, line 123
@@ -449,7 +414,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -476,7 +441,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb, line 96
@@ -484,7 +449,7 @@ 

true end

- See on GitHub + 🔎 See on GitHub
@@ -511,7 +476,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb, line 84
@@ -519,7 +484,7 @@ 

true end

- See on GitHub + 🔎 See on GitHub
@@ -546,7 +511,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb, line 88
@@ -554,7 +519,7 @@ 

true end

- See on GitHub + 🔎 See on GitHub
@@ -581,15 +546,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb, line 80
       def supports_json?
-        !mariadb? && database_version >= "5.7.8"
+        !mariadb? && database_version >= "5.7.8"
       end
- See on GitHub + 🔎 See on GitHub
@@ -616,7 +581,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb, line 100
@@ -624,7 +589,7 @@ 

true end

- See on GitHub + 🔎 See on GitHub
@@ -651,7 +616,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb, line 92
@@ -659,7 +624,7 @@ 

true end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/ConnectionAdapters/PostgreSQL.html b/src/classes/ActiveRecord/ConnectionAdapters/PostgreSQL.html index b29267ae2a..8bf7a299b5 100644 --- a/src/classes/ActiveRecord/ConnectionAdapters/PostgreSQL.html +++ b/src/classes/ActiveRecord/ConnectionAdapters/PostgreSQL.html @@ -178,11 +178,6 @@

Constants

end - -   - - - UniqueConstraintDefinition @@ -212,11 +207,6 @@

Constants

end - -   - - - diff --git a/src/classes/ActiveRecord/ConnectionAdapters/PostgreSQL/AlterTable.html b/src/classes/ActiveRecord/ConnectionAdapters/PostgreSQL/AlterTable.html index 5c4eba710e..6e12cc57c2 100644 --- a/src/classes/ActiveRecord/ConnectionAdapters/PostgreSQL/AlterTable.html +++ b/src/classes/ActiveRecord/ConnectionAdapters/PostgreSQL/AlterTable.html @@ -155,7 +155,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql/schema_definitions.rb, line 341
@@ -168,7 +168,7 @@ 

@unique_constraint_drops = [] end

- See on GitHub + 🔎 See on GitHub
@@ -199,15 +199,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql/schema_definitions.rb, line 354
         def add_exclusion_constraint(expression, options)
-          @exclusion_constraint_adds << @td.new_exclusion_constraint_definition(expression, options)
+          @exclusion_constraint_adds << @td.new_exclusion_constraint_definition(expression, options)
         end
- See on GitHub + 🔎 See on GitHub
@@ -234,15 +234,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql/schema_definitions.rb, line 362
         def add_unique_constraint(column_name, options)
-          @unique_constraint_adds << @td.new_unique_constraint_definition(column_name, options)
+          @unique_constraint_adds << @td.new_unique_constraint_definition(column_name, options)
         end
- See on GitHub + 🔎 See on GitHub
@@ -269,15 +269,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql/schema_definitions.rb, line 358
         def drop_exclusion_constraint(constraint_name)
-          @exclusion_constraint_drops << constraint_name
+          @exclusion_constraint_drops << constraint_name
         end
- See on GitHub + 🔎 See on GitHub
@@ -304,15 +304,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql/schema_definitions.rb, line 366
         def drop_unique_constraint(unique_constraint_name)
-          @unique_constraint_drops << unique_constraint_name
+          @unique_constraint_drops << unique_constraint_name
         end
- See on GitHub + 🔎 See on GitHub
@@ -339,15 +339,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql/schema_definitions.rb, line 350
         def validate_constraint(name)
-          @constraint_validations << name
+          @constraint_validations << name
         end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/ConnectionAdapters/PostgreSQL/ColumnMethods.html b/src/classes/ActiveRecord/ConnectionAdapters/PostgreSQL/ColumnMethods.html index 0eb2f6c455..a75ff6b949 100644 --- a/src/classes/ActiveRecord/ConnectionAdapters/PostgreSQL/ColumnMethods.html +++ b/src/classes/ActiveRecord/ConnectionAdapters/PostgreSQL/ColumnMethods.html @@ -204,7 +204,7 @@

- See on GitHub + 🔎 See on GitHub @@ -227,7 +227,7 @@

- See on GitHub + 🔎 See on GitHub @@ -250,7 +250,7 @@

- See on GitHub + 🔎 See on GitHub @@ -273,7 +273,7 @@

- See on GitHub + 🔎 See on GitHub @@ -296,7 +296,7 @@

- See on GitHub + 🔎 See on GitHub @@ -319,7 +319,7 @@

- See on GitHub + 🔎 See on GitHub @@ -342,7 +342,7 @@

- See on GitHub + 🔎 See on GitHub @@ -365,7 +365,7 @@

- See on GitHub + 🔎 See on GitHub @@ -390,7 +390,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql/schema_definitions.rb, line 184
@@ -401,7 +401,7 @@ 

:serial, :tsrange, :tstzrange, :tsvector, :uuid, :xml, :timestamptz, :enum end

- See on GitHub + 🔎 See on GitHub
@@ -426,7 +426,7 @@

- See on GitHub + 🔎 See on GitHub @@ -449,7 +449,7 @@

- See on GitHub + 🔎 See on GitHub @@ -472,7 +472,7 @@

- See on GitHub + 🔎 See on GitHub @@ -495,7 +495,7 @@

- See on GitHub + 🔎 See on GitHub @@ -518,7 +518,7 @@

- See on GitHub + 🔎 See on GitHub @@ -541,7 +541,7 @@

- See on GitHub + 🔎 See on GitHub @@ -564,7 +564,7 @@

- See on GitHub + 🔎 See on GitHub @@ -587,7 +587,7 @@

- See on GitHub + 🔎 See on GitHub @@ -610,7 +610,7 @@

- See on GitHub + 🔎 See on GitHub @@ -633,7 +633,7 @@

- See on GitHub + 🔎 See on GitHub @@ -656,7 +656,7 @@

- See on GitHub + 🔎 See on GitHub @@ -679,7 +679,7 @@

- See on GitHub + 🔎 See on GitHub @@ -702,7 +702,7 @@

- See on GitHub + 🔎 See on GitHub @@ -725,7 +725,7 @@

- See on GitHub + 🔎 See on GitHub @@ -748,7 +748,7 @@

- See on GitHub + 🔎 See on GitHub @@ -771,7 +771,7 @@

- See on GitHub + 🔎 See on GitHub @@ -826,19 +826,19 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql/schema_definitions.rb, line 48
         def primary_key(name, type = :primary_key, **options)
           if type == :uuid
-            options[:default] = options.fetch(:default, "gen_random_uuid()")
+            options[:default] = options.fetch(:default, "gen_random_uuid()")
           end
 
           super
         end
- See on GitHub + 🔎 See on GitHub
@@ -863,7 +863,7 @@

- See on GitHub + 🔎 See on GitHub @@ -886,7 +886,7 @@

- See on GitHub + 🔎 See on GitHub @@ -909,7 +909,7 @@

- See on GitHub + 🔎 See on GitHub @@ -932,7 +932,7 @@

- See on GitHub + 🔎 See on GitHub @@ -955,7 +955,7 @@

- See on GitHub + 🔎 See on GitHub @@ -978,7 +978,7 @@

- See on GitHub + 🔎 See on GitHub @@ -1001,7 +1001,7 @@

- See on GitHub + 🔎 See on GitHub diff --git a/src/classes/ActiveRecord/ConnectionAdapters/PostgreSQL/DatabaseStatements.html b/src/classes/ActiveRecord/ConnectionAdapters/PostgreSQL/DatabaseStatements.html index 03a6a05ff0..3d5b60db3e 100644 --- a/src/classes/ActiveRecord/ConnectionAdapters/PostgreSQL/DatabaseStatements.html +++ b/src/classes/ActiveRecord/ConnectionAdapters/PostgreSQL/DatabaseStatements.html @@ -90,17 +90,17 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql/database_statements.rb, line 129
         def build_explain_clause(options = [])
-          return "EXPLAIN" if options.empty?
+          return "EXPLAIN" if options.empty?
 
-          "EXPLAIN (#{options.join(", ").upcase})"
+          "EXPLAIN (#{options.join(", ").upcase})"
         end
- See on GitHub + 🔎 See on GitHub
@@ -127,17 +127,17 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql/database_statements.rb, line 7
         def explain(arel, binds = [], options = [])
-          sql    = build_explain_clause(options) + " " + to_sql(arel, binds)
-          result = internal_exec_query(sql, "EXPLAIN", binds)
+          sql    = build_explain_clause(options) + " " + to_sql(arel, binds)
+          result = internal_exec_query(sql, "EXPLAIN", binds)
           PostgreSQL::ExplainPrettyPrinter.new.pp(result)
         end
- See on GitHub + 🔎 See on GitHub
@@ -164,7 +164,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql/database_statements.rb, line 125
@@ -172,7 +172,7 @@ 

HIGH_PRECISION_CURRENT_TIMESTAMP end

- See on GitHub + 🔎 See on GitHub
@@ -199,7 +199,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql/database_statements.rb, line 50
@@ -213,7 +213,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/ConnectionAdapters/PostgreSQL/OID/Bit/Data.html b/src/classes/ActiveRecord/ConnectionAdapters/PostgreSQL/OID/Bit/Data.html index 468a20db38..48024b26dd 100644 --- a/src/classes/ActiveRecord/ConnectionAdapters/PostgreSQL/OID/Bit/Data.html +++ b/src/classes/ActiveRecord/ConnectionAdapters/PostgreSQL/OID/Bit/Data.html @@ -95,7 +95,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql/oid/bit.rb, line 30
@@ -103,7 +103,7 @@ 

@value = value end

- See on GitHub + 🔎 See on GitHub
@@ -134,7 +134,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql/oid/bit.rb, line 38
@@ -142,7 +142,7 @@ 

/\A[01]*\Z/.match?(value) end

- See on GitHub + 🔎 See on GitHub
@@ -169,7 +169,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql/oid/bit.rb, line 42
@@ -177,7 +177,7 @@ 

/\A[0-9A-F]*\Z/i.match?(value) end

- See on GitHub + 🔎 See on GitHub
@@ -204,7 +204,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql/oid/bit.rb, line 34
@@ -212,7 +212,7 @@ 

value end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/ConnectionAdapters/PostgreSQL/Quoting.html b/src/classes/ActiveRecord/ConnectionAdapters/PostgreSQL/Quoting.html index ff0f2b2297..7bbabad058 100644 --- a/src/classes/ActiveRecord/ConnectionAdapters/PostgreSQL/Quoting.html +++ b/src/classes/ActiveRecord/ConnectionAdapters/PostgreSQL/Quoting.html @@ -115,13 +115,13 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql/quoting.rb, line 28
         def check_int_in_range(value)
-          if value.to_int > 9223372036854775807 || value.to_int < -9223372036854775808
-            exception = <<~ERROR
+          if value.to_int > 9223372036854775807 || value.to_int < -9223372036854775808
+            exception = <<~ERROR
               Provided value outside of the range of a signed 64bit integer.
 
               PostgreSQL will treat the column type in question as a numeric.
@@ -135,7 +135,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -162,7 +162,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql/quoting.rb, line 156
@@ -170,7 +170,7 @@ 

COLUMN_NAME end

- See on GitHub + 🔎 See on GitHub
@@ -197,7 +197,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql/quoting.rb, line 160
@@ -205,7 +205,7 @@ 

COLUMN_NAME_WITH_ORDER end

- See on GitHub + 🔎 See on GitHub
@@ -232,7 +232,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql/quoting.rb, line 17
@@ -240,7 +240,7 @@ 

valid_raw_connection.escape_bytea(value) if value end

- See on GitHub + 🔎 See on GitHub
@@ -267,7 +267,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql/quoting.rb, line 93
@@ -275,7 +275,7 @@ 

PG::Connection.quote_ident(name) end

- See on GitHub + 🔎 See on GitHub
@@ -302,7 +302,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql/quoting.rb, line 97
@@ -310,7 +310,7 @@ 

quote_column_name(attr) end

- See on GitHub + 🔎 See on GitHub
@@ -337,7 +337,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql/quoting.rb, line 24
@@ -345,7 +345,7 @@ 

valid_raw_connection.unescape_bytea(value) if value end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/ConnectionAdapters/PostgreSQL/Quoting/IntegerOutOf64BitRange.html b/src/classes/ActiveRecord/ConnectionAdapters/PostgreSQL/Quoting/IntegerOutOf64BitRange.html index 7c6fa7fd94..80959767cd 100644 --- a/src/classes/ActiveRecord/ConnectionAdapters/PostgreSQL/Quoting/IntegerOutOf64BitRange.html +++ b/src/classes/ActiveRecord/ConnectionAdapters/PostgreSQL/Quoting/IntegerOutOf64BitRange.html @@ -83,7 +83,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql/quoting.rb, line 11
@@ -91,7 +91,7 @@ 

super(msg) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/ConnectionAdapters/PostgreSQL/SchemaStatements.html b/src/classes/ActiveRecord/ConnectionAdapters/PostgreSQL/SchemaStatements.html index 20a3593e8b..37fd9b5766 100644 --- a/src/classes/ActiveRecord/ConnectionAdapters/PostgreSQL/SchemaStatements.html +++ b/src/classes/ActiveRecord/ConnectionAdapters/PostgreSQL/SchemaStatements.html @@ -215,7 +215,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb, line 686
@@ -227,7 +227,7 @@ 

execute schema_creation.accept(at) end

- See on GitHub + 🔎 See on GitHub
@@ -254,13 +254,13 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb, line 517
         def add_foreign_key(from_table, to_table, **options)
           if options[:deferrable] == true
-            ActiveRecord.deprecator.warn(<<~MSG)
+            ActiveRecord.deprecator.warn(<<~MSG)
               `deferrable: true` is deprecated in favor of `deferrable: :immediate`, and will be removed in Rails 7.2.
             MSG
 
@@ -272,7 +272,7 @@ 

super end

- See on GitHub + 🔎 See on GitHub
@@ -324,7 +324,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb, line 737
@@ -336,7 +336,7 @@ 

execute schema_creation.accept(at) end

- See on GitHub + 🔎 See on GitHub
@@ -363,15 +363,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb, line 239
         def client_min_messages
-          query_value("SHOW client_min_messages", "SCHEMA")
+          query_value("SHOW client_min_messages", "SCHEMA")
         end
- See on GitHub + 🔎 See on GitHub
@@ -398,15 +398,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb, line 244
         def client_min_messages=(level)
-          internal_execute("SET client_min_messages TO '#{level}'")
+          internal_execute("SET client_min_messages TO '#{level}'")
         end
- See on GitHub + 🔎 See on GitHub
@@ -433,15 +433,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb, line 191
         def collation
-          query_value("SELECT datcollate FROM pg_database WHERE datname = current_database()", "SCHEMA")
+          query_value("SELECT datcollate FROM pg_database WHERE datname = current_database()", "SCHEMA")
         end
- See on GitHub + 🔎 See on GitHub
@@ -474,38 +474,38 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb, line 22
         def create_database(name, options = {})
-          options = { encoding: "utf8" }.merge!(options.symbolize_keys)
+          options = { encoding: "utf8" }.merge!(options.symbolize_keys)
 
-          option_string = options.each_with_object(+"") do |(key, value), memo|
-            memo << case key
+          option_string = options.each_with_object(+"") do |(key, value), memo|
+            memo << case key
                     when :owner
-                      " OWNER = \"#{value}\""
+                      " OWNER = \"#{value}\""
                     when :template
-                      " TEMPLATE = \"#{value}\""
+                      " TEMPLATE = \"#{value}\""
                     when :encoding
-                      " ENCODING = '#{value}'"
+                      " ENCODING = '#{value}'"
                     when :collation
-                      " LC_COLLATE = '#{value}'"
+                      " LC_COLLATE = '#{value}'"
                     when :ctype
-                      " LC_CTYPE = '#{value}'"
+                      " LC_CTYPE = '#{value}'"
                     when :tablespace
-                      " TABLESPACE = \"#{value}\""
+                      " TABLESPACE = \"#{value}\""
                     when :connection_limit
-                      " CONNECTION LIMIT = #{value}"
+                      " CONNECTION LIMIT = #{value}"
                     else
-                      ""
+                      ""
             end
           end
 
-          execute "CREATE DATABASE #{quote_table_name(name)}#{option_string}"
+          execute "CREATE DATABASE #{quote_table_name(name)}#{option_string}"
         end
- See on GitHub + 🔎 See on GitHub
@@ -532,15 +532,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb, line 212
         def create_schema(schema_name)
-          execute "CREATE SCHEMA #{quote_schema_name(schema_name)}"
+          execute "CREATE SCHEMA #{quote_schema_name(schema_name)}"
         end
- See on GitHub + 🔎 See on GitHub
@@ -567,15 +567,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb, line 196
         def ctype
-          query_value("SELECT datctype FROM pg_database WHERE datname = current_database()", "SCHEMA")
+          query_value("SELECT datctype FROM pg_database WHERE datname = current_database()", "SCHEMA")
         end
- See on GitHub + 🔎 See on GitHub
@@ -602,15 +602,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb, line 176
         def current_database
-          query_value("SELECT current_database()", "SCHEMA")
+          query_value("SELECT current_database()", "SCHEMA")
         end
- See on GitHub + 🔎 See on GitHub
@@ -637,15 +637,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb, line 181
         def current_schema
-          query_value("SELECT current_schema", "SCHEMA")
+          query_value("SELECT current_schema", "SCHEMA")
         end
- See on GitHub + 🔎 See on GitHub
@@ -672,15 +672,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb, line 217
         def drop_schema(schema_name, **options)
-          execute "DROP SCHEMA#{' IF EXISTS' if options[:if_exists]} #{quote_schema_name(schema_name)} CASCADE"
+          execute "DROP SCHEMA#{' IF EXISTS' if options[:if_exists]} #{quote_schema_name(schema_name)} CASCADE"
         end
- See on GitHub + 🔎 See on GitHub
@@ -707,15 +707,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb, line 186
         def encoding
-          query_value("SELECT pg_encoding_to_char(encoding) FROM pg_database WHERE datname = current_database()", "SCHEMA")
+          query_value("SELECT pg_encoding_to_char(encoding) FROM pg_database WHERE datname = current_database()", "SCHEMA")
         end
- See on GitHub + 🔎 See on GitHub
@@ -742,43 +742,43 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb, line 610
         def exclusion_constraints(table_name)
           scope = quoted_scope(table_name)
 
-          exclusion_info = internal_exec_query(<<-SQL, "SCHEMA")
+          exclusion_info = internal_exec_query(<<-SQL, "SCHEMA")
             SELECT conname, pg_get_constraintdef(c.oid) AS constraintdef, c.condeferrable, c.condeferred
             FROM pg_constraint c
             JOIN pg_class t ON c.conrelid = t.oid
             JOIN pg_namespace n ON n.oid = c.connamespace
-            WHERE c.contype = 'x'
+            WHERE c.contype = 'x'
               AND t.relname = #{scope[:name]}
               AND n.nspname = #{scope[:schema]}
           SQL
 
           exclusion_info.map do |row|
-            method_and_elements, predicate = row["constraintdef"].split(" WHERE ")
-            method_and_elements_parts = method_and_elements.match(/EXCLUDE(?: USING (?\S+))? \((?.+)\)/)
+            method_and_elements, predicate = row["constraintdef"].split(" WHERE ")
+            method_and_elements_parts = method_and_elements.match(/EXCLUDE(?: USING (?<using>\S+))? \((?<expression>.+)\)/)
             predicate.remove!(/ DEFERRABLE(?: INITIALLY (?:IMMEDIATE|DEFERRED))?/) if predicate
             predicate = predicate.from(2).to(-3) if predicate # strip 2 opening and closing parentheses
 
-            deferrable = extract_constraint_deferrable(row["condeferrable"], row["condeferred"])
+            deferrable = extract_constraint_deferrable(row["condeferrable"], row["condeferred"])
 
             options = {
-              name: row["conname"],
-              using: method_and_elements_parts["using"].to_sym,
+              name: row["conname"],
+              using: method_and_elements_parts["using"].to_sym,
               where: predicate,
               deferrable: deferrable
             }
 
-            ExclusionConstraintDefinition.new(table_name, method_and_elements_parts["expression"], options)
+            ExclusionConstraintDefinition.new(table_name, method_and_elements_parts["expression"], options)
           end
         end
- See on GitHub + 🔎 See on GitHub
@@ -805,13 +805,13 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb, line 531
         def foreign_keys(table_name)
           scope = quoted_scope(table_name)
-          fk_info = internal_exec_query(<<~SQL, "SCHEMA", allow_retry: true, materialize_transactions: false)
+          fk_info = internal_exec_query(<<~SQL, "SCHEMA", allow_retry: true, materialize_transactions: false)
             SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete, c.convalidated AS valid, c.condeferrable AS deferrable, c.condeferred AS deferred, c.conkey, c.confkey, c.conrelid, c.confrelid
             FROM pg_constraint c
             JOIN pg_class t1 ON c.conrelid = t1.oid
@@ -819,42 +819,42 @@ 

JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid - WHERE c.contype = 'f' + WHERE c.contype = 'f' AND t1.relname = #{scope[:name]} AND t3.nspname = #{scope[:schema]} ORDER BY c.conname SQL fk_info.map do |row| - to_table = Utils.unquote_identifier(row["to_table"]) - conkey = row["conkey"].scan(/\d+/).map(&:to_i) - confkey = row["confkey"].scan(/\d+/).map(&:to_i) + to_table = Utils.unquote_identifier(row["to_table"]) + conkey = row["conkey"].scan(/\d+/).map(&:to_i) + confkey = row["confkey"].scan(/\d+/).map(&:to_i) - if conkey.size > 1 - column = column_names_from_column_numbers(row["conrelid"], conkey) - primary_key = column_names_from_column_numbers(row["confrelid"], confkey) + if conkey.size > 1 + column = column_names_from_column_numbers(row["conrelid"], conkey) + primary_key = column_names_from_column_numbers(row["confrelid"], confkey) else - column = Utils.unquote_identifier(row["column"]) - primary_key = row["primary_key"] + column = Utils.unquote_identifier(row["column"]) + primary_key = row["primary_key"] end options = { column: column, - name: row["name"], + name: row["name"], primary_key: primary_key } - options[:on_delete] = extract_foreign_key_action(row["on_delete"]) - options[:on_update] = extract_foreign_key_action(row["on_update"]) - options[:deferrable] = extract_constraint_deferrable(row["deferrable"], row["deferred"]) + options[:on_delete] = extract_foreign_key_action(row["on_delete"]) + options[:on_update] = extract_foreign_key_action(row["on_update"]) + options[:deferrable] = extract_constraint_deferrable(row["deferrable"], row["deferred"]) - options[:validate] = row["valid"] + options[:validate] = row["valid"] ForeignKeyDefinition.new(table_name, to_table, options) end end

- See on GitHub + 🔎 See on GitHub
@@ -881,15 +881,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb, line 580
         def foreign_table_exists?(table_name)
-          query_values(data_source_sql(table_name, type: "FOREIGN TABLE"), "SCHEMA").any? if table_name.present?
+          query_values(data_source_sql(table_name, type: "FOREIGN TABLE"), "SCHEMA").any? if table_name.present?
         end
- See on GitHub + 🔎 See on GitHub
@@ -916,15 +916,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb, line 576
         def foreign_tables
-          query_values(data_source_sql(type: "FOREIGN TABLE"), "SCHEMA")
+          query_values(data_source_sql(type: "FOREIGN TABLE"), "SCHEMA")
         end
- See on GitHub + 🔎 See on GitHub
@@ -951,7 +951,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb, line 68
@@ -959,20 +959,20 @@ 

table = quoted_scope(table_name) index = quoted_scope(index_name) - query_value(<<~SQL, "SCHEMA").to_i > 0 + query_value(<<~SQL, "SCHEMA").to_i > 0 SELECT COUNT(*) FROM pg_class t INNER JOIN pg_index d ON t.oid = d.indrelid INNER JOIN pg_class i ON d.indexrelid = i.oid LEFT JOIN pg_namespace n ON n.oid = t.relnamespace - WHERE i.relkind IN ('i', 'I') + WHERE i.relkind IN ('i', 'I') AND i.relname = #{index[:name]} AND t.relname = #{table[:name]} AND n.nspname = #{table[:schema]} SQL end

- See on GitHub + 🔎 See on GitHub
@@ -1004,7 +1004,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb, line 709
@@ -1017,7 +1017,7 @@ 

execute schema_creation.accept(at) end

- See on GitHub + 🔎 See on GitHub
@@ -1049,7 +1049,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb, line 764
@@ -1062,7 +1062,7 @@ 

execute schema_creation.accept(at) end

- See on GitHub + 🔎 See on GitHub
@@ -1089,7 +1089,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb, line 505
@@ -1097,10 +1097,10 @@ 

validate_index_length!(table_name, new_name) schema, = extract_schema_qualified_name(table_name) - execute "ALTER INDEX #{quote_table_name(schema) + '.' if schema}#{quote_column_name(old_name)} RENAME TO #{quote_table_name(new_name)}" + execute "ALTER INDEX #{quote_table_name(schema) + '.' if schema}#{quote_column_name(old_name)} RENAME TO #{quote_table_name(new_name)}" end

- See on GitHub + 🔎 See on GitHub
@@ -1132,7 +1132,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb, line 380
@@ -1141,21 +1141,21 @@ 

clear_cache! schema_cache.clear_data_source_cache!(table_name.to_s) schema_cache.clear_data_source_cache!(new_name.to_s) - execute "ALTER TABLE #{quote_table_name(table_name)} RENAME TO #{quote_table_name(new_name)}" + execute "ALTER TABLE #{quote_table_name(table_name)} RENAME TO #{quote_table_name(new_name)}" pk, seq = pk_and_sequence_for(new_name) if pk - idx = "#{table_name}_pkey" - new_idx = "#{new_name}_pkey" - execute "ALTER INDEX #{quote_table_name(idx)} RENAME TO #{quote_table_name(new_idx)}" - if seq && seq.identifier == "#{table_name}_#{pk}_seq" - new_seq = "#{new_name}_#{pk}_seq" - execute "ALTER TABLE #{seq.quoted} RENAME TO #{quote_table_name(new_seq)}" + idx = "#{table_name}_pkey" + new_idx = "#{new_name}_pkey" + execute "ALTER INDEX #{quote_table_name(idx)} RENAME TO #{quote_table_name(new_idx)}" + if seq && seq.identifier == "#{table_name}_#{pk}_seq" + new_seq = "#{new_name}_#{pk}_seq" + execute "ALTER TABLE #{seq.quoted} RENAME TO #{quote_table_name(new_seq)}" end end rename_table_indexes(table_name, new_name) end

- See on GitHub + 🔎 See on GitHub
@@ -1182,15 +1182,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb, line 63
         def schema_exists?(name)
-          query_value("SELECT COUNT(*) FROM pg_namespace WHERE nspname = #{quote(name)}", "SCHEMA").to_i > 0
+          query_value("SELECT COUNT(*) FROM pg_namespace WHERE nspname = #{quote(name)}", "SCHEMA").to_i > 0
         end
- See on GitHub + 🔎 See on GitHub
@@ -1217,21 +1217,21 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb, line 201
         def schema_names
-          query_values(<<~SQL, "SCHEMA")
+          query_values(<<~SQL, "SCHEMA")
             SELECT nspname
               FROM pg_namespace
-             WHERE nspname !~ '^pg_.*'
-               AND nspname NOT IN ('information_schema')
+             WHERE nspname !~ '^pg_.*'
+               AND nspname NOT IN ('information_schema')
              ORDER by nspname;
           SQL
         end
- See on GitHub + 🔎 See on GitHub
@@ -1258,15 +1258,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb, line 234
         def schema_search_path
-          @schema_search_path ||= query_value("SHOW search_path", "SCHEMA")
+          @schema_search_path ||= query_value("SHOW search_path", "SCHEMA")
         end
- See on GitHub + 🔎 See on GitHub
@@ -1295,18 +1295,18 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb, line 226
         def schema_search_path=(schema_csv)
           if schema_csv
-            internal_execute("SET search_path TO #{schema_csv}")
+            internal_execute("SET search_path TO #{schema_csv}")
             @schema_search_path = schema_csv
           end
         end
- See on GitHub + 🔎 See on GitHub
@@ -1333,15 +1333,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb, line 257
         def serial_sequence(table, column)
-          query_value("SELECT pg_get_serial_sequence(#{quote(table)}, #{quote(column)})", "SCHEMA")
+          query_value("SELECT pg_get_serial_sequence(#{quote(table)}, #{quote(column)})", "SCHEMA")
         end
- See on GitHub + 🔎 See on GitHub
@@ -1368,31 +1368,31 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb, line 644
         def unique_constraints(table_name)
           scope = quoted_scope(table_name)
 
-          unique_info = internal_exec_query(<<~SQL, "SCHEMA", allow_retry: true, materialize_transactions: false)
+          unique_info = internal_exec_query(<<~SQL, "SCHEMA", allow_retry: true, materialize_transactions: false)
             SELECT c.conname, c.conrelid, c.conkey, c.condeferrable, c.condeferred
             FROM pg_constraint c
             JOIN pg_class t ON c.conrelid = t.oid
             JOIN pg_namespace n ON n.oid = c.connamespace
-            WHERE c.contype = 'u'
+            WHERE c.contype = 'u'
               AND t.relname = #{scope[:name]}
               AND n.nspname = #{scope[:schema]}
           SQL
 
           unique_info.map do |row|
-            conkey = row["conkey"].delete("{}").split(",").map(&:to_i)
-            columns = column_names_from_column_numbers(row["conrelid"], conkey)
+            conkey = row["conkey"].delete("{}").split(",").map(&:to_i)
+            columns = column_names_from_column_numbers(row["conrelid"], conkey)
 
-            deferrable = extract_constraint_deferrable(row["condeferrable"], row["condeferred"])
+            deferrable = extract_constraint_deferrable(row["condeferrable"], row["condeferred"])
 
             options = {
-              name: row["conname"],
+              name: row["conname"],
               deferrable: deferrable
             }
 
@@ -1400,7 +1400,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -1432,7 +1432,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb, line 870
@@ -1442,7 +1442,7 @@ 

validate_constraint table_name, chk_name_to_validate end

- See on GitHub + 🔎 See on GitHub
@@ -1474,7 +1474,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb, line 837
@@ -1485,7 +1485,7 @@ 

execute schema_creation.accept(at) end

- See on GitHub + 🔎 See on GitHub
@@ -1529,7 +1529,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb, line 859
@@ -1539,7 +1539,7 @@ 

validate_constraint from_table, fk_name_to_validate end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/ConnectionAdapters/PostgreSQL/Table.html b/src/classes/ActiveRecord/ConnectionAdapters/PostgreSQL/Table.html index dc95aa5db5..908114af5c 100644 --- a/src/classes/ActiveRecord/ConnectionAdapters/PostgreSQL/Table.html +++ b/src/classes/ActiveRecord/ConnectionAdapters/PostgreSQL/Table.html @@ -121,7 +121,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql/schema_definitions.rb, line 305
@@ -129,7 +129,7 @@ 

@base.add_exclusion_constraint(name, *args) end

- See on GitHub + 🔎 See on GitHub
@@ -161,7 +161,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql/schema_definitions.rb, line 314
@@ -169,7 +169,7 @@ 

@base.remove_exclusion_constraint(name, *args) end

- See on GitHub + 🔎 See on GitHub
@@ -201,7 +201,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql/schema_definitions.rb, line 332
@@ -209,7 +209,7 @@ 

@base.remove_unique_constraint(name, *args) end

- See on GitHub + 🔎 See on GitHub
@@ -241,7 +241,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql/schema_definitions.rb, line 323
@@ -249,7 +249,7 @@ 

@base.add_unique_constraint(name, *args) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/ConnectionAdapters/PostgreSQL/TableDefinition.html b/src/classes/ActiveRecord/ConnectionAdapters/PostgreSQL/TableDefinition.html index b6f468c4de..54799c704c 100644 --- a/src/classes/ActiveRecord/ConnectionAdapters/PostgreSQL/TableDefinition.html +++ b/src/classes/ActiveRecord/ConnectionAdapters/PostgreSQL/TableDefinition.html @@ -141,7 +141,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql/schema_definitions.rb, line 244
@@ -152,7 +152,7 @@ 

@unlogged = ActiveRecord::ConnectionAdapters::PostgreSQLAdapter.create_unlogged_tables end

- See on GitHub + 🔎 See on GitHub
@@ -183,15 +183,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql/schema_definitions.rb, line 251
         def exclusion_constraint(expression, **options)
-          exclusion_constraints << new_exclusion_constraint_definition(expression, options)
+          exclusion_constraints << new_exclusion_constraint_definition(expression, options)
         end
- See on GitHub + 🔎 See on GitHub
@@ -218,15 +218,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql/schema_definitions.rb, line 255
         def unique_constraint(column_name, **options)
-          unique_constraints << new_unique_constraint_definition(column_name, options)
+          unique_constraints << new_unique_constraint_definition(column_name, options)
         end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/ConnectionAdapters/PostgreSQLAdapter.html b/src/classes/ActiveRecord/ConnectionAdapters/PostgreSQLAdapter.html index 3ca76686de..9c90dd4fc2 100644 --- a/src/classes/ActiveRecord/ConnectionAdapters/PostgreSQLAdapter.html +++ b/src/classes/ActiveRecord/ConnectionAdapters/PostgreSQLAdapter.html @@ -370,11 +370,6 @@

Constants

"PostgreSQL" - -   - - - DEADLOCK_DETECTED @@ -382,11 +377,6 @@

Constants

"40P01" - -   - - - DUPLICATE_DATABASE @@ -394,11 +384,6 @@

Constants

"42P04" - -   - - - FOREIGN_KEY_VIOLATION @@ -406,11 +391,6 @@

Constants

"23503" - -   - - - LOCK_NOT_AVAILABLE @@ -418,11 +398,6 @@

Constants

"55P03" - -   - - - NATIVE_DATABASE_TYPES @@ -475,11 +450,6 @@

Constants

} - -   - - - NOT_NULL_VIOLATION @@ -487,11 +457,6 @@

Constants

"23502" - -   - - - NUMERIC_VALUE_OUT_OF_RANGE @@ -499,11 +464,6 @@

Constants

"22003" - -   - - - QUERY_CANCELED @@ -511,11 +471,6 @@

Constants

"57014" - -   - - - SERIALIZATION_FAILURE @@ -523,11 +478,6 @@

Constants

"40001" - -   - - - UNIQUE_VIOLATION @@ -535,11 +485,6 @@

Constants

"23505" - -   - - - VALUE_LIMIT_VIOLATION @@ -586,14 +531,14 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb, line 115
       class_attribute :create_unlogged_tables, default: false
 
- See on GitHub + 🔎 See on GitHub
@@ -631,14 +576,14 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb, line 133
       class_attribute :datetime_type, default: :timestamp
 
- See on GitHub + 🔎 See on GitHub
@@ -665,30 +610,30 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb, line 84
         def dbconsole(config, options = {})
           pg_config = config.configuration_hash
 
-          ENV["PGUSER"]         = pg_config[:username] if pg_config[:username]
-          ENV["PGHOST"]         = pg_config[:host] if pg_config[:host]
-          ENV["PGPORT"]         = pg_config[:port].to_s if pg_config[:port]
-          ENV["PGPASSWORD"]     = pg_config[:password].to_s if pg_config[:password] && options[:include_password]
-          ENV["PGSSLMODE"]      = pg_config[:sslmode].to_s if pg_config[:sslmode]
-          ENV["PGSSLCERT"]      = pg_config[:sslcert].to_s if pg_config[:sslcert]
-          ENV["PGSSLKEY"]       = pg_config[:sslkey].to_s if pg_config[:sslkey]
-          ENV["PGSSLROOTCERT"]  = pg_config[:sslrootcert].to_s if pg_config[:sslrootcert]
+          ENV["PGUSER"]         = pg_config[:username] if pg_config[:username]
+          ENV["PGHOST"]         = pg_config[:host] if pg_config[:host]
+          ENV["PGPORT"]         = pg_config[:port].to_s if pg_config[:port]
+          ENV["PGPASSWORD"]     = pg_config[:password].to_s if pg_config[:password] && options[:include_password]
+          ENV["PGSSLMODE"]      = pg_config[:sslmode].to_s if pg_config[:sslmode]
+          ENV["PGSSLCERT"]      = pg_config[:sslcert].to_s if pg_config[:sslcert]
+          ENV["PGSSLKEY"]       = pg_config[:sslkey].to_s if pg_config[:sslkey]
+          ENV["PGSSLROOTCERT"]  = pg_config[:sslrootcert].to_s if pg_config[:sslrootcert]
           if pg_config[:variables]
-            ENV["PGOPTIONS"] = pg_config[:variables].filter_map do |name, value|
-              "-c #{name}=#{value.to_s.gsub(/[ \\]/, '\\\\\0')}" unless value == ":default" || value == :default
-            end.join(" ")
+            ENV["PGOPTIONS"] = pg_config[:variables].filter_map do |name, value|
+              "-c #{name}=#{value.to_s.gsub(/[ \\]/, '\\\\\0')}" unless value == ":default" || value == :default
+            end.join(" ")
           end
-          find_cmd_and_exec("psql", config.database)
+          find_cmd_and_exec("psql", config.database)
         end
- See on GitHub + 🔎 See on GitHub
@@ -715,7 +660,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb, line 317
@@ -742,7 +687,7 @@ 

@use_insert_returning = @config.key?(:insert_returning) ? self.class.type_cast_config_to_boolean(@config[:insert_returning]) : true end

- See on GitHub + 🔎 See on GitHub
@@ -769,27 +714,27 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb, line 68
         def new_client(conn_params)
           PG.connect(**conn_params)
-        rescue ::PG::Error => error
-          if conn_params && conn_params[:dbname] == "postgres"
+        rescue ::PG::Error => error
+          if conn_params && conn_params[:dbname] == "postgres"
             raise ActiveRecord::ConnectionNotEstablished, error.message
-          elsif conn_params && conn_params[:dbname] && error.message.include?(conn_params[:dbname])
+          elsif conn_params && conn_params[:dbname] && error.message.include?(conn_params[:dbname])
             raise ActiveRecord::NoDatabaseError.db_error(conn_params[:dbname])
-          elsif conn_params && conn_params[:user] && error.message.include?(conn_params[:user])
+          elsif conn_params && conn_params[:user] && error.message.include?(conn_params[:user])
             raise ActiveRecord::DatabaseConnectionError.username_error(conn_params[:user])
-          elsif conn_params && conn_params[:host] && error.message.include?(conn_params[:host])
+          elsif conn_params && conn_params[:host] && error.message.include?(conn_params[:host])
             raise ActiveRecord::DatabaseConnectionError.hostname_error(conn_params[:host])
           else
             raise ActiveRecord::ConnectionNotEstablished, error.message
           end
         end
- See on GitHub + 🔎 See on GitHub
@@ -820,21 +765,21 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb, line 341
       def active?
         @lock.synchronize do
           return false unless @raw_connection
-          @raw_connection.query ";"
+          @raw_connection.query ";"
         end
         true
       rescue PG::Error
         false
       end
- See on GitHub + 🔎 See on GitHub
@@ -861,26 +806,26 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb, line 565
       def add_enum_value(type_name, value, options = {})
         before, after = options.values_at(:before, :after)
-        sql = +"ALTER TYPE #{quote_table_name(type_name)} ADD VALUE '#{value}'"
+        sql = +"ALTER TYPE #{quote_table_name(type_name)} ADD VALUE '#{value}'"
 
-        if before && after
-          raise ArgumentError, "Cannot have both :before and :after at the same time"
+        if before && after
+          raise ArgumentError, "Cannot have both :before and :after at the same time"
         elsif before
-          sql << " BEFORE '#{before}'"
+          sql << " BEFORE '#{before}'"
         elsif after
-          sql << " AFTER '#{after}'"
+          sql << " AFTER '#{after}'"
         end
 
         execute(sql).tap { reload_type_map }
       end
- See on GitHub + 🔎 See on GitHub
@@ -907,14 +852,14 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb, line 520
       def create_enum(name, values, **options)
-        sql_values = values.map { |s| quote(s) }.join(", ")
+        sql_values = values.map { |s| quote(s) }.join(", ")
         scope = quoted_scope(name)
-        query = <<~SQL
+        query = <<~SQL
           DO $$
           BEGIN
               IF NOT EXISTS (
@@ -932,7 +877,7 @@ 

internal_exec_query(query) end

- See on GitHub + 🔎 See on GitHub
@@ -963,17 +908,17 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb, line 478
       def disable_extension(name, force: false)
-        internal_exec_query("DROP EXTENSION IF EXISTS \"#{name}\"#{' CASCADE' if force == :cascade}").tap {
+        internal_exec_query("DROP EXTENSION IF EXISTS \"#{name}\"#{' CASCADE' if force == :cascade}").tap {
           reload_type_map
         }
       end
- See on GitHub + 🔎 See on GitHub
@@ -1000,19 +945,19 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb, line 378
       def disconnect!
         @lock.synchronize do
           super
-          @raw_connection&.close rescue nil
+          @raw_connection&.close rescue nil
           @raw_connection = nil
         end
       end
- See on GitHub + 🔎 See on GitHub
@@ -1043,18 +988,18 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb, line 550
       def drop_enum(name, values = nil, **options)
-        query = <<~SQL
-          DROP TYPE#{' IF EXISTS' if options[:if_exists]} #{quote_table_name(name)};
+        query = <<~SQL
+          DROP TYPE#{' IF EXISTS' if options[:if_exists]} #{quote_table_name(name)};
         SQL
         internal_exec_query(query)
       end
- See on GitHub + 🔎 See on GitHub
@@ -1081,19 +1026,19 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb, line 465
       def enable_extension(name, **)
-        schema, name = name.to_s.split(".").values_at(-2, -1)
-        sql = +"CREATE EXTENSION IF NOT EXISTS \"#{name}\""
-        sql << " SCHEMA #{schema}" if schema
+        schema, name = name.to_s.split(".").values_at(-2, -1)
+        sql = +"CREATE EXTENSION IF NOT EXISTS \"#{name}\""
+        sql << " SCHEMA #{schema}" if schema
 
         internal_exec_query(sql).tap { reload_type_map }
       end
- See on GitHub + 🔎 See on GitHub
@@ -1120,17 +1065,17 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb, line 497
       def enum_types
-        query = <<~SQL
+        query = <<~SQL
           SELECT
             type.typname AS name,
             type.OID AS oid,
             n.nspname AS schema,
-            string_agg(enum.enumlabel, ',' ORDER BY enum.enumsortorder) AS value
+            string_agg(enum.enumlabel, ',' ORDER BY enum.enumsortorder) AS value
           FROM pg_enum AS enum
           JOIN pg_type AS type ON (type.oid = enum.enumtypid)
           JOIN pg_namespace n ON type.typnamespace = n.oid
@@ -1138,15 +1083,15 @@ 

GROUP BY type.OID, n.nspname, type.typname; SQL - internal_exec_query(query, "SCHEMA", allow_retry: true, materialize_transactions: false).cast_values.each_with_object({}) do |row, memo| + internal_exec_query(query, "SCHEMA", allow_retry: true, materialize_transactions: false).cast_values.each_with_object({}) do |row, memo| name, schema = row[0], row[2] schema = nil if schema == current_schema - full_name = [schema, name].compact.join(".") + full_name = [schema, name].compact.join(".") memo[full_name] = row.last end.to_a end

- See on GitHub + 🔎 See on GitHub
@@ -1173,15 +1118,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb, line 484
       def extension_available?(name)
-        query_value("SELECT true FROM pg_available_extensions WHERE name = #{quote(name)}", "SCHEMA")
+        query_value("SELECT true FROM pg_available_extensions WHERE name = #{quote(name)}", "SCHEMA")
       end
- See on GitHub + 🔎 See on GitHub
@@ -1208,15 +1153,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb, line 488
       def extension_enabled?(name)
-        query_value("SELECT installed_version IS NOT NULL FROM pg_available_extensions WHERE name = #{quote(name)}", "SCHEMA")
+        query_value("SELECT installed_version IS NOT NULL FROM pg_available_extensions WHERE name = #{quote(name)}", "SCHEMA")
       end
- See on GitHub + 🔎 See on GitHub
@@ -1243,15 +1188,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb, line 492
       def extensions
-        internal_exec_query("SELECT extname FROM pg_extension", "SCHEMA", allow_retry: true, materialize_transactions: false).cast_values
+        internal_exec_query("SELECT extname FROM pg_extension", "SCHEMA", allow_retry: true, materialize_transactions: false).cast_values
       end
- See on GitHub + 🔎 See on GitHub
@@ -1278,15 +1223,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb, line 284
       def index_algorithms
-        { concurrently: "CONCURRENTLY" }
+        { concurrently: "CONCURRENTLY" }
       end
- See on GitHub + 🔎 See on GitHub
@@ -1313,15 +1258,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb, line 595
       def max_identifier_length
-        @max_identifier_length ||= query_value("SHOW max_identifier_length", "SCHEMA").to_i
+        @max_identifier_length ||= query_value("SHOW max_identifier_length", "SCHEMA").to_i
       end
- See on GitHub + 🔎 See on GitHub
@@ -1348,17 +1293,17 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb, line 558
       def rename_enum(name, options = {})
-        to = options.fetch(:to) { raise ArgumentError, ":to is required" }
+        to = options.fetch(:to) { raise ArgumentError, ":to is required" }
 
-        exec_query("ALTER TYPE #{quote_table_name(name)} RENAME TO #{to}").tap { reload_type_map }
+        exec_query("ALTER TYPE #{quote_table_name(name)} RENAME TO #{to}").tap { reload_type_map }
       end
- See on GitHub + 🔎 See on GitHub
@@ -1385,24 +1330,24 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb, line 581
       def rename_enum_value(type_name, options = {})
-        unless database_version >= 10_00_00 # >= 10.0
-          raise ArgumentError, "Renaming enum values is only supported in PostgreSQL 10 or later"
+        unless database_version >= 10_00_00 # >= 10.0
+          raise ArgumentError, "Renaming enum values is only supported in PostgreSQL 10 or later"
         end
 
-        from = options.fetch(:from) { raise ArgumentError, ":from is required" }
-        to = options.fetch(:to) { raise ArgumentError, ":to is required" }
+        from = options.fetch(:from) { raise ArgumentError, ":from is required" }
+        to = options.fetch(:to) { raise ArgumentError, ":to is required" }
 
-        execute("ALTER TYPE #{quote_table_name(type_name)} RENAME VALUE '#{from}' TO '#{to}'").tap {
+        execute("ALTER TYPE #{quote_table_name(type_name)} RENAME VALUE '#{from}' TO '#{to}'").tap {
           reload_type_map
         }
       end
- See on GitHub + 🔎 See on GitHub
@@ -1429,7 +1374,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb, line 363
@@ -1438,15 +1383,15 @@ 

return connect! unless @raw_connection unless @raw_connection.transaction_status == ::PG::PQTRANS_IDLE - @raw_connection.query "ROLLBACK" + @raw_connection.query "ROLLBACK" end - @raw_connection.query "DISCARD ALL" + @raw_connection.query "DISCARD ALL" super end end

- See on GitHub + 🔎 See on GitHub
@@ -1473,16 +1418,16 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb, line 608
       def session_auth=(user)
         clear_cache!
-        internal_execute("SET SESSION AUTHORIZATION #{user}", nil, materialize_transactions: true)
+        internal_execute("SET SESSION AUTHORIZATION #{user}", nil, materialize_transactions: true)
       end
- See on GitHub + 🔎 See on GitHub
@@ -1509,15 +1454,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb, line 404
       def set_standard_conforming_strings
-        internal_execute("SET standard_conforming_strings = on")
+        internal_execute("SET standard_conforming_strings = on")
       end
- See on GitHub + 🔎 See on GitHub
@@ -1544,7 +1489,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb, line 412
@@ -1552,7 +1497,7 @@ 

true end

- See on GitHub + 🔎 See on GitHub
@@ -1579,7 +1524,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb, line 189
@@ -1587,7 +1532,7 @@ 

true end

- See on GitHub + 🔎 See on GitHub
@@ -1614,7 +1559,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb, line 221
@@ -1622,7 +1567,7 @@ 

true end

- See on GitHub + 🔎 See on GitHub
@@ -1649,7 +1594,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb, line 253
@@ -1657,7 +1602,7 @@ 

true end

- See on GitHub + 🔎 See on GitHub
@@ -1684,7 +1629,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb, line 443
@@ -1692,7 +1637,7 @@ 

true end

- See on GitHub + 🔎 See on GitHub
@@ -1719,7 +1664,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb, line 245
@@ -1727,7 +1672,7 @@ 

true end

- See on GitHub + 🔎 See on GitHub
@@ -1754,7 +1699,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb, line 408
@@ -1762,7 +1707,7 @@ 

true end

- See on GitHub + 🔎 See on GitHub
@@ -1789,7 +1734,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb, line 237
@@ -1797,7 +1742,7 @@ 

true end

- See on GitHub + 🔎 See on GitHub
@@ -1824,7 +1769,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb, line 225
@@ -1832,7 +1777,7 @@ 

true end

- See on GitHub + 🔎 See on GitHub
@@ -1859,7 +1804,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb, line 416
@@ -1867,7 +1812,7 @@ 

true end

- See on GitHub + 🔎 See on GitHub
@@ -1894,7 +1839,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb, line 209
@@ -1902,7 +1847,7 @@ 

true end

- See on GitHub + 🔎 See on GitHub
@@ -1929,7 +1874,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb, line 420
@@ -1937,7 +1882,7 @@ 

true end

- See on GitHub + 🔎 See on GitHub
@@ -1964,7 +1909,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb, line 217
@@ -1972,7 +1917,7 @@ 

true end

- See on GitHub + 🔎 See on GitHub
@@ -1999,7 +1944,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb, line 428
@@ -2007,7 +1952,7 @@ 

true end

- See on GitHub + 🔎 See on GitHub
@@ -2034,15 +1979,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb, line 205
       def supports_index_include?
-        database_version >= 11_00_00 # >= 11.0
+        database_version >= 11_00_00 # >= 11.0
       end
- See on GitHub + 🔎 See on GitHub
@@ -2069,7 +2014,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb, line 193
@@ -2077,7 +2022,7 @@ 

true end

- See on GitHub + 🔎 See on GitHub
@@ -2133,15 +2078,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb, line 269
       def supports_insert_on_conflict?
-        database_version >= 9_05_00 # >= 9.5
+        database_version >= 9_05_00 # >= 9.5
       end
- See on GitHub + 🔎 See on GitHub
@@ -2218,7 +2163,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb, line 265
@@ -2226,7 +2171,7 @@ 

true end

- See on GitHub + 🔎 See on GitHub
@@ -2253,7 +2198,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb, line 249
@@ -2261,7 +2206,7 @@ 

true end

- See on GitHub + 🔎 See on GitHub
@@ -2288,7 +2233,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb, line 447
@@ -2296,7 +2241,7 @@ 

true end

- See on GitHub + 🔎 See on GitHub
@@ -2323,7 +2268,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb, line 424
@@ -2331,7 +2276,7 @@ 

true end

- See on GitHub + 🔎 See on GitHub
@@ -2358,15 +2303,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb, line 280
       def supports_nulls_not_distinct?
-        database_version >= 15_00_00 # >= 15.0
+        database_version >= 15_00_00 # >= 15.0
       end
- See on GitHub + 🔎 See on GitHub
@@ -2393,18 +2338,18 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb, line 436
       def supports_optimizer_hints?
         unless defined?(@has_pg_hint_plan)
-          @has_pg_hint_plan = extension_available?("pg_hint_plan")
+          @has_pg_hint_plan = extension_available?("pg_hint_plan")
         end
         @has_pg_hint_plan
       end
- See on GitHub + 🔎 See on GitHub
@@ -2431,7 +2376,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb, line 201
@@ -2439,7 +2384,7 @@ 

true end

- See on GitHub + 🔎 See on GitHub
@@ -2466,15 +2411,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb, line 197
       def supports_partitioned_indexes?
-        database_version >= 11_00_00 # >= 11.0
+        database_version >= 11_00_00 # >= 11.0
       end
- See on GitHub + 🔎 See on GitHub
@@ -2501,15 +2446,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb, line 432
       def supports_pgcrypto_uuid?
-        database_version >= 9_04_00 # >= 9.4
+        database_version >= 9_04_00 # >= 9.4
       end
- See on GitHub + 🔎 See on GitHub
@@ -2536,15 +2481,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb, line 261
       def supports_restart_db_transaction?
-        database_version >= 12_00_00 # >= 12.0
+        database_version >= 12_00_00 # >= 12.0
       end
- See on GitHub + 🔎 See on GitHub
@@ -2571,7 +2516,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb, line 257
@@ -2579,7 +2524,7 @@ 

true end

- See on GitHub + 🔎 See on GitHub
@@ -2606,7 +2551,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb, line 213
@@ -2614,7 +2559,7 @@ 

true end

- See on GitHub + 🔎 See on GitHub
@@ -2641,7 +2586,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb, line 229
@@ -2649,7 +2594,7 @@ 

true end

- See on GitHub + 🔎 See on GitHub
@@ -2676,7 +2621,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb, line 233
@@ -2684,7 +2629,7 @@ 

true end

- See on GitHub + 🔎 See on GitHub
@@ -2711,7 +2656,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb, line 241
@@ -2719,7 +2664,7 @@ 

true end

- See on GitHub + 🔎 See on GitHub
@@ -2746,15 +2691,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb, line 276
       def supports_virtual_columns?
-        database_version >= 12_00_00 # >= 12.0
+        database_version >= 12_00_00 # >= 12.0
       end
- See on GitHub + 🔎 See on GitHub
@@ -2781,18 +2726,18 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb, line 600
       def table_name_length
         # PostgreSQL automatically creates an index for PRIMARY KEY with name consisting of
-        # truncated table name and "_pkey" suffix fitting into max_identifier_length number of characters.
+        # truncated table name and "_pkey" suffix fitting into max_identifier_length number of characters.
         # We allow smaller table names to be able to correctly rename this index when renaming the table.
-        max_identifier_length - "_pkey".length
+        max_identifier_length - "_pkey".length
       end
- See on GitHub + 🔎 See on GitHub
@@ -2819,7 +2764,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb, line 613
@@ -2827,7 +2772,7 @@ 

@use_insert_returning end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/ConnectionAdapters/QueryCache.html b/src/classes/ActiveRecord/ConnectionAdapters/QueryCache.html index db18a70ac2..a74b19afaf 100644 --- a/src/classes/ActiveRecord/ConnectionAdapters/QueryCache.html +++ b/src/classes/ActiveRecord/ConnectionAdapters/QueryCache.html @@ -136,13 +136,13 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb, line 20
         def dirties_query_cache(base, *method_names)
           method_names.each do |method_name|
-            base.class_eval <<-end_code, __FILE__, __LINE__ + 1
+            base.class_eval <<-end_code, __FILE__, __LINE__ + 1
               def #{method_name}(...)
                 ActiveRecord::Base.clear_query_caches_for_current_thread
                 super
@@ -151,7 +151,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -178,7 +178,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb, line 55
@@ -189,7 +189,7 @@ 

@query_cache_max_size = nil end

- See on GitHub + 🔎 See on GitHub
@@ -220,7 +220,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb, line 63
@@ -232,7 +232,7 @@ 

clear_query_cache unless @query_cache_enabled end

- See on GitHub + 🔎 See on GitHub
@@ -261,7 +261,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb, line 94
@@ -271,7 +271,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -298,7 +298,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb, line 75
@@ -307,7 +307,7 @@ 

clear_query_cache end

- See on GitHub + 🔎 See on GitHub
@@ -334,7 +334,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb, line 71
@@ -342,7 +342,7 @@ 

@query_cache_enabled = true end

- See on GitHub + 🔎 See on GitHub
@@ -369,7 +369,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb, line 81
@@ -380,7 +380,7 @@ 

@query_cache_enabled = old end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/ConnectionAdapters/QueryCache/ConnectionPoolConfiguration.html b/src/classes/ActiveRecord/ConnectionAdapters/QueryCache/ConnectionPoolConfiguration.html index 2d96e0ef0b..cfea56f79c 100644 --- a/src/classes/ActiveRecord/ConnectionAdapters/QueryCache/ConnectionPoolConfiguration.html +++ b/src/classes/ActiveRecord/ConnectionAdapters/QueryCache/ConnectionPoolConfiguration.html @@ -89,7 +89,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb, line 33
@@ -98,7 +98,7 @@ 

@query_cache_enabled = Concurrent::Map.new { false } end

- See on GitHub + 🔎 See on GitHub
@@ -129,7 +129,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb, line 43
@@ -138,7 +138,7 @@ 

connection.disable_query_cache! if active_connection? end

- See on GitHub + 🔎 See on GitHub
@@ -165,7 +165,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb, line 38
@@ -174,7 +174,7 @@ 

connection.enable_query_cache! if active_connection? end

- See on GitHub + 🔎 See on GitHub
@@ -201,7 +201,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb, line 48
@@ -209,7 +209,7 @@ 

@query_cache_enabled[connection_cache_key(current_thread)] end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/ConnectionAdapters/Quoting.html b/src/classes/ActiveRecord/ConnectionAdapters/Quoting.html index 9c6cc16228..dfc30b7536 100644 --- a/src/classes/ActiveRecord/ConnectionAdapters/Quoting.html +++ b/src/classes/ActiveRecord/ConnectionAdapters/Quoting.html @@ -128,32 +128,32 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/quoting.rb, line 12
       def quote(value)
         case value
         when String, Symbol, ActiveSupport::Multibyte::Chars
-          "'#{quote_string(value.to_s)}'"
+          "'#{quote_string(value.to_s)}'"
         when true       then quoted_true
         when false      then quoted_false
-        when nil        then "NULL"
+        when nil        then "NULL"
         # BigDecimals need to be put in a non-normalized form and quoted.
-        when BigDecimal then value.to_s("F")
+        when BigDecimal then value.to_s("F")
         when Numeric then value.to_s
         when Type::Binary::Data then quoted_binary(value)
-        when Type::Time::Value then "'#{quoted_time(value)}'"
-        when Date, Time then "'#{quoted_date(value)}'"
-        when Class      then "'#{value}'"
+        when Type::Time::Value then "'#{quoted_time(value)}'"
+        when Date, Time then "'#{quoted_date(value)}'"
+        when Class      then "'#{value}'"
         when ActiveSupport::Duration
           warn_quote_duration_deprecated
           value.to_s
-        else raise TypeError, "can't quote #{value.class.name}"
+        else raise TypeError, "can't quote #{value.class.name}"
         end
       end
- See on GitHub + 🔎 See on GitHub
@@ -182,20 +182,20 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/quoting.rb, line 57
       def quote_bound_value(value)
-        ActiveRecord.deprecator.warn(<<~MSG.squish)
+        ActiveRecord.deprecator.warn(<<~MSG.squish)
           #quote_bound_value is deprecated and will be removed in Rails 7.2.
-          Consider Arel.sql(".. ? ..", value) or #sanitize_sql instead.
+          Consider Arel.sql(".. ? ..", value) or #sanitize_sql instead.
         MSG
 
         quote(cast_bound_value(value))
       end
- See on GitHub + 🔎 See on GitHub
@@ -222,7 +222,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/quoting.rb, line 93
@@ -230,7 +230,7 @@ 

column_name.to_s end

- See on GitHub + 🔎 See on GitHub
@@ -257,15 +257,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/quoting.rb, line 88
       def quote_string(s)
-        s.gsub("\\", '\&\&').gsub("'", "''") # ' (for ruby-mode)
+        s.gsub("\\", '\&\&').gsub("'", "''") # ' (for ruby-mode)
       end
- See on GitHub + 🔎 See on GitHub
@@ -292,7 +292,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/quoting.rb, line 98
@@ -300,7 +300,7 @@ 

quote_column_name(table_name) end

- See on GitHub + 🔎 See on GitHub
@@ -331,15 +331,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/quoting.rb, line 110
       def quote_table_name_for_assignment(table, attr)
-        quote_table_name("#{table}.#{attr}")
+        quote_table_name("#{table}.#{attr}")
       end
- See on GitHub + 🔎 See on GitHub
@@ -366,7 +366,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/quoting.rb, line 141
@@ -380,14 +380,14 @@ 

end result = value.to_fs(:db) - if value.respond_to?(:usec) && value.usec > 0 - result << "." << sprintf("%06d", value.usec) + if value.respond_to?(:usec) && value.usec > 0 + result << "." << sprintf("%06d", value.usec) else result end end

- See on GitHub + 🔎 See on GitHub
@@ -414,15 +414,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/quoting.rb, line 131
       def quoted_false
-        "FALSE"
+        "FALSE"
       end
- See on GitHub + 🔎 See on GitHub
@@ -449,15 +449,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/quoting.rb, line 123
       def quoted_true
-        "TRUE"
+        "TRUE"
       end
- See on GitHub + 🔎 See on GitHub
@@ -484,7 +484,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/quoting.rb, line 36
@@ -495,15 +495,15 @@ 

when true then unquoted_true when false then unquoted_false # BigDecimals need to be put in a non-normalized form and quoted. - when BigDecimal then value.to_s("F") + when BigDecimal then value.to_s("F") when nil, Numeric, String then value when Type::Time::Value then quoted_time(value) when Date, Time then quoted_date(value) - else raise TypeError, "can't cast #{value.class.name}" + else raise TypeError, "can't cast #{value.class.name}" end end

- See on GitHub + 🔎 See on GitHub
@@ -530,7 +530,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/quoting.rb, line 135
@@ -538,7 +538,7 @@ 

false end

- See on GitHub + 🔎 See on GitHub
@@ -565,7 +565,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/quoting.rb, line 127
@@ -573,7 +573,7 @@ 

true end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/ConnectionAdapters/RealTransaction.html b/src/classes/ActiveRecord/ConnectionAdapters/RealTransaction.html index 0ce8976005..2c25caa6fb 100644 --- a/src/classes/ActiveRecord/ConnectionAdapters/RealTransaction.html +++ b/src/classes/ActiveRecord/ConnectionAdapters/RealTransaction.html @@ -102,7 +102,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/transaction.rb, line 399
@@ -112,7 +112,7 @@ 

@instrumenter.finish(:commit) if materialized? end

- See on GitHub + 🔎 See on GitHub
@@ -139,7 +139,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/transaction.rb, line 369
@@ -153,7 +153,7 @@ 

super end

- See on GitHub + 🔎 See on GitHub
@@ -180,7 +180,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/transaction.rb, line 379
@@ -198,7 +198,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -225,7 +225,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/transaction.rb, line 393
@@ -235,7 +235,7 @@ 

@instrumenter.finish(:rollback) if materialized? end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/ConnectionAdapters/RestartParentTransaction.html b/src/classes/ActiveRecord/ConnectionAdapters/RestartParentTransaction.html index 09b67ee35e..3996a57714 100644 --- a/src/classes/ActiveRecord/ConnectionAdapters/RestartParentTransaction.html +++ b/src/classes/ActiveRecord/ConnectionAdapters/RestartParentTransaction.html @@ -101,7 +101,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/transaction.rb, line 296
@@ -111,13 +111,13 @@ 

@parent = parent_transaction if isolation_level - raise ActiveRecord::TransactionIsolationError, "cannot set transaction isolation in a nested transaction" + raise ActiveRecord::TransactionIsolationError, "cannot set transaction isolation in a nested transaction" end @parent.state.add_child(@state) end

- See on GitHub + 🔎 See on GitHub
@@ -148,7 +148,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/transaction.rb, line 315
@@ -156,7 +156,7 @@ 

@state.commit! end

- See on GitHub + 🔎 See on GitHub
@@ -183,13 +183,13 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/transaction.rb, line 319
       def full_rollback?; false; end
- See on GitHub + 🔎 See on GitHub
@@ -216,7 +216,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/transaction.rb, line 310
@@ -225,7 +225,7 @@ 

@parent.restart end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/ConnectionAdapters/SQLite3/DatabaseStatements.html b/src/classes/ActiveRecord/ConnectionAdapters/SQLite3/DatabaseStatements.html index 96c5ea73f9..de9e9eb9b2 100644 --- a/src/classes/ActiveRecord/ConnectionAdapters/SQLite3/DatabaseStatements.html +++ b/src/classes/ActiveRecord/ConnectionAdapters/SQLite3/DatabaseStatements.html @@ -82,17 +82,17 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/sqlite3/database_statements.rb, line 18
         def explain(arel, binds = [], _options = [])
-          sql    = "EXPLAIN QUERY PLAN " + to_sql(arel, binds)
-          result = internal_exec_query(sql, "EXPLAIN", [])
+          sql    = "EXPLAIN QUERY PLAN " + to_sql(arel, binds)
+          result = internal_exec_query(sql, "EXPLAIN", [])
           SQLite3::ExplainPrettyPrinter.new.pp(result)
         end
- See on GitHub + 🔎 See on GitHub
@@ -119,7 +119,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/sqlite3/database_statements.rb, line 107
@@ -127,7 +127,7 @@ 

HIGH_PRECISION_CURRENT_TIMESTAMP end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/ConnectionAdapters/SQLite3/TableDefinition.html b/src/classes/ActiveRecord/ConnectionAdapters/SQLite3/TableDefinition.html index a3d8cfbcc7..66ed7e82c5 100644 --- a/src/classes/ActiveRecord/ConnectionAdapters/SQLite3/TableDefinition.html +++ b/src/classes/ActiveRecord/ConnectionAdapters/SQLite3/TableDefinition.html @@ -123,7 +123,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/sqlite3/schema_definitions.rb, line 8
@@ -133,7 +133,7 @@ 

column(name, type, **options) end

- See on GitHub + 🔎 See on GitHub
@@ -164,7 +164,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/sqlite3/schema_definitions.rb, line 14
@@ -172,7 +172,7 @@ 

super(*args, type: :integer, **options) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/ConnectionAdapters/SQLite3Adapter.html b/src/classes/ActiveRecord/ConnectionAdapters/SQLite3Adapter.html index 72cef8c72f..1a1010d1c4 100644 --- a/src/classes/ActiveRecord/ConnectionAdapters/SQLite3Adapter.html +++ b/src/classes/ActiveRecord/ConnectionAdapters/SQLite3Adapter.html @@ -220,11 +220,6 @@

Constants

"SQLite" - -   - - - COLLATE_REGEX @@ -232,11 +227,6 @@

Constants

/.*"(\w+)".*collate\s+"(\w+)".*/i - -   - - - EXTENDED_TYPE_MAPS @@ -244,11 +234,6 @@

Constants

Concurrent::Map.new - -   - - - NATIVE_DATABASE_TYPES @@ -269,11 +254,6 @@

Constants

} - -   - - - PRIMARY_KEY_AUTOINCREMENT_REGEX @@ -281,11 +261,6 @@

Constants

/.*"(\w+)".+PRIMARY KEY AUTOINCREMENT/i - -   - - - TYPE_MAP @@ -293,11 +268,6 @@

Constants

Type::TypeMap.new.tap { |m| initialize_type_map(m) } - -   - - - @@ -329,21 +299,21 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb, line 51
         def dbconsole(config, options = {})
           args = []
 
-          args << "-#{options[:mode]}" if options[:mode]
-          args << "-header" if options[:header]
-          args << File.expand_path(config.database, Rails.respond_to?(:root) ? Rails.root : nil)
+          args << "-#{options[:mode]}" if options[:mode]
+          args << "-header" if options[:header]
+          args << File.expand_path(config.database, Rails.respond_to?(:root) ? Rails.root : nil)
 
-          find_cmd_and_exec("sqlite3", *args)
+          find_cmd_and_exec("sqlite3", *args)
         end
- See on GitHub + 🔎 See on GitHub
@@ -370,7 +340,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb, line 100
@@ -379,9 +349,9 @@ 

@memory_database = false case @config[:database].to_s - when "" - raise ArgumentError, "No database file specified. Missing argument: database" - when ":memory:" + when "" + raise ArgumentError, "No database file specified. Missing argument: database" + when ":memory:" @memory_database = true when /\Afile:/ else @@ -391,8 +361,8 @@

unless File.directory?(dirname) begin Dir.mkdir(dirname) - rescue Errno::ENOENT => error - if error.message.include?("No such file or directory") + rescue Errno::ENOENT => error + if error.message.include?("No such file or directory") raise ActiveRecord::NoDatabaseError.new(connection_pool: @pool) else raise @@ -406,7 +376,7 @@

@use_insert_returning = @config.key?(:insert_returning) ? self.class.type_cast_config_to_boolean(@config[:insert_returning]) : true end

- See on GitHub + 🔎 See on GitHub
@@ -433,21 +403,21 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb, line 41
         def new_client(config)
           ::SQLite3::Database.new(config[:database].to_s, config)
-        rescue Errno::ENOENT => error
-          if error.message.include?("No such file or directory")
+        rescue Errno::ENOENT => error
+          if error.message.include?("No such file or directory")
             raise ActiveRecord::NoDatabaseError
           else
             raise
           end
         end
- See on GitHub + 🔎 See on GitHub
@@ -477,14 +447,14 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb, line 74
       class_attribute :strict_strings_by_default, default: false
 
- See on GitHub + 🔎 See on GitHub
@@ -515,15 +485,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb, line 199
       def active?
-        @raw_connection && !@raw_connection.closed?
+        @raw_connection && !@raw_connection.closed?
       end
- See on GitHub + 🔎 See on GitHub
@@ -550,7 +520,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb, line 350
@@ -567,7 +537,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -594,15 +564,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb, line 132
       def database_exists?
-        @config[:database] == ":memory:" || File.exist?(@config[:database].to_s)
+        @config[:database] == ":memory:" || File.exist?(@config[:database].to_s)
       end
- See on GitHub + 🔎 See on GitHub
@@ -629,18 +599,18 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb, line 211
       def disconnect!
         super
 
-        @raw_connection&.close rescue nil
+        @raw_connection&.close rescue nil
         @raw_connection = nil
       end
- See on GitHub + 🔎 See on GitHub
@@ -667,7 +637,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb, line 227
@@ -675,7 +645,7 @@ 

any_raw_connection.encoding.to_s end

- See on GitHub + 🔎 See on GitHub
@@ -702,33 +672,33 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb, line 368
       def foreign_keys(table_name)
         # SQLite returns 1 row for each column of composite foreign keys.
-        fk_info = internal_exec_query("PRAGMA foreign_key_list(#{quote(table_name)})", "SCHEMA")
-        grouped_fk = fk_info.group_by { |row| row["id"] }.values.each { |group| group.sort_by! { |row| row["seq"] } }
+        fk_info = internal_exec_query("PRAGMA foreign_key_list(#{quote(table_name)})", "SCHEMA")
+        grouped_fk = fk_info.group_by { |row| row["id"] }.values.each { |group| group.sort_by! { |row| row["seq"] } }
         grouped_fk.map do |group|
           row = group.first
           options = {
-            on_delete: extract_foreign_key_action(row["on_delete"]),
-            on_update: extract_foreign_key_action(row["on_update"])
+            on_delete: extract_foreign_key_action(row["on_delete"]),
+            on_update: extract_foreign_key_action(row["on_update"])
           }
 
           if group.one?
-            options[:column] = row["from"]
-            options[:primary_key] = row["to"]
+            options[:column] = row["from"]
+            options[:primary_key] = row["to"]
           else
-            options[:column] = group.map { |row| row["from"] }
-            options[:primary_key] = group.map { |row| row["to"] }
+            options[:column] = group.map { |row| row["from"] }
+            options[:primary_key] = group.map { |row| row["to"] }
           end
-          ForeignKeyDefinition.new(table_name, row["table"], options)
+          ForeignKeyDefinition.new(table_name, row["table"], options)
         end
       end
- See on GitHub + 🔎 See on GitHub
@@ -760,7 +730,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb, line 284
@@ -768,11 +738,11 @@ 

validate_table_length!(new_name) unless options[:_uses_legacy_table_name] schema_cache.clear_data_source_cache!(table_name.to_s) schema_cache.clear_data_source_cache!(new_name.to_s) - exec_query "ALTER TABLE #{quote_table_name(table_name)} RENAME TO #{quote_table_name(new_name)}" + exec_query "ALTER TABLE #{quote_table_name(table_name)} RENAME TO #{quote_table_name(new_name)}" rename_table_indexes(table_name, new_name) end

- See on GitHub + 🔎 See on GitHub
@@ -799,7 +769,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb, line 156
@@ -807,7 +777,7 @@ 

true end

- See on GitHub + 🔎 See on GitHub
@@ -834,7 +804,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb, line 164
@@ -842,7 +812,7 @@ 

true end

- See on GitHub + 🔎 See on GitHub
@@ -869,15 +839,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb, line 180
       def supports_common_table_expressions?
-        database_version >= "3.8.3"
+        database_version >= "3.8.3"
       end
- See on GitHub + 🔎 See on GitHub
@@ -904,7 +874,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb, line 195
@@ -912,7 +882,7 @@ 

!@memory_database end

- See on GitHub + 🔎 See on GitHub
@@ -939,7 +909,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb, line 172
@@ -947,7 +917,7 @@ 

true end

- See on GitHub + 🔎 See on GitHub
@@ -974,7 +944,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb, line 136
@@ -982,7 +952,7 @@ 

true end

- See on GitHub + 🔎 See on GitHub
@@ -1009,7 +979,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb, line 231
@@ -1017,7 +987,7 @@ 

true end

- See on GitHub + 🔎 See on GitHub
@@ -1044,15 +1014,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb, line 152
       def supports_expression_index?
-        database_version >= "3.9.0"
+        database_version >= "3.9.0"
       end
- See on GitHub + 🔎 See on GitHub
@@ -1079,7 +1049,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb, line 160
@@ -1087,7 +1057,7 @@ 

true end

- See on GitHub + 🔎 See on GitHub
@@ -1114,7 +1084,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb, line 218
@@ -1122,7 +1092,7 @@ 

true end

- See on GitHub + 🔎 See on GitHub
@@ -1178,15 +1148,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb, line 188
       def supports_insert_on_conflict?
-        database_version >= "3.24.0"
+        database_version >= "3.24.0"
       end
- See on GitHub + 🔎 See on GitHub
@@ -1263,15 +1233,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb, line 184
       def supports_insert_returning?
-        database_version >= "3.35.0"
+        database_version >= "3.35.0"
       end
- See on GitHub + 🔎 See on GitHub
@@ -1298,7 +1268,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb, line 176
@@ -1306,7 +1276,7 @@ 

true end

- See on GitHub + 🔎 See on GitHub
@@ -1333,7 +1303,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb, line 235
@@ -1341,7 +1311,7 @@ 

true end

- See on GitHub + 🔎 See on GitHub
@@ -1368,7 +1338,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb, line 148
@@ -1376,7 +1346,7 @@ 

true end

- See on GitHub + 🔎 See on GitHub
@@ -1403,7 +1373,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb, line 140
@@ -1411,7 +1381,7 @@ 

true end

- See on GitHub + 🔎 See on GitHub
@@ -1438,7 +1408,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb, line 144
@@ -1446,7 +1416,7 @@ 

true end

- See on GitHub + 🔎 See on GitHub
@@ -1473,7 +1443,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb, line 168
@@ -1481,7 +1451,7 @@ 

true end

- See on GitHub + 🔎 See on GitHub
@@ -1508,7 +1478,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb, line 413
@@ -1516,7 +1486,7 @@ 

@use_insert_returning end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/ConnectionAdapters/SavepointTransaction.html b/src/classes/ActiveRecord/ConnectionAdapters/SavepointTransaction.html index ccf40e71eb..d76bade345 100644 --- a/src/classes/ActiveRecord/ConnectionAdapters/SavepointTransaction.html +++ b/src/classes/ActiveRecord/ConnectionAdapters/SavepointTransaction.html @@ -109,7 +109,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/transaction.rb, line 324
@@ -119,13 +119,13 @@ 

parent_transaction.state.add_child(@state) if isolation_level - raise ActiveRecord::TransactionIsolationError, "cannot set transaction isolation in a nested transaction" + raise ActiveRecord::TransactionIsolationError, "cannot set transaction isolation in a nested transaction" end @savepoint_name = savepoint_name end

- See on GitHub + 🔎 See on GitHub
@@ -156,7 +156,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/transaction.rb, line 358
@@ -166,7 +166,7 @@ 

@instrumenter.finish(:commit) if materialized? end

- See on GitHub + 🔎 See on GitHub
@@ -193,13 +193,13 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/transaction.rb, line 364
       def full_rollback?; false; end
- See on GitHub + 🔎 See on GitHub
@@ -226,7 +226,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/transaction.rb, line 336
@@ -235,7 +235,7 @@ 

super end

- See on GitHub + 🔎 See on GitHub
@@ -262,7 +262,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/transaction.rb, line 341
@@ -275,7 +275,7 @@ 

connection.rollback_to_savepoint(savepoint_name) end

- See on GitHub + 🔎 See on GitHub
@@ -302,7 +302,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/transaction.rb, line 350
@@ -314,7 +314,7 @@ 

@instrumenter.finish(:rollback) if materialized? end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/ConnectionAdapters/Savepoints.html b/src/classes/ActiveRecord/ConnectionAdapters/Savepoints.html index 3f1c3c68ab..cdde015c89 100644 --- a/src/classes/ActiveRecord/ConnectionAdapters/Savepoints.html +++ b/src/classes/ActiveRecord/ConnectionAdapters/Savepoints.html @@ -96,15 +96,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/savepoints.rb, line 11
       def create_savepoint(name = current_savepoint_name)
-        internal_execute("SAVEPOINT #{name}", "TRANSACTION")
+        internal_execute("SAVEPOINT #{name}", "TRANSACTION")
       end
- See on GitHub + 🔎 See on GitHub
@@ -131,7 +131,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/savepoints.rb, line 7
@@ -139,7 +139,7 @@ 

current_transaction.savepoint_name end

- See on GitHub + 🔎 See on GitHub
@@ -166,15 +166,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/savepoints.rb, line 15
       def exec_rollback_to_savepoint(name = current_savepoint_name)
-        internal_execute("ROLLBACK TO SAVEPOINT #{name}", "TRANSACTION")
+        internal_execute("ROLLBACK TO SAVEPOINT #{name}", "TRANSACTION")
       end
- See on GitHub + 🔎 See on GitHub
@@ -201,15 +201,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/savepoints.rb, line 19
       def release_savepoint(name = current_savepoint_name)
-        internal_execute("RELEASE SAVEPOINT #{name}", "TRANSACTION")
+        internal_execute("RELEASE SAVEPOINT #{name}", "TRANSACTION")
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/ConnectionAdapters/SchemaCache.html b/src/classes/ActiveRecord/ConnectionAdapters/SchemaCache.html index 4d459b1fe7..d1a0cd4652 100644 --- a/src/classes/ActiveRecord/ConnectionAdapters/SchemaCache.html +++ b/src/classes/ActiveRecord/ConnectionAdapters/SchemaCache.html @@ -149,7 +149,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/schema_cache.rb, line 261
@@ -163,7 +163,7 @@ 

@version = nil end

- See on GitHub + 🔎 See on GitHub
@@ -190,7 +190,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/schema_cache.rb, line 223
@@ -198,7 +198,7 @@ 

BoundSchemaReflection.new(SchemaReflection.new(nil), connection) end

- See on GitHub + 🔎 See on GitHub
@@ -229,7 +229,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/schema_cache.rb, line 325
@@ -242,7 +242,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -269,7 +269,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/schema_cache.rb, line 303
@@ -277,7 +277,7 @@ 

@columns.key?(table_name) end

- See on GitHub + 🔎 See on GitHub
@@ -304,7 +304,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/schema_cache.rb, line 390
@@ -316,7 +316,7 @@ 

@indexes.delete name end

- See on GitHub + 🔎 See on GitHub
@@ -343,13 +343,13 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/schema_cache.rb, line 340
       def columns(connection, table_name)
         if ignored_table?(table_name)
-          raise ActiveRecord::StatementInvalid, "Table '#{table_name}' doesn't exist"
+          raise ActiveRecord::StatementInvalid, "Table '#{table_name}' doesn't exist"
         end
 
         @columns.fetch(table_name) do
@@ -357,7 +357,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -384,17 +384,17 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/schema_cache.rb, line 352
       def columns_hash(connection, table_name)
         @columns_hash.fetch(table_name) do
-          @columns_hash[deep_deduplicate(table_name)] = columns(connection, table_name).index_by(&:name).freeze
+          @columns_hash[deep_deduplicate(table_name)] = columns(connection, table_name).index_by(&:name).freeze
         end
       end
- See on GitHub + 🔎 See on GitHub
@@ -421,7 +421,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/schema_cache.rb, line 359
@@ -429,7 +429,7 @@ 

@columns_hash.key?(table_name) end

- See on GitHub + 🔎 See on GitHub
@@ -456,7 +456,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/schema_cache.rb, line 316
@@ -468,7 +468,7 @@ 

@data_sources[deep_deduplicate(name)] = connection.data_source_exists?(name) end

- See on GitHub + 🔎 See on GitHub
@@ -495,13 +495,13 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/schema_cache.rb, line 407
       def dump_to(filename)
         open(filename) { |f|
-          if filename.include?(".dump")
+          if filename.include?(".dump")
             f.write(Marshal.dump(self))
           else
             f.write(YAML.dump(self))
@@ -509,7 +509,7 @@ 

} end

- See on GitHub + 🔎 See on GitHub
@@ -536,7 +536,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/schema_cache.rb, line 363
@@ -550,7 +550,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -577,25 +577,25 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/schema_cache.rb, line 289
       def init_with(coder)
-        @columns          = coder["columns"]
-        @columns_hash     = coder["columns_hash"]
-        @primary_keys     = coder["primary_keys"]
-        @data_sources     = coder["data_sources"]
-        @indexes          = coder["indexes"] || {}
-        @version          = coder["version"]
-        @database_version = coder["database_version"]
-
-        unless coder["deduplicated"]
+        @columns          = coder["columns"]
+        @columns_hash     = coder["columns_hash"]
+        @primary_keys     = coder["primary_keys"]
+        @data_sources     = coder["data_sources"]
+        @indexes          = coder["indexes"] || {}
+        @version          = coder["version"]
+        @database_version = coder["database_version"]
+
+        unless coder["deduplicated"]
           derive_columns_hash_and_deduplicate_values
         end
       end
- See on GitHub + 🔎 See on GitHub
@@ -622,7 +622,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/schema_cache.rb, line 307
@@ -634,7 +634,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -661,7 +661,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/schema_cache.rb, line 381
@@ -669,7 +669,7 @@ 

@version end

- See on GitHub + 🔎 See on GitHub
@@ -696,15 +696,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/schema_cache.rb, line 385
       def size
-        [@columns, @columns_hash, @primary_keys, @data_sources].sum(&:size)
+        [@columns, @columns_hash, @primary_keys, @data_sources].sum(&:size)
       end
- See on GitHub + 🔎 See on GitHub
@@ -731,7 +731,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/schema_cache.rb, line 377
@@ -739,7 +739,7 @@ 

@version ||= connection.schema_version end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/ConnectionAdapters/SchemaReflection.html b/src/classes/ActiveRecord/ConnectionAdapters/SchemaReflection.html index a1639fdeec..cd02eec2d4 100644 --- a/src/classes/ActiveRecord/ConnectionAdapters/SchemaReflection.html +++ b/src/classes/ActiveRecord/ConnectionAdapters/SchemaReflection.html @@ -169,7 +169,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/schema_cache.rb, line 16
@@ -178,7 +178,7 @@ 

@cache_path = cache_path end

- See on GitHub + 🔎 See on GitHub
@@ -209,7 +209,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/schema_cache.rb, line 45
@@ -217,7 +217,7 @@ 

cache(connection).add(connection, name) end

- See on GitHub + 🔎 See on GitHub
@@ -244,23 +244,23 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/schema_cache.rb, line 87
       def cached?(table_name)
         if @cache.nil?
-          # If `check_schema_cache_dump_version` is enabled we can't load
+          # If `check_schema_cache_dump_version` is enabled we can't load
           # the schema cache dump without connecting to the database.
           unless self.class.check_schema_cache_dump_version
             @cache = load_cache(nil)
           end
         end
 
-        @cache&.cached?(table_name)
+        @cache&.cached?(table_name)
       end
- See on GitHub + 🔎 See on GitHub
@@ -287,7 +287,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/schema_cache.rb, line 25
@@ -297,7 +297,7 @@ 

nil end

- See on GitHub + 🔎 See on GitHub
@@ -324,17 +324,17 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/schema_cache.rb, line 81
       def clear_data_source_cache!(connection, name)
-        return if @cache.nil? && !possible_cache_available?
+        return if @cache.nil? && !possible_cache_available?
 
         cache(connection).clear_data_source_cache!(connection, name)
       end
- See on GitHub + 🔎 See on GitHub
@@ -361,7 +361,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/schema_cache.rb, line 53
@@ -369,7 +369,7 @@ 

cache(connection).columns(connection, table_name) end

- See on GitHub + 🔎 See on GitHub
@@ -396,7 +396,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/schema_cache.rb, line 57
@@ -404,7 +404,7 @@ 

cache(connection).columns_hash(connection, table_name) end

- See on GitHub + 🔎 See on GitHub
@@ -431,7 +431,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/schema_cache.rb, line 61
@@ -439,7 +439,7 @@ 

cache(connection).columns_hash?(connection, table_name) end

- See on GitHub + 🔎 See on GitHub
@@ -466,7 +466,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/schema_cache.rb, line 41
@@ -474,7 +474,7 @@ 

cache(connection).data_source_exists?(connection, name) end

- See on GitHub + 🔎 See on GitHub
@@ -501,7 +501,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/schema_cache.rb, line 49
@@ -509,7 +509,7 @@ 

cache(connection).data_sources(connection, name) end

- See on GitHub + 🔎 See on GitHub
@@ -536,7 +536,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/schema_cache.rb, line 99
@@ -548,7 +548,7 @@ 

@cache = fresh_cache end

- See on GitHub + 🔎 See on GitHub
@@ -575,7 +575,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/schema_cache.rb, line 65
@@ -583,7 +583,7 @@ 

cache(connection).indexes(connection, table_name) end

- See on GitHub + 🔎 See on GitHub
@@ -610,7 +610,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/schema_cache.rb, line 31
@@ -620,7 +620,7 @@ 

self end

- See on GitHub + 🔎 See on GitHub
@@ -647,7 +647,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/schema_cache.rb, line 37
@@ -655,7 +655,7 @@ 

cache(connection).primary_keys(connection, table_name) end

- See on GitHub + 🔎 See on GitHub
@@ -682,7 +682,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/schema_cache.rb, line 21
@@ -690,7 +690,7 @@ 

@cache = cache end

- See on GitHub + 🔎 See on GitHub
@@ -717,7 +717,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/schema_cache.rb, line 77
@@ -725,7 +725,7 @@ 

cache(connection).size end

- See on GitHub + 🔎 See on GitHub
@@ -752,7 +752,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/schema_cache.rb, line 73
@@ -760,7 +760,7 @@ 

cache(connection).version(connection) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/ConnectionAdapters/SchemaStatements.html b/src/classes/ActiveRecord/ConnectionAdapters/SchemaStatements.html index 0993509f81..b8ae9ba083 100644 --- a/src/classes/ActiveRecord/ConnectionAdapters/SchemaStatements.html +++ b/src/classes/ActiveRecord/ConnectionAdapters/SchemaStatements.html @@ -331,7 +331,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb, line 1262
@@ -339,7 +339,7 @@ 

return unless supports_check_constraints? options = check_constraint_options(table_name, expression, options) - return if if_not_exists && check_constraint_exists?(table_name, **options) + return if if_not_exists && check_constraint_exists?(table_name, **options) at = create_alter_table(table_name) at.add_check_constraint(expression, options) @@ -347,7 +347,7 @@

execute schema_creation.accept(at) end

- See on GitHub + 🔎 See on GitHub
@@ -447,7 +447,7 @@

Examples

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb, line 620
@@ -458,7 +458,7 @@ 

Examples

execute schema_creation.accept(add_column_def) end
- See on GitHub + 🔎 See on GitHub
@@ -561,13 +561,13 @@
Creatin
- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb, line 1142
       def add_foreign_key(from_table, to_table, **options)
         return unless use_foreign_keys?
-        return if options[:if_not_exists] == true && foreign_key_exists?(from_table, to_table, **options.slice(:column))
+        return if options[:if_not_exists] == true && foreign_key_exists?(from_table, to_table, **options.slice(:column))
 
         options = foreign_key_options(from_table, to_table, options)
         at = create_alter_table from_table
@@ -576,7 +576,7 @@ 
Creatin execute schema_creation.accept(at) end
- See on GitHub + 🔎 See on GitHub
@@ -756,7 +756,7 @@
Cr
- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb, line 886
@@ -765,7 +765,7 @@ 
Cr execute schema_creation.accept(create_index) end
- See on GitHub + 🔎 See on GitHub
@@ -849,7 +849,7 @@
- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb, line 1031
@@ -857,7 +857,7 @@ 
See on GitHub + 🔎 See on GitHub @@ -887,16 +887,16 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb, line 1421
       def add_timestamps(table_name, **options)
         fragments = add_timestamps_for_alter(table_name, **options)
-        execute "ALTER TABLE #{quote_table_name(table_name)} #{fragments.join(', ')}"
+        execute "ALTER TABLE #{quote_table_name(table_name)} #{fragments.join(', ')}"
       end
- See on GitHub + 🔎 See on GitHub
@@ -923,7 +923,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb, line 1327
@@ -932,22 +932,22 @@ 

sm_table = quote_table_name(schema_migration.table_name) migrated = migration_context.get_all_versions - versions = migration_context.migrations.map(&:version) + versions = migration_context.migrations.map(&:version) unless migrated.include?(version) - execute "INSERT INTO #{sm_table} (version) VALUES (#{quote(version)})" + execute "INSERT INTO #{sm_table} (version) VALUES (#{quote(version)})" end - inserting = (versions - migrated).select { |v| v < version } + inserting = (versions - migrated).select { |v| v < version } if inserting.any? - if (duplicate = inserting.detect { |v| inserting.count(v) > 1 }) - raise "Duplicate migration #{duplicate}. Please renumber your migrations to resolve the conflict." + if (duplicate = inserting.detect { |v| inserting.count(v) > 1 }) + raise "Duplicate migration #{duplicate}. Please renumber your migrations to resolve the conflict." end execute insert_versions_sql(inserting) end end

- See on GitHub + 🔎 See on GitHub
@@ -974,7 +974,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb, line 328
@@ -987,7 +987,7 @@ 

table_definition end

- See on GitHub + 🔎 See on GitHub
@@ -1018,15 +1018,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb, line 695
       def change_column(table_name, column_name, type, **options)
-        raise NotImplementedError, "change_column is not implemented"
+        raise NotImplementedError, "change_column is not implemented"
       end
- See on GitHub + 🔎 See on GitHub
@@ -1058,15 +1058,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb, line 1499
       def change_column_comment(table_name, column_name, comment_or_changes)
-        raise NotImplementedError, "#{self.class} does not support changing column comments"
+        raise NotImplementedError, "#{self.class} does not support changing column comments"
       end
- See on GitHub + 🔎 See on GitHub
@@ -1107,15 +1107,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb, line 713
       def change_column_default(table_name, column_name, default_or_changes)
-        raise NotImplementedError, "change_column_default is not implemented"
+        raise NotImplementedError, "change_column_default is not implemented"
       end
- See on GitHub + 🔎 See on GitHub
@@ -1156,15 +1156,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb, line 742
       def change_column_null(table_name, column_name, null, default = nil)
-        raise NotImplementedError, "change_column_null is not implemented"
+        raise NotImplementedError, "change_column_null is not implemented"
       end
- See on GitHub + 🔎 See on GitHub
@@ -1281,12 +1281,12 @@

Remove an index
- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb, line 496
       def change_table(table_name, base = self, **options)
-        if supports_bulk_alter? && options[:bulk]
+        if supports_bulk_alter? && options[:bulk]
           recorder = ActiveRecord::Migration::CommandRecorder.new(self)
           yield update_table_definition(table_name, recorder)
           bulk_change_table(table_name, recorder.commands)
@@ -1295,7 +1295,7 @@ 
Remove an index
end end
- See on GitHub + 🔎 See on GitHub
@@ -1327,15 +1327,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb, line 1489
       def change_table_comment(table_name, comment_or_changes)
-        raise NotImplementedError, "#{self.class} does not support changing table comments"
+        raise NotImplementedError, "#{self.class} does not support changing table comments"
       end
- See on GitHub + 🔎 See on GitHub
@@ -1365,18 +1365,18 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb, line 1311
       def check_constraint_exists?(table_name, **options)
-        if !options.key?(:name) && !options.key?(:expression)
-          raise ArgumentError, "At least one of :name or :expression must be supplied"
+        if !options.key?(:name) && !options.key?(:expression)
+          raise ArgumentError, "At least one of :name or :expression must be supplied"
         end
         check_constraint_for(table_name, **options).present?
       end
- See on GitHub + 🔎 See on GitHub
@@ -1403,7 +1403,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb, line 1242
@@ -1411,7 +1411,7 @@ 

raise NotImplementedError end

- See on GitHub + 🔎 See on GitHub
@@ -1454,23 +1454,23 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb, line 132
       def column_exists?(table_name, column_name, type = nil, **options)
         column_name = column_name.to_s
         checks = []
-        checks << lambda { |c| c.name == column_name }
-        checks << lambda { |c| c.type == type.to_sym rescue nil } if type
+        checks << lambda { |c| c.name == column_name }
+        checks << lambda { |c| c.type == type.to_sym rescue nil } if type
         column_options_keys.each do |attr|
-          checks << lambda { |c| c.send(attr) == options[attr] } if options.key?(attr)
+          checks << lambda { |c| c.send(attr) == options[attr] } if options.key?(attr)
         end
 
         columns(table_name).any? { |c| checks.all? { |check| check[c] } }
       end
- See on GitHub + 🔎 See on GitHub
@@ -1497,7 +1497,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb, line 107
@@ -1509,7 +1509,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -1579,7 +1579,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb, line 375
@@ -1597,7 +1597,7 @@ 
See on GitHub + 🔎 See on GitHub @@ -1776,14 +1776,14 @@
C
- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb, line 293
-      def create_table(table_name, id: :primary_key, primary_key: nil, force: nil, **options, &block)
+      def create_table(table_name, id: :primary_key, primary_key: nil, force: nil, **options, &block)
         validate_create_table_options!(options)
         validate_table_length!(table_name) unless options[:_uses_legacy_table_name]
-        td = build_create_table_definition(table_name, id: id, primary_key: primary_key, force: force, **options, &block)
+        td = build_create_table_definition(table_name, id: id, primary_key: primary_key, force: force, **options, &block)
 
         if force
           drop_table(table_name, force: force, if_exists: true)
@@ -1799,7 +1799,7 @@ 
C end end - if supports_comments? && !supports_comments_in_create? + if supports_comments? && !supports_comments_in_create? if table_comment = td.comment.presence change_table_comment(table_name, table_comment) end @@ -1812,7 +1812,7 @@
C result end
- See on GitHub + 🔎 See on GitHub
@@ -1842,17 +1842,17 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb, line 44
       def data_source_exists?(name)
-        query_values(data_source_sql(name), "SCHEMA").any? if name.present?
+        query_values(data_source_sql(name), "SCHEMA").any? if name.present?
       rescue NotImplementedError
         data_sources.include?(name.to_s)
       end
- See on GitHub + 🔎 See on GitHub
@@ -1879,17 +1879,17 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb, line 34
       def data_sources
-        query_values(data_source_sql, "SCHEMA")
+        query_values(data_source_sql, "SCHEMA")
       rescue NotImplementedError
         tables | views
       end
- See on GitHub + 🔎 See on GitHub
@@ -1918,7 +1918,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb, line 413
@@ -1927,7 +1927,7 @@ 

drop_table(join_table_name, **options) end

- See on GitHub + 🔎 See on GitHub
@@ -1963,16 +1963,16 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb, line 526
       def drop_table(table_name, **options)
         schema_cache.clear_data_source_cache!(table_name.to_s)
-        execute "DROP TABLE#{' IF EXISTS' if options[:if_exists]} #{quote_table_name(table_name)}"
+        execute "DROP TABLE#{' IF EXISTS' if options[:if_exists]} #{quote_table_name(table_name)}"
       end
- See on GitHub + 🔎 See on GitHub
@@ -2009,7 +2009,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb, line 1206
@@ -2017,7 +2017,7 @@ 

foreign_key_for(from_table, to_table: to_table, **options).present? end

- See on GitHub + 🔎 See on GitHub
@@ -2044,15 +2044,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb, line 1072
       def foreign_keys(table_name)
-        raise NotImplementedError, "foreign_keys is not implemented"
+        raise NotImplementedError, "foreign_keys is not implemented"
       end
- See on GitHub + 🔎 See on GitHub
@@ -2095,7 +2095,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb, line 102
@@ -2103,7 +2103,7 @@ 

indexes(table_name).any? { |i| i.defined_for?(column_name, **options) } end

- See on GitHub + 🔎 See on GitHub
@@ -2130,7 +2130,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb, line 978
@@ -2139,7 +2139,7 @@ 

indexes(table_name).detect { |i| i.name == index_name } end

- See on GitHub + 🔎 See on GitHub
@@ -2166,15 +2166,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb, line 81
       def indexes(table_name)
-        raise NotImplementedError, "#indexes is not implemented"
+        raise NotImplementedError, "#indexes is not implemented"
       end
- See on GitHub + 🔎 See on GitHub
@@ -2201,7 +2201,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb, line 1555
@@ -2209,7 +2209,7 @@ 

62 end

- See on GitHub + 🔎 See on GitHub
@@ -2236,7 +2236,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb, line 14
@@ -2244,7 +2244,7 @@ 

{} end

- See on GitHub + 🔎 See on GitHub
@@ -2271,15 +2271,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb, line 1479
       def options_include_default?(options)
-        options.include?(:default) && !(options[:null] == false && options[:default].nil?)
+        options.include?(:default) && !(options[:null] == false && options[:default].nil?)
       end
- See on GitHub + 🔎 See on GitHub
@@ -2306,17 +2306,17 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb, line 145
       def primary_key(table_name)
         pk = primary_keys(table_name)
-        pk = pk.first unless pk.size > 1
+        pk = pk.first unless pk.size > 1
         pk
       end
- See on GitHub + 🔎 See on GitHub
@@ -2378,14 +2378,14 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb, line 1293
       def remove_check_constraint(table_name, expression = nil, if_exists: false, **options)
         return unless supports_check_constraints?
 
-        return if if_exists && !check_constraint_exists?(table_name, **options)
+        return if if_exists && !check_constraint_exists?(table_name, **options)
 
         chk_name_to_delete = check_constraint_for!(table_name, expression: expression, **options).name
 
@@ -2395,7 +2395,7 @@ 

execute schema_creation.accept(at) end

- See on GitHub + 🔎 See on GitHub
@@ -2432,17 +2432,17 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb, line 683
       def remove_column(table_name, column_name, type = nil, **options)
-        return if options[:if_exists] == true && !column_exists?(table_name, column_name)
+        return if options[:if_exists] == true && !column_exists?(table_name, column_name)
 
-        execute "ALTER TABLE #{quote_table_name(table_name)} #{remove_column_for_alter(table_name, column_name, type, **options)}"
+        execute "ALTER TABLE #{quote_table_name(table_name)} #{remove_column_for_alter(table_name, column_name, type, **options)}"
       end
- See on GitHub + 🔎 See on GitHub
@@ -2477,20 +2477,20 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb, line 659
       def remove_columns(table_name, *column_names, type: nil, **options)
         if column_names.empty?
-          raise ArgumentError.new("You must specify at least one column name. Example: remove_columns(:people, :first_name)")
+          raise ArgumentError.new("You must specify at least one column name. Example: remove_columns(:people, :first_name)")
         end
 
         remove_column_fragments = remove_columns_for_alter(table_name, *column_names, type: type, **options)
-        execute "ALTER TABLE #{quote_table_name(table_name)} #{remove_column_fragments.join(', ')}"
+        execute "ALTER TABLE #{quote_table_name(table_name)} #{remove_column_fragments.join(', ')}"
       end
- See on GitHub + 🔎 See on GitHub
@@ -2548,13 +2548,13 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb, line 1183
       def remove_foreign_key(from_table, to_table = nil, **options)
         return unless use_foreign_keys?
-        return if options.delete(:if_exists) == true && !foreign_key_exists?(from_table, to_table)
+        return if options.delete(:if_exists) == true && !foreign_key_exists?(from_table, to_table)
 
         fk_name_to_delete = foreign_key_for!(from_table, to_table: to_table, **options).name
 
@@ -2564,7 +2564,7 @@ 

execute schema_creation.accept(at) end

- See on GitHub + 🔎 See on GitHub
@@ -2632,19 +2632,19 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb, line 937
       def remove_index(table_name, column_name = nil, **options)
-        return if options[:if_exists] && !index_exists?(table_name, column_name, **options)
+        return if options[:if_exists] && !index_exists?(table_name, column_name, **options)
 
         index_name = index_name_for_remove(table_name, column_name, options)
 
-        execute "DROP INDEX #{quote_column_name(index_name)} ON #{quote_table_name(table_name)}"
+        execute "DROP INDEX #{quote_column_name(index_name)} ON #{quote_table_name(table_name)}"
       end
- See on GitHub + 🔎 See on GitHub
@@ -2690,7 +2690,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb, line 1051
@@ -2704,15 +2704,15 @@ 
- See on GitHub + 🔎 See on GitHub @@ -2742,7 +2742,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb, line 1430
@@ -2750,7 +2750,7 @@ 

remove_columns table_name, :updated_at, :created_at end

- See on GitHub + 🔎 See on GitHub
@@ -2780,15 +2780,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb, line 750
       def rename_column(table_name, column_name, new_column_name)
-        raise NotImplementedError, "rename_column is not implemented"
+        raise NotImplementedError, "rename_column is not implemented"
       end
- See on GitHub + 🔎 See on GitHub
@@ -2820,7 +2820,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb, line 951
@@ -2836,7 +2836,7 @@ 

remove_index(table_name, name: old_name) end

- See on GitHub + 🔎 See on GitHub
@@ -2866,15 +2866,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb, line 510
       def rename_table(table_name, new_name, **)
-        raise NotImplementedError, "rename_table is not implemented"
+        raise NotImplementedError, "rename_table is not implemented"
       end
- See on GitHub + 🔎 See on GitHub
@@ -2901,15 +2901,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb, line 28
       def table_alias_for(table_name)
-        table_name[0...table_alias_length].tr(".", "_")
+        table_name[0...table_alias_length].tr(".", "_")
       end
- See on GitHub + 🔎 See on GitHub
@@ -2936,7 +2936,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb, line 23
@@ -2944,7 +2944,7 @@ 

nil end

- See on GitHub + 🔎 See on GitHub
@@ -2974,17 +2974,17 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb, line 59
       def table_exists?(table_name)
-        query_values(data_source_sql(table_name, type: "BASE TABLE"), "SCHEMA").any? if table_name.present?
+        query_values(data_source_sql(table_name, type: "BASE TABLE"), "SCHEMA").any? if table_name.present?
       rescue NotImplementedError
         tables.include?(table_name.to_s)
       end
- See on GitHub + 🔎 See on GitHub
@@ -3011,7 +3011,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb, line 18
@@ -3019,7 +3019,7 @@ 

nil end

- See on GitHub + 🔎 See on GitHub
@@ -3046,15 +3046,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb, line 51
       def tables
-        query_values(data_source_sql(type: "BASE TABLE"), "SCHEMA")
+        query_values(data_source_sql(type: "BASE TABLE"), "SCHEMA")
       end
- See on GitHub + 🔎 See on GitHub
@@ -3081,15 +3081,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb, line 1507
       def use_foreign_keys?
-        supports_foreign_keys? && foreign_keys_enabled?
+        supports_foreign_keys? && foreign_keys_enabled?
       end
- See on GitHub + 🔎 See on GitHub
@@ -3119,17 +3119,17 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb, line 74
       def view_exists?(view_name)
-        query_values(data_source_sql(view_name, type: "VIEW"), "SCHEMA").any? if view_name.present?
+        query_values(data_source_sql(view_name, type: "VIEW"), "SCHEMA").any? if view_name.present?
       rescue NotImplementedError
         views.include?(view_name.to_s)
       end
- See on GitHub + 🔎 See on GitHub
@@ -3156,15 +3156,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb, line 66
       def views
-        query_values(data_source_sql(type: "VIEW"), "SCHEMA")
+        query_values(data_source_sql(type: "VIEW"), "SCHEMA")
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/ConnectionAdapters/Table.html b/src/classes/ActiveRecord/ConnectionAdapters/Table.html index 5d2ce82425..c4e9e6dfd7 100644 --- a/src/classes/ActiveRecord/ConnectionAdapters/Table.html +++ b/src/classes/ActiveRecord/ConnectionAdapters/Table.html @@ -253,7 +253,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb, line 711
@@ -262,7 +262,7 @@ 

@base = base end

- See on GitHub + 🔎 See on GitHub
@@ -324,7 +324,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb, line 788
@@ -333,7 +333,7 @@ 

@base.change_column(name, column_name, type, **options) end

- See on GitHub + 🔎 See on GitHub
@@ -367,7 +367,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb, line 800
@@ -375,7 +375,7 @@ 

@base.change_column_default(name, column_name, default_or_changes) end

- See on GitHub + 🔎 See on GitHub
@@ -408,7 +408,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb, line 810
@@ -416,7 +416,7 @@ 

@base.change_column_null(name, column_name, null, default) end

- See on GitHub + 🔎 See on GitHub
@@ -448,7 +448,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb, line 920
@@ -456,7 +456,7 @@ 

@base.add_check_constraint(name, *args, **options) end

- See on GitHub + 🔎 See on GitHub
@@ -490,7 +490,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb, line 940
@@ -498,7 +498,7 @@ 

@base.check_constraint_exists?(name, *args, **options) end

- See on GitHub + 🔎 See on GitHub
@@ -530,7 +530,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb, line 721
@@ -543,7 +543,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -575,7 +575,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb, line 735
@@ -583,7 +583,7 @@ 

@base.column_exists?(name, column_name, type, **options) end

- See on GitHub + 🔎 See on GitHub
@@ -616,7 +616,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb, line 890
@@ -625,7 +625,7 @@ 

@base.add_foreign_key(name, *args, **options) end

- See on GitHub + 🔎 See on GitHub
@@ -657,7 +657,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb, line 911
@@ -665,7 +665,7 @@ 

@base.foreign_key_exists?(name, *args, **options) end

- See on GitHub + 🔎 See on GitHub
@@ -699,7 +699,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb, line 747
@@ -708,7 +708,7 @@ 

@base.add_index(name, column_name, **options) end

- See on GitHub + 🔎 See on GitHub
@@ -742,7 +742,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb, line 759
@@ -750,7 +750,7 @@ 

@base.index_exists?(name, column_name, **options) end

- See on GitHub + 🔎 See on GitHub
@@ -787,7 +787,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb, line 862
@@ -798,7 +798,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -831,7 +831,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb, line 820
@@ -840,7 +840,7 @@ 

@base.remove_columns(name, *column_names, **options) end

- See on GitHub + 🔎 See on GitHub
@@ -897,7 +897,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb, line 929
@@ -905,7 +905,7 @@ 

@base.remove_check_constraint(name, *args, **options) end

- See on GitHub + 🔎 See on GitHub
@@ -938,7 +938,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb, line 901
@@ -947,7 +947,7 @@ 

@base.remove_foreign_key(name, *args, **options) end

- See on GitHub + 🔎 See on GitHub
@@ -982,7 +982,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb, line 833
@@ -991,7 +991,7 @@ 

@base.remove_index(name, column_name, **options) end

- See on GitHub + 🔎 See on GitHub
@@ -1028,7 +1028,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb, line 876
@@ -1039,7 +1039,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -1071,7 +1071,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb, line 843
@@ -1079,7 +1079,7 @@ 

@base.remove_timestamps(name, **options) end

- See on GitHub + 🔎 See on GitHub
@@ -1111,7 +1111,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb, line 852
@@ -1119,7 +1119,7 @@ 

@base.rename_column(name, column_name, new_column_name) end

- See on GitHub + 🔎 See on GitHub
@@ -1151,7 +1151,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb, line 768
@@ -1159,7 +1159,7 @@ 

@base.rename_index(name, index_name, new_index_name) end

- See on GitHub + 🔎 See on GitHub
@@ -1191,7 +1191,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb, line 777
@@ -1200,7 +1200,7 @@ 

@base.add_timestamps(name, **options) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/ConnectionAdapters/TableDefinition.html b/src/classes/ActiveRecord/ConnectionAdapters/TableDefinition.html index 653bd40daa..5ee3258190 100644 --- a/src/classes/ActiveRecord/ConnectionAdapters/TableDefinition.html +++ b/src/classes/ActiveRecord/ConnectionAdapters/TableDefinition.html @@ -242,7 +242,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb, line 368
@@ -270,7 +270,7 @@ 

@comment = comment end

- See on GitHub + 🔎 See on GitHub
@@ -301,7 +301,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb, line 418
@@ -309,7 +309,7 @@ 

@columns_hash[name.to_s] end

- See on GitHub + 🔎 See on GitHub
@@ -361,15 +361,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb, line 522
       def check_constraint(expression, **options)
-        check_constraints << new_check_constraint_definition(expression, options)
+        check_constraints << new_check_constraint_definition(expression, options)
       end
- See on GitHub + 🔎 See on GitHub
@@ -459,7 +459,7 @@

Short-hand examples

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb, line 489
@@ -478,7 +478,7 @@ 

Short-hand examples

self end
- See on GitHub + 🔎 See on GitHub
@@ -505,13 +505,13 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb, line 415
       def columns; @columns_hash.values; end
- See on GitHub + 🔎 See on GitHub
@@ -538,15 +538,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb, line 518
       def foreign_key(to_table, **options)
-        foreign_keys << new_foreign_key_definition(to_table, options)
+        foreign_keys << new_foreign_key_definition(to_table, options)
       end
- See on GitHub + 🔎 See on GitHub
@@ -576,15 +576,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb, line 514
       def index(column_name, **options)
-        indexes << [column_name, options]
+        indexes << [column_name, options]
       end
- See on GitHub + 🔎 See on GitHub
@@ -622,7 +622,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb, line 548
@@ -632,7 +632,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -662,7 +662,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb, line 506
@@ -670,7 +670,7 @@ 

@columns_hash.delete name.to_s end

- See on GitHub + 🔎 See on GitHub
@@ -697,12 +697,12 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb, line 392
       def set_primary_key(table_name, id, primary_key, **options)
-        if id && !as
+        if id && !as
           pk = primary_key || Base.get_primary_key(table_name.to_s.singularize)
 
           if id.is_a?(Hash)
@@ -718,7 +718,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -748,14 +748,14 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb, line 530
       def timestamps(**options)
         options[:null] = false if options[:null].nil?
 
-        if !options.key?(:precision) && @conn.supports_datetime_with_precision?
+        if !options.key?(:precision) && @conn.supports_datetime_with_precision?
           options[:precision] = 6
         end
 
@@ -763,7 +763,7 @@ 

column(:updated_at, :datetime, **options) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/ConnectionAdapters/TransactionInstrumenter.html b/src/classes/ActiveRecord/ConnectionAdapters/TransactionInstrumenter.html index f72175d901..2f114771d1 100644 --- a/src/classes/ActiveRecord/ConnectionAdapters/TransactionInstrumenter.html +++ b/src/classes/ActiveRecord/ConnectionAdapters/TransactionInstrumenter.html @@ -106,7 +106,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/transaction.rb, line 78
@@ -117,7 +117,7 @@ 

@base_payload = payload end

- See on GitHub + 🔎 See on GitHub
@@ -148,19 +148,19 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/transaction.rb, line 97
       def finish(outcome)
-        raise InstrumentationNotStartedError.new("Called finish on a transaction that hasn't started") unless @started
+        raise InstrumentationNotStartedError.new("Called finish on a transaction that hasn't started") unless @started
         @started = false
 
         @payload[:outcome] = outcome
         @handle.finish
       end
- See on GitHub + 🔎 See on GitHub
@@ -187,20 +187,20 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/transaction.rb, line 88
       def start
-        raise InstrumentationAlreadyStartedError.new("Called start on an already started transaction") if @started
+        raise InstrumentationAlreadyStartedError.new("Called start on an already started transaction") if @started
         @started = true
 
         @payload = @base_payload.dup
-        @handle = ActiveSupport::Notifications.instrumenter.build_handle("transaction.active_record", @payload)
+        @handle = ActiveSupport::Notifications.instrumenter.build_handle("transaction.active_record", @payload)
         @handle.start
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/ConnectionAdapters/TransactionState.html b/src/classes/ActiveRecord/ConnectionAdapters/TransactionState.html index 10874d3a1c..b63767dd35 100644 --- a/src/classes/ActiveRecord/ConnectionAdapters/TransactionState.html +++ b/src/classes/ActiveRecord/ConnectionAdapters/TransactionState.html @@ -149,7 +149,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/transaction.rb, line 7
@@ -158,7 +158,7 @@ 

@children = nil end

- See on GitHub + 🔎 See on GitHub
@@ -189,16 +189,16 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/transaction.rb, line 12
       def add_child(state)
         @children ||= []
-        @children << state
+        @children << state
       end
- See on GitHub + 🔎 See on GitHub
@@ -225,7 +225,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/transaction.rb, line 64
@@ -233,7 +233,7 @@ 

@state = :committed end

- See on GitHub + 🔎 See on GitHub
@@ -260,7 +260,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/transaction.rb, line 21
@@ -268,7 +268,7 @@ 

@state == :committed || @state == :fully_committed end

- See on GitHub + 🔎 See on GitHub
@@ -295,7 +295,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/transaction.rb, line 45
@@ -303,7 +303,7 @@ 

committed? || rolledback? end

- See on GitHub + 🔎 See on GitHub
@@ -330,7 +330,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/transaction.rb, line 17
@@ -338,7 +338,7 @@ 

@state end

- See on GitHub + 🔎 See on GitHub
@@ -365,7 +365,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/transaction.rb, line 68
@@ -373,7 +373,7 @@ 

@state = :fully_committed end

- See on GitHub + 🔎 See on GitHub
@@ -400,16 +400,16 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/transaction.rb, line 54
       def full_rollback!
-        @children&.each { |c| c.rollback! }
+        @children&.each { |c| c.rollback! }
         @state = :fully_rolledback
       end
- See on GitHub + 🔎 See on GitHub
@@ -436,7 +436,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/transaction.rb, line 25
@@ -444,7 +444,7 @@ 

@state == :fully_committed end

- See on GitHub + 🔎 See on GitHub
@@ -471,7 +471,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/transaction.rb, line 41
@@ -479,7 +479,7 @@ 

completed? end

- See on GitHub + 🔎 See on GitHub
@@ -506,7 +506,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/transaction.rb, line 33
@@ -514,7 +514,7 @@ 

@state == :fully_rolledback end

- See on GitHub + 🔎 See on GitHub
@@ -541,16 +541,16 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/transaction.rb, line 59
       def invalidate!
-        @children&.each { |c| c.invalidate! }
+        @children&.each { |c| c.invalidate! }
         @state = :invalidated
       end
- See on GitHub + 🔎 See on GitHub
@@ -577,7 +577,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/transaction.rb, line 37
@@ -585,7 +585,7 @@ 

@state == :invalidated end

- See on GitHub + 🔎 See on GitHub
@@ -612,7 +612,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/transaction.rb, line 72
@@ -620,7 +620,7 @@ 

@state = nil end

- See on GitHub + 🔎 See on GitHub
@@ -647,16 +647,16 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/transaction.rb, line 49
       def rollback!
-        @children&.each { |c| c.rollback! }
+        @children&.each { |c| c.rollback! }
         @state = :rolledback
       end
- See on GitHub + 🔎 See on GitHub
@@ -683,7 +683,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/transaction.rb, line 29
@@ -691,7 +691,7 @@ 

@state == :rolledback || @state == :fully_rolledback end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/ConnectionAdapters/TrilogyAdapter.html b/src/classes/ActiveRecord/ConnectionAdapters/TrilogyAdapter.html index 13d2a81c2a..f52d6a345e 100644 --- a/src/classes/ActiveRecord/ConnectionAdapters/TrilogyAdapter.html +++ b/src/classes/ActiveRecord/ConnectionAdapters/TrilogyAdapter.html @@ -127,11 +127,6 @@

Constants

"Trilogy" - -   - - - ER_ACCESS_DENIED_ERROR @@ -139,11 +134,6 @@

Constants

1045 - -   - - - ER_BAD_DB_ERROR @@ -151,11 +141,6 @@

Constants

1049 - -   - - - ER_DBACCESS_DENIED_ERROR @@ -163,11 +148,6 @@

Constants

1044 - -   - - - ER_SERVER_SHUTDOWN @@ -175,11 +155,6 @@

Constants

1053 - -   - - - SSL_MODES @@ -193,11 +168,6 @@

Constants

}.freeze - -   - - - TYPE_MAP @@ -205,11 +175,6 @@

Constants

Type::TypeMap.new.tap { |m| initialize_type_map(m) } - -   - - - @@ -241,18 +206,18 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/trilogy_adapter.rb, line 57
         def new_client(config)
           config[:ssl_mode] = parse_ssl_mode(config[:ssl_mode]) if config[:ssl_mode]
           ::Trilogy.new(config)
-        rescue ::Trilogy::ConnectionError, ::Trilogy::ProtocolError => error
+        rescue ::Trilogy::ConnectionError, ::Trilogy::ProtocolError => error
           raise translate_connect_error(config, error)
         end
- See on GitHub + 🔎 See on GitHub
@@ -279,7 +244,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/trilogy_adapter.rb, line 64
@@ -287,12 +252,12 @@ 

return mode if mode.is_a? Integer m = mode.to_s.upcase - m = "SSL_MODE_#{m}" unless m.start_with? "SSL_MODE_" + m = "SSL_MODE_#{m}" unless m.start_with? "SSL_MODE_" SSL_MODES.fetch(m.to_sym, mode) end

- See on GitHub + 🔎 See on GitHub
@@ -319,7 +284,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/trilogy_adapter.rb, line 73
@@ -330,7 +295,7 @@ 

when ER_ACCESS_DENIED_ERROR ActiveRecord::DatabaseConnectionError.username_error(config[:username]) else - if error.message.include?("TRILOGY_DNS_ERROR") + if error.message.include?("TRILOGY_DNS_ERROR") ActiveRecord::DatabaseConnectionError.hostname_error(config[:host]) else ActiveRecord::ConnectionNotEstablished.new(error.message) @@ -338,7 +303,7 @@

end end

- See on GitHub + 🔎 See on GitHub
@@ -369,17 +334,17 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/trilogy_adapter.rb, line 134
       def active?
-        connection&.ping || false
+        connection&.ping || false
       rescue ::Trilogy::Error
         false
       end
- See on GitHub + 🔎 See on GitHub
@@ -406,7 +371,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/trilogy_adapter.rb, line 150
@@ -418,7 +383,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -445,7 +410,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/trilogy_adapter.rb, line 142
@@ -457,7 +422,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -484,7 +449,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/trilogy_adapter.rb, line 128
@@ -494,7 +459,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -521,7 +486,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/trilogy_adapter.rb, line 120
@@ -529,7 +494,7 @@ 

true end

- See on GitHub + 🔎 See on GitHub
@@ -556,7 +521,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/trilogy_adapter.rb, line 108
@@ -564,7 +529,7 @@ 

true end

- See on GitHub + 🔎 See on GitHub
@@ -591,7 +556,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/trilogy_adapter.rb, line 112
@@ -599,7 +564,7 @@ 

true end

- See on GitHub + 🔎 See on GitHub
@@ -626,15 +591,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/trilogy_adapter.rb, line 104
       def supports_json?
-        !mariadb? && database_version >= "5.7.8"
+        !mariadb? && database_version >= "5.7.8"
       end
- See on GitHub + 🔎 See on GitHub
@@ -661,7 +626,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/trilogy_adapter.rb, line 124
@@ -669,7 +634,7 @@ 

true end

- See on GitHub + 🔎 See on GitHub
@@ -696,7 +661,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_adapters/trilogy_adapter.rb, line 116
@@ -704,7 +669,7 @@ 

true end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/ConnectionHandling.html b/src/classes/ActiveRecord/ConnectionHandling.html index 9eba2a4ded..53579aecaf 100644 --- a/src/classes/ActiveRecord/ConnectionHandling.html +++ b/src/classes/ActiveRecord/ConnectionHandling.html @@ -161,11 +161,6 @@

Constants

-> { RAILS_ENV.call || "default_env" } - -   - - - RAILS_ENV @@ -173,11 +168,6 @@

Constants

-> { (Rails.env if defined?(Rails.env)) || ENV["RAILS_ENV"].presence || ENV["RACK_ENV"].presence } - -   - - - @@ -224,7 +214,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_handling.rb, line 319
@@ -233,7 +223,7 @@ 

connection_handler.clear_active_connections!(role) end

- See on GitHub + 🔎 See on GitHub
@@ -260,7 +250,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_handling.rb, line 329
@@ -269,7 +259,7 @@ 

connection_handler.clear_all_connections!(role) end

- See on GitHub + 🔎 See on GitHub
@@ -296,7 +286,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_handling.rb, line 244
@@ -306,7 +296,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -333,7 +323,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_handling.rb, line 324
@@ -342,7 +332,7 @@ 

connection_handler.clear_reloadable_connections!(role) end

- See on GitHub + 🔎 See on GitHub
@@ -369,7 +359,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_handling.rb, line 291
@@ -377,7 +367,7 @@ 

connection_handler.connected?(connection_specification_name, role: current_role, shard: current_shard) end

- See on GitHub + 🔎 See on GitHub
@@ -424,27 +414,27 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_handling.rb, line 134
-    def connected_to(role: nil, shard: nil, prevent_writes: false, &blk)
-      if self != Base && !abstract_class
-        raise NotImplementedError, "calling `connected_to` is only allowed on ActiveRecord::Base or abstract classes."
+    def connected_to(role: nil, shard: nil, prevent_writes: false, &blk)
+      if self != Base && !abstract_class
+        raise NotImplementedError, "calling `connected_to` is only allowed on ActiveRecord::Base or abstract classes."
       end
 
-      if !connection_class? && !primary_class?
-        raise NotImplementedError, "calling `connected_to` is only allowed on the abstract class that established the connection."
+      if !connection_class? && !primary_class?
+        raise NotImplementedError, "calling `connected_to` is only allowed on the abstract class that established the connection."
       end
 
       unless role || shard
-        raise ArgumentError, "must provide a `shard` and/or `role`."
+        raise ArgumentError, "must provide a `shard` and/or `role`."
       end
 
-      with_role_and_shard(role, shard, prevent_writes, &blk)
+      with_role_and_shard(role, shard, prevent_writes, &blk)
     end
- See on GitHub + 🔎 See on GitHub
@@ -483,15 +473,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_handling.rb, line 239
     def connected_to?(role:, shard: ActiveRecord::Base.default_shard)
-      current_role == role.to_sym && current_shard == shard.to_sym
+      current_role == role.to_sym && current_shard == shard.to_sym
     end
- See on GitHub + 🔎 See on GitHub
@@ -529,7 +519,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_handling.rb, line 163
@@ -537,7 +527,7 @@ 

classes = classes.flatten if self != Base || classes.include?(Base) - raise NotImplementedError, "connected_to_many can only be called on ActiveRecord::Base." + raise NotImplementedError, "connected_to_many can only be called on ActiveRecord::Base." end prevent_writes = true if role == ActiveRecord.reading_role @@ -548,7 +538,7 @@

connected_to_stack.pop end

- See on GitHub + 🔎 See on GitHub
@@ -579,7 +569,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_handling.rb, line 185
@@ -589,7 +579,7 @@ 

append_to_connected_to_stack(role: role, shard: shard, prevent_writes: prevent_writes, klasses: [self]) end

- See on GitHub + 🔎 See on GitHub
@@ -616,7 +606,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_handling.rb, line 253
@@ -624,7 +614,7 @@ 

retrieve_connection end

- See on GitHub + 🔎 See on GitHub
@@ -658,7 +648,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_handling.rb, line 278
@@ -666,7 +656,7 @@ 

connection_pool.db_config end

- See on GitHub + 🔎 See on GitHub
@@ -693,7 +683,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_handling.rb, line 282
@@ -701,7 +691,7 @@ 

connection_handler.retrieve_connection_pool(connection_specification_name, role: current_role, shard: current_shard) || raise(ConnectionNotEstablished) end

- See on GitHub + 🔎 See on GitHub
@@ -728,7 +718,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_handling.rb, line 260
@@ -739,7 +729,7 @@ 

@connection_specification_name end

- See on GitHub + 🔎 See on GitHub
@@ -789,15 +779,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_handling.rb, line 81
     def connects_to(database: {}, shards: {})
-      raise NotImplementedError, "`connects_to` can only be called on ActiveRecord::Base or abstract classes" unless self == Base || abstract_class?
+      raise NotImplementedError, "`connects_to` can only be called on ActiveRecord::Base or abstract classes" unless self == Base || abstract_class?
 
-      if database.present? && shards.present?
-        raise ArgumentError, "`connects_to` can only accept a `database` or `shards` argument, but not both arguments."
+      if database.present? && shards.present?
+        raise ArgumentError, "`connects_to` can only accept a `database` or `shards` argument, but not both arguments."
       end
 
       connections = []
@@ -813,14 +803,14 @@ 

db_config = resolve_config_for_connection(database_key) self.connection_class = true - connections << connection_handler.establish_connection(db_config, owner_name: self, role: role, shard: shard.to_sym) + connections << connection_handler.establish_connection(db_config, owner_name: self, role: role, shard: shard.to_sym) end end connections end

- See on GitHub + 🔎 See on GitHub
@@ -886,7 +876,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_handling.rb, line 50
@@ -896,7 +886,7 @@ 

connection_handler.establish_connection(db_config, owner_name: self, role: current_role, shard: current_shard) end

- See on GitHub + 🔎 See on GitHub
@@ -923,7 +913,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_handling.rb, line 334
@@ -932,7 +922,7 @@ 

connection_handler.flush_idle_connections!(role) end

- See on GitHub + 🔎 See on GitHub
@@ -961,7 +951,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_handling.rb, line 197
@@ -973,7 +963,7 @@ 

ActiveSupport::IsolatedExecutionState[:active_record_prohibit_shard_swapping] = prev_value end

- See on GitHub + 🔎 See on GitHub
@@ -1000,13 +990,13 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_handling.rb, line 295
     def remove_connection(name = nil)
       if name
-        ActiveRecord.deprecator.warn(<<-MSG.squish)
+        ActiveRecord.deprecator.warn(<<-MSG.squish)
           The name argument for `#remove_connection` is deprecated without replacement
           and will be removed in Rails 7.2. `#remove_connection` should always be called
           on the connection class directly, which makes the name argument obsolete.
@@ -1024,7 +1014,7 @@ 

connection_handler.remove_connection_pool(name, role: current_role, shard: current_shard) end

- See on GitHub + 🔎 See on GitHub
@@ -1051,7 +1041,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_handling.rb, line 286
@@ -1059,7 +1049,7 @@ 

connection_handler.retrieve_connection(connection_specification_name, role: current_role, shard: current_shard) end

- See on GitHub + 🔎 See on GitHub
@@ -1086,7 +1076,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_handling.rb, line 206
@@ -1094,7 +1084,7 @@ 

ActiveSupport::IsolatedExecutionState[:active_record_prohibit_shard_swapping] end

- See on GitHub + 🔎 See on GitHub
@@ -1127,15 +1117,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/connection_handling.rb, line 221
-    def while_preventing_writes(enabled = true, &block)
-      connected_to(role: current_role, prevent_writes: enabled, &block)
+    def while_preventing_writes(enabled = true, &block)
+      connected_to(role: current_role, prevent_writes: enabled, &block)
     end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/ConnectionNotEstablished.html b/src/classes/ActiveRecord/ConnectionNotEstablished.html index 54aaad9081..06df716dea 100644 --- a/src/classes/ActiveRecord/ConnectionNotEstablished.html +++ b/src/classes/ActiveRecord/ConnectionNotEstablished.html @@ -93,7 +93,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/errors.rb, line 72
@@ -101,7 +101,7 @@ 

super(message, connection_pool: connection_pool) end

- See on GitHub + 🔎 See on GitHub
@@ -132,7 +132,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/errors.rb, line 76
@@ -144,7 +144,7 @@ 

self end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/Core.html b/src/classes/ActiveRecord/Core.html index 3998720373..8bc3255176 100644 --- a/src/classes/ActiveRecord/Core.html +++ b/src/classes/ActiveRecord/Core.html @@ -237,7 +237,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/core.rb, line 76
@@ -245,7 +245,7 @@ 

@@configurations end

- See on GitHub + 🔎 See on GitHub
@@ -293,7 +293,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/core.rb, line 70
@@ -301,7 +301,7 @@ 

@@configurations = ActiveRecord::DatabaseConfigurations.new(config) end

- See on GitHub + 🔎 See on GitHub
@@ -328,7 +328,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/core.rb, line 116
@@ -336,7 +336,7 @@ 

ActiveSupport::IsolatedExecutionState[:active_record_connection_handler] || default_connection_handler end

- See on GitHub + 🔎 See on GitHub
@@ -363,7 +363,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/core.rb, line 120
@@ -371,7 +371,7 @@ 

ActiveSupport::IsolatedExecutionState[:active_record_connection_handler] = handler end

- See on GitHub + 🔎 See on GitHub
@@ -407,20 +407,20 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/core.rb, line 179
       def self.current_preventing_writes
         connected_to_stack.reverse_each do |hash|
-          return hash[:prevent_writes] if !hash[:prevent_writes].nil? && hash[:klasses].include?(Base)
-          return hash[:prevent_writes] if !hash[:prevent_writes].nil? && hash[:klasses].include?(connection_class_for_self)
+          return hash[:prevent_writes] if !hash[:prevent_writes].nil? && hash[:klasses].include?(Base)
+          return hash[:prevent_writes] if !hash[:prevent_writes].nil? && hash[:klasses].include?(connection_class_for_self)
         end
 
         false
       end
- See on GitHub + 🔎 See on GitHub
@@ -456,20 +456,20 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/core.rb, line 142
       def self.current_role
         connected_to_stack.reverse_each do |hash|
-          return hash[:role] if hash[:role] && hash[:klasses].include?(Base)
-          return hash[:role] if hash[:role] && hash[:klasses].include?(connection_class_for_self)
+          return hash[:role] if hash[:role] && hash[:klasses].include?(Base)
+          return hash[:role] if hash[:role] && hash[:klasses].include?(connection_class_for_self)
         end
 
         default_role
       end
- See on GitHub + 🔎 See on GitHub
@@ -505,20 +505,20 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/core.rb, line 160
       def self.current_shard
         connected_to_stack.reverse_each do |hash|
-          return hash[:shard] if hash[:shard] && hash[:klasses].include?(Base)
-          return hash[:shard] if hash[:shard] && hash[:klasses].include?(connection_class_for_self)
+          return hash[:shard] if hash[:shard] && hash[:klasses].include?(Base)
+          return hash[:shard] if hash[:shard] && hash[:klasses].include?(connection_class_for_self)
         end
 
         default_shard
       end
- See on GitHub + 🔎 See on GitHub
@@ -545,14 +545,14 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/core.rb, line 46
       class_attribute :destroy_association_async_batch_size, instance_writer: false, instance_predicate: false, default: nil
 
- See on GitHub + 🔎 See on GitHub
@@ -579,7 +579,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/core.rb, line 26
@@ -588,11 +588,11 @@ 

self._destroy_association_async_job = _destroy_association_async_job.constantize end _destroy_association_async_job - rescue NameError => error - raise NameError, "Unable to load destroy_association_async_job: #{error.message}" + rescue NameError => error + raise NameError, "Unable to load destroy_association_async_job: #{error.message}" end

- See on GitHub + 🔎 See on GitHub
@@ -619,14 +619,14 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/core.rb, line 86
       class_attribute :enumerate_columns_in_select_statements, instance_accessor: false, default: false
 
- See on GitHub + 🔎 See on GitHub
@@ -653,14 +653,14 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/core.rb, line 21
       class_attribute :logger, instance_writer: false
 
- See on GitHub + 🔎 See on GitHub
@@ -693,7 +693,7 @@

Example

- Source code + 📝 Source code
# File activerecord/lib/active_record/core.rb, line 424
@@ -710,7 +710,7 @@ 

Example

_run_initialize_callbacks end
- See on GitHub + 🔎 See on GitHub
@@ -741,19 +741,19 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/core.rb, line 582
-    def <=>(other_object)
+    def <=>(other_object)
       if other_object.is_a?(self.class)
-        to_key <=> other_object.to_key
+        to_key <=> other_object.to_key
       else
         super
       end
     end
- See on GitHub + 🔎 See on GitHub
@@ -788,18 +788,18 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/core.rb, line 548
     def ==(comparison_object)
       super ||
-        comparison_object.instance_of?(self.class) &&
-        primary_key_values_present? &&
+        comparison_object.instance_of?(self.class) &&
+        primary_key_values_present? &&
         comparison_object.id == id
     end
- See on GitHub + 🔎 See on GitHub
@@ -836,7 +836,7 @@

- See on GitHub + 🔎 See on GitHub @@ -861,7 +861,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/core.rb, line 658
@@ -869,7 +869,7 @@ 

self.class.connection_handler end

- See on GitHub + 🔎 See on GitHub
@@ -894,7 +894,7 @@

- See on GitHub + 🔎 See on GitHub @@ -928,17 +928,17 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/core.rb, line 533
     def encode_with(coder)
       self.class.yaml_encoder.encode(@attributes, coder)
-      coder["new_record"] = new_record?
-      coder["active_record_yaml_version"] = 2
+      coder["new_record"] = new_record?
+      coder["active_record_yaml_version"] = 2
     end
- See on GitHub + 🔎 See on GitHub
@@ -990,7 +990,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/core.rb, line 571
@@ -999,7 +999,7 @@ 

self end

- See on GitHub + 🔎 See on GitHub
@@ -1026,7 +1026,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/core.rb, line 577
@@ -1034,7 +1034,7 @@ 

@attributes.frozen? end

- See on GitHub + 🔎 See on GitHub
@@ -1064,7 +1064,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/core.rb, line 558
@@ -1078,7 +1078,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -1117,17 +1117,17 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/core.rb, line 451
-    def init_with(coder, &block)
+    def init_with(coder, &block)
       coder = LegacyYamlAdapter.convert(coder)
       attributes = self.class.yaml_encoder.decode(coder)
-      init_with_attributes(attributes, coder["new_record"], &block)
+      init_with_attributes(attributes, coder["new_record"], &block)
     end
- See on GitHub + 🔎 See on GitHub
@@ -1154,27 +1154,27 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/core.rb, line 663
     def inspect
       # We check defined?(@attributes) not to issue warnings if the object is
       # allocated but not initialized.
-      inspection = if defined?(@attributes) && @attributes
+      inspection = if defined?(@attributes) && @attributes
         attribute_names.filter_map do |name|
           if _has_attribute?(name)
-            "#{name}: #{attribute_for_inspect(name)}"
+            "#{name}: #{attribute_for_inspect(name)}"
           end
-        end.join(", ")
+        end.join(", ")
       else
-        "not initialized"
+        "not initialized"
       end
 
-      "#<#{self.class} #{inspection}>"
+      "#<#{self.class} #{inspection}>"
     end
- See on GitHub + 🔎 See on GitHub
@@ -1201,20 +1201,20 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/core.rb, line 681
     def pretty_print(pp)
       return super if custom_inspect_method_defined?
       pp.object_address_group(self) do
-        if defined?(@attributes) && @attributes
+        if defined?(@attributes) && @attributes
           attr_names = self.class.attribute_names.select { |name| _has_attribute?(name) }
-          pp.seplist(attr_names, proc { pp.text "," }) do |attr_name|
-            pp.breakable " "
+          pp.seplist(attr_names, proc { pp.text "," }) do |attr_name|
+            pp.breakable " "
             pp.group(1) do
               pp.text attr_name
-              pp.text ":"
+              pp.text ":"
               pp.breakable
               value = _read_attribute(attr_name)
               value = inspection_filter.filter_param(attr_name, value) unless value.nil?
@@ -1222,13 +1222,13 @@ 

end end else - pp.breakable " " - pp.text "not initialized" + pp.breakable " " + pp.text "not initialized" end end end

- See on GitHub + 🔎 See on GitHub
@@ -1255,7 +1255,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/core.rb, line 654
@@ -1263,7 +1263,7 @@ 

@readonly = true end

- See on GitHub + 🔎 See on GitHub
@@ -1290,7 +1290,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/core.rb, line 599
@@ -1298,7 +1298,7 @@ 

@readonly end

- See on GitHub + 🔎 See on GitHub
@@ -1354,20 +1354,20 @@

Examples

- Source code + 📝 Source code
# File activerecord/lib/active_record/core.rb, line 637
     def strict_loading!(value = true, mode: :all)
       unless [:all, :n_plus_one_only].include?(mode)
-        raise ArgumentError, "The :mode option must be one of [:all, :n_plus_one_only] but #{mode.inspect} was provided."
+        raise ArgumentError, "The :mode option must be one of [:all, :n_plus_one_only] but #{mode.inspect} was provided."
       end
 
       @strict_loading_mode = mode
       @strict_loading = value
     end
- See on GitHub + 🔎 See on GitHub
@@ -1394,7 +1394,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/core.rb, line 604
@@ -1402,7 +1402,7 @@ 

@strict_loading end

- See on GitHub + 🔎 See on GitHub
@@ -1429,7 +1429,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/core.rb, line 649
@@ -1437,7 +1437,7 @@ 

@strict_loading_mode == :n_plus_one_only end

- See on GitHub + 🔎 See on GitHub
@@ -1463,7 +1463,7 @@

- See on GitHub + 🔎 See on GitHub diff --git a/src/classes/ActiveRecord/Core/ClassMethods.html b/src/classes/ActiveRecord/Core/ClassMethods.html index 49cd8a997e..d3d14ddd91 100644 --- a/src/classes/ActiveRecord/Core/ClassMethods.html +++ b/src/classes/ActiveRecord/Core/ClassMethods.html @@ -82,7 +82,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/core.rb, line 306
@@ -94,7 +94,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -121,7 +121,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/core.rb, line 315
@@ -130,7 +130,7 @@ 

@filter_attributes = filter_attributes end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/Core/InspectionMask.html b/src/classes/ActiveRecord/Core/InspectionMask.html index 2aa4333c98..73e56bce7a 100644 --- a/src/classes/ActiveRecord/Core/InspectionMask.html +++ b/src/classes/ActiveRecord/Core/InspectionMask.html @@ -84,7 +84,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/core.rb, line 764
@@ -92,7 +92,7 @@ 

pp.text __getobj__ end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/CounterCache/ClassMethods.html b/src/classes/ActiveRecord/CounterCache/ClassMethods.html index 5c9c39b11c..6e7bb76e31 100644 --- a/src/classes/ActiveRecord/CounterCache/ClassMethods.html +++ b/src/classes/ActiveRecord/CounterCache/ClassMethods.html @@ -117,15 +117,15 @@

Examples

- Source code + 📝 Source code
# File activerecord/lib/active_record/counter_cache.rb, line 176
       def decrement_counter(counter_name, id, by: 1, touch: nil)
-        update_counters(id, counter_name => -by, touch: touch)
+        update_counters(id, counter_name => -by, touch: touch)
       end
- See on GitHub + 🔎 See on GitHub
@@ -179,15 +179,15 @@

Examples

- Source code + 📝 Source code
# File activerecord/lib/active_record/counter_cache.rb, line 146
       def increment_counter(counter_name, id, by: 1, touch: nil)
-        update_counters(id, counter_name => by, touch: touch)
+        update_counters(id, counter_name => by, touch: touch)
       end
- See on GitHub + 🔎 See on GitHub
@@ -233,7 +233,7 @@

Examples

- Source code + 📝 Source code
# File activerecord/lib/active_record/counter_cache.rb, line 33
@@ -245,10 +245,10 @@ 

Examples

has_many_association = _reflect_on_association(counter_association) unless has_many_association has_many = reflect_on_all_associations(:has_many) - has_many_association = has_many.find { |association| association.counter_cache_column && association.counter_cache_column.to_sym == counter_association.to_sym } + has_many_association = has_many.find { |association| association.counter_cache_column && association.counter_cache_column.to_sym == counter_association.to_sym } counter_association = has_many_association.plural_name if has_many_association end - raise ArgumentError, "'#{name}' has no association called '#{counter_association}'" unless has_many_association + raise ArgumentError, "'#{name}' has no association called '#{counter_association}'" unless has_many_association if has_many_association.is_a? ActiveRecord::Reflection::ThroughReflection has_many_association = has_many_association.through_reflection @@ -256,7 +256,7 @@

Examples

foreign_key = has_many_association.foreign_key.to_s child_class = has_many_association.klass - reflection = child_class._reflections.values.find { |e| e.belongs_to? && e.foreign_key.to_s == foreign_key && e.options[:counter_cache].present? } + reflection = child_class._reflections.values.find { |e| e.belongs_to? && e.foreign_key.to_s == foreign_key && e.options[:counter_cache].present? } counter_name = reflection.counter_cache_column count_was = object.send(counter_name) @@ -272,12 +272,12 @@

Examples

updates.merge!(touch_updates) end - unscoped.where(primary_key => object.id).update_all(updates) if updates.any? + unscoped.where(primary_key => object.id).update_all(updates) if updates.any? true end
- See on GitHub + 🔎 See on GitHub
@@ -341,15 +341,15 @@

Examples

- Source code + 📝 Source code
# File activerecord/lib/active_record/counter_cache.rb, line 114
       def update_counters(id, counters)
-        unscoped.where!(primary_key => id).update_counters(counters)
+        unscoped.where!(primary_key => id).update_counters(counters)
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/DatabaseConfigurations.html b/src/classes/ActiveRecord/DatabaseConfigurations.html index 86228ba847..ea407f0cf1 100644 --- a/src/classes/ActiveRecord/DatabaseConfigurations.html +++ b/src/classes/ActiveRecord/DatabaseConfigurations.html @@ -154,7 +154,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/database_configurations.rb, line 73
@@ -162,7 +162,7 @@ 

@configurations = build_configs(configurations) end

- See on GitHub + 🔎 See on GitHub
@@ -208,15 +208,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/database_configurations.rb, line 61
-    def self.register_db_config_handler(&block)
-      db_config_handlers << block
+    def self.register_db_config_handler(&block)
+      db_config_handlers << block
     end
- See on GitHub + 🔎 See on GitHub
@@ -285,7 +285,7 @@

Options

- Source code + 📝 Source code
# File activerecord/lib/active_record/database_configurations.rb, line 98
@@ -314,7 +314,7 @@ 

Options

end end
- See on GitHub + 🔎 See on GitHub
@@ -345,7 +345,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/database_configurations.rb, line 150
@@ -353,7 +353,7 @@ 

configurations.empty? end

- See on GitHub + 🔎 See on GitHub
@@ -382,20 +382,20 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/database_configurations.rb, line 127
     def find_db_config(env)
       env = env.to_s
       configurations.find do |db_config|
-        db_config.for_current_env? && (db_config.env_name == env || db_config.name == env)
+        db_config.for_current_env? && (db_config.env_name == env || db_config.name == env)
       end || configurations.find do |db_config|
         db_config.env_name == env
       end
     end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/DatabaseConfigurations/HashConfig.html b/src/classes/ActiveRecord/DatabaseConfigurations/HashConfig.html index eefa9f8046..7ca8f43ab5 100644 --- a/src/classes/ActiveRecord/DatabaseConfigurations/HashConfig.html +++ b/src/classes/ActiveRecord/DatabaseConfigurations/HashConfig.html @@ -195,7 +195,7 @@

Options

- Source code + 📝 Source code
# File activerecord/lib/active_record/database_configurations/hash_config.rb, line 36
@@ -204,7 +204,7 @@ 

Options

@configuration_hash = configuration_hash.symbolize_keys.freeze end
- See on GitHub + 🔎 See on GitHub
@@ -235,7 +235,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/database_configurations/hash_config.rb, line 106
@@ -243,7 +243,7 @@ 

configuration_hash[:adapter] end

- See on GitHub + 🔎 See on GitHub
@@ -270,7 +270,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/database_configurations/hash_config.rb, line 91
@@ -278,7 +278,7 @@ 

(configuration_hash[:checkout_timeout] || 5).to_f end

- See on GitHub + 🔎 See on GitHub
@@ -305,7 +305,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/database_configurations/hash_config.rb, line 63
@@ -313,7 +313,7 @@ 

configuration_hash[:database] end

- See on GitHub + 🔎 See on GitHub
@@ -340,15 +340,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/database_configurations/hash_config.rb, line 117
       def default_schema_cache_path
-        "db/schema_cache.yml"
+        "db/schema_cache.yml"
       end
- See on GitHub + 🔎 See on GitHub
@@ -375,7 +375,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/database_configurations/hash_config.rb, line 55
@@ -383,7 +383,7 @@ 

configuration_hash[:host] end

- See on GitHub + 🔎 See on GitHub
@@ -410,16 +410,16 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/database_configurations/hash_config.rb, line 101
       def idle_timeout
         timeout = configuration_hash.fetch(:idle_timeout, 300).to_f
-        timeout if timeout > 0
+        timeout if timeout > 0
       end
- See on GitHub + 🔎 See on GitHub
@@ -446,7 +446,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/database_configurations/hash_config.rb, line 121
@@ -454,7 +454,7 @@ 

schema_cache_path || default_schema_cache_path end

- See on GitHub + 🔎 See on GitHub
@@ -481,7 +481,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/database_configurations/hash_config.rb, line 87
@@ -489,7 +489,7 @@ 

max_threads * 4 end

- See on GitHub + 🔎 See on GitHub
@@ -516,7 +516,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/database_configurations/hash_config.rb, line 79
@@ -524,7 +524,7 @@ 

(configuration_hash[:max_threads] || pool).to_i end

- See on GitHub + 🔎 See on GitHub
@@ -551,7 +551,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/database_configurations/hash_config.rb, line 51
@@ -559,7 +559,7 @@ 

configuration_hash[:migrations_paths] end

- See on GitHub + 🔎 See on GitHub
@@ -586,7 +586,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/database_configurations/hash_config.rb, line 75
@@ -594,7 +594,7 @@ 

(configuration_hash[:min_threads] || 0).to_i end

- See on GitHub + 🔎 See on GitHub
@@ -621,7 +621,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/database_configurations/hash_config.rb, line 71
@@ -629,7 +629,7 @@ 

(configuration_hash[:pool] || 5).to_i end

- See on GitHub + 🔎 See on GitHub
@@ -656,7 +656,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/database_configurations/hash_config.rb, line 83
@@ -664,7 +664,7 @@ 

configuration_hash[:query_cache] end

- See on GitHub + 🔎 See on GitHub
@@ -691,15 +691,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/database_configurations/hash_config.rb, line 97
       def reaping_frequency
-        configuration_hash.fetch(:reaping_frequency, 60)&.to_f
+        configuration_hash.fetch(:reaping_frequency, 60)&.to_f
       end
- See on GitHub + 🔎 See on GitHub
@@ -726,7 +726,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/database_configurations/hash_config.rb, line 44
@@ -734,7 +734,7 @@ 

configuration_hash[:replica] end

- See on GitHub + 🔎 See on GitHub
@@ -761,7 +761,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/database_configurations/hash_config.rb, line 113
@@ -769,7 +769,7 @@ 

configuration_hash[:schema_cache_path] end

- See on GitHub + 🔎 See on GitHub
@@ -800,7 +800,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/database_configurations/hash_config.rb, line 137
@@ -812,11 +812,11 @@ 

elsif primary? schema_file_type(format) else - "#{name}_#{schema_file_type(format)}" + "#{name}_#{schema_file_type(format)}" end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/DatabaseConfigurations/UrlConfig.html b/src/classes/ActiveRecord/DatabaseConfigurations/UrlConfig.html index 3c0a1a1b92..564a10e7ac 100644 --- a/src/classes/ActiveRecord/DatabaseConfigurations/UrlConfig.html +++ b/src/classes/ActiveRecord/DatabaseConfigurations/UrlConfig.html @@ -131,7 +131,7 @@

Options

- Source code + 📝 Source code
# File activerecord/lib/active_record/database_configurations/url_config.rb, line 40
@@ -142,7 +142,7 @@ 

Options

@configuration_hash = @configuration_hash.merge(build_url_hash).freeze end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/DatabaseConnectionError.html b/src/classes/ActiveRecord/DatabaseConnectionError.html index 42a1ce5790..1c12d76e93 100644 --- a/src/classes/ActiveRecord/DatabaseConnectionError.html +++ b/src/classes/ActiveRecord/DatabaseConnectionError.html @@ -97,18 +97,18 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/errors.rb, line 99
       def hostname_error(hostname)
-        DatabaseConnectionError.new(<<~MSG)
+        DatabaseConnectionError.new(<<~MSG)
           There is an issue connecting with your hostname: #{hostname}.\n
           Please check your database configuration and ensure there is a valid connection to your database.
         MSG
       end
- See on GitHub + 🔎 See on GitHub
@@ -135,15 +135,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/errors.rb, line 94
     def initialize(message = nil)
-      super(message || "Database connection error")
+      super(message || "Database connection error")
     end
- See on GitHub + 🔎 See on GitHub
@@ -170,18 +170,18 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/errors.rb, line 106
       def username_error(username)
-        DatabaseConnectionError.new(<<~MSG)
+        DatabaseConnectionError.new(<<~MSG)
           There is an issue connecting to your database with your username/password, username: #{username}.\n
           Please check your database configuration to ensure the username/password are valid.
         MSG
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/DelegatedType.html b/src/classes/ActiveRecord/DelegatedType.html index 39c63ef3fb..4018754942 100644 --- a/src/classes/ActiveRecord/DelegatedType.html +++ b/src/classes/ActiveRecord/DelegatedType.html @@ -267,7 +267,7 @@

Options

- Source code + 📝 Source code
# File activerecord/lib/active_record/delegated_type.rb, line 211
@@ -276,7 +276,7 @@ 

Options

define_delegated_type_methods role, types: types, options: options end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/DestroyAssociationAsyncJob.html b/src/classes/ActiveRecord/DestroyAssociationAsyncJob.html index 26586a4817..a13c45ad5f 100644 --- a/src/classes/ActiveRecord/DestroyAssociationAsyncJob.html +++ b/src/classes/ActiveRecord/DestroyAssociationAsyncJob.html @@ -92,7 +92,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/destroy_association_async_job.rb, line 15
@@ -103,18 +103,18 @@ 

) association_model = association_class.constantize owner_class = owner_model_name.constantize - owner = owner_class.find_by(owner_class.primary_key.to_sym => owner_id) + owner = owner_class.find_by(owner_class.primary_key.to_sym => owner_id) if !owner_destroyed?(owner, ensuring_owner_was_method) - raise DestroyAssociationAsyncError, "owner record not destroyed" + raise DestroyAssociationAsyncError, "owner record not destroyed" end - association_model.where(association_primary_key_column => association_ids).find_each do |r| + association_model.where(association_primary_key_column => association_ids).find_each do |r| r.destroy end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/DynamicMatchers/FindBy.html b/src/classes/ActiveRecord/DynamicMatchers/FindBy.html index a7d23e7bd0..02d9f4f2ea 100644 --- a/src/classes/ActiveRecord/DynamicMatchers/FindBy.html +++ b/src/classes/ActiveRecord/DynamicMatchers/FindBy.html @@ -87,15 +87,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/dynamic_matchers.rb, line 96
         def self.prefix
-          "find_by"
+          "find_by"
         end
- See on GitHub + 🔎 See on GitHub
@@ -126,15 +126,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/dynamic_matchers.rb, line 100
         def finder
-          "find_by"
+          "find_by"
         end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/DynamicMatchers/FindByBang.html b/src/classes/ActiveRecord/DynamicMatchers/FindByBang.html index d031ab3298..f2b503777c 100644 --- a/src/classes/ActiveRecord/DynamicMatchers/FindByBang.html +++ b/src/classes/ActiveRecord/DynamicMatchers/FindByBang.html @@ -91,15 +91,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/dynamic_matchers.rb, line 108
         def self.prefix
-          "find_by"
+          "find_by"
         end
- See on GitHub + 🔎 See on GitHub
@@ -126,15 +126,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/dynamic_matchers.rb, line 112
         def self.suffix
-          "!"
+          "!"
         end
- See on GitHub + 🔎 See on GitHub
@@ -165,15 +165,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/dynamic_matchers.rb, line 116
         def finder
-          "find_by!"
+          "find_by!"
         end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/DynamicMatchers/Method.html b/src/classes/ActiveRecord/DynamicMatchers/Method.html index d14e29c6a5..0ef19eed93 100644 --- a/src/classes/ActiveRecord/DynamicMatchers/Method.html +++ b/src/classes/ActiveRecord/DynamicMatchers/Method.html @@ -145,7 +145,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/dynamic_matchers.rb, line 32
@@ -154,7 +154,7 @@ 

klass.new(model, name) if klass end

- See on GitHub + 🔎 See on GitHub
@@ -181,18 +181,18 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/dynamic_matchers.rb, line 52
         def initialize(model, method_name)
           @model           = model
           @name            = method_name.to_s
-          @attribute_names = @name.match(self.class.pattern)[1].split("_and_")
+          @attribute_names = @name.match(self.class.pattern)[1].split("_and_")
           @attribute_names.map! { |name| @model.attribute_aliases[name] || name }
         end
- See on GitHub + 🔎 See on GitHub
@@ -219,7 +219,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/dynamic_matchers.rb, line 37
@@ -227,7 +227,7 @@ 

@pattern ||= /\A#{prefix}_([_a-zA-Z]\w*)#{suffix}\Z/ end

- See on GitHub + 🔎 See on GitHub
@@ -254,7 +254,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/dynamic_matchers.rb, line 41
@@ -262,7 +262,7 @@ 

raise NotImplementedError end

- See on GitHub + 🔎 See on GitHub
@@ -289,15 +289,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/dynamic_matchers.rb, line 45
           def suffix
-            ""
+            ""
           end
- See on GitHub + 🔎 See on GitHub
@@ -328,19 +328,19 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/dynamic_matchers.rb, line 63
         def define
-          model.class_eval <<-CODE, __FILE__, __LINE__ + 1
+          model.class_eval <<-CODE, __FILE__, __LINE__ + 1
             def self.#{name}(#{signature})
               #{body}
             end
           CODE
         end
- See on GitHub + 🔎 See on GitHub
@@ -367,7 +367,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/dynamic_matchers.rb, line 59
@@ -375,7 +375,7 @@ 

attribute_names.all? { |name| model.columns_hash[name] || model.reflect_on_aggregation(name.to_sym) } end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/EagerLoadPolymorphicError.html b/src/classes/ActiveRecord/EagerLoadPolymorphicError.html index e60f340da2..d7f8e3c5f6 100644 --- a/src/classes/ActiveRecord/EagerLoadPolymorphicError.html +++ b/src/classes/ActiveRecord/EagerLoadPolymorphicError.html @@ -89,19 +89,19 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/associations.rb, line 244
     def initialize(reflection = nil)
       if reflection
-        super("Cannot eagerly load the polymorphic association #{reflection.name.inspect}")
+        super("Cannot eagerly load the polymorphic association #{reflection.name.inspect}")
       else
-        super("Eager load polymorphic error.")
+        super("Eager load polymorphic error.")
       end
     end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/Encryption.html b/src/classes/ActiveRecord/Encryption.html index 8eb9860a97..3bcd8515b3 100644 --- a/src/classes/ActiveRecord/Encryption.html +++ b/src/classes/ActiveRecord/Encryption.html @@ -223,7 +223,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/encryption.rb, line 50
@@ -233,7 +233,7 @@ 

Cipher.eager_load! end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/Encryption/AutoFilteredParameters.html b/src/classes/ActiveRecord/Encryption/AutoFilteredParameters.html index 3120628541..bdde833412 100644 --- a/src/classes/ActiveRecord/Encryption/AutoFilteredParameters.html +++ b/src/classes/ActiveRecord/Encryption/AutoFilteredParameters.html @@ -87,7 +87,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/encryption/auto_filtered_parameters.rb, line 6
@@ -99,7 +99,7 @@ 

install_collecting_hook end

- See on GitHub + 🔎 See on GitHub
@@ -130,7 +130,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/encryption/auto_filtered_parameters.rb, line 14
@@ -139,7 +139,7 @@ 

@collecting = false end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/Encryption/Cipher.html b/src/classes/ActiveRecord/Encryption/Cipher.html index a91881f456..bf8908370c 100644 --- a/src/classes/ActiveRecord/Encryption/Cipher.html +++ b/src/classes/ActiveRecord/Encryption/Cipher.html @@ -104,11 +104,6 @@

Constants

Encoding::UTF_8 - -   - - - @@ -143,7 +138,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/encryption/cipher.rb, line 25
@@ -153,7 +148,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -180,7 +175,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/encryption/cipher.rb, line 15
@@ -190,7 +185,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -217,7 +212,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/encryption/cipher.rb, line 35
@@ -225,7 +220,7 @@ 

Aes256Gcm.iv_length end

- See on GitHub + 🔎 See on GitHub
@@ -252,7 +247,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/encryption/cipher.rb, line 31
@@ -260,7 +255,7 @@ 

Aes256Gcm.key_length end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/Encryption/Cipher/Aes256Gcm.html b/src/classes/ActiveRecord/Encryption/Cipher/Aes256Gcm.html index cc325d0168..3eefd4e8a2 100644 --- a/src/classes/ActiveRecord/Encryption/Cipher/Aes256Gcm.html +++ b/src/classes/ActiveRecord/Encryption/Cipher/Aes256Gcm.html @@ -91,11 +91,6 @@

Constants

"aes-256-gcm" - -   - - - @@ -127,7 +122,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/encryption/cipher/aes256_gcm.rb, line 22
@@ -135,7 +130,7 @@ 

OpenSSL::Cipher.new(CIPHER_TYPE).iv_len end

- See on GitHub + 🔎 See on GitHub
@@ -162,7 +157,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/encryption/cipher/aes256_gcm.rb, line 18
@@ -170,7 +165,7 @@ 

OpenSSL::Cipher.new(CIPHER_TYPE).key_len end

- See on GitHub + 🔎 See on GitHub
@@ -197,7 +192,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/encryption/cipher/aes256_gcm.rb, line 29
@@ -206,7 +201,7 @@ 

@deterministic = deterministic end

- See on GitHub + 🔎 See on GitHub
@@ -237,7 +232,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/encryption/cipher/aes256_gcm.rb, line 55
@@ -258,17 +253,17 @@ 

cipher.iv = iv cipher.auth_tag = auth_tag - cipher.auth_data = "" + cipher.auth_data = "" decrypted_data = encrypted_data.empty? ? encrypted_data : cipher.update(encrypted_data) - decrypted_data << cipher.final + decrypted_data << cipher.final decrypted_data rescue OpenSSL::Cipher::CipherError, TypeError, ArgumentError raise ActiveRecord::Encryption::Errors::Decryption end

- See on GitHub + 🔎 See on GitHub
@@ -295,7 +290,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/encryption/cipher/aes256_gcm.rb, line 34
@@ -312,7 +307,7 @@ 

cipher.iv = iv encrypted_data = clear_text.empty? ? clear_text.dup : cipher.update(clear_text) - encrypted_data << cipher.final + encrypted_data << cipher.final ActiveRecord::Encryption::Message.new(payload: encrypted_data).tap do |message| message.headers.iv = iv @@ -320,7 +315,7 @@

end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/Encryption/Config.html b/src/classes/ActiveRecord/Encryption/Config.html index ab91295cad..845efd4802 100644 --- a/src/classes/ActiveRecord/Encryption/Config.html +++ b/src/classes/ActiveRecord/Encryption/Config.html @@ -207,7 +207,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/encryption/config.rb, line 13
@@ -215,7 +215,7 @@ 

set_defaults end

- See on GitHub + 🔎 See on GitHub
@@ -249,7 +249,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/encryption/config.rb, line 20
@@ -259,7 +259,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -286,19 +286,19 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/encryption/config.rb, line 26
       def support_sha1_for_non_deterministic_encryption=(value)
-        if value && has_primary_key?
+        if value && has_primary_key?
           sha1_key_generator = ActiveRecord::Encryption::KeyGenerator.new(hash_digest_class: OpenSSL::Digest::SHA1)
           sha1_key_provider = ActiveRecord::Encryption::DerivedSecretKeyProvider.new(primary_key, key_generator: sha1_key_generator)
           add_previous_scheme key_provider: sha1_key_provider
         end
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/Encryption/Configurable.html b/src/classes/ActiveRecord/Encryption/Configurable.html index 920fbda3c3..36785866a5 100644 --- a/src/classes/ActiveRecord/Encryption/Configurable.html +++ b/src/classes/ActiveRecord/Encryption/Configurable.html @@ -91,16 +91,16 @@

Example

- Source code + 📝 Source code
# File activerecord/lib/active_record/encryption/configurable.rb, line 47
-        def on_encrypted_attribute_declared(&block)
+        def on_encrypted_attribute_declared(&block)
           self.encrypted_attribute_declaration_listeners ||= Concurrent::Array.new
-          self.encrypted_attribute_declaration_listeners << block
+          self.encrypted_attribute_declaration_listeners << block
         end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/Encryption/Context.html b/src/classes/ActiveRecord/Encryption/Context.html index 27bbe9b094..bff57909da 100644 --- a/src/classes/ActiveRecord/Encryption/Context.html +++ b/src/classes/ActiveRecord/Encryption/Context.html @@ -86,11 +86,6 @@

Constants

%i[ key_provider key_generator cipher message_serializer encryptor frozen_encryption ] - -   - - - @@ -122,7 +117,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/encryption/context.rb, line 17
@@ -130,7 +125,7 @@ 

set_defaults end

- See on GitHub + 🔎 See on GitHub
@@ -161,7 +156,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/encryption/context.rb, line 24
@@ -169,7 +164,7 @@ 

@key_provider ||= build_default_key_provider end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/Encryption/Contexts.html b/src/classes/ActiveRecord/Encryption/Contexts.html index 8843009abe..de83dcdcef 100644 --- a/src/classes/ActiveRecord/Encryption/Contexts.html +++ b/src/classes/ActiveRecord/Encryption/Contexts.html @@ -108,7 +108,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/encryption/contexts.rb, line 62
@@ -116,7 +116,7 @@ 

self.current_custom_context || self.default_context end

- See on GitHub + 🔎 See on GitHub
@@ -143,15 +143,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/encryption/contexts.rb, line 66
         def current_custom_context
-          self.custom_contexts&.last
+          self.custom_contexts&.last
         end
- See on GitHub + 🔎 See on GitHub
@@ -183,15 +183,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/encryption/contexts.rb, line 57
-        def protecting_encrypted_data(&block)
-          with_encryption_context encryptor: ActiveRecord::Encryption::EncryptingOnlyEncryptor.new, frozen_encryption: true, &block
+        def protecting_encrypted_data(&block)
+          with_encryption_context encryptor: ActiveRecord::Encryption::EncryptingOnlyEncryptor.new, frozen_encryption: true, &block
         end
- See on GitHub + 🔎 See on GitHub
@@ -218,7 +218,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/encryption/contexts.rb, line 70
@@ -226,7 +226,7 @@ 

self.default_context = Context.new end

- See on GitHub + 🔎 See on GitHub
@@ -264,15 +264,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/encryption/contexts.rb, line 33
         def with_encryption_context(properties)
           self.custom_contexts ||= []
-          self.custom_contexts << default_context.dup
+          self.custom_contexts << default_context.dup
           properties.each do |key, value|
-            self.current_custom_context.send("#{key}=", value)
+            self.current_custom_context.send("#{key}=", value)
           end
 
           yield
@@ -280,7 +280,7 @@ 

self.custom_contexts.pop end

- See on GitHub + 🔎 See on GitHub
@@ -312,15 +312,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/encryption/contexts.rb, line 49
-        def without_encryption(&block)
-          with_encryption_context encryptor: ActiveRecord::Encryption::NullEncryptor.new, &block
+        def without_encryption(&block)
+          with_encryption_context encryptor: ActiveRecord::Encryption::NullEncryptor.new, &block
         end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/Encryption/DerivedSecretKeyProvider.html b/src/classes/ActiveRecord/Encryption/DerivedSecretKeyProvider.html index 09649ce861..189e8475ef 100644 --- a/src/classes/ActiveRecord/Encryption/DerivedSecretKeyProvider.html +++ b/src/classes/ActiveRecord/Encryption/DerivedSecretKeyProvider.html @@ -89,7 +89,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/encryption/derived_secret_key_provider.rb, line 7
@@ -97,7 +97,7 @@ 

super(Array(passwords).collect { |password| derive_key_from(password, using: key_generator) }) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/Encryption/DeterministicKeyProvider.html b/src/classes/ActiveRecord/Encryption/DeterministicKeyProvider.html index eae0ef0d10..b180408d42 100644 --- a/src/classes/ActiveRecord/Encryption/DeterministicKeyProvider.html +++ b/src/classes/ActiveRecord/Encryption/DeterministicKeyProvider.html @@ -89,17 +89,17 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/encryption/deterministic_key_provider.rb, line 7
       def initialize(password)
         passwords = Array(password)
-        raise ActiveRecord::Encryption::Errors::Configuration, "Deterministic encryption keys can't be rotated" if passwords.length > 1
+        raise ActiveRecord::Encryption::Errors::Configuration, "Deterministic encryption keys can't be rotated" if passwords.length > 1
         super(passwords)
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/Encryption/EncryptableRecord.html b/src/classes/ActiveRecord/Encryption/EncryptableRecord.html index 7ae2dead41..e9c00e9e41 100644 --- a/src/classes/ActiveRecord/Encryption/EncryptableRecord.html +++ b/src/classes/ActiveRecord/Encryption/EncryptableRecord.html @@ -121,11 +121,6 @@

Constants

"original_" - -   - - - @@ -158,17 +153,17 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/encryption/encryptable_record.rb, line 132
           def add_length_validation_for_encrypted_columns
-            encrypted_attributes&.each do |attribute_name|
+            encrypted_attributes&.each do |attribute_name|
               validate_column_size attribute_name
             end
           end
- See on GitHub + 🔎 See on GitHub
@@ -195,7 +190,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/encryption/encryptable_record.rb, line 151
@@ -207,7 +202,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -234,7 +229,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/encryption/encryptable_record.rb, line 165
@@ -242,7 +237,7 @@ 

decrypt_attributes if has_encrypted_attributes? end

- See on GitHub + 🔎 See on GitHub
@@ -269,17 +264,17 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/encryption/encryptable_record.rb, line 58
         def deterministic_encrypted_attributes
-          @deterministic_encrypted_attributes ||= encrypted_attributes&.find_all do |attribute_name|
+          @deterministic_encrypted_attributes ||= encrypted_attributes&.find_all do |attribute_name|
             type_for_attribute(attribute_name).deterministic?
           end
         end
- See on GitHub + 🔎 See on GitHub
@@ -306,7 +301,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/encryption/encryptable_record.rb, line 160
@@ -314,7 +309,7 @@ 

encrypt_attributes if has_encrypted_attributes? end

- See on GitHub + 🔎 See on GitHub
@@ -341,25 +336,25 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/encryption/encryptable_record.rb, line 84
           def encrypt_attribute(name, key_provider: nil, key: nil, deterministic: false, support_unencrypted_data: nil, downcase: false, ignore_case: false, previous: [], **context_properties)
-            encrypted_attributes << name.to_sym
+            encrypted_attributes << name.to_sym
 
             attribute name do |cast_type|
               scheme = scheme_for key_provider: key_provider, key: key, deterministic: deterministic, support_unencrypted_data: support_unencrypted_data, \
                 downcase: downcase, ignore_case: ignore_case, previous: previous, **context_properties
 
-              ActiveRecord::Encryption::EncryptedAttributeType.new(scheme: scheme, cast_type: cast_type, default: columns_hash[name.to_s]&.default)
+              ActiveRecord::Encryption::EncryptedAttributeType.new(scheme: scheme, cast_type: cast_type, default: columns_hash[name.to_s]&.default)
             end
 
             preserve_original_encrypted(name) if ignore_case
             ActiveRecord::Encryption.encrypted_attribute_was_declared(self, name)
           end
- See on GitHub + 🔎 See on GitHub
@@ -386,7 +381,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/encryption/encryptable_record.rb, line 146
@@ -394,7 +389,7 @@ 

ActiveRecord::Encryption.encryptor.encrypted? read_attribute_before_type_cast(attribute_name) end

- See on GitHub + 🔎 See on GitHub
@@ -440,7 +435,7 @@

Options

- Source code + 📝 Source code
# File activerecord/lib/active_record/encryption/encryptable_record.rb, line 49
@@ -452,7 +447,7 @@ 

Options

end end
- See on GitHub + 🔎 See on GitHub
@@ -479,7 +474,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/encryption/encryptable_record.rb, line 78
@@ -489,7 +484,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -516,7 +511,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/encryption/encryptable_record.rb, line 126
@@ -526,7 +521,7 @@ 

add_length_validation_for_encrypted_columns if ActiveRecord::Encryption.config.validate_column_size end

- See on GitHub + 🔎 See on GitHub
@@ -553,28 +548,28 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/encryption/encryptable_record.rb, line 109
           def override_accessors_to_preserve_original(name, original_attribute_name)
             include(Module.new do
               define_method name do
-                if ((value = super()) && encrypted_attribute?(name)) || !ActiveRecord::Encryption.config.support_unencrypted_data
+                if ((value = super()) && encrypted_attribute?(name)) || !ActiveRecord::Encryption.config.support_unencrypted_data
                   send(original_attribute_name)
                 else
                   value
                 end
               end
 
-              define_method "#{name}=" do |value|
-                self.send "#{original_attribute_name}=", value
+              define_method "#{name}=" do |value|
+                self.send "#{original_attribute_name}=", value
                 super(value)
               end
             end)
           end
- See on GitHub + 🔎 See on GitHub
@@ -601,22 +596,22 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/encryption/encryptable_record.rb, line 98
           def preserve_original_encrypted(name)
-            original_attribute_name = "#{ORIGINAL_ATTRIBUTE_PREFIX}#{name}".to_sym
+            original_attribute_name = "#{ORIGINAL_ATTRIBUTE_PREFIX}#{name}".to_sym
 
-            if !ActiveRecord::Encryption.config.support_unencrypted_data && !column_names.include?(original_attribute_name.to_s)
-              raise Errors::Configuration, "To use :ignore_case for '#{name}' you must create an additional column named '#{original_attribute_name}'"
+            if !ActiveRecord::Encryption.config.support_unencrypted_data && !column_names.include?(original_attribute_name.to_s)
+              raise Errors::Configuration, "To use :ignore_case for '#{name}' you must create an additional column named '#{original_attribute_name}'"
             end
 
             encrypts original_attribute_name
             override_accessors_to_preserve_original name, original_attribute_name
           end
- See on GitHub + 🔎 See on GitHub
@@ -643,7 +638,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/encryption/encryptable_record.rb, line 70
@@ -655,7 +650,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -682,15 +677,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/encryption/encryptable_record.rb, line 65
         def source_attribute_from_preserved_attribute(attribute_name)
-          attribute_name.to_s.sub(ORIGINAL_ATTRIBUTE_PREFIX, "") if attribute_name.start_with?(ORIGINAL_ATTRIBUTE_PREFIX)
+          attribute_name.to_s.sub(ORIGINAL_ATTRIBUTE_PREFIX, "") if attribute_name.start_with?(ORIGINAL_ATTRIBUTE_PREFIX)
         end
- See on GitHub + 🔎 See on GitHub
@@ -717,17 +712,17 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/encryption/encryptable_record.rb, line 138
           def validate_column_size(attribute_name)
-            if limit = columns_hash[attribute_name.to_s]&.limit
+            if limit = columns_hash[attribute_name.to_s]&.limit
               validates_length_of attribute_name, maximum: limit
             end
           end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/Encryption/EncryptedAttributeType.html b/src/classes/ActiveRecord/Encryption/EncryptedAttributeType.html index 004f5d8a24..a2552d6381 100644 --- a/src/classes/ActiveRecord/Encryption/EncryptedAttributeType.html +++ b/src/classes/ActiveRecord/Encryption/EncryptedAttributeType.html @@ -152,7 +152,7 @@

Options

- Source code + 📝 Source code
# File activerecord/lib/active_record/encryption/encrypted_attribute_type.rb, line 23
@@ -164,7 +164,7 @@ 

Options

@default = default end
- See on GitHub + 🔎 See on GitHub
@@ -195,7 +195,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/encryption/encrypted_attribute_type.rb, line 31
@@ -203,7 +203,7 @@ 

cast_type.cast(value) end

- See on GitHub + 🔎 See on GitHub
@@ -230,7 +230,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/encryption/encrypted_attribute_type.rb, line 47
@@ -239,7 +239,7 @@ 

old_value != new_value end

- See on GitHub + 🔎 See on GitHub
@@ -266,7 +266,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/encryption/encrypted_attribute_type.rb, line 35
@@ -274,7 +274,7 @@ 

cast_type.deserialize decrypt(value) end

- See on GitHub + 🔎 See on GitHub
@@ -301,7 +301,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/encryption/encrypted_attribute_type.rb, line 39
@@ -313,7 +313,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -340,15 +340,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/encryption/encrypted_attribute_type.rb, line 57
       def support_unencrypted_data?
-        ActiveRecord::Encryption.config.support_unencrypted_data && scheme.support_unencrypted_data? && !previous_type?
+        ActiveRecord::Encryption.config.support_unencrypted_data && scheme.support_unencrypted_data? && !previous_type?
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/Encryption/EncryptedFixtures.html b/src/classes/ActiveRecord/Encryption/EncryptedFixtures.html index b22e083382..029b166336 100644 --- a/src/classes/ActiveRecord/Encryption/EncryptedFixtures.html +++ b/src/classes/ActiveRecord/Encryption/EncryptedFixtures.html @@ -77,7 +77,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/encryption/encrypted_fixtures.rb, line 6
@@ -88,7 +88,7 @@ 

super end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/Encryption/EncryptingOnlyEncryptor.html b/src/classes/ActiveRecord/Encryption/EncryptingOnlyEncryptor.html index 3b1231fc42..c0b45a3846 100644 --- a/src/classes/ActiveRecord/Encryption/EncryptingOnlyEncryptor.html +++ b/src/classes/ActiveRecord/Encryption/EncryptingOnlyEncryptor.html @@ -90,7 +90,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/encryption/encrypting_only_encryptor.rb, line 7
@@ -98,7 +98,7 @@ 

encrypted_text end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/Encryption/Encryptor.html b/src/classes/ActiveRecord/Encryption/Encryptor.html index 221d658741..99eff1649b 100644 --- a/src/classes/ActiveRecord/Encryption/Encryptor.html +++ b/src/classes/ActiveRecord/Encryption/Encryptor.html @@ -81,11 +81,6 @@

Constants

[OpenSSL::Cipher::CipherError, Errors::EncryptedContentIntegrity, Errors::Decryption] - -   - - - ENCODING_ERRORS @@ -93,11 +88,6 @@

Constants

[EncodingError, Errors::Encoding] - -   - - - THRESHOLD_TO_JUSTIFY_COMPRESSION @@ -105,11 +95,6 @@

Constants

140.bytes - -   - - - @@ -151,7 +136,7 @@

Options

- Source code + 📝 Source code
# File activerecord/lib/active_record/encryption/encryptor.rb, line 52
@@ -159,12 +144,12 @@ 

Options

message = deserialize_message(encrypted_text) keys = key_provider.decryption_keys(message) raise Errors::Decryption unless keys.present? - uncompress_if_needed(cipher.decrypt(message, key: keys.collect(&:secret), **cipher_options), message.headers.compressed) + uncompress_if_needed(cipher.decrypt(message, key: keys.collect(&:secret), **cipher_options), message.headers.compressed) rescue *(ENCODING_ERRORS + DECRYPT_ERRORS) raise Errors::Decryption end
- See on GitHub + 🔎 See on GitHub
@@ -211,7 +196,7 @@

Options

- Source code + 📝 Source code
# File activerecord/lib/active_record/encryption/encryptor.rb, line 34
@@ -222,7 +207,7 @@ 

Options

serialize_message build_encrypted_message(clear_text, key_provider: key_provider, cipher_options: cipher_options) end
- See on GitHub + 🔎 See on GitHub
@@ -249,7 +234,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/encryption/encryptor.rb, line 62
@@ -260,7 +245,7 @@ 

false end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/Encryption/EnvelopeEncryptionKeyProvider.html b/src/classes/ActiveRecord/Encryption/EnvelopeEncryptionKeyProvider.html index dec9c34ac3..ad00a86844 100644 --- a/src/classes/ActiveRecord/Encryption/EnvelopeEncryptionKeyProvider.html +++ b/src/classes/ActiveRecord/Encryption/EnvelopeEncryptionKeyProvider.html @@ -107,7 +107,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/encryption/envelope_encryption_key_provider.rb, line 31
@@ -115,7 +115,7 @@ 

@active_primary_key ||= primary_key_provider.encryption_key end

- See on GitHub + 🔎 See on GitHub
@@ -142,7 +142,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/encryption/envelope_encryption_key_provider.rb, line 26
@@ -151,7 +151,7 @@ 

secret ? [ActiveRecord::Encryption::Key.new(secret)] : [] end

- See on GitHub + 🔎 See on GitHub
@@ -178,7 +178,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/encryption/envelope_encryption_key_provider.rb, line 18
@@ -190,7 +190,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/Encryption/ExtendedDeterministicQueries.html b/src/classes/ActiveRecord/Encryption/ExtendedDeterministicQueries.html index 094cd2694c..0682b78d1b 100644 --- a/src/classes/ActiveRecord/Encryption/ExtendedDeterministicQueries.html +++ b/src/classes/ActiveRecord/Encryption/ExtendedDeterministicQueries.html @@ -128,21 +128,21 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/encryption/extended_deterministic_queries.rb, line 24
       def self.install_support
         # ActiveRecord::Base relies on ActiveRecord::Relation (ActiveRecord::QueryMethods) but it does
-        # some prepared statements caching. That's why we need to intercept +ActiveRecord::Base+ as soon
-        # as it's invoked (so that the proper prepared statement is cached).
+        # some prepared statements caching. That's why we need to intercept +ActiveRecord::Base+ as soon
+        # as it's invoked (so that the proper prepared statement is cached).
         ActiveRecord::Relation.prepend(RelationQueries)
         ActiveRecord::Base.include(CoreQueries)
         ActiveRecord::Encryption::EncryptedAttributeType.prepend(ExtendedEncryptableType)
         Arel::Nodes::HomogeneousIn.prepend(InWithAdditionalValues)
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/Encryption/ExtendedDeterministicQueries/AdditionalValue.html b/src/classes/ActiveRecord/Encryption/ExtendedDeterministicQueries/AdditionalValue.html index 39acacbd47..83477c8f22 100644 --- a/src/classes/ActiveRecord/Encryption/ExtendedDeterministicQueries/AdditionalValue.html +++ b/src/classes/ActiveRecord/Encryption/ExtendedDeterministicQueries/AdditionalValue.html @@ -105,7 +105,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/encryption/extended_deterministic_queries.rb, line 136
@@ -114,7 +114,7 @@ 

@value = process(value) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/Encryption/ExtendedDeterministicQueries/CoreQueries.html b/src/classes/ActiveRecord/Encryption/ExtendedDeterministicQueries/CoreQueries.html index 3732b66417..79c24bc891 100644 --- a/src/classes/ActiveRecord/Encryption/ExtendedDeterministicQueries/CoreQueries.html +++ b/src/classes/ActiveRecord/Encryption/ExtendedDeterministicQueries/CoreQueries.html @@ -78,7 +78,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/encryption/extended_deterministic_queries.rb, line 127
@@ -86,7 +86,7 @@ 

super(*EncryptedQuery.process_arguments(self, args, false)) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/Encryption/ExtendedDeterministicQueries/ExtendedEncryptableType.html b/src/classes/ActiveRecord/Encryption/ExtendedDeterministicQueries/ExtendedEncryptableType.html index 39fd2b6d46..39554e480b 100644 --- a/src/classes/ActiveRecord/Encryption/ExtendedDeterministicQueries/ExtendedEncryptableType.html +++ b/src/classes/ActiveRecord/Encryption/ExtendedDeterministicQueries/ExtendedEncryptableType.html @@ -78,7 +78,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/encryption/extended_deterministic_queries.rb, line 148
@@ -90,7 +90,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/Encryption/ExtendedDeterministicQueries/InWithAdditionalValues.html b/src/classes/ActiveRecord/Encryption/ExtendedDeterministicQueries/InWithAdditionalValues.html index fedb3c92d5..cc291e8819 100644 --- a/src/classes/ActiveRecord/Encryption/ExtendedDeterministicQueries/InWithAdditionalValues.html +++ b/src/classes/ActiveRecord/Encryption/ExtendedDeterministicQueries/InWithAdditionalValues.html @@ -82,7 +82,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/encryption/extended_deterministic_queries.rb, line 162
@@ -94,7 +94,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -121,15 +121,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/encryption/extended_deterministic_queries.rb, line 158
         def proc_for_binds
-          -> value { ActiveModel::Attribute.with_cast_value(attribute.name, value, encryption_aware_type_caster) }
+          -> value { ActiveModel::Attribute.with_cast_value(attribute.name, value, encryption_aware_type_caster) }
         end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/Encryption/ExtendedDeterministicQueries/RelationQueries.html b/src/classes/ActiveRecord/Encryption/ExtendedDeterministicQueries/RelationQueries.html index e4c10bf797..f9b0848e03 100644 --- a/src/classes/ActiveRecord/Encryption/ExtendedDeterministicQueries/RelationQueries.html +++ b/src/classes/ActiveRecord/Encryption/ExtendedDeterministicQueries/RelationQueries.html @@ -86,7 +86,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/encryption/extended_deterministic_queries.rb, line 101
@@ -94,7 +94,7 @@ 

super(*EncryptedQuery.process_arguments(self, args, true)) end

- See on GitHub + 🔎 See on GitHub
@@ -121,12 +121,12 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/encryption/extended_deterministic_queries.rb, line 105
         def scope_for_create
-          return super unless klass.deterministic_encrypted_attributes&.any?
+          return super unless klass.deterministic_encrypted_attributes&.any?
 
           scope_attributes = super
           wheres = where_values_hash
@@ -134,7 +134,7 @@ 

klass.deterministic_encrypted_attributes.each do |attribute_name| attribute_name = attribute_name.to_s values = wheres[attribute_name] - if values.is_a?(Array) && values[1..].all?(AdditionalValue) + if values.is_a?(Array) && values[1..].all?(AdditionalValue) scope_attributes[attribute_name] = values.first end end @@ -142,7 +142,7 @@

scope_attributes end

- See on GitHub + 🔎 See on GitHub
@@ -169,7 +169,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/encryption/extended_deterministic_queries.rb, line 97
@@ -177,7 +177,7 @@ 

super(*EncryptedQuery.process_arguments(self, args, true)) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/Encryption/ExtendedDeterministicUniquenessValidator.html b/src/classes/ActiveRecord/Encryption/ExtendedDeterministicUniquenessValidator.html index eb0ecee947..9c3d379d17 100644 --- a/src/classes/ActiveRecord/Encryption/ExtendedDeterministicUniquenessValidator.html +++ b/src/classes/ActiveRecord/Encryption/ExtendedDeterministicUniquenessValidator.html @@ -90,7 +90,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/encryption/extended_deterministic_uniqueness_validator.rb, line 6
@@ -98,7 +98,7 @@ 

ActiveRecord::Validations::UniquenessValidator.prepend(EncryptedUniquenessValidator) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/Encryption/ExtendedDeterministicUniquenessValidator/EncryptedUniquenessValidator.html b/src/classes/ActiveRecord/Encryption/ExtendedDeterministicUniquenessValidator/EncryptedUniquenessValidator.html index 51c6f440b0..f6ffabfb43 100644 --- a/src/classes/ActiveRecord/Encryption/ExtendedDeterministicUniquenessValidator/EncryptedUniquenessValidator.html +++ b/src/classes/ActiveRecord/Encryption/ExtendedDeterministicUniquenessValidator/EncryptedUniquenessValidator.html @@ -78,7 +78,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/encryption/extended_deterministic_uniqueness_validator.rb, line 11
@@ -86,7 +86,7 @@ 

super(record, attribute, value) klass = record.class - if klass.deterministic_encrypted_attributes&.include?(attribute) + if klass.deterministic_encrypted_attributes&.include?(attribute) encrypted_type = klass.type_for_attribute(attribute) encrypted_type.previous_types.each do |type| encrypted_value = type.serialize(value) @@ -97,7 +97,7 @@

end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/Encryption/Key.html b/src/classes/ActiveRecord/Encryption/Key.html index 140e21705e..0329c62027 100644 --- a/src/classes/ActiveRecord/Encryption/Key.html +++ b/src/classes/ActiveRecord/Encryption/Key.html @@ -121,7 +121,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/encryption/key.rb, line 18
@@ -130,7 +130,7 @@ 

ActiveRecord::Encryption::Key.new(secret) end

- See on GitHub + 🔎 See on GitHub
@@ -157,7 +157,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/encryption/key.rb, line 13
@@ -166,7 +166,7 @@ 

@public_tags = Properties.new end

- See on GitHub + 🔎 See on GitHub
@@ -197,7 +197,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/encryption/key.rb, line 23
@@ -205,7 +205,7 @@ 

Digest::SHA1.hexdigest(secret).first(4) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/Encryption/KeyGenerator.html b/src/classes/ActiveRecord/Encryption/KeyGenerator.html index 8fd5ccba8f..58dd7d4d39 100644 --- a/src/classes/ActiveRecord/Encryption/KeyGenerator.html +++ b/src/classes/ActiveRecord/Encryption/KeyGenerator.html @@ -115,7 +115,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/encryption/key_generator.rb, line 11
@@ -123,7 +123,7 @@ 

@hash_digest_class = hash_digest_class end

- See on GitHub + 🔎 See on GitHub
@@ -156,7 +156,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/encryption/key_generator.rb, line 38
@@ -165,7 +165,7 @@ 

.generate_key(key_derivation_salt, length) end

- See on GitHub + 🔎 See on GitHub
@@ -199,15 +199,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/encryption/key_generator.rb, line 30
       def generate_random_hex_key(length: key_length)
-        generate_random_key(length: length).unpack("H*")[0]
+        generate_random_key(length: length).unpack("H*")[0]
       end
- See on GitHub + 🔎 See on GitHub
@@ -234,7 +234,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/encryption/key_generator.rb, line 16
@@ -242,7 +242,7 @@ 

SecureRandom.random_bytes(length) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/Encryption/KeyProvider.html b/src/classes/ActiveRecord/Encryption/KeyProvider.html index fbd6e2e2e0..7103d935b4 100644 --- a/src/classes/ActiveRecord/Encryption/KeyProvider.html +++ b/src/classes/ActiveRecord/Encryption/KeyProvider.html @@ -102,7 +102,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/encryption/key_provider.rb, line 11
@@ -110,7 +110,7 @@ 

@keys = Array(keys) end

- See on GitHub + 🔎 See on GitHub
@@ -143,7 +143,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/encryption/key_provider.rb, line 32
@@ -155,7 +155,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -184,7 +184,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/encryption/key_provider.rb, line 20
@@ -196,7 +196,7 @@ 

@encryption_key end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/Encryption/Message.html b/src/classes/ActiveRecord/Encryption/Message.html index 2437cdf4aa..d87ecf7e5a 100644 --- a/src/classes/ActiveRecord/Encryption/Message.html +++ b/src/classes/ActiveRecord/Encryption/Message.html @@ -122,7 +122,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/encryption/message.rb, line 14
@@ -133,7 +133,7 @@ 

@headers = Properties.new(headers) end

- See on GitHub + 🔎 See on GitHub
@@ -164,15 +164,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/encryption/message.rb, line 21
       def ==(other_message)
-        payload == other_message.payload && headers == other_message.headers
+        payload == other_message.payload && headers == other_message.headers
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/Encryption/MessageSerializer.html b/src/classes/ActiveRecord/Encryption/MessageSerializer.html index 1da370dfc0..54cbf8fe2f 100644 --- a/src/classes/ActiveRecord/Encryption/MessageSerializer.html +++ b/src/classes/ActiveRecord/Encryption/MessageSerializer.html @@ -108,7 +108,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/encryption/message_serializer.rb, line 31
@@ -117,7 +117,7 @@ 

JSON.dump message_to_json(message) end

- See on GitHub + 🔎 See on GitHub
@@ -144,7 +144,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/encryption/message_serializer.rb, line 24
@@ -155,7 +155,7 @@ 

raise ActiveRecord::Encryption::Errors::Encoding end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/Encryption/NullEncryptor.html b/src/classes/ActiveRecord/Encryption/NullEncryptor.html index e5ba85dfe9..b3e7659101 100644 --- a/src/classes/ActiveRecord/Encryption/NullEncryptor.html +++ b/src/classes/ActiveRecord/Encryption/NullEncryptor.html @@ -98,7 +98,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/encryption/null_encryptor.rb, line 12
@@ -106,7 +106,7 @@ 

encrypted_text end

- See on GitHub + 🔎 See on GitHub
@@ -133,7 +133,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/encryption/null_encryptor.rb, line 8
@@ -141,7 +141,7 @@ 

clean_text end

- See on GitHub + 🔎 See on GitHub
@@ -168,7 +168,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/encryption/null_encryptor.rb, line 16
@@ -176,7 +176,7 @@ 

false end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/Encryption/Properties.html b/src/classes/ActiveRecord/Encryption/Properties.html index 55a924cb3d..92c3b51738 100644 --- a/src/classes/ActiveRecord/Encryption/Properties.html +++ b/src/classes/ActiveRecord/Encryption/Properties.html @@ -94,11 +94,6 @@

Constants

[String, ActiveRecord::Encryption::Message, Numeric, Integer, Float, BigDecimal, TrueClass, FalseClass, Symbol, NilClass] - -   - - - DEFAULT_PROPERTIES @@ -149,7 +144,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/encryption/properties.rb, line 42
@@ -158,7 +153,7 @@ 

add(initial_properties) end

- See on GitHub + 🔎 See on GitHub
@@ -191,17 +186,17 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/encryption/properties.rb, line 50
       def []=(key, value)
-        raise Errors::EncryptedContentIntegrity, "Properties can't be overridden: #{key}" if key?(key)
+        raise Errors::EncryptedContentIntegrity, "Properties can't be overridden: #{key}" if key?(key)
         validate_value_type(value)
         data[key] = value
       end
- See on GitHub + 🔎 See on GitHub
@@ -228,7 +223,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/encryption/properties.rb, line 62
@@ -238,7 +233,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -265,7 +260,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/encryption/properties.rb, line 68
@@ -273,7 +268,7 @@ 

data end

- See on GitHub + 🔎 See on GitHub
@@ -300,17 +295,17 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/encryption/properties.rb, line 56
       def validate_value_type(value)
         unless ALLOWED_VALUE_CLASSES.include?(value.class) || ALLOWED_VALUE_CLASSES.any? { |klass| value.is_a?(klass) }
-          raise ActiveRecord::Encryption::Errors::ForbiddenClass, "Can't store a #{value.class}, only properties of type #{ALLOWED_VALUE_CLASSES.inspect} are allowed"
+          raise ActiveRecord::Encryption::Errors::ForbiddenClass, "Can't store a #{value.class}, only properties of type #{ALLOWED_VALUE_CLASSES.inspect} are allowed"
         end
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/Encryption/ReadOnlyNullEncryptor.html b/src/classes/ActiveRecord/Encryption/ReadOnlyNullEncryptor.html index 3eed9006f2..657972c7a9 100644 --- a/src/classes/ActiveRecord/Encryption/ReadOnlyNullEncryptor.html +++ b/src/classes/ActiveRecord/Encryption/ReadOnlyNullEncryptor.html @@ -100,7 +100,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/encryption/read_only_null_encryptor.rb, line 15
@@ -108,7 +108,7 @@ 

encrypted_text end

- See on GitHub + 🔎 See on GitHub
@@ -135,15 +135,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/encryption/read_only_null_encryptor.rb, line 11
       def encrypt(clean_text, key_provider: nil, cipher_options: {})
-        raise Errors::Encryption, "This encryptor is read-only"
+        raise Errors::Encryption, "This encryptor is read-only"
       end
- See on GitHub + 🔎 See on GitHub
@@ -170,7 +170,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/encryption/read_only_null_encryptor.rb, line 19
@@ -178,7 +178,7 @@ 

false end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/Encryption/Scheme.html b/src/classes/ActiveRecord/Encryption/Scheme.html index c95770ba7d..11bc643b5b 100644 --- a/src/classes/ActiveRecord/Encryption/Scheme.html +++ b/src/classes/ActiveRecord/Encryption/Scheme.html @@ -147,13 +147,13 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/encryption/scheme.rb, line 13
       def initialize(key_provider: nil, key: nil, deterministic: nil, support_unencrypted_data: nil, downcase: nil, ignore_case: nil,
                      previous_schemes: nil, **context_properties)
-        # Initializing all attributes to +nil+ as we want to allow a "not set" semantics so that we
+        # Initializing all attributes to +nil+ as we want to allow a "not set" semantics so that we
         # can merge schemes without overriding values with defaults. See +#merge+
 
         @key_provider_param = key_provider
@@ -169,7 +169,7 @@ 

validate_config! end

- See on GitHub + 🔎 See on GitHub
@@ -200,7 +200,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/encryption/scheme.rb, line 73
@@ -208,7 +208,7 @@ 

deterministic? == other_scheme.deterministic? end

- See on GitHub + 🔎 See on GitHub
@@ -235,7 +235,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/encryption/scheme.rb, line 39
@@ -243,7 +243,7 @@ 

!!@deterministic end

- See on GitHub + 🔎 See on GitHub
@@ -270,7 +270,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/encryption/scheme.rb, line 35
@@ -278,7 +278,7 @@ 

@downcase end

- See on GitHub + 🔎 See on GitHub
@@ -305,16 +305,16 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/encryption/scheme.rb, line 47
       def fixed?
         # by default deterministic encryption is fixed
-        @fixed ||= @deterministic && (!@deterministic.is_a?(Hash) || @deterministic[:fixed])
+        @fixed ||= @deterministic && (!@deterministic.is_a?(Hash) || @deterministic[:fixed])
       end
- See on GitHub + 🔎 See on GitHub
@@ -341,7 +341,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/encryption/scheme.rb, line 31
@@ -349,7 +349,7 @@ 

@ignore_case end

- See on GitHub + 🔎 See on GitHub
@@ -376,7 +376,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/encryption/scheme.rb, line 52
@@ -384,7 +384,7 @@ 

@key_provider ||= @key_provider_param || build_key_provider || default_key_provider end

- See on GitHub + 🔎 See on GitHub
@@ -411,7 +411,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/encryption/scheme.rb, line 56
@@ -419,7 +419,7 @@ 

self.class.new(**to_h.merge(other_scheme.to_h)) end

- See on GitHub + 🔎 See on GitHub
@@ -446,7 +446,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/encryption/scheme.rb, line 43
@@ -454,7 +454,7 @@ 

@support_unencrypted_data.nil? ? ActiveRecord::Encryption.config.support_unencrypted_data : @support_unencrypted_data end

- See on GitHub + 🔎 See on GitHub
@@ -481,7 +481,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/encryption/scheme.rb, line 60
@@ -490,7 +490,7 @@ 

previous_schemes: @previous_schemes_param, **@context_properties }.compact end

- See on GitHub + 🔎 See on GitHub
@@ -517,19 +517,19 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/encryption/scheme.rb, line 65
-      def with_context(&block)
+      def with_context(&block)
         if @context_properties.present?
-          ActiveRecord::Encryption.with_encryption_context(**@context_properties, &block)
+          ActiveRecord::Encryption.with_encryption_context(**@context_properties, &block)
         else
           block.call
         end
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/Enum.html b/src/classes/ActiveRecord/Enum.html index 42124996aa..3e9dc5ed63 100644 --- a/src/classes/ActiveRecord/Enum.html +++ b/src/classes/ActiveRecord/Enum.html @@ -239,7 +239,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/enum.rb, line 225
@@ -250,12 +250,12 @@ 

end definitions = options.slice!(:_prefix, :_suffix, :_scopes, :_default, :_instance_methods) - options.transform_keys! { |key| :"#{key[1..-1]}" } + options.transform_keys! { |key| :"#{key[1..-1]}" } definitions.each { |name, values| _enum(name, values, **options) } end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/EnvironmentMismatchError.html b/src/classes/ActiveRecord/EnvironmentMismatchError.html index 1102b87ee7..c991a06b39 100644 --- a/src/classes/ActiveRecord/EnvironmentMismatchError.html +++ b/src/classes/ActiveRecord/EnvironmentMismatchError.html @@ -83,23 +83,23 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/migration.rb, line 204
     def initialize(current: nil, stored: nil)
-      msg = +"You are attempting to modify a database that was last run in `#{ stored }` environment.\n"
-      msg << "You are running in `#{ current }` environment. "
-      msg << "If you are sure you want to continue, first set the environment using:\n\n"
-      msg << "        bin/rails db:environment:set"
+      msg = +"You are attempting to modify a database that was last run in `#{ stored }` environment.\n"
+      msg << "You are running in `#{ current }` environment. "
+      msg << "If you are sure you want to continue, first set the environment using:\n\n"
+      msg << "        bin/rails db:environment:set"
       if defined?(Rails.env)
-        super("#{msg} RAILS_ENV=#{::Rails.env}\n\n")
+        super("#{msg} RAILS_ENV=#{::Rails.env}\n\n")
       else
-        super("#{msg}\n\n")
+        super("#{msg}\n\n")
       end
     end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/FinderMethods.html b/src/classes/ActiveRecord/FinderMethods.html index e27dc54364..102a6fca40 100644 --- a/src/classes/ActiveRecord/FinderMethods.html +++ b/src/classes/ActiveRecord/FinderMethods.html @@ -167,11 +167,6 @@

Constants

"1 AS one" - -   - - - @@ -231,7 +226,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation/finder_methods.rb, line 349
@@ -239,7 +234,7 @@ 

return false if @none if Base === conditions - raise ArgumentError, <<-MSG.squish + raise ArgumentError, <<-MSG.squish You are passing an instance of ActiveRecord::Base to `exists?`. Please pass the id of the object by calling `.id`. MSG @@ -255,10 +250,10 @@

relation = construct_relation_for_exists(conditions) return false if relation.where_clause.contradiction? - skip_query_cache_if_necessary { connection.select_rows(relation.arel, "#{name} Exists?").size == 1 } + skip_query_cache_if_necessary { connection.select_rows(relation.arel, "#{name} Exists?").size == 1 } end

- See on GitHub + 🔎 See on GitHub
@@ -290,7 +285,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation/finder_methods.rb, line 263
@@ -298,7 +293,7 @@ 

find_nth 4 end

- See on GitHub + 🔎 See on GitHub
@@ -325,7 +320,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation/finder_methods.rb, line 269
@@ -333,7 +328,7 @@ 

fifth || raise_record_not_found_exception! end

- See on GitHub + 🔎 See on GitHub
@@ -435,7 +430,7 @@

Alternatives for - Source code + 📝 Source code
# File activerecord/lib/active_record/relation/finder_methods.rb, line 90
@@ -444,7 +439,7 @@ 

Alternatives for See on GitHub + 🔎 See on GitHub @@ -477,7 +472,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation/finder_methods.rb, line 103
@@ -485,7 +480,7 @@ 

where(arg, *args).take end

- See on GitHub + 🔎 See on GitHub
@@ -512,7 +507,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation/finder_methods.rb, line 109
@@ -520,7 +515,7 @@ 

where(arg, *args).take! end

- See on GitHub + 🔎 See on GitHub
@@ -550,7 +545,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation/finder_methods.rb, line 152
@@ -558,7 +553,7 @@ 

where(arg, *args).sole end

- See on GitHub + 🔎 See on GitHub
@@ -592,7 +587,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation/finder_methods.rb, line 165
@@ -604,7 +599,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -631,7 +626,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation/finder_methods.rb, line 175
@@ -639,7 +634,7 @@ 

first || raise_record_not_found_exception! end

- See on GitHub + 🔎 See on GitHub
@@ -671,7 +666,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation/finder_methods.rb, line 279
@@ -679,7 +674,7 @@ 

find_nth 41 end

- See on GitHub + 🔎 See on GitHub
@@ -706,7 +701,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation/finder_methods.rb, line 285
@@ -714,7 +709,7 @@ 

forty_two || raise_record_not_found_exception! end

- See on GitHub + 🔎 See on GitHub
@@ -746,7 +741,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation/finder_methods.rb, line 247
@@ -754,7 +749,7 @@ 

find_nth 3 end

- See on GitHub + 🔎 See on GitHub
@@ -781,7 +776,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation/finder_methods.rb, line 253
@@ -789,7 +784,7 @@ 

fourth || raise_record_not_found_exception! end

- See on GitHub + 🔎 See on GitHub
@@ -822,7 +817,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation/finder_methods.rb, line 377
@@ -844,7 +839,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -887,7 +882,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation/finder_methods.rb, line 194
@@ -900,7 +895,7 @@ 

limit ? result.reverse : result.first end

- See on GitHub + 🔎 See on GitHub
@@ -927,7 +922,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation/finder_methods.rb, line 205
@@ -935,7 +930,7 @@ 

last || raise_record_not_found_exception! end

- See on GitHub + 🔎 See on GitHub
@@ -992,7 +987,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation/finder_methods.rb, line 215
@@ -1000,7 +995,7 @@ 

find_nth 1 end

- See on GitHub + 🔎 See on GitHub
@@ -1027,7 +1022,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation/finder_methods.rb, line 221
@@ -1035,7 +1030,7 @@ 

second || raise_record_not_found_exception! end

- See on GitHub + 🔎 See on GitHub
@@ -1067,7 +1062,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation/finder_methods.rb, line 311
@@ -1075,7 +1070,7 @@ 

find_nth_from_last 2 end

- See on GitHub + 🔎 See on GitHub
@@ -1102,7 +1097,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation/finder_methods.rb, line 317
@@ -1110,7 +1105,7 @@ 

second_to_last || raise_record_not_found_exception! end

- See on GitHub + 🔎 See on GitHub
@@ -1140,7 +1135,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation/finder_methods.rb, line 135
@@ -1156,7 +1151,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -1188,7 +1183,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation/finder_methods.rb, line 120
@@ -1196,7 +1191,7 @@ 

limit ? find_take_with_limit(limit) : find_take end

- See on GitHub + 🔎 See on GitHub
@@ -1223,7 +1218,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation/finder_methods.rb, line 126
@@ -1231,7 +1226,7 @@ 

take || raise_record_not_found_exception! end

- See on GitHub + 🔎 See on GitHub
@@ -1263,7 +1258,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation/finder_methods.rb, line 231
@@ -1271,7 +1266,7 @@ 

find_nth 2 end

- See on GitHub + 🔎 See on GitHub
@@ -1298,7 +1293,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation/finder_methods.rb, line 237
@@ -1306,7 +1301,7 @@ 

third || raise_record_not_found_exception! end

- See on GitHub + 🔎 See on GitHub
@@ -1338,7 +1333,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation/finder_methods.rb, line 295
@@ -1346,7 +1341,7 @@ 

find_nth_from_last 3 end

- See on GitHub + 🔎 See on GitHub
@@ -1373,7 +1368,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation/finder_methods.rb, line 301
@@ -1381,7 +1376,7 @@ 

third_to_last || raise_record_not_found_exception! end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/FixtureSet.html b/src/classes/ActiveRecord/FixtureSet.html index ad51288c32..27169e007d 100644 --- a/src/classes/ActiveRecord/FixtureSet.html +++ b/src/classes/ActiveRecord/FixtureSet.html @@ -615,11 +615,6 @@

Constants

2**30 - 1 - -   - - - @@ -705,7 +700,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/fixtures.rb, line 556
@@ -713,7 +708,7 @@ 

cache_for_connection(connection).update(fixtures_map) end

- See on GitHub + 🔎 See on GitHub
@@ -740,7 +735,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/fixtures.rb, line 540
@@ -748,7 +743,7 @@ 

@@all_cached_fixtures[connection] end

- See on GitHub + 🔎 See on GitHub
@@ -775,7 +770,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/fixtures.rb, line 548
@@ -787,7 +782,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -819,18 +814,18 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/fixtures.rb, line 615
       def composite_identify(label, key)
         key
           .index_with
-          .with_index { |sub_key, index| (identify(label) << index) % MAX_ID }
+          .with_index { |sub_key, index| (identify(label) << index) % MAX_ID }
           .with_indifferent_access
       end
- See on GitHub + 🔎 See on GitHub
@@ -857,7 +852,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/fixtures.rb, line 623
@@ -865,7 +860,7 @@ 

@context_class ||= Class.new end

- See on GitHub + 🔎 See on GitHub
@@ -892,12 +887,12 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/fixtures.rb, line 575
-      def create_fixtures(fixtures_directories, fixture_set_names, class_names = {}, config = ActiveRecord::Base, &block)
-        fixture_set_names = Array(fixture_set_names).map(&:to_s)
+      def create_fixtures(fixtures_directories, fixture_set_names, class_names = {}, config = ActiveRecord::Base, &block)
+        fixture_set_names = Array(fixture_set_names).map(&:to_s)
         class_names.stringify_keys!
 
         # FIXME: Apparently JK uses this.
@@ -919,7 +914,7 @@ 

cached_fixtures(connection.call, fixture_set_names) end

- See on GitHub + 🔎 See on GitHub
@@ -946,7 +941,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/fixtures.rb, line 544
@@ -954,7 +949,7 @@ 

cache_for_connection(connection)[table_name] end

- See on GitHub + 🔎 See on GitHub
@@ -983,7 +978,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/fixtures.rb, line 601
@@ -995,7 +990,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -1022,7 +1017,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/fixtures.rb, line 569
@@ -1032,7 +1027,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -1059,20 +1054,20 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/fixtures.rb, line 560
       def instantiate_fixtures(object, fixture_set, load_instances = true)
         return unless load_instances
         fixture_set.each do |fixture_name, fixture|
-          object.instance_variable_set "@#{fixture_name}", fixture.find
+          object.instance_variable_set "@#{fixture_name}", fixture.find
         rescue FixtureClassNotFound
           nil
         end
       end
- See on GitHub + 🔎 See on GitHub
@@ -1099,7 +1094,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/fixtures.rb, line 693
@@ -1111,10 +1106,10 @@ 

self.model_class = class_name @fixtures = read_fixture_files(path) - @table_name = model_class&.table_name || self.class.default_fixture_table_name(name, config) + @table_name = model_class&.table_name || self.class.default_fixture_table_name(name, config) end

- See on GitHub + 🔎 See on GitHub
@@ -1141,7 +1136,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/fixtures.rb, line 536
@@ -1149,7 +1144,7 @@ 

@@all_cached_fixtures.clear end

- See on GitHub + 🔎 See on GitHub
@@ -1180,7 +1175,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/fixtures.rb, line 704
@@ -1188,7 +1183,7 @@ 

fixtures[x] end

- See on GitHub + 🔎 See on GitHub
@@ -1215,7 +1210,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/fixtures.rb, line 708
@@ -1223,7 +1218,7 @@ 

fixtures[k] = v end

- See on GitHub + 🔎 See on GitHub
@@ -1250,15 +1245,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/fixtures.rb, line 712
-    def each(&block)
-      fixtures.each(&block)
+    def each(&block)
+      fixtures.each(&block)
     end
- See on GitHub + 🔎 See on GitHub
@@ -1285,7 +1280,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/fixtures.rb, line 716
@@ -1293,7 +1288,7 @@ 

fixtures.size end

- See on GitHub + 🔎 See on GitHub
@@ -1320,7 +1315,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/fixtures.rb, line 722
@@ -1335,7 +1330,7 @@ 

).to_hash end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/FutureResult/Complete.html b/src/classes/ActiveRecord/FutureResult/Complete.html index c102c5e484..ca6a7d62d4 100644 --- a/src/classes/ActiveRecord/FutureResult/Complete.html +++ b/src/classes/ActiveRecord/FutureResult/Complete.html @@ -109,7 +109,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/future_result.rb, line 9
@@ -117,7 +117,7 @@ 

@result = result end

- See on GitHub + 🔎 See on GitHub
@@ -148,7 +148,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/future_result.rb, line 17
@@ -156,7 +156,7 @@ 

false end

- See on GitHub + 🔎 See on GitHub
@@ -183,7 +183,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/future_result.rb, line 13
@@ -191,7 +191,7 @@ 

false end

- See on GitHub + 🔎 See on GitHub
@@ -218,15 +218,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/future_result.rb, line 21
-      def then(&block)
-        Promise::Complete.new(@result.then(&block))
+      def then(&block)
+        Promise::Complete.new(@result.then(&block))
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/FutureResult/EventBuffer.html b/src/classes/ActiveRecord/FutureResult/EventBuffer.html index 475172702d..52d47613da 100644 --- a/src/classes/ActiveRecord/FutureResult/EventBuffer.html +++ b/src/classes/ActiveRecord/FutureResult/EventBuffer.html @@ -91,7 +91,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/future_result.rb, line 27
@@ -101,7 +101,7 @@ 

@events = [] end

- See on GitHub + 🔎 See on GitHub
@@ -132,7 +132,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/future_result.rb, line 39
@@ -144,7 +144,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -171,17 +171,17 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/future_result.rb, line 33
-      def instrument(name, payload = {}, &block)
+      def instrument(name, payload = {}, &block)
         event = @instrumenter.new_event(name, payload)
-        @events << event
-        event.record(&block)
+        @events << event
+        event.record(&block)
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/Inheritance.html b/src/classes/ActiveRecord/Inheritance.html index c9f455f701..5f44340530 100644 --- a/src/classes/ActiveRecord/Inheritance.html +++ b/src/classes/ActiveRecord/Inheritance.html @@ -121,7 +121,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/inheritance.rb, line 341
@@ -130,7 +130,7 @@ 

ensure_proper_type end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/Inheritance/ClassMethods.html b/src/classes/ActiveRecord/Inheritance/ClassMethods.html index 5c88785d98..55b73ee0dd 100644 --- a/src/classes/ActiveRecord/Inheritance/ClassMethods.html +++ b/src/classes/ActiveRecord/Inheritance/ClassMethods.html @@ -185,15 +185,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/inheritance.rb, line 167
       def abstract_class?
-        defined?(@abstract_class) && @abstract_class == true
+        defined?(@abstract_class) && @abstract_class == true
       end
- See on GitHub + 🔎 See on GitHub
@@ -220,7 +220,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/inheritance.rb, line 119
@@ -228,7 +228,7 @@ 

base_class == self end

- See on GitHub + 🔎 See on GitHub
@@ -255,7 +255,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/inheritance.rb, line 82
@@ -269,7 +269,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -296,35 +296,35 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/inheritance.rb, line 56
-      def new(attributes = nil, &block)
+      def new(attributes = nil, &block)
         if abstract_class? || self == Base
-          raise NotImplementedError, "#{self} is an abstract class and cannot be instantiated."
+          raise NotImplementedError, "#{self} is an abstract class and cannot be instantiated."
         end
 
         if _has_attribute?(inheritance_column)
           subclass = subclass_from_attributes(attributes)
 
-          if subclass.nil? && scope_attributes = current_scope&.scope_for_create
+          if subclass.nil? && scope_attributes = current_scope&.scope_for_create
             subclass = subclass_from_attributes(scope_attributes)
           end
 
-          if subclass.nil? && base_class?
+          if subclass.nil? && base_class?
             subclass = subclass_from_attributes(column_defaults)
           end
         end
 
-        if subclass && subclass != self
-          subclass.new(attributes, &block)
+        if subclass && subclass != self
+          subclass.new(attributes, &block)
         else
           super
         end
       end
- See on GitHub + 🔎 See on GitHub
@@ -353,7 +353,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/inheritance.rb, line 216
@@ -365,7 +365,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -392,7 +392,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/inheritance.rb, line 209
@@ -400,7 +400,7 @@ 

store_full_class_name ? base_class.name : base_class.name.demodulize end

- See on GitHub + 🔎 See on GitHub
@@ -429,20 +429,20 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/inheritance.rb, line 177
       def primary_abstract_class
-        if ActiveRecord.application_record_class && ActiveRecord.application_record_class.name != name
-          raise ArgumentError, "The `primary_abstract_class` is already set to #{ActiveRecord.application_record_class.inspect}. There can only be one `primary_abstract_class` in an application."
+        if ActiveRecord.application_record_class && ActiveRecord.application_record_class.name != name
+          raise ArgumentError, "The `primary_abstract_class` is already set to #{ActiveRecord.application_record_class.inspect}. There can only be one `primary_abstract_class` in an application."
         end
 
         self.abstract_class = true
         ActiveRecord.application_record_class = self
       end
- See on GitHub + 🔎 See on GitHub
@@ -471,25 +471,25 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/inheritance.rb, line 194
       def sti_class_for(type_name)
-        if store_full_sti_class && store_full_class_name
+        if store_full_sti_class && store_full_class_name
           type_name.constantize
         else
           compute_type(type_name)
         end
       rescue NameError
         raise SubclassNotFound,
-          "The single-table inheritance mechanism failed to locate the subclass: '#{type_name}'. " \
-          "This error is raised because the column '#{inheritance_column}' is reserved for storing the class in case of inheritance. " \
-          "Please rename this column if you didn't intend it to be used for storing the inheritance class " \
-          "or overwrite #{name}.inheritance_column to use another column for that information."
+          "The single-table inheritance mechanism failed to locate the subclass: '#{type_name}'. " \
+          "This error is raised because the column '#{inheritance_column}' is reserved for storing the class in case of inheritance. " \
+          "Please rename this column if you didn't intend it to be used for storing the inheritance class " \
+          "or overwrite #{name}.inheritance_column to use another column for that information."
       end
- See on GitHub + 🔎 See on GitHub
@@ -516,15 +516,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/inheritance.rb, line 187
       def sti_name
-        store_full_sti_class && store_full_class_name ? name : name.demodulize
+        store_full_sti_class && store_full_class_name ? name : name.demodulize
       end
- See on GitHub + 🔎 See on GitHub
@@ -554,25 +554,25 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/inheritance.rb, line 240
         def compute_type(type_name)
-          if type_name.start_with?("::")
+          if type_name.start_with?("::")
             # If the type is prefixed with a scope operator then we assume that
             # the type_name is an absolute reference.
             type_name.constantize
           else
             type_candidate = @_type_candidates_cache[type_name]
-            if type_candidate && type_constant = type_candidate.safe_constantize
+            if type_candidate && type_constant = type_candidate.safe_constantize
               return type_constant
             end
 
             # Build a list of candidates to search for
             candidates = []
-            name.scan(/::|$/) { candidates.unshift "#{$`}::#{type_name}" }
-            candidates << type_name
+            name.scan(/::|$/) { candidates.unshift "#{$`}::#{type_name}" }
+            candidates << type_name
 
             candidates.each do |candidate|
               constant = candidate.safe_constantize
@@ -582,11 +582,11 @@ 

end end - raise NameError.new("uninitialized constant #{candidates.first}", candidates.first) + raise NameError.new("uninitialized constant #{candidates.first}", candidates.first) end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/Integration.html b/src/classes/ActiveRecord/Integration.html index 9bccf5e2ce..3f1867fc0b 100644 --- a/src/classes/ActiveRecord/Integration.html +++ b/src/classes/ActiveRecord/Integration.html @@ -116,14 +116,14 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/integration.rb, line 16
       class_attribute :cache_timestamp_format, instance_writer: false, default: :usec
 
- See on GitHub + 🔎 See on GitHub
@@ -152,14 +152,14 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/integration.rb, line 24
       class_attribute :cache_versioning, instance_writer: false, default: false
 
- See on GitHub + 🔎 See on GitHub
@@ -188,14 +188,14 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/integration.rb, line 32
       class_attribute :collection_cache_versioning, instance_writer: false, default: false
 
- See on GitHub + 🔎 See on GitHub
@@ -236,30 +236,30 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/integration.rb, line 72
     def cache_key
       if new_record?
-        "#{model_name.cache_key}/new"
+        "#{model_name.cache_key}/new"
       else
         if cache_version
-          "#{model_name.cache_key}/#{id}"
+          "#{model_name.cache_key}/#{id}"
         else
           timestamp = max_updated_column_timestamp
 
           if timestamp
             timestamp = timestamp.utc.to_fs(cache_timestamp_format)
-            "#{model_name.cache_key}/#{id}-#{timestamp}"
+            "#{model_name.cache_key}/#{id}-#{timestamp}"
           else
-            "#{model_name.cache_key}/#{id}"
+            "#{model_name.cache_key}/#{id}"
           end
         end
       end
     end
- See on GitHub + 🔎 See on GitHub
@@ -286,19 +286,19 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/integration.rb, line 114
     def cache_key_with_version
       if version = cache_version
-        "#{cache_key}-#{version}"
+        "#{cache_key}-#{version}"
       else
         cache_key
       end
     end
- See on GitHub + 🔎 See on GitHub
@@ -327,14 +327,14 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/integration.rb, line 97
     def cache_version
       return unless cache_versioning
 
-      if has_attribute?("updated_at")
+      if has_attribute?("updated_at")
         timestamp = updated_at_before_type_cast
         if can_use_fast_cache_version?(timestamp)
           raw_timestamp_to_cache_version(timestamp)
@@ -342,12 +342,12 @@ 

elsif timestamp = updated_at timestamp.utc.to_fs(cache_timestamp_format) end - elsif self.class.has_attribute?("updated_at") - raise ActiveModel::MissingAttributeError, "missing attribute 'updated_at' for #{self.class}" + elsif self.class.has_attribute?("updated_at") + raise ActiveModel::MissingAttributeError, "missing attribute 'updated_at' for #{self.class}" end end

- See on GitHub + 🔎 See on GitHub
@@ -392,7 +392,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/integration.rb, line 57
@@ -401,7 +401,7 @@ 

Array(id).join(self.class.param_delimiter) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/Integration/ClassMethods.html b/src/classes/ActiveRecord/Integration/ClassMethods.html index 66bd1e2249..934c92ff21 100644 --- a/src/classes/ActiveRecord/Integration/ClassMethods.html +++ b/src/classes/ActiveRecord/Integration/ClassMethods.html @@ -100,7 +100,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/integration.rb, line 147
@@ -109,10 +109,10 @@ 

super() else define_method :to_param do - if (default = super()) && - (result = send(method_name).to_s).present? && - (param = result.squish.parameterize.truncate(20, separator: /-/, omission: "")).present? - "#{default}-#{param}" + if (default = super()) && + (result = send(method_name).to_s).present? && + (param = result.squish.parameterize.truncate(20, separator: /-/, omission: "")).present? + "#{default}-#{param}" else default end @@ -120,7 +120,7 @@

end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/Locking/Optimistic/ClassMethods.html b/src/classes/ActiveRecord/Locking/Optimistic/ClassMethods.html index 7dca9ed1ce..e7c7c91e35 100644 --- a/src/classes/ActiveRecord/Locking/Optimistic/ClassMethods.html +++ b/src/classes/ActiveRecord/Locking/Optimistic/ClassMethods.html @@ -71,11 +71,6 @@

Constants

"lock_version" - -   - - - @@ -122,7 +117,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/locking/optimistic.rb, line 165
@@ -131,7 +126,7 @@ 

@locking_column = value.to_s end

- See on GitHub + 🔎 See on GitHub
@@ -158,15 +153,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/locking/optimistic.rb, line 160
           def locking_enabled?
-            lock_optimistically && columns_hash[locking_column]
+            lock_optimistically && columns_hash[locking_column]
           end
- See on GitHub + 🔎 See on GitHub
@@ -193,7 +188,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/locking/optimistic.rb, line 174
@@ -201,7 +196,7 @@ 

self.locking_column = DEFAULT_LOCKING_COLUMN end

- See on GitHub + 🔎 See on GitHub
@@ -228,16 +223,16 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/locking/optimistic.rb, line 180
           def update_counters(id, counters)
-            counters = counters.merge(locking_column => 1) if locking_enabled?
+            counters = counters.merge(locking_column => 1) if locking_enabled?
             super
           end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/Locking/Pessimistic.html b/src/classes/ActiveRecord/Locking/Pessimistic.html index 6568e60744..afcfb05c5f 100644 --- a/src/classes/ActiveRecord/Locking/Pessimistic.html +++ b/src/classes/ActiveRecord/Locking/Pessimistic.html @@ -146,18 +146,18 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/locking/pessimistic.rb, line 69
       def lock!(lock = true)
         if persisted?
           if has_changes_to_save?
-            raise(<<-MSG.squish)
+            raise(<<-MSG.squish)
               Locking a record with unpersisted changes is not supported. Use
               `save` to persist the changes, or `reload` to discard them
               explicitly.
-              Changed attributes: #{changed.map(&:inspect).join(', ')}.
+              Changed attributes: #{changed.map(&:inspect).join(', ')}.
             MSG
           end
 
@@ -166,7 +166,7 @@ 

self end

- See on GitHub + 🔎 See on GitHub
@@ -195,7 +195,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/locking/pessimistic.rb, line 92
@@ -208,7 +208,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/LogSubscriber.html b/src/classes/ActiveRecord/LogSubscriber.html index 74eb5e108c..1cef97a73a 100644 --- a/src/classes/ActiveRecord/LogSubscriber.html +++ b/src/classes/ActiveRecord/LogSubscriber.html @@ -81,11 +81,6 @@

Constants

["SCHEMA", "EXPLAIN"] - -   - - - @@ -117,18 +112,18 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/log_subscriber.rb, line 23
     def self.reset_runtime
-      ActiveRecord.deprecator.warn(<<-MSG.squish)
+      ActiveRecord.deprecator.warn(<<-MSG.squish)
         ActiveRecord::LogSubscriber.reset_runtime is deprecated and will be removed in Rails 7.2.
       MSG
       ActiveRecord::RuntimeRegistry.reset
     end
- See on GitHub + 🔎 See on GitHub
@@ -155,18 +150,18 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/log_subscriber.rb, line 16
     def self.runtime
-      ActiveRecord.deprecator.warn(<<-MSG.squish)
+      ActiveRecord.deprecator.warn(<<-MSG.squish)
         ActiveRecord::LogSubscriber.runtime is deprecated and will be removed in Rails 7.2.
       MSG
       ActiveRecord::RuntimeRegistry.sql_runtime
     end
- See on GitHub + 🔎 See on GitHub
@@ -193,18 +188,18 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/log_subscriber.rb, line 9
     def self.runtime=(value)
-      ActiveRecord.deprecator.warn(<<-MSG.squish)
+      ActiveRecord.deprecator.warn(<<-MSG.squish)
         ActiveRecord::LogSubscriber.runtime= is deprecated and will be removed in Rails 7.2.
       MSG
       ActiveRecord::RuntimeRegistry.sql_runtime = value
     end
- See on GitHub + 🔎 See on GitHub
@@ -235,7 +230,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/log_subscriber.rb, line 39
@@ -245,22 +240,22 @@ 

return if IGNORE_PAYLOAD_NAMES.include?(payload[:name]) name = if payload[:async] - "ASYNC #{payload[:name]} (#{payload[:lock_wait].round(1)}ms) (db time #{event.duration.round(1)}ms)" + "ASYNC #{payload[:name]} (#{payload[:lock_wait].round(1)}ms) (db time #{event.duration.round(1)}ms)" else - "#{payload[:name]} (#{event.duration.round(1)}ms)" + "#{payload[:name]} (#{event.duration.round(1)}ms)" end - name = "CACHE #{name}" if payload[:cached] + name = "CACHE #{name}" if payload[:cached] sql = payload[:sql] binds = nil - if payload[:binds]&.any? + if payload[:binds]&.any? casted_params = type_casted_binds(payload[:type_casted_binds]) binds = [] payload[:binds].each_with_index do |attr, i| attribute_name = if attr.respond_to?(:name) attr.name - elsif attr.respond_to?(:[]) && attr[i].respond_to?(:name) + elsif attr.respond_to?(:[]) && attr[i].respond_to?(:name) attr[i].name else nil @@ -268,19 +263,19 @@

filtered_params = filter(attribute_name, casted_params[i]) - binds << render_bind(attr, filtered_params) + binds << render_bind(attr, filtered_params) end binds = binds.inspect - binds.prepend(" ") + binds.prepend(" ") end name = colorize_payload_name(name, payload[:name]) sql = color(sql, sql_color(sql), bold: true) if colorize_logging - debug " #{name} #{sql}#{binds}" + debug " #{name} #{sql}#{binds}" end

- See on GitHub + 🔎 See on GitHub
@@ -307,7 +302,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/log_subscriber.rb, line 30
@@ -319,7 +314,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/Marshalling.html b/src/classes/ActiveRecord/Marshalling.html index 7bb62dfeaf..f6d999a4de 100644 --- a/src/classes/ActiveRecord/Marshalling.html +++ b/src/classes/ActiveRecord/Marshalling.html @@ -104,7 +104,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/marshalling.rb, line 10
@@ -115,12 +115,12 @@ 

when 7.1 Methods.alias_method(:marshal_dump, :_marshal_dump_7_1) else - raise ArgumentError, "Unknown marshalling format: #{version.inspect}" + raise ArgumentError, "Unknown marshalling format: #{version.inspect}" end @format_version = version end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/Marshalling/Methods.html b/src/classes/ActiveRecord/Marshalling/Methods.html index 51d5c61074..6ac35e11a4 100644 --- a/src/classes/ActiveRecord/Marshalling/Methods.html +++ b/src/classes/ActiveRecord/Marshalling/Methods.html @@ -82,7 +82,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/marshalling.rb, line 24
@@ -94,7 +94,7 @@ 

end unless cached_associations.empty? - payload << cached_associations.map do |reflection| + payload << cached_associations.map do |reflection| [reflection.name, association(reflection.name).target] end end @@ -102,7 +102,7 @@

payload end

- See on GitHub + 🔎 See on GitHub
@@ -129,7 +129,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/marshalling.rb, line 40
@@ -148,7 +148,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/MessagePack/Decoder.html b/src/classes/ActiveRecord/MessagePack/Decoder.html index f6d66622e5..904753303b 100644 --- a/src/classes/ActiveRecord/MessagePack/Decoder.html +++ b/src/classes/ActiveRecord/MessagePack/Decoder.html @@ -95,7 +95,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/message_pack.rb, line 91
@@ -104,7 +104,7 @@ 

@records.zip(entries) { |record, entry| resolve_cached_associations(record, entry) } end

- See on GitHub + 🔎 See on GitHub
@@ -135,7 +135,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/message_pack.rb, line 104
@@ -146,7 +146,7 @@ 

klass.allocate.init_with_attributes(attributes, is_new_record) end

- See on GitHub + 🔎 See on GitHub
@@ -173,7 +173,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/message_pack.rb, line 96
@@ -185,7 +185,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -212,13 +212,13 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/message_pack.rb, line 111
       def resolve_cached_associations(record, entry)
         i = 3 # entry == [class_name, attributes_hash, is_new_record, *associations]
-        while i < entry.length
+        while i < entry.length
           begin
             record.association(entry[i]).target = decode(entry[i + 1])
           rescue ActiveRecord::AssociationNotFoundError
@@ -228,7 +228,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/MessagePack/Encoder.html b/src/classes/ActiveRecord/MessagePack/Encoder.html index d772d4e14a..ac91d8877f 100644 --- a/src/classes/ActiveRecord/MessagePack/Encoder.html +++ b/src/classes/ActiveRecord/MessagePack/Encoder.html @@ -113,7 +113,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/message_pack.rb, line 48
@@ -122,7 +122,7 @@ 

@refs = {}.compare_by_identity end

- See on GitHub + 🔎 See on GitHub
@@ -153,19 +153,19 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/message_pack.rb, line 81
       def add_cached_associations(record, entry)
         record.class.reflections.each_value do |reflection|
           if record.association_cached?(reflection.name)
-            entry << reflection.name << encode(record.association(reflection.name).target)
+            entry << reflection.name << encode(record.association(reflection.name).target)
           end
         end
       end
- See on GitHub + 🔎 See on GitHub
@@ -192,7 +192,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/message_pack.rb, line 73
@@ -204,7 +204,7 @@ 

] end

- See on GitHub + 🔎 See on GitHub
@@ -231,7 +231,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/message_pack.rb, line 53
@@ -243,7 +243,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -270,7 +270,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/message_pack.rb, line 61
@@ -279,14 +279,14 @@ 

if !ref ref = @refs[record] = @entries.size - @entries << build_entry(record) + @entries << build_entry(record) add_cached_associations(record, @entries.last) end ref end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/MessagePack/Extensions.html b/src/classes/ActiveRecord/MessagePack/Extensions.html index 4e388852ea..88fbbcd40f 100644 --- a/src/classes/ActiveRecord/MessagePack/Extensions.html +++ b/src/classes/ActiveRecord/MessagePack/Extensions.html @@ -86,7 +86,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/message_pack.rb, line 25
@@ -101,7 +101,7 @@ 

recursive: true end

- See on GitHub + 🔎 See on GitHub
@@ -128,7 +128,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/message_pack.rb, line 40
@@ -136,7 +136,7 @@ 

ActiveRecord::MessagePack.load(unpacker.read) end

- See on GitHub + 🔎 See on GitHub
@@ -163,7 +163,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/message_pack.rb, line 36
@@ -171,7 +171,7 @@ 

packer.write(ActiveRecord::MessagePack.dump(record)) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/Middleware/DatabaseSelector.html b/src/classes/ActiveRecord/Middleware/DatabaseSelector.html index 970b2a034f..03b8fa0c06 100644 --- a/src/classes/ActiveRecord/Middleware/DatabaseSelector.html +++ b/src/classes/ActiveRecord/Middleware/DatabaseSelector.html @@ -158,7 +158,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/middleware/database_selector.rb, line 52
@@ -169,7 +169,7 @@ 

@options = options end

- See on GitHub + 🔎 See on GitHub
@@ -200,7 +200,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/middleware/database_selector.rb, line 63
@@ -212,7 +212,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/Middleware/ShardSelector.html b/src/classes/ActiveRecord/Middleware/ShardSelector.html index 1354c5f55b..c3664ab71d 100644 --- a/src/classes/ActiveRecord/Middleware/ShardSelector.html +++ b/src/classes/ActiveRecord/Middleware/ShardSelector.html @@ -133,7 +133,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/middleware/shard_selector.rb, line 32
@@ -143,7 +143,7 @@ 

@options = options end

- See on GitHub + 🔎 See on GitHub
@@ -174,7 +174,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/middleware/shard_selector.rb, line 40
@@ -188,7 +188,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/Migration.html b/src/classes/ActiveRecord/Migration.html index 404ff8bdc7..1f24b2ae40 100644 --- a/src/classes/ActiveRecord/Migration.html +++ b/src/classes/ActiveRecord/Migration.html @@ -524,7 +524,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/migration.rb, line 611
@@ -532,7 +532,7 @@ 

Compatibility.find(version) end

- See on GitHub + 🔎 See on GitHub
@@ -559,7 +559,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/migration.rb, line 696
@@ -568,7 +568,7 @@ 

ActiveRecord::Tasks::DatabaseTasks.with_temporary_connection_for_each(env: env) do |connection| if pending = connection.migration_context.open.pending_migrations - pending_migrations << pending + pending_migrations << pending end end @@ -579,7 +579,7 @@

end end

- See on GitHub + 🔎 See on GitHub
@@ -608,12 +608,12 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/migration.rb, line 680
       def check_pending!(connection = ActiveRecord::Tasks::DatabaseTasks.migration_connection)
-        ActiveRecord.deprecator.warn(<<-MSG.squish)
+        ActiveRecord.deprecator.warn(<<-MSG.squish)
           The `check_pending!` method is deprecated in favor of `check_all_pending!`. The
           new implementation will loop through all available database configurations and find
           pending migrations. The prior implementation did not permit this.
@@ -626,7 +626,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -653,7 +653,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/migration.rb, line 615
@@ -661,7 +661,7 @@ 

ActiveRecord::VERSION::STRING.to_f end

- See on GitHub + 🔎 See on GitHub
@@ -690,7 +690,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/migration.rb, line 745
@@ -698,7 +698,7 @@ 

@disable_ddl_transaction = true end

- See on GitHub + 🔎 See on GitHub
@@ -725,7 +725,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/migration.rb, line 712
@@ -736,14 +736,14 @@ 

FileUtils.cd(root) do Base.connection_handler.clear_all_connections!(:all) - system("bin/rails db:test:prepare") + system("bin/rails db:test:prepare") end end check_pending_migrations end

- See on GitHub + 🔎 See on GitHub
@@ -770,7 +770,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/migration.rb, line 737
@@ -778,7 +778,7 @@ 

new.migrate direction end

- See on GitHub + 🔎 See on GitHub
@@ -805,7 +805,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/migration.rb, line 792
@@ -815,7 +815,7 @@ 

@connection = nil end

- See on GitHub + 🔎 See on GitHub
@@ -846,17 +846,17 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/migration.rb, line 996
     def announce(message)
-      text = "#{version} #{name}: #{message}"
+      text = "#{version} #{name}: #{message}"
       length = [0, 75 - text.length].max
-      write "== %s %s" % [text, "=" * length]
+      write "== %s %s" % [text, "=" * length]
     end
- See on GitHub + 🔎 See on GitHub
@@ -883,7 +883,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/migration.rb, line 1027
@@ -891,7 +891,7 @@ 

@connection || ActiveRecord::Tasks::DatabaseTasks.migration_connection end

- See on GitHub + 🔎 See on GitHub
@@ -918,7 +918,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/migration.rb, line 1048
@@ -936,48 +936,48 @@ 

source_migrations.each do |migration| source = File.binread(migration.filename) - inserted_comment = "# This migration comes from #{scope} (originally #{migration.version})\n" - magic_comments = +"" + inserted_comment = "# This migration comes from #{scope} (originally #{migration.version})\n" + magic_comments = +"" loop do # If we have a magic comment in the original migration, # insert our comment after the first newline(end of the magic comment line) # so the magic keep working. # Note that magic comments must be at the first line(except sh-bang). source.sub!(/\A(?:#.*\b(?:en)?coding:\s*\S+|#\s*frozen_string_literal:\s*(?:true|false)).*\n/) do |magic_comment| - magic_comments << magic_comment; "" + magic_comments << magic_comment; "" end || break end - if !magic_comments.empty? && source.start_with?("\n") - magic_comments << "\n" + if !magic_comments.empty? && source.start_with?("\n") + magic_comments << "\n" source = source[1..-1] end - source = "#{magic_comments}#{inserted_comment}#{source}" + source = "#{magic_comments}#{inserted_comment}#{source}" if duplicate = destination_migrations.detect { |m| m.name == migration.name } - if options[:on_skip] && duplicate.scope != scope.to_s + if options[:on_skip] && duplicate.scope != scope.to_s options[:on_skip].call(scope, migration) end next end migration.version = next_migration_number(last ? last.version + 1 : 0).to_i - new_path = File.join(destination, "#{migration.version}_#{migration.name.underscore}.#{scope}.rb") + new_path = File.join(destination, "#{migration.version}_#{migration.name.underscore}.#{scope}.rb") old_path, migration.filename = migration.filename, new_path last = migration File.binwrite(migration.filename, source) - copied << migration + copied << migration options[:on_copy].call(scope, migration, old_path) if options[:on_copy] - destination_migrations << migration + destination_migrations << migration end end copied end

- See on GitHub + 🔎 See on GitHub
@@ -1004,7 +1004,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/migration.rb, line 948
@@ -1014,7 +1014,7 @@ 

self.class.down end

- See on GitHub + 🔎 See on GitHub
@@ -1041,7 +1041,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/migration.rb, line 976
@@ -1061,7 +1061,7 @@ 

@execution_strategy = nil end

- See on GitHub + 🔎 See on GitHub
@@ -1088,7 +1088,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/migration.rb, line 798
@@ -1096,7 +1096,7 @@ 

@execution_strategy ||= ActiveRecord.migration_strategy.new(self) end

- See on GitHub + 🔎 See on GitHub
@@ -1123,27 +1123,27 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/migration.rb, line 1031
-    def method_missing(method, *arguments, &block)
-      say_with_time "#{method}(#{format_arguments(arguments)})" do
+    def method_missing(method, *arguments, &block)
+      say_with_time "#{method}(#{format_arguments(arguments)})" do
         unless connection.respond_to? :revert
           unless arguments.empty? || [:execute, :enable_extension, :disable_extension].include?(method)
             arguments[0] = proper_table_name(arguments.first, table_name_options)
             if method == :rename_table ||
-              (method == :remove_foreign_key && !arguments.second.is_a?(Hash))
+              (method == :remove_foreign_key && !arguments.second.is_a?(Hash))
               arguments[1] = proper_table_name(arguments.second, table_name_options)
             end
           end
         end
         return super unless execution_strategy.respond_to?(method)
-        execution_strategy.send(method, *arguments, &block)
+        execution_strategy.send(method, *arguments, &block)
       end
     end
- See on GitHub + 🔎 See on GitHub
@@ -1170,7 +1170,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/migration.rb, line 955
@@ -1178,8 +1178,8 @@ 

return unless respond_to?(direction) case direction - when :up then announce "migrating" - when :down then announce "reverting" + when :up then announce "migrating" + when :down then announce "reverting" end time = nil @@ -1190,12 +1190,12 @@

end case direction - when :up then announce "migrated (%.4fs)" % time.real; write - when :down then announce "reverted (%.4fs)" % time.real; write + when :up then announce "migrated (%.4fs)" % time.real; write + when :down then announce "reverted (%.4fs)" % time.real; write end end

- See on GitHub + 🔎 See on GitHub
@@ -1222,19 +1222,19 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/migration.rb, line 1115
     def next_migration_number(number)
       if ActiveRecord.timestamped_migrations
-        [Time.now.utc.strftime("%Y%m%d%H%M%S"), "%.14d" % number].max
+        [Time.now.utc.strftime("%Y%m%d%H%M%S"), "%.14d" % number].max
       else
-        "%.3d" % number.to_i
+        "%.3d" % number.to_i
       end
     end
- See on GitHub + 🔎 See on GitHub
@@ -1261,7 +1261,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/migration.rb, line 1106
@@ -1269,11 +1269,11 @@ 

if name.respond_to? :table_name name.table_name else - "#{options[:table_name_prefix]}#{name}#{options[:table_name_suffix]}" + "#{options[:table_name_prefix]}#{name}#{options[:table_name_suffix]}" end end

- See on GitHub + 🔎 See on GitHub
@@ -1321,7 +1321,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/migration.rb, line 900
@@ -1330,7 +1330,7 @@ 

execute_block { yield helper } end

- See on GitHub + 🔎 See on GitHub
@@ -1391,20 +1391,20 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/migration.rb, line 843
-    def revert(*migration_classes, &block)
+    def revert(*migration_classes, &block)
       run(*migration_classes.reverse, revert: true) unless migration_classes.empty?
       if block_given?
         if connection.respond_to? :revert
-          connection.revert(&block)
+          connection.revert(&block)
         else
           recorder = command_recorder
           @connection = recorder
           suppress_messages do
-            connection.revert(&block)
+            connection.revert(&block)
           end
           @connection = recorder.delegate
           recorder.replay(self)
@@ -1412,7 +1412,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -1439,15 +1439,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/migration.rb, line 860
     def reverting?
-      connection.respond_to?(:reverting) && connection.reverting
+      connection.respond_to?(:reverting) && connection.reverting
     end
- See on GitHub + 🔎 See on GitHub
@@ -1479,7 +1479,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/migration.rb, line 928
@@ -1497,7 +1497,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -1524,15 +1524,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/migration.rb, line 1004
     def say(message, subitem = false)
-      write "#{subitem ? "   ->" : "--"} #{message}"
+      write "#{subitem ? "   ->" : "--"} #{message}"
     end
- See on GitHub + 🔎 See on GitHub
@@ -1559,7 +1559,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/migration.rb, line 1010
@@ -1567,12 +1567,12 @@ 

say(message) result = nil time = Benchmark.measure { result = yield } - say "%.4fs" % time.real, :subitem - say("#{result} rows", :subitem) if result.is_a?(Integer) + say "%.4fs" % time.real, :subitem + say("#{result} rows", :subitem) if result.is_a?(Integer) result end

- See on GitHub + 🔎 See on GitHub
@@ -1599,7 +1599,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/migration.rb, line 1020
@@ -1610,7 +1610,7 @@ 

self.verbose = save end

- See on GitHub + 🔎 See on GitHub
@@ -1637,7 +1637,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/migration.rb, line 942
@@ -1647,7 +1647,7 @@ 

self.class.up end

- See on GitHub + 🔎 See on GitHub
@@ -1686,15 +1686,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/migration.rb, line 919
-    def up_only(&block)
-      execute_block(&block) unless reverting?
+    def up_only(&block)
+      execute_block(&block) unless reverting?
     end
- See on GitHub + 🔎 See on GitHub
@@ -1721,15 +1721,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/migration.rb, line 992
-    def write(text = "")
+    def write(text = "")
       puts(text) if verbose
     end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/Migration/CheckPending.html b/src/classes/ActiveRecord/Migration/CheckPending.html index 05bf0ba700..63d0af1692 100644 --- a/src/classes/ActiveRecord/Migration/CheckPending.html +++ b/src/classes/ActiveRecord/Migration/CheckPending.html @@ -93,7 +93,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/migration.rb, line 631
@@ -104,7 +104,7 @@ 

@file_watcher = file_watcher end

- See on GitHub + 🔎 See on GitHub
@@ -135,7 +135,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/migration.rb, line 638
@@ -157,7 +157,7 @@ 

@app.call(env) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/Migration/CommandRecorder.html b/src/classes/ActiveRecord/Migration/CommandRecorder.html index 411323a5f4..52fde05597 100644 --- a/src/classes/ActiveRecord/Migration/CommandRecorder.html +++ b/src/classes/ActiveRecord/Migration/CommandRecorder.html @@ -170,11 +170,6 @@

Constants

] - -   - - - @@ -236,7 +231,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/migration/command_recorder.rb, line 63
@@ -246,7 +241,7 @@ 

@reverting = false end

- See on GitHub + 🔎 See on GitHub
@@ -289,22 +284,22 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/migration/command_recorder.rb, line 110
-      def inverse_of(command, args, &block)
-        method = :"invert_#{command}"
-        raise IrreversibleMigration, <<~MSG unless respond_to?(method, true)
+      def inverse_of(command, args, &block)
+        method = :"invert_#{command}"
+        raise IrreversibleMigration, <<~MSG unless respond_to?(method, true)
           This migration uses #{command}, which is not automatically reversible.
           To make the migration reversible you can either:
           1. Define #up and #down methods in place of the #change method.
           2. Use the #reversible method to define reversible behavior.
         MSG
-        send(method, args, &block)
+        send(method, args, &block)
       end
- See on GitHub + 🔎 See on GitHub
@@ -334,19 +329,19 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/migration/command_recorder.rb, line 90
-      def record(*command, &block)
+      def record(*command, &block)
         if @reverting
-          @commands << inverse_of(*command, &block)
+          @commands << inverse_of(*command, &block)
         else
-          @commands << (command << block)
+          @commands << (command << block)
         end
       end
- See on GitHub + 🔎 See on GitHub
@@ -373,17 +368,17 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/migration/command_recorder.rb, line 144
       def replay(migration)
         commands.each do |cmd, args, block|
-          migration.send(cmd, *args, &block)
+          migration.send(cmd, *args, &block)
         end
       end
- See on GitHub + 🔎 See on GitHub
@@ -414,7 +409,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/migration/command_recorder.rb, line 76
@@ -428,7 +423,7 @@ 

@reverting = !@reverting end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/MigrationContext.html b/src/classes/ActiveRecord/MigrationContext.html index 53f234f9a1..14c8193c21 100644 --- a/src/classes/ActiveRecord/MigrationContext.html +++ b/src/classes/ActiveRecord/MigrationContext.html @@ -127,16 +127,16 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/migration.rb, line 1201
     def initialize(migrations_paths, schema_migration = nil, internal_metadata = nil)
       if schema_migration == SchemaMigration
-        ActiveRecord.deprecator.warn(<<-MSG.squish)
+        ActiveRecord.deprecator.warn(<<-MSG.squish)
           SchemaMigration no longer inherits from ActiveRecord::Base. If you want
           to use the default connection, remove this argument. If you want to use a
-          specific connection, instantiate MigrationContext with the connection's schema
+          specific connection, instantiate MigrationContext with the connection's schema
           migration, for example `MigrationContext.new(path, Dog.connection.schema_migration)`.
         MSG
 
@@ -144,10 +144,10 @@ 

end if internal_metadata == InternalMetadata - ActiveRecord.deprecator.warn(<<-MSG.squish) + ActiveRecord.deprecator.warn(<<-MSG.squish) SchemaMigration no longer inherits from ActiveRecord::Base. If you want to use the default connection, remove this argument. If you want to use a - specific connection, instantiate MigrationContext with the connection's internal + specific connection, instantiate MigrationContext with the connection's internal metadata, for example `MigrationContext.new(path, nil, Dog.connection.internal_metadata)`. MSG @@ -159,7 +159,7 @@

@internal_metadata = internal_metadata || InternalMetadata.new(connection) end

- See on GitHub + 🔎 See on GitHub
@@ -198,24 +198,24 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/migration.rb, line 1242
-    def migrate(target_version = nil, &block)
+    def migrate(target_version = nil, &block)
       case
       when target_version.nil?
-        up(target_version, &block)
-      when current_version == 0 && target_version == 0
+        up(target_version, &block)
+      when current_version == 0 && target_version == 0
         []
-      when current_version > target_version
-        down(target_version, &block)
+      when current_version > target_version
+        down(target_version, &block)
       else
-        up(target_version, &block)
+        up(target_version, &block)
       end
     end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/MismatchedForeignKey.html b/src/classes/ActiveRecord/MismatchedForeignKey.html index bff6e85ce2..c5f570cdb2 100644 --- a/src/classes/ActiveRecord/MismatchedForeignKey.html +++ b/src/classes/ActiveRecord/MismatchedForeignKey.html @@ -93,7 +93,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/errors.rb, line 218
@@ -114,26 +114,26 @@ 

if table type = primary_key_column.bigint? ? :bigint : primary_key_column.type - msg = <<~EOM.squish + msg = <<~EOM.squish Column `#{foreign_key}` on table `#{table}` does not match column `#{primary_key}` on `#{target_table}`, which has type `#{primary_key_column.sql_type}`. To resolve this issue, change the type of the `#{foreign_key}` column on `#{table}` to be :#{type}. (For example `t.#{type} :#{foreign_key}`). EOM else - msg = <<~EOM.squish + msg = <<~EOM.squish There is a mismatch between the foreign key and primary key column types. Verify that the foreign key column type and the primary key of the associated table match types. EOM end if message - msg << "\nOriginal message: #{message}" + msg << "\nOriginal message: #{message}" end super(msg, sql: sql, binds: binds, connection_pool: connection_pool) end

- See on GitHub + 🔎 See on GitHub
@@ -164,12 +164,12 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/errors.rb, line 254
     def set_query(sql, binds)
-      if @query_parser && !@sql
+      if @query_parser && !@sql
         self.class.new(
           message: @original_message,
           sql: sql,
@@ -184,7 +184,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/ModelSchema.html b/src/classes/ActiveRecord/ModelSchema.html index 72a436570d..0c2f19ce54 100644 --- a/src/classes/ActiveRecord/ModelSchema.html +++ b/src/classes/ActiveRecord/ModelSchema.html @@ -157,7 +157,7 @@

- See on GitHub + 🔎 See on GitHub @@ -181,7 +181,7 @@

- See on GitHub + 🔎 See on GitHub @@ -205,7 +205,7 @@

- See on GitHub + 🔎 See on GitHub @@ -234,7 +234,7 @@

- See on GitHub + 🔎 See on GitHub @@ -260,28 +260,28 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/model_schema.rb, line 157
     included do
       class_attribute :primary_key_prefix_type, instance_writer: false
-      class_attribute :table_name_prefix, instance_writer: false, default: ""
-      class_attribute :table_name_suffix, instance_writer: false, default: ""
-      class_attribute :schema_migrations_table_name, instance_accessor: false, default: "schema_migrations"
-      class_attribute :internal_metadata_table_name, instance_accessor: false, default: "ar_internal_metadata"
+      class_attribute :table_name_prefix, instance_writer: false, default: ""
+      class_attribute :table_name_suffix, instance_writer: false, default: ""
+      class_attribute :schema_migrations_table_name, instance_accessor: false, default: "schema_migrations"
+      class_attribute :internal_metadata_table_name, instance_accessor: false, default: "ar_internal_metadata"
       class_attribute :pluralize_table_names, instance_writer: false, default: true
       class_attribute :implicit_order_column, instance_accessor: false
       class_attribute :immutable_strings_by_default, instance_accessor: false
 
-      class_attribute :inheritance_column, instance_accessor: false, default: "type"
+      class_attribute :inheritance_column, instance_accessor: false, default: "type"
       singleton_class.class_eval do
         alias_method :_inheritance_column=, :inheritance_column=
         private :_inheritance_column=
         alias_method :inheritance_column=, :real_inheritance_column=
       end
 
-      self.protected_environments = ["production"]
+      self.protected_environments = ["production"]
 
       self.ignored_columns = [].freeze
 
@@ -290,7 +290,7 @@ 

initialize_load_schema_monitor end

- See on GitHub + 🔎 See on GitHub
@@ -316,7 +316,7 @@

- See on GitHub + 🔎 See on GitHub @@ -340,7 +340,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 @@ -436,7 +436,7 @@

- See on GitHub + 🔎 See on GitHub @@ -460,7 +460,7 @@

- See on GitHub + 🔎 See on GitHub @@ -484,7 +484,7 @@

- See on GitHub + 🔎 See on GitHub @@ -508,7 +508,7 @@

- See on GitHub + 🔎 See on GitHub @@ -534,7 +534,7 @@

- See on GitHub + 🔎 See on GitHub @@ -558,7 +558,7 @@

- See on GitHub + 🔎 See on GitHub @@ -584,7 +584,7 @@

- See on GitHub + 🔎 See on GitHub @@ -612,7 +612,7 @@

- See on GitHub + 🔎 See on GitHub diff --git a/src/classes/ActiveRecord/ModelSchema/ClassMethods.html b/src/classes/ActiveRecord/ModelSchema/ClassMethods.html index cc8fc23298..56b2215ac0 100644 --- a/src/classes/ActiveRecord/ModelSchema/ClassMethods.html +++ b/src/classes/ActiveRecord/ModelSchema/ClassMethods.html @@ -158,7 +158,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/model_schema.rb, line 491
@@ -167,7 +167,7 @@ 

@column_defaults ||= _default_attributes.deep_dup.to_hash.freeze end

- See on GitHub + 🔎 See on GitHub
@@ -205,7 +205,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/model_schema.rb, line 482
@@ -216,7 +216,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -243,15 +243,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/model_schema.rb, line 502
       def column_names
-        @column_names ||= columns.map(&:name).freeze
+        @column_names ||= columns.map(&:name).freeze
       end
- See on GitHub + 🔎 See on GitHub
@@ -278,7 +278,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/model_schema.rb, line 427
@@ -287,7 +287,7 @@ 

@columns ||= columns_hash.values.freeze end

- See on GitHub + 🔎 See on GitHub
@@ -314,7 +314,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/model_schema.rb, line 513
@@ -322,11 +322,11 @@ 

@content_columns ||= columns.reject do |c| c.name == primary_key || c.name == inheritance_column || - c.name.end_with?("_id", "_count") + c.name.end_with?("_id", "_count") end.freeze end

- See on GitHub + 🔎 See on GitHub
@@ -353,7 +353,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/model_schema.rb, line 325
@@ -361,7 +361,7 @@ 

@ignored_columns || superclass.ignored_columns end

- See on GitHub + 🔎 See on GitHub
@@ -413,16 +413,16 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/model_schema.rb, line 360
       def ignored_columns=(columns)
         reload_schema_from_cache
-        @ignored_columns = columns.map(&:to_s).freeze
+        @ignored_columns = columns.map(&:to_s).freeze
       end
- See on GitHub + 🔎 See on GitHub
@@ -449,7 +449,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/model_schema.rb, line 405
@@ -457,7 +457,7 @@ 

connection.next_sequence_value(sequence_name) end

- See on GitHub + 🔎 See on GitHub
@@ -484,7 +484,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/model_schema.rb, line 399
@@ -492,7 +492,7 @@ 

connection.prefetch_primary_key?(table_name) end

- See on GitHub + 🔎 See on GitHub
@@ -519,7 +519,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/model_schema.rb, line 306
@@ -531,7 +531,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -558,15 +558,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/model_schema.rb, line 315
       def protected_environments=(environments)
-        @protected_environments = environments.map(&:to_s)
+        @protected_environments = environments.map(&:to_s)
       end
- See on GitHub + 🔎 See on GitHub
@@ -593,7 +593,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/model_schema.rb, line 281
@@ -601,7 +601,7 @@ 

@quoted_table_name ||= connection.quote_table_name(table_name) end

- See on GitHub + 🔎 See on GitHub
@@ -651,20 +651,20 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/model_schema.rb, line 547
       def reset_column_information
         connection.clear_cache!
-        ([self] + descendants).each(&:undefine_attribute_methods)
+        ([self] + descendants).each(&:undefine_attribute_methods)
         connection.schema_cache.clear_data_source_cache!(table_name)
 
         reload_schema_from_cache
         initialize_find_by_cache
       end
- See on GitHub + 🔎 See on GitHub
@@ -691,7 +691,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/model_schema.rb, line 365
@@ -703,7 +703,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -739,7 +739,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/model_schema.rb, line 392
@@ -748,7 +748,7 @@ 

@explicit_sequence_name = true end

- See on GitHub + 🔎 See on GitHub
@@ -775,7 +775,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/model_schema.rb, line 410
@@ -783,7 +783,7 @@ 

connection.schema_cache.data_source_exists?(table_name) end

- See on GitHub + 🔎 See on GitHub
@@ -860,7 +860,7 @@

Examples

- Source code + 📝 Source code
# File activerecord/lib/active_record/model_schema.rb, line 255
@@ -869,7 +869,7 @@ 

Examples

@table_name end
- See on GitHub + 🔎 See on GitHub
@@ -901,12 +901,12 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/model_schema.rb, line 265
       def table_name=(value)
-        value = value && value.to_s
+        value = value && value.to_s
 
         if defined?(@table_name)
           return if value == @table_name
@@ -916,11 +916,11 @@ 

@table_name = value @quoted_table_name = nil @arel_table = nil - @sequence_name = nil unless defined?(@explicit_sequence_name) && @explicit_sequence_name + @sequence_name = nil unless defined?(@explicit_sequence_name) && @explicit_sequence_name @predicate_builder = nil end

- See on GitHub + 🔎 See on GitHub
@@ -951,22 +951,22 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/model_schema.rb, line 458
-      def type_for_attribute(attr_name, &block)
+      def type_for_attribute(attr_name, &block)
         attr_name = attr_name.to_s
         attr_name = attribute_aliases[attr_name] || attr_name
 
         if block
-          attribute_types.fetch(attr_name, &block)
+          attribute_types.fetch(attr_name, &block)
         else
           attribute_types[attr_name]
         end
       end
- See on GitHub + 🔎 See on GitHub
@@ -996,7 +996,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/model_schema.rb, line 571
@@ -1004,7 +1004,7 @@ 

@load_schema_monitor = Monitor.new end

- See on GitHub + 🔎 See on GitHub
@@ -1031,7 +1031,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/model_schema.rb, line 575
@@ -1057,7 +1057,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/MultiparameterAssignmentErrors.html b/src/classes/ActiveRecord/MultiparameterAssignmentErrors.html index f16facab55..b12f42d8d7 100644 --- a/src/classes/ActiveRecord/MultiparameterAssignmentErrors.html +++ b/src/classes/ActiveRecord/MultiparameterAssignmentErrors.html @@ -103,7 +103,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/errors.rb, line 438
@@ -111,7 +111,7 @@ 

@errors = errors end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/NestedAttributes/ClassMethods.html b/src/classes/ActiveRecord/NestedAttributes/ClassMethods.html index cda9ad65e2..c2fd71a307 100644 --- a/src/classes/ActiveRecord/NestedAttributes/ClassMethods.html +++ b/src/classes/ActiveRecord/NestedAttributes/ClassMethods.html @@ -321,11 +321,6 @@

Constants

proc { |attributes| attributes.all? { |key, value| key == "_destroy" || value.blank? } } - -   - - - @@ -383,7 +378,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/nested_attributes.rb, line 353
@@ -405,12 +400,12 @@ 

type = (reflection.collection? ? :collection : :one_to_one) generate_association_writer(association_name, type) else - raise ArgumentError, "No association found for name `#{association_name}'. Has it been defined yet?" + raise ArgumentError, "No association found for name `#{association_name}'. Has it been defined yet?" end end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/NoDatabaseError.html b/src/classes/ActiveRecord/NoDatabaseError.html index 15b6a51cc0..10e45383e0 100644 --- a/src/classes/ActiveRecord/NoDatabaseError.html +++ b/src/classes/ActiveRecord/NoDatabaseError.html @@ -107,12 +107,12 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/errors.rb, line 319
       def db_error(db_name)
-        NoDatabaseError.new(<<~MSG)
+        NoDatabaseError.new(<<~MSG)
           We could not find your database: #{db_name}. Available database configurations can be found in config/database.yml file.
 
           To resolve this error:
@@ -124,7 +124,7 @@ 

MSG end

- See on GitHub + 🔎 See on GitHub
@@ -151,15 +151,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/errors.rb, line 314
     def initialize(message = nil, connection_pool: nil)
-      super(message || "Database not found", connection_pool: connection_pool)
+      super(message || "Database not found", connection_pool: connection_pool)
     end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/NoTouching.html b/src/classes/ActiveRecord/NoTouching.html index 170d2c3bcb..02ae934953 100644 --- a/src/classes/ActiveRecord/NoTouching.html +++ b/src/classes/ActiveRecord/NoTouching.html @@ -103,7 +103,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/no_touching.rb, line 53
@@ -111,7 +111,7 @@ 

NoTouching.applied_to?(self.class) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/NoTouching/ClassMethods.html b/src/classes/ActiveRecord/NoTouching/ClassMethods.html index c64b0cda3e..ef6f81e253 100644 --- a/src/classes/ActiveRecord/NoTouching/ClassMethods.html +++ b/src/classes/ActiveRecord/NoTouching/ClassMethods.html @@ -91,15 +91,15 @@

Examples

- Source code + 📝 Source code
# File activerecord/lib/active_record/no_touching.rb, line 23
-      def no_touching(&block)
-        NoTouching.apply_to(self, &block)
+      def no_touching(&block)
+        NoTouching.apply_to(self, &block)
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/Normalization.html b/src/classes/ActiveRecord/Normalization.html index f171c0011a..7c64bb6928 100644 --- a/src/classes/ActiveRecord/Normalization.html +++ b/src/classes/ActiveRecord/Normalization.html @@ -104,7 +104,7 @@

Examples

- Source code + 📝 Source code
# File activerecord/lib/active_record/normalization.rb, line 26
@@ -113,7 +113,7 @@ 

Examples

self[name] = self[name] end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/Normalization/ClassMethods.html b/src/classes/ActiveRecord/Normalization/ClassMethods.html index f8b68dc0d7..b6c245b97f 100644 --- a/src/classes/ActiveRecord/Normalization/ClassMethods.html +++ b/src/classes/ActiveRecord/Normalization/ClassMethods.html @@ -92,7 +92,7 @@

Examples

- Source code + 📝 Source code
# File activerecord/lib/active_record/normalization.rb, line 100
@@ -100,7 +100,7 @@ 

Examples

type_for_attribute(name).cast(value) end
- See on GitHub + 🔎 See on GitHub
@@ -163,7 +163,7 @@

Examples

- Source code + 📝 Source code
# File activerecord/lib/active_record/normalization.rb, line 80
@@ -174,10 +174,10 @@ 

Examples

end end - self.normalized_attributes += names.map(&:to_sym) + self.normalized_attributes += names.map(&:to_sym) end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/Persistence.html b/src/classes/ActiveRecord/Persistence.html index 3bba4e8aa7..5c1dcde8d2 100644 --- a/src/classes/ActiveRecord/Persistence.html +++ b/src/classes/ActiveRecord/Persistence.html @@ -201,7 +201,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/persistence.rb, line 814
@@ -220,7 +220,7 @@ 

became end

- See on GitHub + 🔎 See on GitHub
@@ -249,7 +249,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/persistence.rb, line 835
@@ -259,11 +259,11 @@ 

if !klass.descends_from_active_record? sti_type = klass.sti_name end - became.public_send("#{klass.inheritance_column}=", sti_type) + became.public_send("#{klass.inheritance_column}=", sti_type) became end

- See on GitHub + 🔎 See on GitHub
@@ -290,7 +290,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/persistence.rb, line 982
@@ -298,7 +298,7 @@ 

increment(attribute, -by) end

- See on GitHub + 🔎 See on GitHub
@@ -325,7 +325,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/persistence.rb, line 992
@@ -333,7 +333,7 @@ 

increment!(attribute, -by, touch: touch) end

- See on GitHub + 🔎 See on GitHub
@@ -366,7 +366,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/persistence.rb, line 766
@@ -377,7 +377,7 @@ 

freeze end

- See on GitHub + 🔎 See on GitHub
@@ -406,20 +406,20 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/persistence.rb, line 780
     def destroy
       _raise_readonly_record_error if readonly?
       destroy_associations
-      @_trigger_destroy_callback ||= persisted? && destroy_row > 0
+      @_trigger_destroy_callback ||= persisted? && destroy_row > 0
       @destroyed = true
       @previously_new_record = false
       freeze
     end
- See on GitHub + 🔎 See on GitHub
@@ -448,7 +448,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/persistence.rb, line 796
@@ -456,7 +456,7 @@ 

destroy || _raise_record_not_destroyed end

- See on GitHub + 🔎 See on GitHub
@@ -483,7 +483,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/persistence.rb, line 682
@@ -491,7 +491,7 @@ 

@destroyed end

- See on GitHub + 🔎 See on GitHub
@@ -518,7 +518,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/persistence.rb, line 959
@@ -528,7 +528,7 @@ 

self end

- See on GitHub + 🔎 See on GitHub
@@ -555,19 +555,19 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/persistence.rb, line 971
     def increment!(attribute, by = 1, touch: nil)
       increment(attribute, by)
-      change = public_send(attribute) - (public_send(:"#{attribute}_in_database") || 0)
-      self.class.update_counters(id, attribute => change, touch: touch)
-      public_send(:"clear_#{attribute}_change")
+      change = public_send(attribute) - (public_send(:"#{attribute}_in_database") || 0)
+      self.class.update_counters(id, attribute => change, touch: touch)
+      public_send(:"clear_#{attribute}_change")
       self
     end
- See on GitHub + 🔎 See on GitHub
@@ -594,7 +594,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/persistence.rb, line 665
@@ -602,7 +602,7 @@ 

@new_record end

- See on GitHub + 🔎 See on GitHub
@@ -629,7 +629,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/persistence.rb, line 688
@@ -637,7 +637,7 @@ 

!(@new_record || @destroyed) end

- See on GitHub + 🔎 See on GitHub
@@ -664,7 +664,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/persistence.rb, line 672
@@ -672,7 +672,7 @@ 

@previously_new_record end

- See on GitHub + 🔎 See on GitHub
@@ -699,15 +699,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/persistence.rb, line 677
     def previously_persisted?
-      !new_record? && destroyed?
+      !new_record? && destroyed?
     end
- See on GitHub + 🔎 See on GitHub
@@ -778,7 +778,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/persistence.rb, line 1069
@@ -798,7 +798,7 @@ 

self end

- See on GitHub + 🔎 See on GitHub
@@ -836,17 +836,17 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/persistence.rb, line 717
-    def save(**options, &block)
-      create_or_update(**options, &block)
+    def save(**options, &block)
+      create_or_update(**options, &block)
     rescue ActiveRecord::RecordInvalid
       false
     end
- See on GitHub + 🔎 See on GitHub
@@ -886,15 +886,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/persistence.rb, line 750
-    def save!(**options, &block)
-      create_or_update(**options, &block) || raise(RecordNotSaved.new("Failed to save the record", self))
+    def save!(**options, &block)
+      create_or_update(**options, &block) || raise(RecordNotSaved.new("Failed to save the record", self))
     end
- See on GitHub + 🔎 See on GitHub
@@ -929,16 +929,16 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/persistence.rb, line 1008
     def toggle(attribute)
-      self[attribute] = !public_send("#{attribute}?")
+      self[attribute] = !public_send("#{attribute}?")
       self
     end
- See on GitHub + 🔎 See on GitHub
@@ -965,7 +965,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/persistence.rb, line 1017
@@ -973,7 +973,7 @@ 

toggle(attribute).update_attribute(attribute, self[attribute]) end

- See on GitHub + 🔎 See on GitHub
@@ -1028,7 +1028,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/persistence.rb, line 1119
@@ -1052,7 +1052,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -1079,7 +1079,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/persistence.rb, line 890
@@ -1092,7 +1092,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -1119,7 +1119,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/persistence.rb, line 901
@@ -1132,7 +1132,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -1172,19 +1172,19 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/persistence.rb, line 857
     def update_attribute(name, value)
       name = name.to_s
       verify_readonly_attribute(name)
-      public_send("#{name}=", value)
+      public_send("#{name}=", value)
 
       save(validate: false)
     end
- See on GitHub + 🔎 See on GitHub
@@ -1224,19 +1224,19 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/persistence.rb, line 879
     def update_attribute!(name, value)
       name = name.to_s
       verify_readonly_attribute(name)
-      public_send("#{name}=", value)
+      public_send("#{name}=", value)
 
       save!(validate: false)
     end
- See on GitHub + 🔎 See on GitHub
@@ -1263,15 +1263,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/persistence.rb, line 911
     def update_column(name, value)
-      update_columns(name => value)
+      update_columns(name => value)
     end
- See on GitHub + 🔎 See on GitHub
@@ -1314,13 +1314,13 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/persistence.rb, line 931
     def update_columns(attributes)
-      raise ActiveRecordError, "cannot update a new record" if new_record?
-      raise ActiveRecordError, "cannot update a destroyed record" if destroyed?
+      raise ActiveRecordError, "cannot update a new record" if new_record?
+      raise ActiveRecordError, "cannot update a destroyed record" if destroyed?
       _raise_readonly_record_error if readonly?
 
       attributes = attributes.transform_keys do |key|
@@ -1343,7 +1343,7 @@ 

affected_rows == 1 end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/Persistence/ClassMethods.html b/src/classes/ActiveRecord/Persistence/ClassMethods.html index 70e42140ad..a943cfaf8a 100644 --- a/src/classes/ActiveRecord/Persistence/ClassMethods.html +++ b/src/classes/ActiveRecord/Persistence/ClassMethods.html @@ -155,19 +155,19 @@

Examples

- Source code + 📝 Source code
# File activerecord/lib/active_record/persistence.rb, line 82
-      def build(attributes = nil, &block)
+      def build(attributes = nil, &block)
         if attributes.is_a?(Array)
-          attributes.collect { |attr| build(attr, &block) }
+          attributes.collect { |attr| build(attr, &block) }
         else
-          new(attributes, &block)
+          new(attributes, &block)
         end
       end
- See on GitHub + 🔎 See on GitHub
@@ -215,21 +215,21 @@

Examples

- Source code + 📝 Source code
# File activerecord/lib/active_record/persistence.rb, line 33
-      def create(attributes = nil, &block)
+      def create(attributes = nil, &block)
         if attributes.is_a?(Array)
-          attributes.collect { |attr| create(attr, &block) }
+          attributes.collect { |attr| create(attr, &block) }
         else
-          object = new(attributes, &block)
+          object = new(attributes, &block)
           object.save
           object
         end
       end
- See on GitHub + 🔎 See on GitHub
@@ -258,21 +258,21 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/persistence.rb, line 50
-      def create!(attributes = nil, &block)
+      def create!(attributes = nil, &block)
         if attributes.is_a?(Array)
-          attributes.collect { |attr| create!(attr, &block) }
+          attributes.collect { |attr| create!(attr, &block) }
         else
-          object = new(attributes, &block)
+          object = new(attributes, &block)
           object.save!
           object
         end
       end
- See on GitHub + 🔎 See on GitHub
@@ -312,15 +312,15 @@

Examples

- Source code + 📝 Source code
# File activerecord/lib/active_record/persistence.rb, line 565
       def delete(id_or_array)
-        delete_by(primary_key => id_or_array)
+        delete_by(primary_key => id_or_array)
       end
- See on GitHub + 🔎 See on GitHub
@@ -364,7 +364,7 @@

Examples

- Source code + 📝 Source code
# File activerecord/lib/active_record/persistence.rb, line 533
@@ -376,13 +376,13 @@ 

Examples

end if multiple_ids - find(id).each(&:destroy) + find(id).each(&:destroy) else find(id).destroy end end
- See on GitHub + 🔎 See on GitHub
@@ -411,7 +411,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/persistence.rb, line 96
@@ -419,7 +419,7 @@ 

insert_all([ attributes ], returning: returning, unique_by: unique_by, record_timestamps: record_timestamps) end

- See on GitHub + 🔎 See on GitHub
@@ -448,7 +448,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/persistence.rb, line 185
@@ -456,7 +456,7 @@ 

insert_all!([ attributes ], returning: returning, record_timestamps: record_timestamps) end

- See on GitHub + 🔎 See on GitHub
@@ -541,7 +541,7 @@

Example

- Source code + 📝 Source code
# File activerecord/lib/active_record/persistence.rb, line 175
@@ -549,7 +549,7 @@ 

Example

InsertAll.new(self, attributes, on_duplicate: :skip, returning: returning, unique_by: unique_by, record_timestamps: record_timestamps).execute end
- See on GitHub + 🔎 See on GitHub
@@ -617,7 +617,7 @@

Examples

- Source code + 📝 Source code
# File activerecord/lib/active_record/persistence.rb, line 242
@@ -625,7 +625,7 @@ 

Examples

InsertAll.new(self, attributes, on_duplicate: :raise, returning: returning, record_timestamps: record_timestamps).execute end
- See on GitHub + 🔎 See on GitHub
@@ -656,16 +656,16 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/persistence.rb, line 376
-      def instantiate(attributes, column_types = {}, &block)
+      def instantiate(attributes, column_types = {}, &block)
         klass = discriminate_class_for_record(attributes)
-        instantiate_instance_of(klass, attributes, column_types, &block)
+        instantiate_instance_of(klass, attributes, column_types, &block)
       end
- See on GitHub + 🔎 See on GitHub
@@ -721,18 +721,18 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/persistence.rb, line 488
       def query_constraints(*columns_list)
-        raise ArgumentError, "You must specify at least one column to be used in querying" if columns_list.empty?
+        raise ArgumentError, "You must specify at least one column to be used in querying" if columns_list.empty?
 
-        @query_constraints_list = columns_list.map(&:to_s)
+        @query_constraints_list = columns_list.map(&:to_s)
         @has_query_constraints = @query_constraints_list
       end
- See on GitHub + 🔎 See on GitHub
@@ -782,7 +782,7 @@

Examples

- Source code + 📝 Source code
# File activerecord/lib/active_record/persistence.rb, line 408
@@ -790,8 +790,8 @@ 

Examples

if id.is_a?(Array) if id.any?(ActiveRecord::Base) raise ArgumentError, - "You are passing an array of ActiveRecord::Base instances to `update`. " \ - "Please pass the ids of the objects by calling `pluck(:id)` or `map(&:id)`." + "You are passing an array of ActiveRecord::Base instances to `update`. " \ + "Please pass the ids of the objects by calling `pluck(:id)` or `map(&:id)`." end id.map { |one_id| find(one_id) }.each_with_index { |object, idx| object.update(attributes[idx]) @@ -801,8 +801,8 @@

Examples

else if ActiveRecord::Base === id raise ArgumentError, - "You are passing an instance of ActiveRecord::Base to `update`. " \ - "Please pass the id of the object by calling `.id`." + "You are passing an instance of ActiveRecord::Base to `update`. " \ + "Please pass the id of the object by calling `.id`." end object = find(id) object.update(attributes) @@ -810,7 +810,7 @@

Examples

end end
- See on GitHub + 🔎 See on GitHub
@@ -837,7 +837,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/persistence.rb, line 434
@@ -845,8 +845,8 @@ 

if id.is_a?(Array) if id.any?(ActiveRecord::Base) raise ArgumentError, - "You are passing an array of ActiveRecord::Base instances to `update!`. " \ - "Please pass the ids of the objects by calling `pluck(:id)` or `map(&:id)`." + "You are passing an array of ActiveRecord::Base instances to `update!`. " \ + "Please pass the ids of the objects by calling `pluck(:id)` or `map(&:id)`." end id.map { |one_id| find(one_id) }.each_with_index { |object, idx| object.update!(attributes[idx]) @@ -856,8 +856,8 @@

else if ActiveRecord::Base === id raise ArgumentError, - "You are passing an instance of ActiveRecord::Base to `update!`. " \ - "Please pass the id of the object by calling `.id`." + "You are passing an instance of ActiveRecord::Base to `update!`. " \ + "Please pass the id of the object by calling `.id`." end object = find(id) object.update!(attributes) @@ -865,7 +865,7 @@

end end

- See on GitHub + 🔎 See on GitHub
@@ -894,7 +894,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/persistence.rb, line 252
@@ -902,7 +902,7 @@ 

upsert_all([ attributes ], **kwargs) end

- See on GitHub + 🔎 See on GitHub
@@ -1018,7 +1018,7 @@

Examples

- Source code + 📝 Source code
# File activerecord/lib/active_record/persistence.rb, line 362
@@ -1026,7 +1026,7 @@ 

Examples

InsertAll.new(self, attributes, on_duplicate: on_duplicate, update_only: update_only, returning: returning, unique_by: unique_by, record_timestamps: record_timestamps).execute end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/Promise.html b/src/classes/ActiveRecord/Promise.html index 57acae676e..a27cefd8a9 100644 --- a/src/classes/ActiveRecord/Promise.html +++ b/src/classes/ActiveRecord/Promise.html @@ -96,7 +96,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/promise.rb, line 13
@@ -104,7 +104,7 @@ 

@future_result.pending? end

- See on GitHub + 🔎 See on GitHub
@@ -135,15 +135,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/promise.rb, line 36
-    def then(&block)
-      Promise.new(@future_result, @block ? @block >> block : block)
+    def then(&block)
+      Promise.new(@future_result, @block ? @block >> block : block)
     end
- See on GitHub + 🔎 See on GitHub
@@ -170,7 +170,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/promise.rb, line 20
@@ -185,7 +185,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/QueryCache.html b/src/classes/ActiveRecord/QueryCache.html index b643d55135..c5114dc28e 100644 --- a/src/classes/ActiveRecord/QueryCache.html +++ b/src/classes/ActiveRecord/QueryCache.html @@ -110,7 +110,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/query_cache.rb, line 32
@@ -118,11 +118,11 @@ 

pools.each { |pool| pool.disable_query_cache! } ActiveRecord::Base.connection_handler.each_connection_pool do |pool| - pool.release_connection if pool.active_connection? && !pool.connection.transaction_open? + pool.release_connection if pool.active_connection? && !pool.connection.transaction_open? end end

- See on GitHub + 🔎 See on GitHub
@@ -149,7 +149,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/query_cache.rb, line 40
@@ -157,7 +157,7 @@ 

executor.register_hook(self) end

- See on GitHub + 🔎 See on GitHub
@@ -184,7 +184,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/query_cache.rb, line 28
@@ -192,7 +192,7 @@ 

ActiveRecord::Base.connection_handler.each_connection_pool.reject { |p| p.query_cache_enabled }.each { |p| p.enable_query_cache! } end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/QueryCache/ClassMethods.html b/src/classes/ActiveRecord/QueryCache/ClassMethods.html index 4a4fd1d95d..0d482a69cd 100644 --- a/src/classes/ActiveRecord/QueryCache/ClassMethods.html +++ b/src/classes/ActiveRecord/QueryCache/ClassMethods.html @@ -82,19 +82,19 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/query_cache.rb, line 9
-      def cache(&block)
+      def cache(&block)
         if connected? || !configurations.empty?
-          connection.cache(&block)
+          connection.cache(&block)
         else
           yield
         end
       end
- See on GitHub + 🔎 See on GitHub
@@ -121,19 +121,19 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/query_cache.rb, line 19
-      def uncached(&block)
+      def uncached(&block)
         if connected? || !configurations.empty?
-          connection.uncached(&block)
+          connection.uncached(&block)
         else
           yield
         end
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/QueryLogs.html b/src/classes/ActiveRecord/QueryLogs.html index 5ba6315511..d1ef7e9993 100644 --- a/src/classes/ActiveRecord/QueryLogs.html +++ b/src/classes/ActiveRecord/QueryLogs.html @@ -155,7 +155,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/query_logs.rb, line 99
@@ -167,11 +167,11 @@ 

when :sqlcommenter SQLCommenter.new else - raise ArgumentError, "Formatter is unsupported: #{formatter}" + raise ArgumentError, "Formatter is unsupported: #{formatter}" end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/QueryMethods.html b/src/classes/ActiveRecord/QueryMethods.html index 2114eb3f3b..267af781de 100644 --- a/src/classes/ActiveRecord/QueryMethods.html +++ b/src/classes/ActiveRecord/QueryMethods.html @@ -232,11 +232,6 @@

Constants

[].freeze - -   - - - FROZEN_EMPTY_HASH @@ -244,11 +239,6 @@

Constants

{}.freeze - -   - - - VALID_UNSCOPING_VALUES @@ -259,11 +249,6 @@

Constants

:having, :optimizer_hints]) - -   - - - @@ -302,7 +287,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation/query_methods.rb, line 1034
@@ -310,11 +295,11 @@ 

if other.is_a?(Relation) spawn.and!(other) else - raise ArgumentError, "You have passed #{other.class.name} object to #and. Pass an ActiveRecord::Relation object instead." + raise ArgumentError, "You have passed #{other.class.name} object to #and. Pass an ActiveRecord::Relation object instead." end end

- See on GitHub + 🔎 See on GitHub
@@ -352,7 +337,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation/query_methods.rb, line 1428
@@ -361,7 +346,7 @@ 

spawn.annotate!(*args) end

- See on GitHub + 🔎 See on GitHub
@@ -401,7 +386,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation/query_methods.rb, line 1245
@@ -409,7 +394,7 @@ 

spawn.create_with!(value) end

- See on GitHub + 🔎 See on GitHub
@@ -446,7 +431,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation/query_methods.rb, line 1309
@@ -454,7 +439,7 @@ 

spawn.distinct!(value) end

- See on GitHub + 🔎 See on GitHub
@@ -504,7 +489,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation/query_methods.rb, line 267
@@ -513,7 +498,7 @@ 

spawn.eager_load!(*args) end

- See on GitHub + 🔎 See on GitHub
@@ -563,7 +548,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation/query_methods.rb, line 1470
@@ -572,13 +557,13 @@ 

records.compact! unless records.all?(klass) - raise ArgumentError, "You must only pass a single or collection of #{klass.name} objects to ##{__callee__}." + raise ArgumentError, "You must only pass a single or collection of #{klass.name} objects to ##{__callee__}." end spawn.excluding!(records) end

- See on GitHub + 🔎 See on GitHub
@@ -643,19 +628,19 @@

Using a Block

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation/query_methods.rb, line 1355
-    def extending(*modules, &block)
+    def extending(*modules, &block)
       if modules.any? || block
-        spawn.extending!(*modules, &block)
+        spawn.extending!(*modules, &block)
       else
         self
       end
     end
- See on GitHub + 🔎 See on GitHub
@@ -691,15 +676,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation/query_methods.rb, line 318
     def extract_associated(association)
-      preload(association).collect(&association)
+      preload(association).collect(&association)
     end
- See on GitHub + 🔎 See on GitHub
@@ -760,7 +745,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation/query_methods.rb, line 1290
@@ -768,7 +753,7 @@ 

spawn.from!(value, subquery_name) end

- See on GitHub + 🔎 See on GitHub
@@ -817,7 +802,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation/query_methods.rb, line 512
@@ -826,7 +811,7 @@ 

spawn.group!(*args) end

- See on GitHub + 🔎 See on GitHub
@@ -856,7 +841,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation/query_methods.rb, line 1096
@@ -864,7 +849,7 @@ 

opts.blank? ? self : spawn.having!(opts, *rest) end

- See on GitHub + 🔎 See on GitHub
@@ -901,7 +886,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation/query_methods.rb, line 620
@@ -927,7 +912,7 @@ 

.where!(where_clause) end

- See on GitHub + 🔎 See on GitHub
@@ -1008,7 +993,7 @@

Conditions

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation/query_methods.rb, line 231
@@ -1017,7 +1002,7 @@ 

Conditions

spawn.includes!(*args) end
- See on GitHub + 🔎 See on GitHub
@@ -1073,7 +1058,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation/query_methods.rb, line 1000
@@ -1081,7 +1066,7 @@ 

spawn.invert_where! end

- See on GitHub + 🔎 See on GitHub
@@ -1138,7 +1123,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation/query_methods.rb, line 767
@@ -1147,7 +1132,7 @@ 

spawn.joins!(*args) end

- See on GitHub + 🔎 See on GitHub
@@ -1207,7 +1192,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation/query_methods.rb, line 782
@@ -1216,7 +1201,7 @@ 

spawn.left_outer_joins!(*args) end

- See on GitHub + 🔎 See on GitHub
@@ -1248,7 +1233,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation/query_methods.rb, line 1110
@@ -1256,7 +1241,7 @@ 

spawn.limit!(value) end

- See on GitHub + 🔎 See on GitHub
@@ -1283,7 +1268,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation/query_methods.rb, line 1137
@@ -1291,7 +1276,7 @@ 

spawn.lock!(locks) end

- See on GitHub + 🔎 See on GitHub
@@ -1341,7 +1326,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation/query_methods.rb, line 1180
@@ -1349,7 +1334,7 @@ 

spawn.none! end

- See on GitHub + 🔎 See on GitHub
@@ -1384,7 +1369,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation/query_methods.rb, line 1126
@@ -1392,7 +1377,7 @@ 

spawn.offset!(value) end

- See on GitHub + 🔎 See on GitHub
@@ -1431,7 +1416,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation/query_methods.rb, line 1384
@@ -1440,7 +1425,7 @@ 

spawn.optimizer_hints!(*args) end

- See on GitHub + 🔎 See on GitHub
@@ -1473,7 +1458,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation/query_methods.rb, line 1066
@@ -1485,11 +1470,11 @@ 

spawn.or!(other) end else - raise ArgumentError, "You have passed #{other.class.name} object to #or. Pass an ActiveRecord::Relation object instead." + raise ArgumentError, "You have passed #{other.class.name} object to #or. Pass an ActiveRecord::Relation object instead." end end

- See on GitHub + 🔎 See on GitHub
@@ -1568,7 +1553,7 @@

Arel<
- Source code + 📝 Source code
# File activerecord/lib/active_record/relation/query_methods.rb, line 595
@@ -1579,7 +1564,7 @@ 

Arel< spawn.order!(*args) end

- See on GitHub + 🔎 See on GitHub
@@ -1626,7 +1611,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation/query_methods.rb, line 299
@@ -1635,7 +1620,7 @@ 

spawn.preload!(*args) end

- See on GitHub + 🔎 See on GitHub
@@ -1674,7 +1659,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation/query_methods.rb, line 1208
@@ -1682,7 +1667,7 @@ 

spawn.readonly!(value) end

- See on GitHub + 🔎 See on GitHub
@@ -1716,7 +1701,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation/query_methods.rb, line 332
@@ -1725,7 +1710,7 @@ 

spawn.references!(*table_names) end

- See on GitHub + 🔎 See on GitHub
@@ -1761,7 +1746,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation/query_methods.rb, line 532
@@ -1770,7 +1755,7 @@ 

spawn.regroup!(*args) end

- See on GitHub + 🔎 See on GitHub
@@ -1807,7 +1792,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation/query_methods.rb, line 651
@@ -1818,7 +1803,7 @@ 

spawn.reorder!(*args) end

- See on GitHub + 🔎 See on GitHub
@@ -1854,7 +1839,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation/query_methods.rb, line 480
@@ -1864,7 +1849,7 @@ 

spawn.reselect!(*args) end

- See on GitHub + 🔎 See on GitHub
@@ -1894,7 +1879,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation/query_methods.rb, line 1397
@@ -1902,7 +1887,7 @@ 

spawn.reverse_order! end

- See on GitHub + 🔎 See on GitHub
@@ -1941,7 +1926,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation/query_methods.rb, line 960
@@ -1956,7 +1941,7 @@ 

scope end

- See on GitHub + 🔎 See on GitHub
@@ -2031,26 +2016,26 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation/query_methods.rb, line 390
     def select(*fields)
       if block_given?
         if fields.any?
-          raise ArgumentError, "`select' with block doesn't take arguments."
+          raise ArgumentError, "`select' with block doesn't take arguments."
         end
 
         return super()
       end
 
-      check_if_method_has_arguments!(__callee__, fields, "Call `select' with at least one field.")
+      check_if_method_has_arguments!(__callee__, fields, "Call `select' with at least one field.")
 
       fields = process_select_args(fields)
       spawn._select!(*fields)
     end
- See on GitHub + 🔎 See on GitHub
@@ -2082,7 +2067,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation/query_methods.rb, line 1223
@@ -2090,7 +2075,7 @@ 

spawn.strict_loading!(value) end

- See on GitHub + 🔎 See on GitHub
@@ -2124,7 +2109,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation/query_methods.rb, line 1020
@@ -2132,7 +2117,7 @@ 

structurally_incompatible_values_for(other).empty? end

- See on GitHub + 🔎 See on GitHub
@@ -2159,18 +2144,18 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation/query_methods.rb, line 1440
     def uniq!(name)
       if values = @values[name]
-        values.uniq! if values.is_a?(Array) && !values.empty?
+        values.uniq! if values.is_a?(Array) && !values.empty?
       end
       self
     end
- See on GitHub + 🔎 See on GitHub
@@ -2226,7 +2211,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation/query_methods.rb, line 705
@@ -2235,7 +2220,7 @@ 

spawn.unscope!(*args) end

- See on GitHub + 🔎 See on GitHub
@@ -2388,21 +2373,21 @@

Blank Condition

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation/query_methods.rb, line 932
     def where(*args)
       if args.empty?
         WhereChain.new(spawn)
-      elsif args.length == 1 && args.first.blank?
+      elsif args.length == 1 && args.first.blank?
         self
       else
         spawn.where!(*args)
       end
     end
- See on GitHub + 🔎 See on GitHub
@@ -2478,7 +2463,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation/query_methods.rb, line 459
@@ -2487,7 +2472,7 @@ 

spawn.with!(*args) end

- See on GitHub + 🔎 See on GitHub
@@ -2542,7 +2527,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation/query_methods.rb, line 1539
@@ -2551,7 +2536,7 @@ 

self end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/QueryMethods/WhereChain.html b/src/classes/ActiveRecord/QueryMethods/WhereChain.html index cdc05c2c4f..0f9a390ff9 100644 --- a/src/classes/ActiveRecord/QueryMethods/WhereChain.html +++ b/src/classes/ActiveRecord/QueryMethods/WhereChain.html @@ -115,7 +115,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation/query_methods.rb, line 75
@@ -124,16 +124,16 @@ 

reflection = scope_association_reflection(association) @scope.joins!(association) if reflection.options[:class_name] - self.not(association => { reflection.association_primary_key => nil }) + self.not(association => { reflection.association_primary_key => nil }) else - self.not(reflection.table_name => { reflection.association_primary_key => nil }) + self.not(reflection.table_name => { reflection.association_primary_key => nil }) end end @scope end

- See on GitHub + 🔎 See on GitHub
@@ -177,7 +177,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation/query_methods.rb, line 107
@@ -186,16 +186,16 @@ 

reflection = scope_association_reflection(association) @scope.left_outer_joins!(association) if reflection.options[:class_name] - @scope.where!(association => { reflection.association_primary_key => nil }) + @scope.where!(association => { reflection.association_primary_key => nil }) else - @scope.where!(reflection.table_name => { reflection.association_primary_key => nil }) + @scope.where!(reflection.table_name => { reflection.association_primary_key => nil }) end end @scope end

- See on GitHub + 🔎 See on GitHub
@@ -251,7 +251,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation/query_methods.rb, line 49
@@ -263,7 +263,7 @@ 

@scope end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/Querying.html b/src/classes/ActiveRecord/Querying.html index c31810e3ae..17669a2542 100644 --- a/src/classes/ActiveRecord/Querying.html +++ b/src/classes/ActiveRecord/Querying.html @@ -90,15 +90,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/querying.rb, line 106
     def async_count_by_sql(sql)
-      connection.select_value(sanitize_sql(sql), "#{name} Count", async: true).then(&:to_i)
+      connection.select_value(sanitize_sql(sql), "#{name} Count", async: true).then(&:to_i)
     end
- See on GitHub + 🔎 See on GitHub
@@ -125,17 +125,17 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/querying.rb, line 55
-    def async_find_by_sql(sql, binds = [], preparable: nil, &block)
+    def async_find_by_sql(sql, binds = [], preparable: nil, &block)
       _query_by_sql(sql, binds, preparable: preparable, async: true).then do |result|
-        _load_from_sql(result, &block)
+        _load_from_sql(result, &block)
       end
     end
- See on GitHub + 🔎 See on GitHub
@@ -171,15 +171,15 @@

Parameters

- Source code + 📝 Source code
# File activerecord/lib/active_record/querying.rb, line 101
     def count_by_sql(sql)
-      connection.select_value(sanitize_sql(sql), "#{name} Count").to_i
+      connection.select_value(sanitize_sql(sql), "#{name} Count").to_i
     end
- See on GitHub + 🔎 See on GitHub
@@ -223,15 +223,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/querying.rb, line 50
-    def find_by_sql(sql, binds = [], preparable: nil, &block)
-      _load_from_sql(_query_by_sql(sql, binds, preparable: preparable), &block)
+    def find_by_sql(sql, binds = [], preparable: nil, &block)
+      _load_from_sql(_query_by_sql(sql, binds, preparable: preparable), &block)
     end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/ReadonlyAttributes/ClassMethods.html b/src/classes/ActiveRecord/ReadonlyAttributes/ClassMethods.html index 8cb2e4f386..27f152e4e0 100644 --- a/src/classes/ActiveRecord/ReadonlyAttributes/ClassMethods.html +++ b/src/classes/ActiveRecord/ReadonlyAttributes/ClassMethods.html @@ -95,19 +95,19 @@

Examples

- Source code + 📝 Source code
# File activerecord/lib/active_record/readonly_attributes.rb, line 30
       def attr_readonly(*attributes)
-        self._attr_readonly |= attributes.map(&:to_s)
+        self._attr_readonly |= attributes.map(&:to_s)
 
         if ActiveRecord.raise_on_assign_to_attr_readonly
           include(HasReadonlyAttributes)
         end
       end
- See on GitHub + 🔎 See on GitHub
@@ -134,7 +134,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/readonly_attributes.rb, line 39
@@ -142,7 +142,7 @@ 

_attr_readonly end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/RecordInvalid.html b/src/classes/ActiveRecord/RecordInvalid.html index 7e6d9c14fc..7095cc41fa 100644 --- a/src/classes/ActiveRecord/RecordInvalid.html +++ b/src/classes/ActiveRecord/RecordInvalid.html @@ -112,23 +112,23 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/validations.rb, line 18
     def initialize(record = nil)
       if record
         @record = record
-        errors = @record.errors.full_messages.join(", ")
-        message = I18n.t(:"#{@record.class.i18n_scope}.errors.messages.record_invalid", errors: errors, default: :"errors.messages.record_invalid")
+        errors = @record.errors.full_messages.join(", ")
+        message = I18n.t(:"#{@record.class.i18n_scope}.errors.messages.record_invalid", errors: errors, default: :"errors.messages.record_invalid")
       else
-        message = "Record invalid"
+        message = "Record invalid"
       end
 
       super(message)
     end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/RecordNotDestroyed.html b/src/classes/ActiveRecord/RecordNotDestroyed.html index 056db61899..d3453f5a7c 100644 --- a/src/classes/ActiveRecord/RecordNotDestroyed.html +++ b/src/classes/ActiveRecord/RecordNotDestroyed.html @@ -110,7 +110,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/errors.rb, line 164
@@ -119,7 +119,7 @@ 

super(message) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/RecordNotFound.html b/src/classes/ActiveRecord/RecordNotFound.html index f48891b5e7..949090f657 100644 --- a/src/classes/ActiveRecord/RecordNotFound.html +++ b/src/classes/ActiveRecord/RecordNotFound.html @@ -119,7 +119,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/errors.rb, line 130
@@ -131,7 +131,7 @@ 

super(message) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/RecordNotSaved.html b/src/classes/ActiveRecord/RecordNotSaved.html index 71fed2458f..14716bf529 100644 --- a/src/classes/ActiveRecord/RecordNotSaved.html +++ b/src/classes/ActiveRecord/RecordNotSaved.html @@ -103,7 +103,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/errors.rb, line 145
@@ -112,7 +112,7 @@ 

super(message) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/Reflection/ClassMethods.html b/src/classes/ActiveRecord/Reflection/ClassMethods.html index 6a7ca45aed..2ff0333f91 100644 --- a/src/classes/ActiveRecord/Reflection/ClassMethods.html +++ b/src/classes/ActiveRecord/Reflection/ClassMethods.html @@ -111,7 +111,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/reflection.rb, line 69
@@ -119,7 +119,7 @@ 

aggregate_reflections[aggregation.to_s] end

- See on GitHub + 🔎 See on GitHub
@@ -146,7 +146,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/reflection.rb, line 61
@@ -154,7 +154,7 @@ 

aggregate_reflections.values end

- See on GitHub + 🔎 See on GitHub
@@ -187,7 +187,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/reflection.rb, line 106
@@ -197,7 +197,7 @@ 

association_reflections end

- See on GitHub + 🔎 See on GitHub
@@ -224,7 +224,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/reflection.rb, line 126
@@ -232,7 +232,7 @@ 

reflections.values.select { |reflection| reflection.options[:autosave] } end

- See on GitHub + 🔎 See on GitHub
@@ -263,7 +263,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/reflection.rb, line 117
@@ -271,7 +271,7 @@ 

reflections[association.to_s] end

- See on GitHub + 🔎 See on GitHub
@@ -301,7 +301,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/reflection.rb, line 77
@@ -324,7 +324,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/Reflection/MacroReflection.html b/src/classes/ActiveRecord/Reflection/MacroReflection.html index 0be44b8ea0..5e70bf649b 100644 --- a/src/classes/ActiveRecord/Reflection/MacroReflection.html +++ b/src/classes/ActiveRecord/Reflection/MacroReflection.html @@ -151,7 +151,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/reflection.rb, line 376
@@ -166,7 +166,7 @@ 

name.to_s.pluralize : name.to_s end

- See on GitHub + 🔎 See on GitHub
@@ -197,19 +197,19 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/reflection.rb, line 420
       def ==(other_aggregation)
         super ||
-          other_aggregation.kind_of?(self.class) &&
-          name == other_aggregation.name &&
-          !other_aggregation.options.nil? &&
+          other_aggregation.kind_of?(self.class) &&
+          name == other_aggregation.name &&
+          !other_aggregation.options.nil? &&
           active_record == other_aggregation.active_record
       end
- See on GitHub + 🔎 See on GitHub
@@ -236,7 +236,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/reflection.rb, line 387
@@ -248,7 +248,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -275,7 +275,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/reflection.rb, line 414
@@ -283,7 +283,7 @@ 

name.constantize end

- See on GitHub + 🔎 See on GitHub
@@ -322,7 +322,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/reflection.rb, line 410
@@ -330,7 +330,7 @@ 

@klass ||= compute_class(class_name) end

- See on GitHub + 🔎 See on GitHub
@@ -357,15 +357,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/reflection.rb, line 428
       def scope_for(relation, owner = nil)
-        relation.instance_exec(owner, &scope) || relation
+        relation.instance_exec(owner, &scope) || relation
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/Relation.html b/src/classes/ActiveRecord/Relation.html index 0b06694e50..45cb46c3cd 100644 --- a/src/classes/ActiveRecord/Relation.html +++ b/src/classes/ActiveRecord/Relation.html @@ -298,11 +298,6 @@

Constants

[:where, :having, :from] - -   - - - INVALID_METHODS_FOR_DELETE_ALL @@ -310,11 +305,6 @@

Constants

[:distinct, :with] - -   - - - MULTI_VALUE_METHODS @@ -325,11 +315,6 @@

Constants

:with] - -   - - - SINGLE_VALUE_METHODS @@ -338,11 +323,6 @@

Constants

:reverse_order, :distinct, :create_with, :skip_query_cache] - -   - - - VALUE_METHODS @@ -350,11 +330,6 @@

Constants

MULTI_VALUE_METHODS + SINGLE_VALUE_METHODS + CLAUSE_METHODS - -   - - - @@ -448,7 +423,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation.rb, line 28
@@ -465,7 +440,7 @@ 

@none = false end

- See on GitHub + 🔎 See on GitHub
@@ -496,7 +471,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation.rb, line 798
@@ -511,7 +486,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -538,7 +513,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation.rb, line 302
@@ -549,7 +524,7 @@ 

!empty? end

- See on GitHub + 🔎 See on GitHub
@@ -576,7 +551,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation.rb, line 819
@@ -584,7 +559,7 @@ 

records.blank? end

- See on GitHub + 🔎 See on GitHub
@@ -652,16 +627,16 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation.rb, line 344
-    def cache_key(timestamp_column = "updated_at")
+    def cache_key(timestamp_column = "updated_at")
       @cache_keys ||= {}
       @cache_keys[timestamp_column] ||= klass.collection_cache_key(self, timestamp_column)
     end
- See on GitHub + 🔎 See on GitHub
@@ -688,19 +663,19 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation.rb, line 423
     def cache_key_with_version
       if version = cache_version
-        "#{cache_key}-#{version}"
+        "#{cache_key}-#{version}"
       else
         cache_key
       end
     end
- See on GitHub + 🔎 See on GitHub
@@ -732,7 +707,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation.rb, line 371
@@ -743,7 +718,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -787,20 +762,20 @@

Examples

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation.rb, line 98
-    def create(attributes = nil, &block)
+    def create(attributes = nil, &block)
       if attributes.is_a?(Array)
-        attributes.collect { |attr| create(attr, &block) }
+        attributes.collect { |attr| create(attr, &block) }
       else
-        block = current_scope_restoring_block(&block)
-        scoping { _create(attributes, &block) }
+        block = current_scope_restoring_block(&block)
+        scoping { _create(attributes, &block) }
       end
     end
- See on GitHub + 🔎 See on GitHub
@@ -829,20 +804,20 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation.rb, line 113
-    def create!(attributes = nil, &block)
+    def create!(attributes = nil, &block)
       if attributes.is_a?(Array)
-        attributes.collect { |attr| create!(attr, &block) }
+        attributes.collect { |attr| create!(attr, &block) }
       else
-        block = current_scope_restoring_block(&block)
-        scoping { _create!(attributes, &block) }
+        block = current_scope_restoring_block(&block)
+        scoping { _create!(attributes, &block) }
       end
     end
- See on GitHub + 🔎 See on GitHub
@@ -886,12 +861,12 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation.rb, line 215
-    def create_or_find_by(attributes, &block)
-      transaction(requires_new: true) { create(attributes, &block) }
+    def create_or_find_by(attributes, &block)
+      transaction(requires_new: true) { create(attributes, &block) }
     rescue ActiveRecord::RecordNotUnique
       if connection.transaction_open?
         where(attributes).lock.find_by!(attributes)
@@ -900,7 +875,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -927,12 +902,12 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation.rb, line 228
-    def create_or_find_by!(attributes, &block)
-      transaction(requires_new: true) { create!(attributes, &block) }
+    def create_or_find_by!(attributes, &block)
+      transaction(requires_new: true) { create!(attributes, &block) }
     rescue ActiveRecord::RecordNotUnique
       if connection.transaction_open?
         where(attributes).lock.find_by!(attributes)
@@ -941,7 +916,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -979,7 +954,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation.rb, line 631
@@ -988,10 +963,10 @@ 

invalid_methods = INVALID_METHODS_FOR_DELETE_ALL.select do |method| value = @values[method] - method == :distinct ? value : value&.any? + method == :distinct ? value : value&.any? end if invalid_methods.any? - raise ActiveRecordError.new("delete_all doesn't support #{invalid_methods.join(', ')}") + raise ActiveRecordError.new("delete_all doesn't support #{invalid_methods.join(', ')}") end arel = eager_loading? ? apply_join_dependency.arel : build_arel @@ -1001,10 +976,10 @@

having_clause_ast = having_clause.ast unless having_clause.empty? stmt = arel.compile_delete(table[primary_key], having_clause_ast, group_values_arel_columns) - klass.connection.delete(stmt, "#{klass} Delete All").tap { reset } + klass.connection.delete(stmt, "#{klass} Delete All").tap { reset } end

- See on GitHub + 🔎 See on GitHub
@@ -1038,7 +1013,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation.rb, line 674
@@ -1046,7 +1021,7 @@ 

where(*args).delete_all end

- See on GitHub + 🔎 See on GitHub
@@ -1080,15 +1055,15 @@

Examples

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation.rb, line 609
     def destroy_all
-      records.each(&:destroy).tap { reset }
+      records.each(&:destroy).tap { reset }
     end
- See on GitHub + 🔎 See on GitHub
@@ -1122,7 +1097,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation.rb, line 661
@@ -1130,7 +1105,7 @@ 

where(*args).destroy_all end

- See on GitHub + 🔎 See on GitHub
@@ -1157,17 +1132,17 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation.rb, line 783
     def eager_loading?
       @should_eager_load ||=
         eager_load_values.any? ||
-        includes_values.any? && (joined_includes_values.any? || references_eager_loaded_tables?)
+        includes_values.any? && (joined_includes_values.any? || references_eager_loaded_tables?)
     end
- See on GitHub + 🔎 See on GitHub
@@ -1194,7 +1169,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation.rb, line 283
@@ -1208,7 +1183,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -1235,7 +1210,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation.rb, line 269
@@ -1243,7 +1218,7 @@ 

coder.represent_seq(nil, records) end

- See on GitHub + 🔎 See on GitHub
@@ -1274,7 +1249,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation.rb, line 253
@@ -1282,7 +1257,7 @@ 

exec_explain(collecting_queries_for_explain { exec_queries }, options) end

- See on GitHub + 🔎 See on GitHub
@@ -1340,15 +1315,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation.rb, line 175
-    def find_or_create_by(attributes, &block)
-      find_by(attributes) || create_or_find_by(attributes, &block)
+    def find_or_create_by(attributes, &block)
+      find_by(attributes) || create_or_find_by(attributes, &block)
     end
- See on GitHub + 🔎 See on GitHub
@@ -1375,15 +1350,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation.rb, line 182
-    def find_or_create_by!(attributes, &block)
-      find_by(attributes) || create_or_find_by!(attributes, &block)
+    def find_or_create_by!(attributes, &block)
+      find_by(attributes) || create_or_find_by!(attributes, &block)
     end
- See on GitHub + 🔎 See on GitHub
@@ -1410,15 +1385,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation.rb, line 240
-    def find_or_initialize_by(attributes, &block)
-      find_by(attributes) || new(attributes, &block)
+    def find_or_initialize_by(attributes, &block)
+      find_by(attributes) || new(attributes, &block)
     end
- See on GitHub + 🔎 See on GitHub
@@ -1445,7 +1420,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation.rb, line 41
@@ -1454,7 +1429,7 @@ 

reset end

- See on GitHub + 🔎 See on GitHub
@@ -1481,20 +1456,20 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation.rb, line 831
     def inspect
-      subject = loaded? ? records : annotate("loading for inspect")
-      entries = subject.take([limit_value, 11].compact.min).map!(&:inspect)
+      subject = loaded? ? records : annotate("loading for inspect")
+      entries = subject.take([limit_value, 11].compact.min).map!(&:inspect)
 
-      entries[10] = "..." if entries.size == 11
+      entries[10] = "..." if entries.size == 11
 
-      "#<#{self.class.name} [#{entries.join(', ')}]>"
+      "#<#{self.class.name} [#{entries.join(', ')}]>"
     end
- See on GitHub + 🔎 See on GitHub
@@ -1521,15 +1496,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation.rb, line 793
     def joined_includes_values
-      includes_values & joins_values
+      includes_values & joins_values
     end
- See on GitHub + 🔎 See on GitHub
@@ -1559,20 +1534,20 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation.rb, line 725
-    def load(&block)
+    def load(&block)
       if !loaded? || scheduled?
-        @records = exec_queries(&block)
+        @records = exec_queries(&block)
         @loaded = true
       end
 
       self
     end
- See on GitHub + 🔎 See on GitHub
@@ -1613,7 +1588,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation.rb, line 696
@@ -1634,7 +1609,7 @@ 

self end

- See on GitHub + 🔎 See on GitHub
@@ -1661,7 +1636,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation.rb, line 319
@@ -1670,10 +1645,10 @@ 

return super if block_given? return records.many? if loaded? - limited_count > 1 + limited_count > 1 end

- See on GitHub + 🔎 See on GitHub
@@ -1716,20 +1691,20 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation.rb, line 69
-    def new(attributes = nil, &block)
+    def new(attributes = nil, &block)
       if attributes.is_a?(Array)
-        attributes.collect { |attr| new(attr, &block) }
+        attributes.collect { |attr| new(attr, &block) }
       else
-        block = current_scope_restoring_block(&block)
-        scoping { _new(attributes, &block) }
+        block = current_scope_restoring_block(&block)
+        scoping { _new(attributes, &block) }
       end
     end
- See on GitHub + 🔎 See on GitHub
@@ -1756,7 +1731,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation.rb, line 294
@@ -1767,7 +1742,7 @@ 

empty? end

- See on GitHub + 🔎 See on GitHub
@@ -1794,7 +1769,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation.rb, line 310
@@ -1806,7 +1781,7 @@ 

limited_count == 1 end

- See on GitHub + 🔎 See on GitHub
@@ -1833,20 +1808,20 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation.rb, line 809
     def pretty_print(pp)
-      subject = loaded? ? records : annotate("loading for pp")
+      subject = loaded? ? records : annotate("loading for pp")
       entries = subject.take([limit_value, 11].compact.min)
 
-      entries[10] = "..." if entries.size == 11
+      entries[10] = "..." if entries.size == 11
 
       pp.pp(entries)
     end
- See on GitHub + 🔎 See on GitHub
@@ -1873,7 +1848,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation.rb, line 735
@@ -1882,7 +1857,7 @@ 

load end

- See on GitHub + 🔎 See on GitHub
@@ -1909,12 +1884,12 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation.rb, line 740
     def reset
-      @future_result&.cancel
+      @future_result&.cancel
       @future_result = nil
       @delegate_to_klass = false
       @to_sql = @arel = @loaded = @should_eager_load = nil
@@ -1925,7 +1900,7 @@ 

self end

- See on GitHub + 🔎 See on GitHub
@@ -1952,7 +1927,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation.rb, line 715
@@ -1960,7 +1935,7 @@ 

!!@future_result end

- See on GitHub + 🔎 See on GitHub
@@ -1987,7 +1962,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation.rb, line 776
@@ -1997,7 +1972,7 @@ 

hash end

- See on GitHub + 🔎 See on GitHub
@@ -2034,22 +2009,22 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation.rb, line 445
-    def scoping(all_queries: nil, &block)
+    def scoping(all_queries: nil, &block)
       registry = klass.scope_registry
-      if global_scope?(registry) && all_queries == false
-        raise ArgumentError, "Scoping is set to apply to all queries and cannot be unset in a nested block."
+      if global_scope?(registry) && all_queries == false
+        raise ArgumentError, "Scoping is set to apply to all queries and cannot be unset in a nested block."
       elsif already_in_scope?(registry)
         yield
       else
-        _scoping(self, registry, all_queries, &block)
+        _scoping(self, registry, all_queries, &block)
       end
     end
- See on GitHub + 🔎 See on GitHub
@@ -2076,7 +2051,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation.rb, line 274
@@ -2088,7 +2063,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -2144,7 +2119,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation.rb, line 258
@@ -2152,7 +2127,7 @@ 

records.dup end

- See on GitHub + 🔎 See on GitHub
@@ -2183,7 +2158,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation.rb, line 756
@@ -2199,7 +2174,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -2245,7 +2220,7 @@

Examples

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation.rb, line 589
@@ -2253,7 +2228,7 @@ 

Examples

update_all klass.touch_attributes_with_time(*names, time: time) end
- See on GitHub + 🔎 See on GitHub
@@ -2305,18 +2280,18 @@

Examples

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation.rb, line 492
     def update_all(updates)
-      raise ArgumentError, "Empty list of attributes to change" if updates.blank?
+      raise ArgumentError, "Empty list of attributes to change" if updates.blank?
 
       return 0 if @none
 
       if updates.is_a?(Hash)
-        if klass.locking_enabled? &&
-            !updates.key?(klass.locking_column) &&
+        if klass.locking_enabled? &&
+            !updates.key?(klass.locking_column) &&
             !updates.key?(klass.locking_column.to_sym)
           attr = table[klass.locking_column]
           updates[attr.name] = _increment_attribute(attr)
@@ -2332,10 +2307,10 @@ 

Examples

group_values_arel_columns = arel_columns(group_values.uniq) having_clause_ast = having_clause.ast unless having_clause.empty? stmt = arel.compile_update(values, table[primary_key], having_clause_ast, group_values_arel_columns) - klass.connection.update(stmt, "#{klass} Update All").tap { reset } + klass.connection.update(stmt, "#{klass} Update All").tap { reset } end
- See on GitHub + 🔎 See on GitHub
@@ -2377,7 +2352,7 @@

Examples

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation.rb, line 546
@@ -2401,7 +2376,7 @@ 

Examples

update_all updates end
- See on GitHub + 🔎 See on GitHub
@@ -2428,7 +2403,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation.rb, line 823
@@ -2436,7 +2411,7 @@ 

@values.dup end

- See on GitHub + 🔎 See on GitHub
@@ -2466,7 +2441,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation.rb, line 872
@@ -2475,7 +2450,7 @@ 

@loaded = true end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/Relation/RecordFetchWarning.html b/src/classes/ActiveRecord/Relation/RecordFetchWarning.html index 48516a58aa..e8077267dc 100644 --- a/src/classes/ActiveRecord/Relation/RecordFetchWarning.html +++ b/src/classes/ActiveRecord/Relation/RecordFetchWarning.html @@ -80,7 +80,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation/record_fetch_warning.rb, line 16
@@ -88,15 +88,15 @@ 

QueryRegistry.reset super.tap do |records| - if logger && ActiveRecord.warn_on_records_fetched_greater_than - if records.length > ActiveRecord.warn_on_records_fetched_greater_than - logger.warn "Query fetched #{records.size} #{@klass} records: #{QueryRegistry.queries.join(";")}" + if logger && ActiveRecord.warn_on_records_fetched_greater_than + if records.length > ActiveRecord.warn_on_records_fetched_greater_than + logger.warn "Query fetched #{records.size} #{@klass} records: #{QueryRegistry.queries.join(";")}" end end end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/Result.html b/src/classes/ActiveRecord/Result.html index 667696d2b3..b817bff341 100644 --- a/src/classes/ActiveRecord/Result.html +++ b/src/classes/ActiveRecord/Result.html @@ -198,7 +198,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/result.rb, line 49
@@ -209,7 +209,7 @@ 

@column_types = column_types end

- See on GitHub + 🔎 See on GitHub
@@ -240,7 +240,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/result.rb, line 90
@@ -248,7 +248,7 @@ 

hash_rows[idx] end

- See on GitHub + 🔎 See on GitHub
@@ -277,19 +277,19 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/result.rb, line 70
-    def each(&block)
+    def each(&block)
       if block_given?
-        hash_rows.each(&block)
+        hash_rows.each(&block)
       else
         hash_rows.to_enum { @rows.size }
       end
     end
- See on GitHub + 🔎 See on GitHub
@@ -316,7 +316,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/result.rb, line 79
@@ -324,7 +324,7 @@ 

rows.empty? end

- See on GitHub + 🔎 See on GitHub
@@ -351,7 +351,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/result.rb, line 57
@@ -359,7 +359,7 @@ 

@columns.include? name end

- See on GitHub + 🔎 See on GitHub
@@ -386,7 +386,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/result.rb, line 133
@@ -397,7 +397,7 @@ 

@hash_rows = nil end

- See on GitHub + 🔎 See on GitHub
@@ -424,7 +424,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/result.rb, line 95
@@ -432,7 +432,7 @@ 

n ? hash_rows.last(n) : hash_rows.last end

- See on GitHub + 🔎 See on GitHub
@@ -459,7 +459,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/result.rb, line 62
@@ -467,7 +467,7 @@ 

@rows.length end

- See on GitHub + 🔎 See on GitHub
@@ -523,7 +523,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/result.rb, line 84
@@ -531,7 +531,7 @@ 

hash_rows end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/SQLWarning.html b/src/classes/ActiveRecord/SQLWarning.html index 629e008b23..cc2ff8bf2a 100644 --- a/src/classes/ActiveRecord/SQLWarning.html +++ b/src/classes/ActiveRecord/SQLWarning.html @@ -119,7 +119,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/errors.rb, line 288
@@ -130,7 +130,7 @@ 

@sql = sql end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/Sanitization/ClassMethods.html b/src/classes/ActiveRecord/Sanitization/ClassMethods.html index 3e73ba65ce..78dbf7a26e 100644 --- a/src/classes/ActiveRecord/Sanitization/ClassMethods.html +++ b/src/classes/ActiveRecord/Sanitization/ClassMethods.html @@ -146,15 +146,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/sanitization.rb, line 163
       def sanitize_sql_array(ary)
         statement, *values = ary
-        if values.first.is_a?(Hash) && /:\w+/.match?(statement)
+        if values.first.is_a?(Hash) && /:\w+/.match?(statement)
           replace_named_bind_variables(statement, values.first)
-        elsif statement.include?("?")
+        elsif statement.include?("?")
           replace_bind_variables(statement, values)
         elsif statement.blank?
           statement
@@ -163,7 +163,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -212,7 +212,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/sanitization.rb, line 68
@@ -224,7 +224,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -277,7 +277,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/sanitization.rb, line 33
@@ -290,7 +290,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -324,20 +324,20 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/sanitization.rb, line 84
       def sanitize_sql_for_order(condition)
-        if condition.is_a?(Array) && condition.first.to_s.include?("?")
+        if condition.is_a?(Array) && condition.first.to_s.include?("?")
           disallow_raw_sql!(
             [condition.first],
             permit: connection.column_name_with_order_matcher
           )
 
-          # Ensure we aren't dealing with a subclass of String that might
+          # Ensure we aren't dealing with a subclass of String that might
           # override methods we use (e.g. Arel::Nodes::SqlLiteral).
-          if condition.first.kind_of?(String) && !condition.first.instance_of?(String)
+          if condition.first.kind_of?(String) && !condition.first.instance_of?(String)
             condition = [String.new(condition.first), *condition[1..-1]]
           end
 
@@ -347,7 +347,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -378,7 +378,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/sanitization.rb, line 107
@@ -387,11 +387,11 @@ 

attrs.map do |attr, value| type = type_for_attribute(attr) value = type.serialize(type.cast(value)) - "#{c.quote_table_name_for_assignment(table, attr)} = #{c.quote(value)}" - end.join(", ") + "#{c.quote_table_name_for_assignment(table, attr)} = #{c.quote(value)}" + end.join(", ") end

- See on GitHub + 🔎 See on GitHub
@@ -431,19 +431,19 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/sanitization.rb, line 131
-      def sanitize_sql_like(string, escape_character = "\\")
-        if string.include?(escape_character) && escape_character != "%" && escape_character != "_"
-          string = string.gsub(escape_character, '\0\0')
+      def sanitize_sql_like(string, escape_character = "\\")
+        if string.include?(escape_character) && escape_character != "%" && escape_character != "_"
+          string = string.gsub(escape_character, '\0\0')
         end
 
         string.gsub(/(?=[%_])/, escape_character)
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/Schema.html b/src/classes/ActiveRecord/Schema.html index 256b6ef8e4..b1161b85ac 100644 --- a/src/classes/ActiveRecord/Schema.html +++ b/src/classes/ActiveRecord/Schema.html @@ -140,7 +140,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/schema.rb, line 68
@@ -151,7 +151,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/Schema/Definition/ClassMethods.html b/src/classes/ActiveRecord/Schema/Definition/ClassMethods.html index 0d37ceae03..8854a8acf2 100644 --- a/src/classes/ActiveRecord/Schema/Definition/ClassMethods.html +++ b/src/classes/ActiveRecord/Schema/Definition/ClassMethods.html @@ -85,15 +85,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/schema.rb, line 49
-        def define(info = {}, &block)
-          new.define(info, &block)
+        def define(info = {}, &block)
+          new.define(info, &block)
         end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/Scoping/Default/ClassMethods.html b/src/classes/ActiveRecord/Scoping/Default/ClassMethods.html index 4fa123833d..e27914af76 100644 --- a/src/classes/ActiveRecord/Scoping/Default/ClassMethods.html +++ b/src/classes/ActiveRecord/Scoping/Default/ClassMethods.html @@ -86,19 +86,19 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/scoping/default.rb, line 62
         def default_scopes?(all_queries: false)
           if all_queries
-            self.default_scopes.any?(&:all_queries)
+            self.default_scopes.any?(&:all_queries)
           else
             self.default_scopes.any?
           end
         end
- See on GitHub + 🔎 See on GitHub
@@ -151,15 +151,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/scoping/default.rb, line 50
-        def unscoped(&block)
-          block_given? ? relation.scoping(&block) : relation
+        def unscoped(&block)
+          block_given? ? relation.scoping(&block) : relation
         end
- See on GitHub + 🔎 See on GitHub
@@ -240,19 +240,19 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/scoping/default.rb, line 129
-          def default_scope(scope = nil, all_queries: nil, &block) # :doc:
+          def default_scope(scope = nil, all_queries: nil, &block) # :doc:
             scope = block if block_given?
 
             if scope.is_a?(Relation) || !scope.respond_to?(:call)
               raise ArgumentError,
-                "Support for calling #default_scope without a block is removed. For example instead " \
-                "of `default_scope where(color: 'red')`, please use " \
-                "`default_scope { where(color: 'red') }`. (Alternatively you can just redefine " \
-                "self.default_scope.)"
+                "Support for calling #default_scope without a block is removed. For example instead " \
+                "of `default_scope where(color: 'red')`, please use " \
+                "`default_scope { where(color: 'red') }`. (Alternatively you can just redefine " \
+                "self.default_scope.)"
             end
 
             default_scope = DefaultScope.new(scope, all_queries)
@@ -260,7 +260,7 @@ 

self.default_scopes += [default_scope] end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/Scoping/Named/ClassMethods.html b/src/classes/ActiveRecord/Scoping/Named/ClassMethods.html index 04285b8693..ad67c855f3 100644 --- a/src/classes/ActiveRecord/Scoping/Named/ClassMethods.html +++ b/src/classes/ActiveRecord/Scoping/Named/ClassMethods.html @@ -97,7 +97,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/scoping/named.rb, line 22
@@ -115,7 +115,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -142,7 +142,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/scoping/named.rb, line 45
@@ -150,7 +150,7 @@ 

build_default_scope(scope, all_queries: all_queries) || scope end

- See on GitHub + 🔎 See on GitHub
@@ -252,32 +252,32 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/scoping/named.rb, line 154
-        def scope(name, body, &block)
+        def scope(name, body, &block)
           unless body.respond_to?(:call)
-            raise ArgumentError, "The scope body needs to be callable."
+            raise ArgumentError, "The scope body needs to be callable."
           end
 
           if dangerous_class_method?(name)
-            raise ArgumentError, "You tried to define a scope named \"#{name}\" " \
-              "on the model \"#{self.name}\", but Active Record already defined " \
-              "a class method with the same name."
+            raise ArgumentError, "You tried to define a scope named \"#{name}\" " \
+              "on the model \"#{self.name}\", but Active Record already defined " \
+              "a class method with the same name."
           end
 
           if method_defined_within?(name, Relation)
-            raise ArgumentError, "You tried to define a scope named \"#{name}\" " \
-              "on the model \"#{self.name}\", but ActiveRecord::Relation already defined " \
-              "an instance method with the same name."
+            raise ArgumentError, "You tried to define a scope named \"#{name}\" " \
+              "on the model \"#{self.name}\", but ActiveRecord::Relation already defined " \
+              "an instance method with the same name."
           end
 
-          extension = Module.new(&block) if block
+          extension = Module.new(&block) if block
 
           if body.respond_to?(:to_proc)
             singleton_class.define_method(name) do |*args|
-              scope = all._exec_scope(*args, &body)
+              scope = all._exec_scope(*args, &body)
               scope = scope.extending(extension) if extension
               scope
             end
@@ -293,7 +293,7 @@ 

generate_relation_method(name) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/SecurePassword/ClassMethods.html b/src/classes/ActiveRecord/SecurePassword/ClassMethods.html index 846d56eeca..e977d9c2fc 100644 --- a/src/classes/ActiveRecord/SecurePassword/ClassMethods.html +++ b/src/classes/ActiveRecord/SecurePassword/ClassMethods.html @@ -101,29 +101,29 @@

Examples

- Source code + 📝 Source code
# File activerecord/lib/active_record/secure_password.rb, line 41
       def authenticate_by(attributes)
         passwords, identifiers = attributes.to_h.partition do |name, value|
-          !has_attribute?(name) && has_attribute?("#{name}_digest")
-        end.map(&:to_h)
+          !has_attribute?(name) && has_attribute?("#{name}_digest")
+        end.map(&:to_h)
 
-        raise ArgumentError, "One or more password arguments are required" if passwords.empty?
-        raise ArgumentError, "One or more finder arguments are required" if identifiers.empty?
+        raise ArgumentError, "One or more password arguments are required" if passwords.empty?
+        raise ArgumentError, "One or more finder arguments are required" if identifiers.empty?
 
         return if passwords.any? { |name, value| value.nil? || value.empty? }
 
         if record = find_by(identifiers)
-          record if passwords.count { |name, value| record.public_send(:"authenticate_#{name}", value) } == passwords.size
+          record if passwords.count { |name, value| record.public_send(:"authenticate_#{name}", value) } == passwords.size
         else
           new(passwords)
           nil
         end
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/SecureToken.html b/src/classes/ActiveRecord/SecureToken.html index 3bdef4781b..ff031c357f 100644 --- a/src/classes/ActiveRecord/SecureToken.html +++ b/src/classes/ActiveRecord/SecureToken.html @@ -70,11 +70,6 @@

Constants

24 - -   - - - diff --git a/src/classes/ActiveRecord/SecureToken/ClassMethods.html b/src/classes/ActiveRecord/SecureToken/ClassMethods.html index be7a0eb519..b3974510dc 100644 --- a/src/classes/ActiveRecord/SecureToken/ClassMethods.html +++ b/src/classes/ActiveRecord/SecureToken/ClassMethods.html @@ -82,7 +82,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/secure_token.rb, line 61
@@ -90,7 +90,7 @@ 

SecureRandom.base58(length) end

- See on GitHub + 🔎 See on GitHub
@@ -144,26 +144,26 @@

Options

- Source code + 📝 Source code
# File activerecord/lib/active_record/secure_token.rb, line 46
       def has_secure_token(attribute = :token, length: MINIMUM_TOKEN_LENGTH, on: ActiveRecord.generate_secure_token_on)
-        if length < MINIMUM_TOKEN_LENGTH
-          raise MinimumLengthError, "Token requires a minimum length of #{MINIMUM_TOKEN_LENGTH} characters."
+        if length < MINIMUM_TOKEN_LENGTH
+          raise MinimumLengthError, "Token requires a minimum length of #{MINIMUM_TOKEN_LENGTH} characters."
         end
 
         # Load securerandom only when has_secure_token is used.
-        require "active_support/core_ext/securerandom"
-        define_method("regenerate_#{attribute}") { update! attribute => self.class.generate_unique_secure_token(length: length) }
+        require "active_support/core_ext/securerandom"
+        define_method("regenerate_#{attribute}") { update! attribute => self.class.generate_unique_secure_token(length: length) }
         set_callback on, on == :initialize ? :after : :before do
-          if new_record? && !query_attribute(attribute)
+          if new_record? && !query_attribute(attribute)
             write_attribute(attribute, self.class.generate_unique_secure_token(length: length))
           end
         end
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/Serialization.html b/src/classes/ActiveRecord/Serialization.html index 17fcd095cb..6ca18e2aec 100644 --- a/src/classes/ActiveRecord/Serialization.html +++ b/src/classes/ActiveRecord/Serialization.html @@ -98,7 +98,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/serialization.rb, line 13
@@ -106,14 +106,14 @@ 

if self.class._has_attribute?(self.class.inheritance_column) options = options ? options.dup : {} - options[:except] = Array(options[:except]).map(&:to_s) + options[:except] = Array(options[:except]).map(&:to_s) options[:except] |= Array(self.class.inheritance_column) end super(options) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/SignedId.html b/src/classes/ActiveRecord/SignedId.html index 1cd8721f56..35f18a48be 100644 --- a/src/classes/ActiveRecord/SignedId.html +++ b/src/classes/ActiveRecord/SignedId.html @@ -100,14 +100,14 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/signed_id.rb, line 13
       class_attribute :signed_id_verifier_secret, instance_writer: false
 
- See on GitHub + 🔎 See on GitHub
@@ -145,17 +145,17 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/signed_id.rb, line 112
     def signed_id(expires_in: nil, expires_at: nil, purpose: nil)
-      raise ArgumentError, "Cannot get a signed_id for a new record" if new_record?
+      raise ArgumentError, "Cannot get a signed_id for a new record" if new_record?
 
       self.class.signed_id_verifier.generate id, expires_in: expires_in, expires_at: expires_at, purpose: self.class.combine_signed_id_purposes(purpose)
     end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/SignedId/ClassMethods.html b/src/classes/ActiveRecord/SignedId/ClassMethods.html index f0eb21876e..d62e47638a 100644 --- a/src/classes/ActiveRecord/SignedId/ClassMethods.html +++ b/src/classes/ActiveRecord/SignedId/ClassMethods.html @@ -107,7 +107,7 @@

Examples

- Source code + 📝 Source code
# File activerecord/lib/active_record/signed_id.rb, line 42
@@ -115,11 +115,11 @@ 

Examples

raise UnknownPrimaryKey.new(self) if primary_key.nil? if id = signed_id_verifier.verified(signed_id, purpose: combine_signed_id_purposes(purpose)) - find_by primary_key => id + find_by primary_key => id end end
- See on GitHub + 🔎 See on GitHub
@@ -155,7 +155,7 @@

Examples

- Source code + 📝 Source code
# File activerecord/lib/active_record/signed_id.rb, line 62
@@ -165,7 +165,7 @@ 

Examples

end end
- See on GitHub + 🔎 See on GitHub
@@ -192,7 +192,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/signed_id.rb, line 71
@@ -202,14 +202,14 @@ 

secret = secret.call if secret.respond_to?(:call) if secret.nil? - raise ArgumentError, "You must set ActiveRecord::Base.signed_id_verifier_secret to use signed ids" + raise ArgumentError, "You must set ActiveRecord::Base.signed_id_verifier_secret to use signed ids" else - ActiveSupport::MessageVerifier.new secret, digest: "SHA256", serializer: JSON + ActiveSupport::MessageVerifier.new secret, digest: "SHA256", serializer: JSON end end end

- See on GitHub + 🔎 See on GitHub
@@ -236,7 +236,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/signed_id.rb, line 87
@@ -244,7 +244,7 @@ 

@signed_id_verifier = verifier end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/SoleRecordExceeded.html b/src/classes/ActiveRecord/SoleRecordExceeded.html index 5aba31c27e..4112e7ab36 100644 --- a/src/classes/ActiveRecord/SoleRecordExceeded.html +++ b/src/classes/ActiveRecord/SoleRecordExceeded.html @@ -103,16 +103,16 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/errors.rb, line 174
     def initialize(record = nil)
       @record = record
-      super "Wanted only one #{record&.name || "record"}"
+      super "Wanted only one #{record&.name || "record"}"
     end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/SpawnMethods.html b/src/classes/ActiveRecord/SpawnMethods.html index 829f7a9a8f..d84fe34ce7 100644 --- a/src/classes/ActiveRecord/SpawnMethods.html +++ b/src/classes/ActiveRecord/SpawnMethods.html @@ -90,7 +90,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation/spawn_methods.rb, line 75
@@ -98,7 +98,7 @@ 

relation_with values.except(*skips) end

- See on GitHub + 🔎 See on GitHub
@@ -144,21 +144,21 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation/spawn_methods.rb, line 33
     def merge(other, *rest)
       if other.is_a?(Array)
-        records & other
+        records & other
       elsif other
         spawn.merge!(other, *rest)
       else
-        raise ArgumentError, "invalid argument: #{other.inspect}."
+        raise ArgumentError, "invalid argument: #{other.inspect}."
       end
     end
- See on GitHub + 🔎 See on GitHub
@@ -189,7 +189,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/relation/spawn_methods.rb, line 83
@@ -197,7 +197,7 @@ 

relation_with values.slice(*onlies) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/StaleObjectError.html b/src/classes/ActiveRecord/StaleObjectError.html index a0e409e51b..708ea4e221 100644 --- a/src/classes/ActiveRecord/StaleObjectError.html +++ b/src/classes/ActiveRecord/StaleObjectError.html @@ -113,21 +113,21 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/errors.rb, line 352
     def initialize(record = nil, attempted_action = nil)
-      if record && attempted_action
+      if record && attempted_action
         @record = record
         @attempted_action = attempted_action
-        super("Attempted to #{attempted_action} a stale object: #{record.class.name}.")
+        super("Attempted to #{attempted_action} a stale object: #{record.class.name}.")
       else
-        super("Stale object error.")
+        super("Stale object error.")
       end
     end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/StatementCache/PartialQueryCollector.html b/src/classes/ActiveRecord/StatementCache/PartialQueryCollector.html index 7c21f75531..ba81624c35 100644 --- a/src/classes/ActiveRecord/StatementCache/PartialQueryCollector.html +++ b/src/classes/ActiveRecord/StatementCache/PartialQueryCollector.html @@ -113,7 +113,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/statement_cache.rb, line 67
@@ -122,7 +122,7 @@ 

@binds = [] end

- See on GitHub + 🔎 See on GitHub
@@ -153,16 +153,16 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/statement_cache.rb, line 72
-      def <<(str)
-        @parts << str
+      def <<(str)
+        @parts << str
         self
       end
- See on GitHub + 🔎 See on GitHub
@@ -189,17 +189,17 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/statement_cache.rb, line 77
       def add_bind(obj)
-        @binds << obj
-        @parts << Substitute.new
+        @binds << obj
+        @parts << Substitute.new
         self
       end
- See on GitHub + 🔎 See on GitHub
@@ -226,20 +226,20 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/statement_cache.rb, line 83
       def add_binds(binds, proc_for_binds = nil)
-        @binds.concat proc_for_binds ? binds.map(&proc_for_binds) : binds
+        @binds.concat proc_for_binds ? binds.map(&proc_for_binds) : binds
         binds.size.times do |i|
-          @parts << ", " unless i == 0
-          @parts << Substitute.new
+          @parts << ", " unless i == 0
+          @parts << Substitute.new
         end
         self
       end
- See on GitHub + 🔎 See on GitHub
@@ -266,7 +266,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/statement_cache.rb, line 92
@@ -274,7 +274,7 @@ 

[@parts, @binds] end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/StatementInvalid.html b/src/classes/ActiveRecord/StatementInvalid.html index 4e25b36612..f842cf6820 100644 --- a/src/classes/ActiveRecord/StatementInvalid.html +++ b/src/classes/ActiveRecord/StatementInvalid.html @@ -117,17 +117,17 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/errors.rb, line 184
     def initialize(message = nil, sql: nil, binds: nil, connection_pool: nil)
-      super(message || $!&.message, connection_pool: connection_pool)
+      super(message || $!&.message, connection_pool: connection_pool)
       @sql = sql
       @binds = binds
     end
- See on GitHub + 🔎 See on GitHub
@@ -158,7 +158,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/errors.rb, line 192
@@ -171,7 +171,7 @@ 

self end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/Store.html b/src/classes/ActiveRecord/Store.html index 0b472794e9..97067a28b1 100644 --- a/src/classes/ActiveRecord/Store.html +++ b/src/classes/ActiveRecord/Store.html @@ -194,7 +194,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/store.rb, line 209
@@ -203,7 +203,7 @@ 

accessor.read(self, store_attribute, key) end

- See on GitHub + 🔎 See on GitHub
@@ -230,7 +230,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/store.rb, line 214
@@ -239,7 +239,7 @@ 

accessor.write(self, store_attribute, key, value) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/Store/ClassMethods.html b/src/classes/ActiveRecord/Store/ClassMethods.html index dfad980906..9c997ecda4 100644 --- a/src/classes/ActiveRecord/Store/ClassMethods.html +++ b/src/classes/ActiveRecord/Store/ClassMethods.html @@ -86,7 +86,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/store.rb, line 106
@@ -96,7 +96,7 @@ 

store_accessor(store_attribute, options[:accessors], **options.slice(:prefix, :suffix)) if options.has_key? :accessors end

- See on GitHub + 🔎 See on GitHub
@@ -123,7 +123,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/store.rb, line 112
@@ -133,27 +133,27 @@ 

accessor_prefix = case prefix when String, Symbol - "#{prefix}_" + "#{prefix}_" when TrueClass - "#{store_attribute}_" + "#{store_attribute}_" else - "" + "" end accessor_suffix = case suffix when String, Symbol - "_#{suffix}" + "_#{suffix}" when TrueClass - "_#{store_attribute}" + "_#{store_attribute}" else - "" + "" end _store_accessors_module.module_eval do keys.each do |key| - accessor_key = "#{accessor_prefix}#{key}#{accessor_suffix}" + accessor_key = "#{accessor_prefix}#{key}#{accessor_suffix}" - define_method("#{accessor_key}=") do |value| + define_method("#{accessor_key}=") do |value| write_store_attribute(store_attribute, key, value) end @@ -161,40 +161,40 @@

read_store_attribute(store_attribute, key) end - define_method("#{accessor_key}_changed?") do + define_method("#{accessor_key}_changed?") do return false unless attribute_changed?(store_attribute) prev_store, new_store = changes[store_attribute] - prev_store&.dig(key) != new_store&.dig(key) + prev_store&.dig(key) != new_store&.dig(key) end - define_method("#{accessor_key}_change") do + define_method("#{accessor_key}_change") do return unless attribute_changed?(store_attribute) prev_store, new_store = changes[store_attribute] - [prev_store&.dig(key), new_store&.dig(key)] + [prev_store&.dig(key), new_store&.dig(key)] end - define_method("#{accessor_key}_was") do + define_method("#{accessor_key}_was") do return unless attribute_changed?(store_attribute) prev_store, _new_store = changes[store_attribute] - prev_store&.dig(key) + prev_store&.dig(key) end - define_method("saved_change_to_#{accessor_key}?") do + define_method("saved_change_to_#{accessor_key}?") do return false unless saved_change_to_attribute?(store_attribute) prev_store, new_store = saved_changes[store_attribute] - prev_store&.dig(key) != new_store&.dig(key) + prev_store&.dig(key) != new_store&.dig(key) end - define_method("saved_change_to_#{accessor_key}") do + define_method("saved_change_to_#{accessor_key}") do return unless saved_change_to_attribute?(store_attribute) prev_store, new_store = saved_changes[store_attribute] - [prev_store&.dig(key), new_store&.dig(key)] + [prev_store&.dig(key), new_store&.dig(key)] end - define_method("#{accessor_key}_before_last_save") do + define_method("#{accessor_key}_before_last_save") do return unless saved_change_to_attribute?(store_attribute) prev_store, _new_store = saved_changes[store_attribute] - prev_store&.dig(key) + prev_store&.dig(key) end end end @@ -206,7 +206,7 @@

self.local_stored_attributes[store_attribute] |= keys end

- See on GitHub + 🔎 See on GitHub
@@ -233,7 +233,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/store.rb, line 199
@@ -245,7 +245,7 @@ 

parent end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/Suppressor/ClassMethods.html b/src/classes/ActiveRecord/Suppressor/ClassMethods.html index 3f0f7dd77b..6b49d1d58b 100644 --- a/src/classes/ActiveRecord/Suppressor/ClassMethods.html +++ b/src/classes/ActiveRecord/Suppressor/ClassMethods.html @@ -78,11 +78,11 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/suppressor.rb, line 42
-      def suppress(&block)
+      def suppress(&block)
         previous_state = Suppressor.registry[name]
         Suppressor.registry[name] = true
         yield
@@ -90,7 +90,7 @@ 

Suppressor.registry[name] = previous_state end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/Tasks/DatabaseTasks.html b/src/classes/ActiveRecord/Tasks/DatabaseTasks.html index 21fd547b02..7adf33b1af 100644 --- a/src/classes/ActiveRecord/Tasks/DatabaseTasks.html +++ b/src/classes/ActiveRecord/Tasks/DatabaseTasks.html @@ -254,11 +254,6 @@

Constants

["127.0.0.1", "localhost"] - -   - - - @@ -358,14 +353,14 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/tasks/database_tasks.rb, line 50
       mattr_accessor :structure_dump_flags, instance_accessor: false
 
- See on GitHub + 🔎 See on GitHub
@@ -392,14 +387,14 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/tasks/database_tasks.rb, line 56
       mattr_accessor :structure_load_flags, instance_accessor: false
 
- See on GitHub + 🔎 See on GitHub
@@ -430,21 +425,21 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/tasks/database_tasks.rb, line 440
       def cache_dump_filename(db_config_name, schema_cache_path: nil)
         filename = if ActiveRecord::Base.configurations.primary?(db_config_name)
-          "schema_cache.yml"
+          "schema_cache.yml"
         else
-          "#{db_config_name}_schema_cache.yml"
+          "#{db_config_name}_schema_cache.yml"
         end
 
-        schema_cache_path || ENV["SCHEMA_CACHE"] || File.join(ActiveRecord::Tasks::DatabaseTasks.db_dir, filename)
+        schema_cache_path || ENV["SCHEMA_CACHE"] || File.join(ActiveRecord::Tasks::DatabaseTasks.db_dir, filename)
       end
- See on GitHub + 🔎 See on GitHub
@@ -471,7 +466,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/tasks/database_tasks.rb, line 305
@@ -480,7 +475,7 @@ 

database_adapter_for(db_config, *arguments).charset end

- See on GitHub + 🔎 See on GitHub
@@ -507,7 +502,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/tasks/database_tasks.rb, line 300
@@ -516,7 +511,7 @@ 

charset(db_config) end

- See on GitHub + 🔎 See on GitHub
@@ -543,19 +538,19 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/tasks/database_tasks.rb, line 65
       def check_protected_environments!(environment = env)
-        return if ENV["DISABLE_DATABASE_ENVIRONMENT_CHECK"]
+        return if ENV["DISABLE_DATABASE_ENVIRONMENT_CHECK"]
 
         configs_for(env_name: environment).each do |db_config|
           check_current_protected_environment!(db_config)
         end
       end
- See on GitHub + 🔎 See on GitHub
@@ -582,19 +577,19 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/tasks/database_tasks.rb, line 458
       def check_schema_file(filename)
         unless File.exist?(filename)
-          message = +%{#{filename} doesn't exist yet. Run `bin/rails db:migrate` to create it, then try again.}
-          message << %{ If you do not intend to use a database, you should instead alter #{Rails.root}/config/application.rb to limit the frameworks that will be loaded.} if defined?(::Rails.root)
+          message = +%{#{filename} doesn't exist yet. Run `bin/rails db:migrate` to create it, then try again.}
+          message << %{ If you do not intend to use a database, you should instead alter #{Rails.root}/config/application.rb to limit the frameworks that will be loaded.} if defined?(::Rails.root)
           Kernel.abort message
         end
       end
- See on GitHub + 🔎 See on GitHub
@@ -621,17 +616,17 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/tasks/database_tasks.rb, line 290
       def check_target_version
-        if target_version && !Migration.valid_version_format?(ENV["VERSION"])
-          raise "Invalid format of target version: `VERSION=#{ENV['VERSION']}`"
+        if target_version && !Migration.valid_version_format?(ENV["VERSION"])
+          raise "Invalid format of target version: `VERSION=#{ENV['VERSION']}`"
         end
       end
- See on GitHub + 🔎 See on GitHub
@@ -658,7 +653,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/tasks/database_tasks.rb, line 484
@@ -666,7 +661,7 @@ 

FileUtils.rm_f filename, verbose: false end

- See on GitHub + 🔎 See on GitHub
@@ -693,7 +688,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/tasks/database_tasks.rb, line 315
@@ -702,7 +697,7 @@ 

database_adapter_for(db_config, *arguments).collation end

- See on GitHub + 🔎 See on GitHub
@@ -729,7 +724,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/tasks/database_tasks.rb, line 310
@@ -738,7 +733,7 @@ 

collation(db_config) end

- See on GitHub + 🔎 See on GitHub
@@ -765,23 +760,23 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/tasks/database_tasks.rb, line 115
       def create(configuration, *arguments)
         db_config = resolve_configuration(configuration)
         database_adapter_for(db_config, *arguments).create
-        $stdout.puts "Created database '#{db_config.database}'" if verbose?
+        $stdout.puts "Created database '#{db_config.database}'" if verbose?
       rescue DatabaseAlreadyExists
-        $stderr.puts "Database '#{db_config.database}' already exists" if verbose?
-      rescue Exception => error
+        $stderr.puts "Database '#{db_config.database}' already exists" if verbose?
+      rescue Exception => error
         $stderr.puts error
-        $stderr.puts "Couldn't create '#{db_config.database}' database. Please check your configuration."
+        $stderr.puts "Couldn't create '#{db_config.database}' database. Please check your configuration."
         raise
       end
- See on GitHub + 🔎 See on GitHub
@@ -808,7 +803,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/tasks/database_tasks.rb, line 127
@@ -820,7 +815,7 @@ 

migration_class.establish_connection(db_config) end

- See on GitHub + 🔎 See on GitHub
@@ -847,7 +842,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/tasks/database_tasks.rb, line 170
@@ -857,7 +852,7 @@ 

migration_class.establish_connection(environment.to_sym) end

- See on GitHub + 🔎 See on GitHub
@@ -884,15 +879,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/tasks/database_tasks.rb, line 83
       def db_dir
-        @db_dir ||= Rails.application.config.paths["db"].first
+        @db_dir ||= Rails.application.config.paths["db"].first
       end
- See on GitHub + 🔎 See on GitHub
@@ -919,23 +914,23 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/tasks/database_tasks.rb, line 204
       def drop(configuration, *arguments)
         db_config = resolve_configuration(configuration)
         database_adapter_for(db_config, *arguments).drop
-        $stdout.puts "Dropped database '#{db_config.database}'" if verbose?
+        $stdout.puts "Dropped database '#{db_config.database}'" if verbose?
       rescue ActiveRecord::NoDatabaseError
-        $stderr.puts "Database '#{db_config.database}' does not exist"
-      rescue Exception => error
+        $stderr.puts "Database '#{db_config.database}' does not exist"
+      rescue Exception => error
         $stderr.puts error
-        $stderr.puts "Couldn't drop database '#{db_config.database}'"
+        $stderr.puts "Couldn't drop database '#{db_config.database}'"
         raise
       end
- See on GitHub + 🔎 See on GitHub
@@ -962,7 +957,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/tasks/database_tasks.rb, line 216
@@ -970,7 +965,7 @@ 

each_local_configuration { |db_config| drop(db_config) } end

- See on GitHub + 🔎 See on GitHub
@@ -997,7 +992,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/tasks/database_tasks.rb, line 220
@@ -1005,7 +1000,7 @@ 

each_current_configuration(environment) { |db_config| drop(db_config) } end

- See on GitHub + 🔎 See on GitHub
@@ -1037,7 +1032,7 @@

Examples

- Source code + 📝 Source code
# File activerecord/lib/active_record/tasks/database_tasks.rb, line 480
@@ -1045,7 +1040,7 @@ 

Examples

conn.schema_cache.dump_to(filename) end
- See on GitHub + 🔎 See on GitHub
@@ -1072,7 +1067,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/tasks/database_tasks.rb, line 103
@@ -1080,7 +1075,7 @@ 

@env ||= Rails.env end

- See on GitHub + 🔎 See on GitHub
@@ -1107,19 +1102,19 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/tasks/database_tasks.rb, line 91
       def fixtures_path
-        @fixtures_path ||= if ENV["FIXTURES_PATH"]
-          File.join(root, ENV["FIXTURES_PATH"])
+        @fixtures_path ||= if ENV["FIXTURES_PATH"]
+          File.join(root, ENV["FIXTURES_PATH"])
         else
-          File.join(root, "test", "fixtures")
+          File.join(root, "test", "fixtures")
         end
       end
- See on GitHub + 🔎 See on GitHub
@@ -1146,7 +1141,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/tasks/database_tasks.rb, line 450
@@ -1158,7 +1153,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -1185,7 +1180,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/tasks/database_tasks.rb, line 466
@@ -1193,13 +1188,13 @@ 

if seed_loader seed_loader.load_seed else - raise "You tried to load seed data, but no seed loader is specified. Please specify seed " \ - "loader with ActiveRecord::Tasks::DatabaseTasks.seed_loader = your_seed_loader\n" \ - "Seed loader should respond to load_seed method" + raise "You tried to load seed data, but no seed loader is specified. Please specify seed " \ + "loader with ActiveRecord::Tasks::DatabaseTasks.seed_loader = your_seed_loader\n" \ + "Seed loader should respond to load_seed method" end end

- See on GitHub + 🔎 See on GitHub
@@ -1226,12 +1221,12 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/tasks/database_tasks.rb, line 237
       def migrate(version = nil)
-        scope = ENV["SCOPE"]
+        scope = ENV["SCOPE"]
         verbose_was, Migration.verbose = Migration.verbose, verbose?
 
         check_target_version
@@ -1243,7 +1238,7 @@ 

migration.version == version end end.tap do |migrations_ran| - Migration.write("No migrations ran. (using #{scope} scope)") if scope.present? && migrations_ran.empty? + Migration.write("No migrations ran. (using #{scope} scope)") if scope.present? && migrations_ran.empty? end migration_connection.schema_cache.clear! @@ -1251,7 +1246,7 @@

Migration.verbose = verbose_was end

- See on GitHub + 🔎 See on GitHub
@@ -1278,26 +1273,26 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/tasks/database_tasks.rb, line 275
       def migrate_status
         unless migration_connection.schema_migration.table_exists?
-          Kernel.abort "Schema migrations table does not exist yet."
+          Kernel.abort "Schema migrations table does not exist yet."
         end
 
         # output
-        puts "\ndatabase: #{migration_connection.pool.db_config.database}\n\n"
-        puts "#{'Status'.center(8)}  #{'Migration ID'.ljust(14)}  Migration Name"
-        puts "-" * 50
+        puts "\ndatabase: #{migration_connection.pool.db_config.database}\n\n"
+        puts "#{'Status'.center(8)}  #{'Migration ID'.ljust(14)}  Migration Name"
+        puts "-" * 50
         migration_connection.migration_context.migrations_status.each do |status, version, name|
-          puts "#{status.center(8)}  #{version.ljust(14)}  #{name}"
+          puts "#{status.center(8)}  #{version.ljust(14)}  #{name}"
         end
         puts
       end
- See on GitHub + 🔎 See on GitHub
@@ -1324,15 +1319,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/tasks/database_tasks.rb, line 87
       def migrations_paths
-        @migrations_paths ||= Rails.application.paths["db/migrate"].to_a
+        @migrations_paths ||= Rails.application.paths["db/migrate"].to_a
       end
- See on GitHub + 🔎 See on GitHub
@@ -1359,15 +1354,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/tasks/database_tasks.rb, line 107
       def name
-        @name ||= "primary"
+        @name ||= "primary"
       end
- See on GitHub + 🔎 See on GitHub
@@ -1394,7 +1389,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/tasks/database_tasks.rb, line 176
@@ -1426,7 +1421,7 @@ 

load_seed if seed end

- See on GitHub + 🔎 See on GitHub
@@ -1453,7 +1448,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/tasks/database_tasks.rb, line 320
@@ -1462,7 +1457,7 @@ 

database_adapter_for(db_config).purge end

- See on GitHub + 🔎 See on GitHub
@@ -1489,7 +1484,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/tasks/database_tasks.rb, line 325
@@ -1497,7 +1492,7 @@ 

each_local_configuration { |db_config| purge(db_config) } end

- See on GitHub + 🔎 See on GitHub
@@ -1524,7 +1519,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/tasks/database_tasks.rb, line 329
@@ -1534,7 +1529,7 @@ 

migration_class.establish_connection(environment.to_sym) end

- See on GitHub + 🔎 See on GitHub
@@ -1561,7 +1556,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/tasks/database_tasks.rb, line 73
@@ -1570,7 +1565,7 @@ 

@tasks[pattern] = task end

- See on GitHub + 🔎 See on GitHub
@@ -1597,7 +1592,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/tasks/database_tasks.rb, line 99
@@ -1605,7 +1600,7 @@ 

@root ||= Rails.root end

- See on GitHub + 🔎 See on GitHub
@@ -1632,12 +1627,12 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/tasks/database_tasks.rb, line 427
       def schema_dump_path(db_config, format = ActiveRecord.schema_format)
-        return ENV["SCHEMA"] if ENV["SCHEMA"]
+        return ENV["SCHEMA"] if ENV["SCHEMA"]
 
         filename = db_config.schema_dump(format)
         return unless filename
@@ -1649,7 +1644,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -1676,7 +1671,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/tasks/database_tasks.rb, line 370
@@ -1685,7 +1680,7 @@ 

file ||= schema_dump_path(db_config) - return true unless file && File.exist?(file) + return true unless file && File.exist?(file) with_temporary_connection(db_config) do |connection| return false unless connection.internal_metadata.enabled? @@ -1695,7 +1690,7 @@

end end

- See on GitHub + 🔎 See on GitHub
@@ -1722,7 +1717,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/tasks/database_tasks.rb, line 111
@@ -1730,7 +1725,7 @@ 

@seed_loader ||= Rails.application end

- See on GitHub + 🔎 See on GitHub
@@ -1757,7 +1752,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/tasks/database_tasks.rb, line 335
@@ -1768,7 +1763,7 @@ 

database_adapter_for(db_config, *arguments).structure_dump(filename, flags) end

- See on GitHub + 🔎 See on GitHub
@@ -1795,7 +1790,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/tasks/database_tasks.rb, line 342
@@ -1806,7 +1801,7 @@ 

database_adapter_for(db_config, *arguments).structure_load(filename, flags) end

- See on GitHub + 🔎 See on GitHub
@@ -1833,15 +1828,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/tasks/database_tasks.rb, line 296
       def target_version
-        ENV["VERSION"].to_i if ENV["VERSION"] && !ENV["VERSION"].empty?
+        ENV["VERSION"].to_i if ENV["VERSION"] && !ENV["VERSION"].empty?
       end
- See on GitHub + 🔎 See on GitHub
@@ -1868,7 +1863,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/tasks/database_tasks.rb, line 231
@@ -1878,7 +1873,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/TestFixtures.html b/src/classes/ActiveRecord/TestFixtures.html index 16ceb19616..72c6a6b164 100644 --- a/src/classes/ActiveRecord/TestFixtures.html +++ b/src/classes/ActiveRecord/TestFixtures.html @@ -108,7 +108,7 @@

- See on GitHub + 🔎 See on GitHub @@ -133,14 +133,14 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/test_fixtures.rb, line 30
       class_attribute :fixture_paths, instance_writer: false, default: []
 
- See on GitHub + 🔎 See on GitHub
@@ -171,17 +171,17 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/test_fixtures.rb, line 205
     def enlist_fixture_connections
       setup_shared_connection_pool
 
-      ActiveRecord::Base.connection_handler.connection_pool_list(:writing).map(&:connection)
+      ActiveRecord::Base.connection_handler.connection_pool_list(:writing).map(&:connection)
     end
- See on GitHub + 🔎 See on GitHub
@@ -208,16 +208,16 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/test_fixtures.rb, line 121
     def run_in_transaction?
-      use_transactional_tests &&
+      use_transactional_tests &&
         !self.class.uses_transaction?(name)
     end
- See on GitHub + 🔎 See on GitHub
@@ -244,13 +244,13 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/test_fixtures.rb, line 126
     def setup_fixtures(config = ActiveRecord::Base)
-      if pre_loaded_fixtures && !use_transactional_tests
-        raise RuntimeError, "pre_loaded_fixtures requires use_transactional_tests"
+      if pre_loaded_fixtures && !use_transactional_tests
+        raise RuntimeError, "pre_loaded_fixtures requires use_transactional_tests"
       end
 
       @fixture_cache = {}
@@ -276,7 +276,7 @@ 

end # When connections are established in the future, begin a transaction too - @connection_subscriber = ActiveSupport::Notifications.subscribe("!connection.active_record") do |_, _, _, _, payload| + @connection_subscriber = ActiveSupport::Notifications.subscribe("!connection.active_record") do |_, _, _, _, payload| connection_name = payload[:connection_name] if payload.key?(:connection_name) shard = payload[:shard] if payload.key?(:shard) @@ -293,7 +293,7 @@

if !@fixture_connections.include?(connection) connection.begin_transaction joinable: false, _lazy: false connection.pool.lock_thread = true if lock_threads - @fixture_connections << connection + @fixture_connections << connection end end end @@ -310,7 +310,7 @@

instantiate_fixtures if use_instantiated_fixtures end

- See on GitHub + 🔎 See on GitHub
@@ -337,7 +337,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/test_fixtures.rb, line 188
@@ -358,7 +358,7 @@ 

ActiveRecord::Base.connection_handler.clear_active_connections!(:all) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/TestFixtures/ClassMethods.html b/src/classes/ActiveRecord/TestFixtures/ClassMethods.html index 26e6265465..5e56e30c59 100644 --- a/src/classes/ActiveRecord/TestFixtures/ClassMethods.html +++ b/src/classes/ActiveRecord/TestFixtures/ClassMethods.html @@ -94,27 +94,27 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/test_fixtures.rb, line 69
       def fixtures(*fixture_set_names)
         if fixture_set_names.first == :all
-          raise StandardError, "No fixture path found. Please set `#{self}.fixture_paths`." if fixture_paths.blank?
+          raise StandardError, "No fixture path found. Please set `#{self}.fixture_paths`." if fixture_paths.blank?
           fixture_set_names = fixture_paths.flat_map do |path|
-            names = Dir[::File.join(path, "{**,*}/*.{yml}")].uniq
-            names.reject! { |f| f.start_with?(file_fixture_path.to_s) } if defined?(file_fixture_path) && file_fixture_path
-            names.map! { |f| f[path.to_s.size..-5].delete_prefix("/") }
+            names = Dir[::File.join(path, "{**,*}/*.{yml}")].uniq
+            names.reject! { |f| f.start_with?(file_fixture_path.to_s) } if defined?(file_fixture_path) && file_fixture_path
+            names.map! { |f| f[path.to_s.size..-5].delete_prefix("/") }
           end.uniq
         else
-          fixture_set_names = fixture_set_names.flatten.map(&:to_s)
+          fixture_set_names = fixture_set_names.flatten.map(&:to_s)
         end
 
         self.fixture_table_names |= fixture_set_names
         setup_fixture_accessors(fixture_set_names)
       end
- See on GitHub + 🔎 See on GitHub
@@ -149,7 +149,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/test_fixtures.rb, line 51
@@ -157,7 +157,7 @@ 

self.fixture_class_names = fixture_class_names.merge(class_names.stringify_keys) end

- See on GitHub + 🔎 See on GitHub
@@ -184,7 +184,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/test_fixtures.rb, line 85
@@ -193,7 +193,7 @@ 

unless fixture_set_names.empty? self.fixture_sets = fixture_sets.dup fixture_set_names.each do |fs_name| - key = fs_name.to_s.include?("/") ? -fs_name.to_s.tr("/", "_") : fs_name + key = fs_name.to_s.include?("/") ? -fs_name.to_s.tr("/", "_") : fs_name key = -key.to_s if key.is_a?(Symbol) fs_name = -fs_name.to_s if fs_name.is_a?(Symbol) fixture_sets[key] = fs_name @@ -201,7 +201,7 @@

end end

- See on GitHub + 🔎 See on GitHub
@@ -228,16 +228,16 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/test_fixtures.rb, line 101
       def uses_transaction(*methods)
         @uses_transaction = [] unless defined?(@uses_transaction)
-        @uses_transaction.concat methods.map(&:to_s)
+        @uses_transaction.concat methods.map(&:to_s)
       end
- See on GitHub + 🔎 See on GitHub
@@ -264,7 +264,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/test_fixtures.rb, line 106
@@ -273,7 +273,7 @@ 

@uses_transaction.include?(method.to_s) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/TokenFor.html b/src/classes/ActiveRecord/TokenFor.html index 8b510213ce..0058f02d5a 100644 --- a/src/classes/ActiveRecord/TokenFor.html +++ b/src/classes/ActiveRecord/TokenFor.html @@ -93,7 +93,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/token_for.rb, line 109
@@ -101,7 +101,7 @@ 

self.class.token_definitions.fetch(purpose).generate_token(self) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/TokenFor/ClassMethods.html b/src/classes/ActiveRecord/TokenFor/ClassMethods.html index 714b9203c0..c406a303e9 100644 --- a/src/classes/ActiveRecord/TokenFor/ClassMethods.html +++ b/src/classes/ActiveRecord/TokenFor/ClassMethods.html @@ -86,16 +86,16 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/token_for.rb, line 90
       def find_by_token_for(purpose, token)
         raise UnknownPrimaryKey.new(self) unless primary_key
-        token_definitions.fetch(purpose).resolve_token(token) { |id| find_by(primary_key => id) }
+        token_definitions.fetch(purpose).resolve_token(token) { |id| find_by(primary_key => id) }
       end
- See on GitHub + 🔎 See on GitHub
@@ -122,7 +122,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/token_for.rb, line 99
@@ -131,7 +131,7 @@ 

(raise ActiveSupport::MessageVerifier::InvalidSignature) end

- See on GitHub + 🔎 See on GitHub
@@ -188,15 +188,15 @@

Examples

- Source code + 📝 Source code
# File activerecord/lib/active_record/token_for.rb, line 84
-      def generates_token_for(purpose, expires_in: nil, &block)
-        self.token_definitions = token_definitions.merge(purpose => TokenDefinition.new(self, purpose, expires_in, block))
+      def generates_token_for(purpose, expires_in: nil, &block)
+        self.token_definitions = token_definitions.merge(purpose => TokenDefinition.new(self, purpose, expires_in, block))
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/Transactions/ClassMethods.html b/src/classes/ActiveRecord/Transactions/ClassMethods.html index 586d75624a..c6f0bb229d 100644 --- a/src/classes/ActiveRecord/Transactions/ClassMethods.html +++ b/src/classes/ActiveRecord/Transactions/ClassMethods.html @@ -251,16 +251,16 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/transactions.rb, line 232
-      def after_commit(*args, &block)
+      def after_commit(*args, &block)
         set_options_for_callbacks!(args, prepend_option)
-        set_callback(:commit, :after, *args, &block)
+        set_callback(:commit, :after, *args, &block)
       end
- See on GitHub + 🔎 See on GitHub
@@ -287,16 +287,16 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/transactions.rb, line 244
-      def after_create_commit(*args, &block)
+      def after_create_commit(*args, &block)
         set_options_for_callbacks!(args, on: :create, **prepend_option)
-        set_callback(:commit, :after, *args, &block)
+        set_callback(:commit, :after, *args, &block)
       end
- See on GitHub + 🔎 See on GitHub
@@ -323,16 +323,16 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/transactions.rb, line 256
-      def after_destroy_commit(*args, &block)
+      def after_destroy_commit(*args, &block)
         set_options_for_callbacks!(args, on: :destroy, **prepend_option)
-        set_callback(:commit, :after, *args, &block)
+        set_callback(:commit, :after, *args, &block)
       end
- See on GitHub + 🔎 See on GitHub
@@ -361,16 +361,16 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/transactions.rb, line 264
-      def after_rollback(*args, &block)
+      def after_rollback(*args, &block)
         set_options_for_callbacks!(args, prepend_option)
-        set_callback(:rollback, :after, *args, &block)
+        set_callback(:rollback, :after, *args, &block)
       end
- See on GitHub + 🔎 See on GitHub
@@ -397,16 +397,16 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/transactions.rb, line 238
-      def after_save_commit(*args, &block)
+      def after_save_commit(*args, &block)
         set_options_for_callbacks!(args, on: [ :create, :update ], **prepend_option)
-        set_callback(:commit, :after, *args, &block)
+        set_callback(:commit, :after, *args, &block)
       end
- See on GitHub + 🔎 See on GitHub
@@ -433,16 +433,16 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/transactions.rb, line 250
-      def after_update_commit(*args, &block)
+      def after_update_commit(*args, &block)
         set_options_for_callbacks!(args, on: :update, **prepend_option)
-        set_callback(:commit, :after, *args, &block)
+        set_callback(:commit, :after, *args, &block)
       end
- See on GitHub + 🔎 See on GitHub
@@ -469,15 +469,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/transactions.rb, line 211
-      def transaction(**options, &block)
-        connection.transaction(**options, &block)
+      def transaction(**options, &block)
+        connection.transaction(**options, &block)
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/Type.html b/src/classes/ActiveRecord/Type.html index 8f34993e20..703ee64e7a 100644 --- a/src/classes/ActiveRecord/Type.html +++ b/src/classes/ActiveRecord/Type.html @@ -420,15 +420,15 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/type.rb, line 37
-      def register(type_name, klass = nil, **options, &block)
-        registry.register(type_name, klass, **options, &block)
+      def register(type_name, klass = nil, **options, &block)
+        registry.register(type_name, klass, **options, &block)
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/Type/Internal/Timezone.html b/src/classes/ActiveRecord/Type/Internal/Timezone.html index d9605e8639..7677422fff 100644 --- a/src/classes/ActiveRecord/Type/Internal/Timezone.html +++ b/src/classes/ActiveRecord/Type/Internal/Timezone.html @@ -85,7 +85,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/type/internal/timezone.rb, line 7
@@ -94,7 +94,7 @@ 

@timezone = timezone end

- See on GitHub + 🔎 See on GitHub
@@ -125,7 +125,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/type/internal/timezone.rb, line 16
@@ -133,7 +133,7 @@ 

@timezone || ActiveRecord.default_timezone end

- See on GitHub + 🔎 See on GitHub
@@ -160,7 +160,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/type/internal/timezone.rb, line 12
@@ -168,7 +168,7 @@ 

default_timezone == :utc end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/Type/Json.html b/src/classes/ActiveRecord/Type/Json.html index be86f500a6..6df213f704 100644 --- a/src/classes/ActiveRecord/Type/Json.html +++ b/src/classes/ActiveRecord/Type/Json.html @@ -114,7 +114,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/type/json.rb, line 25
@@ -122,7 +122,7 @@ 

ActiveRecord::Store::StringKeyedHashAccessor end

- See on GitHub + 🔎 See on GitHub
@@ -149,7 +149,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/type/json.rb, line 21
@@ -157,7 +157,7 @@ 

deserialize(raw_old_value) != new_value end

- See on GitHub + 🔎 See on GitHub
@@ -184,7 +184,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/type/json.rb, line 12
@@ -193,7 +193,7 @@ 

ActiveSupport::JSON.decode(value) rescue nil end

- See on GitHub + 🔎 See on GitHub
@@ -220,7 +220,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/type/json.rb, line 17
@@ -228,7 +228,7 @@ 

ActiveSupport::JSON.encode(value) unless value.nil? end

- See on GitHub + 🔎 See on GitHub
@@ -255,7 +255,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/type/json.rb, line 8
@@ -263,7 +263,7 @@ 

:json end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/Type/Time.html b/src/classes/ActiveRecord/Type/Time.html index 2bd0a52e66..4203527761 100644 --- a/src/classes/ActiveRecord/Type/Time.html +++ b/src/classes/ActiveRecord/Type/Time.html @@ -98,7 +98,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/type/time.rb, line 11
@@ -111,7 +111,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/UnknownPrimaryKey.html b/src/classes/ActiveRecord/UnknownPrimaryKey.html index eb812d0fa7..e44ae79772 100644 --- a/src/classes/ActiveRecord/UnknownPrimaryKey.html +++ b/src/classes/ActiveRecord/UnknownPrimaryKey.html @@ -103,22 +103,22 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/errors.rb, line 447
     def initialize(model = nil, description = nil)
       if model
-        message = "Unknown primary key for table #{model.table_name} in model #{model}."
-        message += "\n#{description}" if description
+        message = "Unknown primary key for table #{model.table_name} in model #{model}."
+        message += "\n#{description}" if description
         @model = model
         super(message)
       else
-        super("Unknown primary key.")
+        super("Unknown primary key.")
       end
     end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/VERSION.html b/src/classes/ActiveRecord/VERSION.html index 1bae9cdb78..d8c63083f0 100644 --- a/src/classes/ActiveRecord/VERSION.html +++ b/src/classes/ActiveRecord/VERSION.html @@ -52,11 +52,6 @@

Constants

7 - -   - - - MINOR @@ -64,11 +59,6 @@

Constants

1 - -   - - - PRE @@ -76,11 +66,6 @@

Constants

nil - -   - - - STRING @@ -88,11 +73,6 @@

Constants

[MAJOR, MINOR, TINY, PRE].compact.join(".") - -   - - - TINY @@ -100,11 +80,6 @@

Constants

0 - -   - - - diff --git a/src/classes/ActiveRecord/Validations.html b/src/classes/ActiveRecord/Validations.html index 57d6eefa4d..40c9f94c1f 100644 --- a/src/classes/ActiveRecord/Validations.html +++ b/src/classes/ActiveRecord/Validations.html @@ -139,7 +139,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/validations.rb, line 48
@@ -147,7 +147,7 @@ 

perform_validations(options) ? super : false end

- See on GitHub + 🔎 See on GitHub
@@ -174,7 +174,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/validations.rb, line 54
@@ -182,7 +182,7 @@ 

perform_validations(options) ? super : raise_validation_error end

- See on GitHub + 🔎 See on GitHub
@@ -219,17 +219,17 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/validations.rb, line 70
     def valid?(context = nil)
       context ||= default_validation_context
       output = super(context)
-      errors.empty? && output
+      errors.empty? && output
     end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveRecord/Validations/ClassMethods.html b/src/classes/ActiveRecord/Validations/ClassMethods.html index ff21818d86..abf061eee1 100644 --- a/src/classes/ActiveRecord/Validations/ClassMethods.html +++ b/src/classes/ActiveRecord/Validations/ClassMethods.html @@ -114,7 +114,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/validations/absence.rb, line 20
@@ -122,7 +122,7 @@ 

validates_with AbsenceValidator, _merge_attributes(attr_names) end

- See on GitHub + 🔎 See on GitHub
@@ -172,7 +172,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/validations/associated.rb, line 54
@@ -180,7 +180,7 @@ 

validates_with AssociatedValidator, _merge_attributes(attr_names) end

- See on GitHub + 🔎 See on GitHub
@@ -213,7 +213,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/validations/length.rb, line 19
@@ -221,7 +221,7 @@ 

validates_with LengthValidator, _merge_attributes(attr_names) end

- See on GitHub + 🔎 See on GitHub
@@ -250,7 +250,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/validations/numericality.rb, line 31
@@ -258,7 +258,7 @@ 

validates_with NumericalityValidator, _merge_attributes(attr_names) end

- See on GitHub + 🔎 See on GitHub
@@ -299,7 +299,7 @@

- Source code + 📝 Source code
# File activerecord/lib/active_record/validations/presence.rb, line 40
@@ -307,7 +307,7 @@ 

validates_with PresenceValidator, _merge_attributes(attr_names) end

- See on GitHub + 🔎 See on GitHub
@@ -465,7 +465,7 @@

Concur
- Source code + 📝 Source code
# File activerecord/lib/active_record/validations/uniqueness.rb, line 286
@@ -473,7 +473,7 @@ 

Concur validates_with UniquenessValidator, _merge_attributes(attr_names) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveStorage.html b/src/classes/ActiveStorage.html index 55ea373d65..b40a82192a 100644 --- a/src/classes/ActiveStorage.html +++ b/src/classes/ActiveStorage.html @@ -609,7 +609,7 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/gem_version.rb, line 5
@@ -617,7 +617,7 @@ 

Gem::Version.new VERSION::STRING end

- See on GitHub + 🔎 See on GitHub
@@ -644,15 +644,15 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage.rb, line 367
   def self.replace_on_assign_to_many
-    ActiveStorage.deprecator.warn("config.active_storage.replace_on_assign_to_many is deprecated and has no effect.")
+    ActiveStorage.deprecator.warn("config.active_storage.replace_on_assign_to_many is deprecated and has no effect.")
   end
- See on GitHub + 🔎 See on GitHub
@@ -679,15 +679,15 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage.rb, line 371
   def self.replace_on_assign_to_many=(value)
-    ActiveStorage.deprecator.warn("config.active_storage.replace_on_assign_to_many is deprecated and has no effect.")
+    ActiveStorage.deprecator.warn("config.active_storage.replace_on_assign_to_many is deprecated and has no effect.")
   end
- See on GitHub + 🔎 See on GitHub
@@ -714,15 +714,15 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage.rb, line 375
   def self.silence_invalid_content_types_warning
-    ActiveStorage.deprecator.warn("config.active_storage.silence_invalid_content_types_warning is deprecated and has no effect.")
+    ActiveStorage.deprecator.warn("config.active_storage.silence_invalid_content_types_warning is deprecated and has no effect.")
   end
- See on GitHub + 🔎 See on GitHub
@@ -749,15 +749,15 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage.rb, line 379
   def self.silence_invalid_content_types_warning=(value)
-    ActiveStorage.deprecator.warn("config.active_storage.silence_invalid_content_types_warning is deprecated and has no effect.")
+    ActiveStorage.deprecator.warn("config.active_storage.silence_invalid_content_types_warning is deprecated and has no effect.")
   end
- See on GitHub + 🔎 See on GitHub
@@ -784,7 +784,7 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/version.rb, line 7
@@ -792,7 +792,7 @@ 

gem_version end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveStorage/AnalyzeJob.html b/src/classes/ActiveStorage/AnalyzeJob.html index 174f833442..d7c295dcb0 100644 --- a/src/classes/ActiveStorage/AnalyzeJob.html +++ b/src/classes/ActiveStorage/AnalyzeJob.html @@ -90,7 +90,7 @@

- Source code + 📝 Source code
# File activestorage/app/jobs/active_storage/analyze_job.rb, line 10
@@ -98,7 +98,7 @@ 

blob.analyze end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveStorage/Analyzer.html b/src/classes/ActiveStorage/Analyzer.html index bf9422cd40..aafbf23e08 100644 --- a/src/classes/ActiveStorage/Analyzer.html +++ b/src/classes/ActiveStorage/Analyzer.html @@ -164,7 +164,7 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/analyzer.rb, line 13
@@ -172,7 +172,7 @@ 

false end

- See on GitHub + 🔎 See on GitHub
@@ -199,7 +199,7 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/analyzer.rb, line 19
@@ -207,7 +207,7 @@ 

true end

- See on GitHub + 🔎 See on GitHub
@@ -234,7 +234,7 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/analyzer.rb, line 23
@@ -242,7 +242,7 @@ 

@blob = blob end

- See on GitHub + 🔎 See on GitHub
@@ -273,7 +273,7 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/analyzer.rb, line 28
@@ -281,7 +281,7 @@ 

raise NotImplementedError end

- See on GitHub + 🔎 See on GitHub
@@ -311,15 +311,15 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/analyzer.rb, line 34
-      def download_blob_to_tempfile(&block) # :doc:
-        blob.open tmpdir: tmpdir, &block
+      def download_blob_to_tempfile(&block) # :doc:
+        blob.open tmpdir: tmpdir, &block
       end
- See on GitHub + 🔎 See on GitHub
@@ -346,15 +346,15 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/analyzer.rb, line 46
-      def instrument(analyzer, &block) # :doc:
-        ActiveSupport::Notifications.instrument("analyze.active_storage", analyzer: analyzer, &block)
+      def instrument(analyzer, &block) # :doc:
+        ActiveSupport::Notifications.instrument("analyze.active_storage", analyzer: analyzer, &block)
       end
- See on GitHub + 🔎 See on GitHub
@@ -381,7 +381,7 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/analyzer.rb, line 38
@@ -389,7 +389,7 @@ 

ActiveStorage.logger end

- See on GitHub + 🔎 See on GitHub
@@ -416,7 +416,7 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/analyzer.rb, line 42
@@ -424,7 +424,7 @@ 

Dir.tmpdir end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveStorage/Analyzer/AudioAnalyzer.html b/src/classes/ActiveStorage/Analyzer/AudioAnalyzer.html index 952abff3bf..5829e59517 100644 --- a/src/classes/ActiveStorage/Analyzer/AudioAnalyzer.html +++ b/src/classes/ActiveStorage/Analyzer/AudioAnalyzer.html @@ -103,7 +103,7 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/analyzer/audio_analyzer.rb, line 15
@@ -111,7 +111,7 @@ 

blob.audio? end

- See on GitHub + 🔎 See on GitHub
@@ -142,7 +142,7 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/analyzer/audio_analyzer.rb, line 19
@@ -150,7 +150,7 @@ 

{ duration: duration, bit_rate: bit_rate, sample_rate: sample_rate, tags: tags }.compact end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveStorage/Analyzer/ImageAnalyzer.html b/src/classes/ActiveStorage/Analyzer/ImageAnalyzer.html index 608ee246d2..2753b99135 100644 --- a/src/classes/ActiveStorage/Analyzer/ImageAnalyzer.html +++ b/src/classes/ActiveStorage/Analyzer/ImageAnalyzer.html @@ -124,7 +124,7 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/analyzer/image_analyzer.rb, line 15
@@ -132,7 +132,7 @@ 

blob.image? end

- See on GitHub + 🔎 See on GitHub
@@ -163,7 +163,7 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/analyzer/image_analyzer.rb, line 19
@@ -177,7 +177,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveStorage/Analyzer/ImageAnalyzer/ImageMagick.html b/src/classes/ActiveStorage/Analyzer/ImageAnalyzer/ImageMagick.html index 3795961fdb..b4efe47b81 100644 --- a/src/classes/ActiveStorage/Analyzer/ImageAnalyzer/ImageMagick.html +++ b/src/classes/ActiveStorage/Analyzer/ImageAnalyzer/ImageMagick.html @@ -89,15 +89,15 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/analyzer/image_analyzer/image_magick.rb, line 7
     def self.accept?(blob)
-      super && ActiveStorage.variant_processor == :mini_magick
+      super && ActiveStorage.variant_processor == :mini_magick
     end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveStorage/Analyzer/ImageAnalyzer/Vips.html b/src/classes/ActiveStorage/Analyzer/ImageAnalyzer/Vips.html index ad7a11b696..59a4e0d639 100644 --- a/src/classes/ActiveStorage/Analyzer/ImageAnalyzer/Vips.html +++ b/src/classes/ActiveStorage/Analyzer/ImageAnalyzer/Vips.html @@ -71,11 +71,6 @@

Constants

/Right-top|Left-bottom|Top-right|Bottom-left/ - -   - - - @@ -107,15 +102,15 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/analyzer/image_analyzer/vips.rb, line 7
     def self.accept?(blob)
-      super && ActiveStorage.variant_processor == :vips
+      super && ActiveStorage.variant_processor == :vips
     end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveStorage/Analyzer/VideoAnalyzer.html b/src/classes/ActiveStorage/Analyzer/VideoAnalyzer.html index 6bf3a12424..d33e1e37b5 100644 --- a/src/classes/ActiveStorage/Analyzer/VideoAnalyzer.html +++ b/src/classes/ActiveStorage/Analyzer/VideoAnalyzer.html @@ -120,7 +120,7 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/analyzer/video_analyzer.rb, line 25
@@ -128,7 +128,7 @@ 

blob.video? end

- See on GitHub + 🔎 See on GitHub
@@ -159,7 +159,7 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/analyzer/video_analyzer.rb, line 29
@@ -167,7 +167,7 @@ 

{ width: width, height: height, duration: duration, angle: angle, display_aspect_ratio: display_aspect_ratio, audio: audio?, video: video? }.compact end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveStorage/Attached.html b/src/classes/ActiveStorage/Attached.html index e0ed8f5967..48f7705f1e 100644 --- a/src/classes/ActiveStorage/Attached.html +++ b/src/classes/ActiveStorage/Attached.html @@ -161,7 +161,7 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/attached.rb, line 13
@@ -169,7 +169,7 @@ 

@name, @record = name, record end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveStorage/Attached/Many.html b/src/classes/ActiveStorage/Attached/Many.html index 8b42193273..0d9f5a41db 100644 --- a/src/classes/ActiveStorage/Attached/Many.html +++ b/src/classes/ActiveStorage/Attached/Many.html @@ -124,19 +124,19 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/attached/many.rb, line 51
     def attach(*attachables)
-      record.public_send("#{name}=", blobs + attachables.flatten)
-      if record.persisted? && !record.changed?
+      record.public_send("#{name}=", blobs + attachables.flatten)
+      if record.persisted? && !record.changed?
         return if !record.save
       end
-      record.public_send("#{name}")
+      record.public_send("#{name}")
     end
- See on GitHub + 🔎 See on GitHub
@@ -170,7 +170,7 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/attached/many.rb, line 66
@@ -178,7 +178,7 @@ 

attachments.any? end

- See on GitHub + 🔎 See on GitHub
@@ -207,15 +207,15 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/attached/many.rb, line 32
     def attachments
-      change.present? ? change.attachments : record.public_send("#{name}_attachments")
+      change.present? ? change.attachments : record.public_send("#{name}_attachments")
     end
- See on GitHub + 🔎 See on GitHub
@@ -242,15 +242,15 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/attached/many.rb, line 37
     def blobs
-      change.present? ? change.blobs : record.public_send("#{name}_blobs")
+      change.present? ? change.blobs : record.public_send("#{name}_blobs")
     end
- See on GitHub + 🔎 See on GitHub
@@ -277,14 +277,14 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/attached/many.rb, line 25
     delegate :detach, to: :detach_many
 
- See on GitHub + 🔎 See on GitHub
@@ -311,14 +311,14 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/attached/many.rb, line 13
     delegate :purge, to: :purge_many
 
- See on GitHub + 🔎 See on GitHub
@@ -345,14 +345,14 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/attached/many.rb, line 19
     delegate :purge_later, to: :purge_many
 
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveStorage/Attached/Model.html b/src/classes/ActiveStorage/Attached/Model.html index 2315933c85..85639a8d75 100644 --- a/src/classes/ActiveStorage/Attached/Model.html +++ b/src/classes/ActiveStorage/Attached/Model.html @@ -119,7 +119,7 @@

- See on GitHub + 🔎 See on GitHub @@ -145,7 +145,7 @@

- See on GitHub + 🔎 See on GitHub @@ -171,7 +171,7 @@

- See on GitHub + 🔎 See on GitHub @@ -197,7 +197,7 @@

- See on GitHub + 🔎 See on GitHub @@ -254,44 +254,44 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/attached/model.rb, line 179
       def has_many_attached(name, dependent: :purge_later, service: nil, strict_loading: false)
         validate_service_configuration(name, service)
 
-        generated_association_methods.class_eval <<-CODE, __FILE__, __LINE__ + 1
+        generated_association_methods.class_eval <<-CODE, __FILE__, __LINE__ + 1
           # frozen_string_literal: true
           def #{name}
             @active_storage_attached ||= {}
-            @active_storage_attached[:#{name}] ||= ActiveStorage::Attached::Many.new("#{name}", self)
+            @active_storage_attached[:#{name}] ||= ActiveStorage::Attached::Many.new("#{name}", self)
           end
 
           def #{name}=(attachables)
             attachables = Array(attachables).compact_blank
-            pending_uploads = attachment_changes["#{name}"].try(:pending_uploads)
+            pending_uploads = attachment_changes["#{name}"].try(:pending_uploads)
 
-            attachment_changes["#{name}"] = if attachables.none?
-              ActiveStorage::Attached::Changes::DeleteMany.new("#{name}", self)
+            attachment_changes["#{name}"] = if attachables.none?
+              ActiveStorage::Attached::Changes::DeleteMany.new("#{name}", self)
             else
-              ActiveStorage::Attached::Changes::CreateMany.new("#{name}", self, attachables, pending_uploads: pending_uploads)
+              ActiveStorage::Attached::Changes::CreateMany.new("#{name}", self, attachables, pending_uploads: pending_uploads)
             end
           end
         CODE
 
-        has_many :"#{name}_attachments", -> { where(name: name) }, as: :record, class_name: "ActiveStorage::Attachment", inverse_of: :record, dependent: :destroy, strict_loading: strict_loading
-        has_many :"#{name}_blobs", through: :"#{name}_attachments", class_name: "ActiveStorage::Blob", source: :blob, strict_loading: strict_loading
+        has_many :"#{name}_attachments", -> { where(name: name) }, as: :record, class_name: "ActiveStorage::Attachment", inverse_of: :record, dependent: :destroy, strict_loading: strict_loading
+        has_many :"#{name}_blobs", through: :"#{name}_attachments", class_name: "ActiveStorage::Blob", source: :blob, strict_loading: strict_loading
 
-        scope :"with_attached_#{name}", -> {
+        scope :"with_attached_#{name}", -> {
           if ActiveStorage.track_variants
-            includes("#{name}_attachments": { blob: { variant_records: { image_attachment: :blob } } })
+            includes("#{name}_attachments": { blob: { variant_records: { image_attachment: :blob } } })
           else
-            includes("#{name}_attachments": :blob)
+            includes("#{name}_attachments": :blob)
           end
         }
 
-        after_save { attachment_changes[name.to_s]&.save }
+        after_save { attachment_changes[name.to_s]&.save }
 
         after_commit(on: %i[ create update ]) { attachment_changes.delete(name.to_s).try(:upload) }
 
@@ -306,7 +306,7 @@ 

ActiveRecord::Reflection.add_attachment_reflection(self, name, reflection) end

- See on GitHub + 🔎 See on GitHub
@@ -365,42 +365,42 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/attached/model.rb, line 94
       def has_one_attached(name, dependent: :purge_later, service: nil, strict_loading: false)
         validate_service_configuration(name, service)
 
-        generated_association_methods.class_eval <<-CODE, __FILE__, __LINE__ + 1
+        generated_association_methods.class_eval <<-CODE, __FILE__, __LINE__ + 1
           # frozen_string_literal: true
           def #{name}
             @active_storage_attached ||= {}
-            @active_storage_attached[:#{name}] ||= ActiveStorage::Attached::One.new("#{name}", self)
+            @active_storage_attached[:#{name}] ||= ActiveStorage::Attached::One.new("#{name}", self)
           end
 
           def #{name}=(attachable)
-            attachment_changes["#{name}"] =
-              if attachable.nil? || attachable == ""
-                ActiveStorage::Attached::Changes::DeleteOne.new("#{name}", self)
+            attachment_changes["#{name}"] =
+              if attachable.nil? || attachable == ""
+                ActiveStorage::Attached::Changes::DeleteOne.new("#{name}", self)
               else
-                ActiveStorage::Attached::Changes::CreateOne.new("#{name}", self, attachable)
+                ActiveStorage::Attached::Changes::CreateOne.new("#{name}", self, attachable)
               end
           end
         CODE
 
-        has_one :"#{name}_attachment", -> { where(name: name) }, class_name: "ActiveStorage::Attachment", as: :record, inverse_of: :record, dependent: :destroy, strict_loading: strict_loading
-        has_one :"#{name}_blob", through: :"#{name}_attachment", class_name: "ActiveStorage::Blob", source: :blob, strict_loading: strict_loading
+        has_one :"#{name}_attachment", -> { where(name: name) }, class_name: "ActiveStorage::Attachment", as: :record, inverse_of: :record, dependent: :destroy, strict_loading: strict_loading
+        has_one :"#{name}_blob", through: :"#{name}_attachment", class_name: "ActiveStorage::Blob", source: :blob, strict_loading: strict_loading
 
-        scope :"with_attached_#{name}", -> {
+        scope :"with_attached_#{name}", -> {
           if ActiveStorage.track_variants
-            includes("#{name}_attachment": { blob: { variant_records: { image_attachment: :blob } } })
+            includes("#{name}_attachment": { blob: { variant_records: { image_attachment: :blob } } })
           else
-            includes("#{name}_attachment": :blob)
+            includes("#{name}_attachment": :blob)
           end
         }
 
-        after_save { attachment_changes[name.to_s]&.save }
+        after_save { attachment_changes[name.to_s]&.save }
 
         after_commit(on: %i[ create update ]) { attachment_changes.delete(name.to_s).try(:upload) }
 
@@ -415,7 +415,7 @@ 

ActiveRecord::Reflection.add_attachment_reflection(self, name, reflection) end

- See on GitHub + 🔎 See on GitHub
@@ -442,17 +442,17 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/attached/model.rb, line 238
         def validate_global_service_configuration
-          if connected? && ActiveStorage::Blob.table_exists? && Rails.configuration.active_storage.service.nil?
-            raise RuntimeError, "Missing Active Storage service name. Specify Active Storage service name for config.active_storage.service in config/environments/#{Rails.env}.rb"
+          if connected? && ActiveStorage::Blob.table_exists? && Rails.configuration.active_storage.service.nil?
+            raise RuntimeError, "Missing Active Storage service name. Specify Active Storage service name for config.active_storage.service in config/environments/#{Rails.env}.rb"
           end
         end
- See on GitHub + 🔎 See on GitHub
@@ -479,21 +479,21 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/attached/model.rb, line 228
         def validate_service_configuration(association_name, service)
           if service.present?
             ActiveStorage::Blob.services.fetch(service) do
-              raise ArgumentError, "Cannot configure service :#{service} for #{name}##{association_name}"
+              raise ArgumentError, "Cannot configure service :#{service} for #{name}##{association_name}"
             end
           else
             validate_global_service_configuration
           end
         end
- See on GitHub + 🔎 See on GitHub
@@ -530,14 +530,14 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/attached/model.rb, line 54
     class_methods do
       # Specifies the relation between a single attachment and the model.
       #
-      #   class User < ApplicationRecord
+      #   class User < ApplicationRecord
       #     has_one_attached :avatar
       #   end
       #
@@ -551,61 +551,61 @@ 

# Under the covers, this relationship is implemented as a +has_one+ association to a # ActiveStorage::Attachment record and a +has_one-through+ association to a # ActiveStorage::Blob record. These associations are available as +avatar_attachment+ - # and +avatar_blob+. But you shouldn't need to work with these associations directly in + # and +avatar_blob+. But you shouldn't need to work with these associations directly in # most circumstances. # # The system has been designed to having you go through the ActiveStorage::Attached::One # proxy that provides the dynamic proxy to the associations and factory methods, like +attach+. # - # If the +:dependent+ option isn't set, the attachment will be purged + # If the +:dependent+ option isn't set, the attachment will be purged # (i.e. destroyed) whenever the record is destroyed. # # If you need the attachment to use a service which differs from the globally configured one, # pass the +:service+ option. For instance: # - # class User < ActiveRecord::Base + # class User < ActiveRecord::Base # has_one_attached :avatar, service: :s3 # end # # If you need to enable +strict_loading+ to prevent lazy loading of attachment, # pass the +:strict_loading+ option. You can do: # - # class User < ApplicationRecord + # class User < ApplicationRecord # has_one_attached :avatar, strict_loading: true # end # def has_one_attached(name, dependent: :purge_later, service: nil, strict_loading: false) validate_service_configuration(name, service) - generated_association_methods.class_eval <<-CODE, __FILE__, __LINE__ + 1 + generated_association_methods.class_eval <<-CODE, __FILE__, __LINE__ + 1 # frozen_string_literal: true def #{name} @active_storage_attached ||= {} - @active_storage_attached[:#{name}] ||= ActiveStorage::Attached::One.new("#{name}", self) + @active_storage_attached[:#{name}] ||= ActiveStorage::Attached::One.new("#{name}", self) end def #{name}=(attachable) - attachment_changes["#{name}"] = - if attachable.nil? || attachable == "" - ActiveStorage::Attached::Changes::DeleteOne.new("#{name}", self) + attachment_changes["#{name}"] = + if attachable.nil? || attachable == "" + ActiveStorage::Attached::Changes::DeleteOne.new("#{name}", self) else - ActiveStorage::Attached::Changes::CreateOne.new("#{name}", self, attachable) + ActiveStorage::Attached::Changes::CreateOne.new("#{name}", self, attachable) end end CODE - has_one :"#{name}_attachment", -> { where(name: name) }, class_name: "ActiveStorage::Attachment", as: :record, inverse_of: :record, dependent: :destroy, strict_loading: strict_loading - has_one :"#{name}_blob", through: :"#{name}_attachment", class_name: "ActiveStorage::Blob", source: :blob, strict_loading: strict_loading + has_one :"#{name}_attachment", -> { where(name: name) }, class_name: "ActiveStorage::Attachment", as: :record, inverse_of: :record, dependent: :destroy, strict_loading: strict_loading + has_one :"#{name}_blob", through: :"#{name}_attachment", class_name: "ActiveStorage::Blob", source: :blob, strict_loading: strict_loading - scope :"with_attached_#{name}", -> { + scope :"with_attached_#{name}", -> { if ActiveStorage.track_variants - includes("#{name}_attachment": { blob: { variant_records: { image_attachment: :blob } } }) + includes("#{name}_attachment": { blob: { variant_records: { image_attachment: :blob } } }) else - includes("#{name}_attachment": :blob) + includes("#{name}_attachment": :blob) end } - after_save { attachment_changes[name.to_s]&.save } + after_save { attachment_changes[name.to_s]&.save } after_commit(on: %i[ create update ]) { attachment_changes.delete(name.to_s).try(:upload) } @@ -622,7 +622,7 @@

# Specifies the relation between multiple attachments and the model. # - # class Gallery < ApplicationRecord + # class Gallery < ApplicationRecord # has_many_attached :photos # end # @@ -636,63 +636,63 @@

# Under the covers, this relationship is implemented as a +has_many+ association to a # ActiveStorage::Attachment record and a +has_many-through+ association to a # ActiveStorage::Blob record. These associations are available as +photos_attachments+ - # and +photos_blobs+. But you shouldn't need to work with these associations directly in + # and +photos_blobs+. But you shouldn't need to work with these associations directly in # most circumstances. # # The system has been designed to having you go through the ActiveStorage::Attached::Many # proxy that provides the dynamic proxy to the associations and factory methods, like +#attach+. # - # If the +:dependent+ option isn't set, all the attachments will be purged + # If the +:dependent+ option isn't set, all the attachments will be purged # (i.e. destroyed) whenever the record is destroyed. # # If you need the attachment to use a service which differs from the globally configured one, # pass the +:service+ option. For instance: # - # class Gallery < ActiveRecord::Base + # class Gallery < ActiveRecord::Base # has_many_attached :photos, service: :s3 # end # # If you need to enable +strict_loading+ to prevent lazy loading of attachments, # pass the +:strict_loading+ option. You can do: # - # class Gallery < ApplicationRecord + # class Gallery < ApplicationRecord # has_many_attached :photos, strict_loading: true # end # def has_many_attached(name, dependent: :purge_later, service: nil, strict_loading: false) validate_service_configuration(name, service) - generated_association_methods.class_eval <<-CODE, __FILE__, __LINE__ + 1 + generated_association_methods.class_eval <<-CODE, __FILE__, __LINE__ + 1 # frozen_string_literal: true def #{name} @active_storage_attached ||= {} - @active_storage_attached[:#{name}] ||= ActiveStorage::Attached::Many.new("#{name}", self) + @active_storage_attached[:#{name}] ||= ActiveStorage::Attached::Many.new("#{name}", self) end def #{name}=(attachables) attachables = Array(attachables).compact_blank - pending_uploads = attachment_changes["#{name}"].try(:pending_uploads) + pending_uploads = attachment_changes["#{name}"].try(:pending_uploads) - attachment_changes["#{name}"] = if attachables.none? - ActiveStorage::Attached::Changes::DeleteMany.new("#{name}", self) + attachment_changes["#{name}"] = if attachables.none? + ActiveStorage::Attached::Changes::DeleteMany.new("#{name}", self) else - ActiveStorage::Attached::Changes::CreateMany.new("#{name}", self, attachables, pending_uploads: pending_uploads) + ActiveStorage::Attached::Changes::CreateMany.new("#{name}", self, attachables, pending_uploads: pending_uploads) end end CODE - has_many :"#{name}_attachments", -> { where(name: name) }, as: :record, class_name: "ActiveStorage::Attachment", inverse_of: :record, dependent: :destroy, strict_loading: strict_loading - has_many :"#{name}_blobs", through: :"#{name}_attachments", class_name: "ActiveStorage::Blob", source: :blob, strict_loading: strict_loading + has_many :"#{name}_attachments", -> { where(name: name) }, as: :record, class_name: "ActiveStorage::Attachment", inverse_of: :record, dependent: :destroy, strict_loading: strict_loading + has_many :"#{name}_blobs", through: :"#{name}_attachments", class_name: "ActiveStorage::Blob", source: :blob, strict_loading: strict_loading - scope :"with_attached_#{name}", -> { + scope :"with_attached_#{name}", -> { if ActiveStorage.track_variants - includes("#{name}_attachments": { blob: { variant_records: { image_attachment: :blob } } }) + includes("#{name}_attachments": { blob: { variant_records: { image_attachment: :blob } } }) else - includes("#{name}_attachments": :blob) + includes("#{name}_attachments": :blob) end } - after_save { attachment_changes[name.to_s]&.save } + after_save { attachment_changes[name.to_s]&.save } after_commit(on: %i[ create update ]) { attachment_changes.delete(name.to_s).try(:upload) } @@ -711,7 +711,7 @@

def validate_service_configuration(association_name, service) if service.present? ActiveStorage::Blob.services.fetch(service) do - raise ArgumentError, "Cannot configure service :#{service} for #{name}##{association_name}" + raise ArgumentError, "Cannot configure service :#{service} for #{name}##{association_name}" end else validate_global_service_configuration @@ -719,13 +719,13 @@

end def validate_global_service_configuration - if connected? && ActiveStorage::Blob.table_exists? && Rails.configuration.active_storage.service.nil? - raise RuntimeError, "Missing Active Storage service name. Specify Active Storage service name for config.active_storage.service in config/environments/#{Rails.env}.rb" + if connected? && ActiveStorage::Blob.table_exists? && Rails.configuration.active_storage.service.nil? + raise RuntimeError, "Missing Active Storage service name. Specify Active Storage service name for config.active_storage.service in config/environments/#{Rails.env}.rb" end end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveStorage/Attached/One.html b/src/classes/ActiveStorage/Attached/One.html index b0f65f472f..71c69202d6 100644 --- a/src/classes/ActiveStorage/Attached/One.html +++ b/src/classes/ActiveStorage/Attached/One.html @@ -124,19 +124,19 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/attached/one.rb, line 58
     def attach(attachable)
-      record.public_send("#{name}=", attachable)
-      if record.persisted? && !record.changed?
+      record.public_send("#{name}=", attachable)
+      if record.persisted? && !record.changed?
         return if !record.save
       end
-      record.public_send("#{name}")
+      record.public_send("#{name}")
     end
- See on GitHub + 🔎 See on GitHub
@@ -170,7 +170,7 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/attached/one.rb, line 73
@@ -178,7 +178,7 @@ 

attachment.present? end

- See on GitHub + 🔎 See on GitHub
@@ -207,15 +207,15 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/attached/one.rb, line 33
     def attachment
-      change.present? ? change.attachment : record.public_send("#{name}_attachment")
+      change.present? ? change.attachment : record.public_send("#{name}_attachment")
     end
- See on GitHub + 🔎 See on GitHub
@@ -249,7 +249,7 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/attached/one.rb, line 44
@@ -257,7 +257,7 @@ 

!attached? end

- See on GitHub + 🔎 See on GitHub
@@ -284,14 +284,14 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/attached/one.rb, line 25
     delegate :detach, to: :detach_one
 
- See on GitHub + 🔎 See on GitHub
@@ -318,14 +318,14 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/attached/one.rb, line 13
     delegate :purge, to: :purge_one
 
- See on GitHub + 🔎 See on GitHub
@@ -352,14 +352,14 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/attached/one.rb, line 19
     delegate :purge_later, to: :purge_one
 
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveStorage/Attachment.html b/src/classes/ActiveStorage/Attachment.html index 686a3d9bb1..f1a6f9a250 100644 --- a/src/classes/ActiveStorage/Attachment.html +++ b/src/classes/ActiveStorage/Attachment.html @@ -133,14 +133,14 @@

- Source code + 📝 Source code
# File activestorage/app/models/active_storage/attachment.rb, line 47
-  scope :with_all_variant_records, -> { includes(blob: { variant_records: { image_attachment: :blob } }) }
+  scope :with_all_variant_records, -> { includes(blob: { variant_records: { image_attachment: :blob } }) }
 
- See on GitHub + 🔎 See on GitHub
@@ -171,14 +171,14 @@

- Source code + 📝 Source code
# File activestorage/app/models/active_storage/attachment.rb, line 33
-  belongs_to :blob, class_name: "ActiveStorage::Blob", autosave: true
+  belongs_to :blob, class_name: "ActiveStorage::Blob", autosave: true
 
- See on GitHub + 🔎 See on GitHub
@@ -217,7 +217,7 @@

- Source code + 📝 Source code
# File activestorage/app/models/active_storage/attachment.rb, line 100
@@ -226,7 +226,7 @@ 

blob.preview(transformations) end

- See on GitHub + 🔎 See on GitHub
@@ -253,19 +253,19 @@

- Source code + 📝 Source code
# File activestorage/app/models/active_storage/attachment.rb, line 50
   def purge
     transaction do
       delete
-      record.touch if record&.persisted?
+      record.touch if record&.persisted?
     end
-    blob&.purge
+    blob&.purge
   end
- See on GitHub + 🔎 See on GitHub
@@ -292,19 +292,19 @@

- Source code + 📝 Source code
# File activestorage/app/models/active_storage/attachment.rb, line 59
   def purge_later
     transaction do
       delete
-      record.touch if record&.persisted?
+      record.touch if record&.persisted?
     end
-    blob&.purge_later
+    blob&.purge_later
   end
- See on GitHub + 🔎 See on GitHub
@@ -331,14 +331,14 @@

- Source code + 📝 Source code
# File activestorage/app/models/active_storage/attachment.rb, line 27
   belongs_to :record, polymorphic: true, touch: true
 
- See on GitHub + 🔎 See on GitHub
@@ -377,7 +377,7 @@

- Source code + 📝 Source code
# File activestorage/app/models/active_storage/attachment.rb, line 119
@@ -386,7 +386,7 @@ 

blob.representation(transformations) end

- See on GitHub + 🔎 See on GitHub
@@ -425,7 +425,7 @@

- Source code + 📝 Source code
# File activestorage/app/models/active_storage/attachment.rb, line 81
@@ -434,7 +434,7 @@ 

blob.variant(transformations) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveStorage/Blob.html b/src/classes/ActiveStorage/Blob.html index 2ba5890890..f7e4812eda 100644 --- a/src/classes/ActiveStorage/Blob.html +++ b/src/classes/ActiveStorage/Blob.html @@ -243,11 +243,6 @@

Constants

28 - -   - - - @@ -279,22 +274,22 @@

- Source code + 📝 Source code
# File activestorage/app/models/active_storage/blob.rb, line 148
     def compose(blobs, filename:, content_type: nil, metadata: nil)
-      raise ActiveRecord::RecordNotSaved, "All blobs must be persisted." if blobs.any?(&:new_record?)
+      raise ActiveRecord::RecordNotSaved, "All blobs must be persisted." if blobs.any?(&:new_record?)
 
       content_type ||= blobs.pluck(:content_type).compact.first
 
-      new(filename: filename, content_type: content_type, metadata: metadata, byte_size: blobs.sum(&:byte_size)).tap do |combined_blob|
+      new(filename: filename, content_type: content_type, metadata: metadata, byte_size: blobs.sum(&:byte_size)).tap do |combined_blob|
         combined_blob.compose(blobs.pluck(:key))
         combined_blob.save!
       end
     end
- See on GitHub + 🔎 See on GitHub
@@ -321,7 +316,7 @@

- Source code + 📝 Source code
# File activestorage/app/models/active_storage/blob.rb, line 102
@@ -331,7 +326,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -358,7 +353,7 @@

- Source code + 📝 Source code
# File activestorage/app/models/active_storage/blob.rb, line 113
@@ -366,7 +361,7 @@ 

create! key: key, filename: filename, byte_size: byte_size, checksum: checksum, content_type: content_type, metadata: metadata, service_name: service_name end

- See on GitHub + 🔎 See on GitHub
@@ -395,7 +390,7 @@

- Source code + 📝 Source code
# File activestorage/app/models/active_storage/blob.rb, line 75
@@ -403,7 +398,7 @@ 

super(id, purpose: purpose) end

- See on GitHub + 🔎 See on GitHub
@@ -430,7 +425,7 @@

- Source code + 📝 Source code
# File activestorage/app/models/active_storage/blob.rb, line 83
@@ -438,7 +433,7 @@ 

super(id, purpose: purpose) end

- See on GitHub + 🔎 See on GitHub
@@ -465,7 +460,7 @@

- Source code + 📝 Source code
# File activestorage/app/models/active_storage/blob.rb, line 122
@@ -473,7 +468,7 @@ 

SecureRandom.base36(length) end

- See on GitHub + 🔎 See on GitHub
@@ -500,14 +495,14 @@

- Source code + 📝 Source code
# File activestorage/app/models/active_storage/blob.rb, line 44
-  scope :unattached, -> { where.missing(:attachments) }
+  scope :unattached, -> { where.missing(:attachments) }
 
- See on GitHub + 🔎 See on GitHub
@@ -538,14 +533,14 @@

- Source code + 📝 Source code
# File activestorage/app/models/active_storage/blob.rb, line 38
   has_many :attachments
 
- See on GitHub + 🔎 See on GitHub
@@ -572,15 +567,15 @@

- Source code + 📝 Source code
# File activestorage/app/models/active_storage/blob.rb, line 195
   def audio?
-    content_type.start_with?("audio")
+    content_type.start_with?("audio")
   end
- See on GitHub + 🔎 See on GitHub
@@ -607,7 +602,7 @@

- Source code + 📝 Source code
# File activestorage/app/models/active_storage/blob.rb, line 181
@@ -615,7 +610,7 @@ 

self[:metadata][:custom] || {} end

- See on GitHub + 🔎 See on GitHub
@@ -642,7 +637,7 @@

- Source code + 📝 Source code
# File activestorage/app/models/active_storage/blob.rb, line 185
@@ -650,7 +645,7 @@ 

self[:metadata] = self[:metadata].merge(custom: metadata) end

- See on GitHub + 🔎 See on GitHub
@@ -677,16 +672,16 @@

- Source code + 📝 Source code
# File activestorage/app/models/active_storage/blob.rb, line 315
   def delete
     service.delete(key)
-    service.delete_prefixed("variants/#{key}/") if image?
+    service.delete_prefixed("variants/#{key}/") if image?
   end
- See on GitHub + 🔎 See on GitHub
@@ -713,15 +708,15 @@

- Source code + 📝 Source code
# File activestorage/app/models/active_storage/blob.rb, line 275
-  def download(&block)
-    service.download key, &block
+  def download(&block)
+    service.download key, &block
   end
- See on GitHub + 🔎 See on GitHub
@@ -748,7 +743,7 @@

- Source code + 📝 Source code
# File activestorage/app/models/active_storage/blob.rb, line 280
@@ -756,7 +751,7 @@ 

service.download_chunk key, range end

- See on GitHub + 🔎 See on GitHub
@@ -783,7 +778,7 @@

- Source code + 📝 Source code
# File activestorage/app/models/active_storage/blob.rb, line 177
@@ -791,7 +786,7 @@ 

ActiveStorage::Filename.new(self[:filename]) end

- See on GitHub + 🔎 See on GitHub
@@ -818,15 +813,15 @@

- Source code + 📝 Source code
# File activestorage/app/models/active_storage/blob.rb, line 190
   def image?
-    content_type.start_with?("image")
+    content_type.start_with?("image")
   end
- See on GitHub + 🔎 See on GitHub
@@ -853,16 +848,16 @@

- Source code + 📝 Source code
# File activestorage/app/models/active_storage/blob.rb, line 169
   def key
-    # We can't wait until the record is first saved to have a key for it
+    # We can't wait until the record is first saved to have a key for it
     self[:key] ||= self.class.generate_unique_secure_token(length: MINIMUM_TOKEN_LENGTH)
   end
- See on GitHub + 🔎 See on GitHub
@@ -902,22 +897,22 @@

- Source code + 📝 Source code
# File activestorage/app/models/active_storage/blob.rb, line 297
-  def open(tmpdir: nil, &block)
+  def open(tmpdir: nil, &block)
     service.open(
       key,
       checksum: checksum,
       verify: !composed,
-      name: [ "ActiveStorage-#{id}-", filename.extension_with_delimiter ],
+      name: [ "ActiveStorage-#{id}-", filename.extension_with_delimiter ],
       tmpdir: tmpdir,
-      &block
+      &block
     )
   end
- See on GitHub + 🔎 See on GitHub
@@ -944,7 +939,7 @@

- Source code + 📝 Source code
# File activestorage/app/models/active_storage/blob.rb, line 323
@@ -954,7 +949,7 @@ 

rescue ActiveRecord::InvalidForeignKey end

- See on GitHub + 🔎 See on GitHub
@@ -981,7 +976,7 @@

- Source code + 📝 Source code
# File activestorage/app/models/active_storage/blob.rb, line 331
@@ -989,7 +984,7 @@ 

ActiveStorage::PurgeJob.perform_later(self) end

- See on GitHub + 🔎 See on GitHub
@@ -1016,7 +1011,7 @@

- Source code + 📝 Source code
# File activestorage/app/models/active_storage/blob.rb, line 336
@@ -1024,7 +1019,7 @@ 

services.fetch(service_name) end

- See on GitHub + 🔎 See on GitHub
@@ -1051,7 +1046,7 @@

- Source code + 📝 Source code
# File activestorage/app/models/active_storage/blob.rb, line 225
@@ -1059,7 +1054,7 @@ 

service.headers_for_direct_upload key, filename: filename, content_type: content_type, content_length: byte_size, checksum: checksum, custom_metadata: custom_metadata end

- See on GitHub + 🔎 See on GitHub
@@ -1086,7 +1081,7 @@

- Source code + 📝 Source code
# File activestorage/app/models/active_storage/blob.rb, line 220
@@ -1094,7 +1089,7 @@ 

service.url_for_direct_upload key, expires_in: expires_in, content_type: content_type, content_length: byte_size, checksum: checksum, custom_metadata: custom_metadata end

- See on GitHub + 🔎 See on GitHub
@@ -1121,7 +1116,7 @@

- Source code + 📝 Source code
# File activestorage/app/models/active_storage/blob.rb, line 161
@@ -1129,7 +1124,7 @@ 

super end

- See on GitHub + 🔎 See on GitHub
@@ -1156,15 +1151,15 @@

- Source code + 📝 Source code
# File activestorage/app/models/active_storage/blob.rb, line 205
   def text?
-    content_type.start_with?("text")
+    content_type.start_with?("text")
   end
- See on GitHub + 🔎 See on GitHub
@@ -1195,7 +1190,7 @@

- Source code + 📝 Source code
# File activestorage/app/models/active_storage/blob.rb, line 252
@@ -1204,7 +1199,7 @@ 

upload_without_unfurling io end

- See on GitHub + 🔎 See on GitHub
@@ -1231,7 +1226,7 @@

- Source code + 📝 Source code
# File activestorage/app/models/active_storage/blob.rb, line 213
@@ -1240,7 +1235,7 @@ 

content_type: content_type_for_serving, disposition: forced_disposition_for_serving || disposition, **options end

- See on GitHub + 🔎 See on GitHub
@@ -1267,15 +1262,15 @@

- Source code + 📝 Source code
# File activestorage/app/models/active_storage/blob.rb, line 200
   def video?
-    content_type.start_with?("video")
+    content_type.start_with?("video")
   end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveStorage/Blob/Analyzable.html b/src/classes/ActiveStorage/Blob/Analyzable.html index 36b0b46bcd..2f32f964bf 100644 --- a/src/classes/ActiveStorage/Blob/Analyzable.html +++ b/src/classes/ActiveStorage/Blob/Analyzable.html @@ -107,7 +107,7 @@

- Source code + 📝 Source code
# File activestorage/app/models/active_storage/blob/analyzable.rb, line 29
@@ -115,7 +115,7 @@ 

update! metadata: metadata.merge(extract_metadata_via_analyzer) end

- See on GitHub + 🔎 See on GitHub
@@ -144,7 +144,7 @@

- Source code + 📝 Source code
# File activestorage/app/models/active_storage/blob/analyzable.rb, line 37
@@ -156,7 +156,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -183,7 +183,7 @@

- Source code + 📝 Source code
# File activestorage/app/models/active_storage/blob/analyzable.rb, line 46
@@ -191,7 +191,7 @@ 

analyzed end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveStorage/Blob/Identifiable.html b/src/classes/ActiveStorage/Blob/Identifiable.html index c26133cd3a..6b37d5031d 100644 --- a/src/classes/ActiveStorage/Blob/Identifiable.html +++ b/src/classes/ActiveStorage/Blob/Identifiable.html @@ -92,7 +92,7 @@

- Source code + 📝 Source code
# File activestorage/app/models/active_storage/blob/identifiable.rb, line 17
@@ -100,7 +100,7 @@ 

identified end

- See on GitHub + 🔎 See on GitHub
@@ -127,7 +127,7 @@

- Source code + 📝 Source code
# File activestorage/app/models/active_storage/blob/identifiable.rb, line 5
@@ -136,7 +136,7 @@ 

save! end

- See on GitHub + 🔎 See on GitHub
@@ -163,7 +163,7 @@

- Source code + 📝 Source code
# File activestorage/app/models/active_storage/blob/identifiable.rb, line 10
@@ -174,7 +174,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveStorage/Blob/Representable.html b/src/classes/ActiveStorage/Blob/Representable.html index d493b1e20c..55cb7e78c5 100644 --- a/src/classes/ActiveStorage/Blob/Representable.html +++ b/src/classes/ActiveStorage/Blob/Representable.html @@ -108,7 +108,7 @@

- Source code + 📝 Source code
# File activestorage/app/models/active_storage/blob/representable.rb, line 63
@@ -120,7 +120,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -147,7 +147,7 @@

- Source code + 📝 Source code
# File activestorage/app/models/active_storage/blob/representable.rb, line 72
@@ -155,7 +155,7 @@ 

ActiveStorage.previewers.any? { |klass| klass.accept?(self) } end

- See on GitHub + 🔎 See on GitHub
@@ -182,7 +182,7 @@

- Source code + 📝 Source code
# File activestorage/app/models/active_storage/blob/representable.rb, line 97
@@ -190,7 +190,7 @@ 

variable? || previewable? end

- See on GitHub + 🔎 See on GitHub
@@ -224,7 +224,7 @@

- Source code + 📝 Source code
# File activestorage/app/models/active_storage/blob/representable.rb, line 85
@@ -239,7 +239,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -266,7 +266,7 @@

- Source code + 📝 Source code
# File activestorage/app/models/active_storage/blob/representable.rb, line 44
@@ -274,7 +274,7 @@ 

ActiveStorage.variable_content_types.include?(content_type) end

- See on GitHub + 🔎 See on GitHub
@@ -315,7 +315,7 @@

- Source code + 📝 Source code
# File activestorage/app/models/active_storage/blob/representable.rb, line 34
@@ -327,7 +327,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveStorage/Blobs/ProxyController.html b/src/classes/ActiveStorage/Blobs/ProxyController.html index fdc6010910..44dcb380af 100644 --- a/src/classes/ActiveStorage/Blobs/ProxyController.html +++ b/src/classes/ActiveStorage/Blobs/ProxyController.html @@ -114,24 +114,24 @@

- Source code + 📝 Source code
# File activestorage/app/controllers/active_storage/blobs/proxy_controller.rb, line 14
   def show
-    if request.headers["Range"].present?
-      send_blob_byte_range_data @blob, request.headers["Range"]
+    if request.headers["Range"].present?
+      send_blob_byte_range_data @blob, request.headers["Range"]
     else
       http_cache_forever public: true do
-        response.headers["Accept-Ranges"] = "bytes"
-        response.headers["Content-Length"] = @blob.byte_size.to_s
+        response.headers["Accept-Ranges"] = "bytes"
+        response.headers["Content-Length"] = @blob.byte_size.to_s
 
         send_blob_stream @blob, disposition: params[:disposition]
       end
     end
   end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveStorage/Blobs/RedirectController.html b/src/classes/ActiveStorage/Blobs/RedirectController.html index 046f0fa019..22499b3093 100644 --- a/src/classes/ActiveStorage/Blobs/RedirectController.html +++ b/src/classes/ActiveStorage/Blobs/RedirectController.html @@ -92,7 +92,7 @@

- Source code + 📝 Source code
# File activestorage/app/controllers/active_storage/blobs/redirect_controller.rb, line 12
@@ -101,7 +101,7 @@ 

redirect_to @blob.url(disposition: params[:disposition]), allow_other_host: true end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveStorage/DirectUploadsController.html b/src/classes/ActiveStorage/DirectUploadsController.html index e8c2d98bb8..bc65b3be3b 100644 --- a/src/classes/ActiveStorage/DirectUploadsController.html +++ b/src/classes/ActiveStorage/DirectUploadsController.html @@ -90,7 +90,7 @@

- Source code + 📝 Source code
# File activestorage/app/controllers/active_storage/direct_uploads_controller.rb, line 7
@@ -99,7 +99,7 @@ 

render json: direct_upload_json(blob) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveStorage/DiskController.html b/src/classes/ActiveStorage/DiskController.html index e797807ba5..a0a0e46243 100644 --- a/src/classes/ActiveStorage/DiskController.html +++ b/src/classes/ActiveStorage/DiskController.html @@ -94,7 +94,7 @@

- Source code + 📝 Source code
# File activestorage/app/controllers/active_storage/disk_controller.rb, line 12
@@ -108,7 +108,7 @@ 

head :not_found end

- See on GitHub + 🔎 See on GitHub
@@ -135,7 +135,7 @@

- Source code + 📝 Source code
# File activestorage/app/controllers/active_storage/disk_controller.rb, line 22
@@ -154,7 +154,7 @@ 

head :unprocessable_entity end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveStorage/Filename.html b/src/classes/ActiveStorage/Filename.html index 6a70384bef..0f383444f0 100644 --- a/src/classes/ActiveStorage/Filename.html +++ b/src/classes/ActiveStorage/Filename.html @@ -143,7 +143,7 @@

- Source code + 📝 Source code
# File activestorage/app/models/active_storage/filename.rb, line 18
@@ -151,7 +151,7 @@ 

@filename = filename end

- See on GitHub + 🔎 See on GitHub
@@ -178,7 +178,7 @@

- Source code + 📝 Source code
# File activestorage/app/models/active_storage/filename.rb, line 13
@@ -186,7 +186,7 @@ 

filename.kind_of?(self) ? filename : new(filename) end

- See on GitHub + 🔎 See on GitHub
@@ -217,15 +217,15 @@

- Source code + 📝 Source code
# File activestorage/app/models/active_storage/filename.rb, line 76
-  def <=>(other)
-    to_s.downcase <=> other.to_s.downcase
+  def <=>(other)
+    to_s.downcase <=> other.to_s.downcase
   end
- See on GitHub + 🔎 See on GitHub
@@ -252,7 +252,7 @@

- Source code + 📝 Source code
# File activestorage/app/models/active_storage/filename.rb, line 68
@@ -260,7 +260,7 @@ 

to_s end

- See on GitHub + 🔎 See on GitHub
@@ -292,7 +292,7 @@

- Source code + 📝 Source code
# File activestorage/app/models/active_storage/filename.rb, line 27
@@ -300,7 +300,7 @@ 

File.basename @filename, extension_with_delimiter end

- See on GitHub + 🔎 See on GitHub
@@ -357,7 +357,7 @@

- Source code + 📝 Source code
# File activestorage/app/models/active_storage/filename.rb, line 37
@@ -365,7 +365,7 @@ 

File.extname @filename end

- See on GitHub + 🔎 See on GitHub
@@ -401,7 +401,7 @@

- Source code + 📝 Source code
# File activestorage/app/models/active_storage/filename.rb, line 47
@@ -409,7 +409,7 @@ 

extension_with_delimiter.from(1).to_s end

- See on GitHub + 🔎 See on GitHub
@@ -442,15 +442,15 @@

- Source code + 📝 Source code
# File activestorage/app/models/active_storage/filename.rb, line 59
   def sanitized
-    @filename.encode(Encoding::UTF_8, invalid: :replace, undef: :replace, replace: "�").strip.tr("\u{202E}%$|:;/\t\r\n\\", "-")
+    @filename.encode(Encoding::UTF_8, invalid: :replace, undef: :replace, replace: "�").strip.tr("\u{202E}%$|:;/\t\r\n\\", "-")
   end
- See on GitHub + 🔎 See on GitHub
@@ -477,7 +477,7 @@

- Source code + 📝 Source code
# File activestorage/app/models/active_storage/filename.rb, line 72
@@ -485,7 +485,7 @@ 

to_s end

- See on GitHub + 🔎 See on GitHub
@@ -512,7 +512,7 @@

- Source code + 📝 Source code
# File activestorage/app/models/active_storage/filename.rb, line 64
@@ -520,7 +520,7 @@ 

sanitized.to_s end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveStorage/FixtureSet.html b/src/classes/ActiveStorage/FixtureSet.html index 456819eb52..77d90c277b 100644 --- a/src/classes/ActiveStorage/FixtureSet.html +++ b/src/classes/ActiveStorage/FixtureSet.html @@ -156,7 +156,7 @@

Examples

- Source code + 📝 Source code
# File activestorage/lib/active_storage/fixture_set.rb, line 62
@@ -164,7 +164,7 @@ 

Examples

new.prepare Blob.new(filename: filename, key: generate_unique_secure_token), **attributes end
- See on GitHub + 🔎 See on GitHub
@@ -195,7 +195,7 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/fixture_set.rb, line 66
@@ -208,7 +208,7 @@ 

instance.attributes.transform_values { |value| value.is_a?(Hash) ? value.to_json : value }.compact.to_json end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveStorage/LogSubscriber.html b/src/classes/ActiveStorage/LogSubscriber.html index 9c31a9f509..5569e5604c 100644 --- a/src/classes/ActiveStorage/LogSubscriber.html +++ b/src/classes/ActiveStorage/LogSubscriber.html @@ -120,7 +120,7 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/log_subscriber.rb, line 53
@@ -128,7 +128,7 @@ 

ActiveStorage.logger end

- See on GitHub + 🔎 See on GitHub
@@ -155,15 +155,15 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/log_subscriber.rb, line 21
     def preview(event)
-      info event, color("Previewed file from key: #{key_in(event)}", BLUE)
+      info event, color("Previewed file from key: #{key_in(event)}", BLUE)
     end
- See on GitHub + 🔎 See on GitHub
@@ -190,15 +190,15 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/log_subscriber.rb, line 26
     def service_delete(event)
-      info event, color("Deleted file from key: #{key_in(event)}", RED)
+      info event, color("Deleted file from key: #{key_in(event)}", RED)
     end
- See on GitHub + 🔎 See on GitHub
@@ -225,15 +225,15 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/log_subscriber.rb, line 31
     def service_delete_prefixed(event)
-      info event, color("Deleted files by key prefix: #{event.payload[:prefix]}", RED)
+      info event, color("Deleted files by key prefix: #{event.payload[:prefix]}", RED)
     end
- See on GitHub + 🔎 See on GitHub
@@ -264,15 +264,15 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/log_subscriber.rb, line 14
     def service_download(event)
-      info event, color("Downloaded file from key: #{key_in(event)}", BLUE)
+      info event, color("Downloaded file from key: #{key_in(event)}", BLUE)
     end
- See on GitHub + 🔎 See on GitHub
@@ -299,15 +299,15 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/log_subscriber.rb, line 36
     def service_exist(event)
-      debug event, color("Checked if file exists at key: #{key_in(event)} (#{event.payload[:exist] ? "yes" : "no"})", BLUE)
+      debug event, color("Checked if file exists at key: #{key_in(event)} (#{event.payload[:exist] ? "yes" : "no"})", BLUE)
     end
- See on GitHub + 🔎 See on GitHub
@@ -334,17 +334,17 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/log_subscriber.rb, line 46
     def service_mirror(event)
-      message = "Mirrored file at key: #{key_in(event)}"
-      message += " (checksum: #{event.payload[:checksum]})" if event.payload[:checksum]
+      message = "Mirrored file at key: #{key_in(event)}"
+      message += " (checksum: #{event.payload[:checksum]})" if event.payload[:checksum]
       debug event, color(message, GREEN)
     end
- See on GitHub + 🔎 See on GitHub
@@ -396,17 +396,17 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/log_subscriber.rb, line 7
     def service_upload(event)
-      message = "Uploaded file to key: #{key_in(event)}"
-      message += " (checksum: #{event.payload[:checksum]})" if event.payload[:checksum]
+      message = "Uploaded file to key: #{key_in(event)}"
+      message += " (checksum: #{event.payload[:checksum]})" if event.payload[:checksum]
       info event, color(message, GREEN)
     end
- See on GitHub + 🔎 See on GitHub
@@ -433,15 +433,15 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/log_subscriber.rb, line 41
     def service_url(event)
-      debug event, color("Generated URL for file at key: #{key_in(event)} (#{event.payload[:url]})", BLUE)
+      debug event, color("Generated URL for file at key: #{key_in(event)} (#{event.payload[:url]})", BLUE)
     end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveStorage/MirrorJob.html b/src/classes/ActiveStorage/MirrorJob.html index e0dc38da8e..6f8f7e267e 100644 --- a/src/classes/ActiveStorage/MirrorJob.html +++ b/src/classes/ActiveStorage/MirrorJob.html @@ -90,7 +90,7 @@

- Source code + 📝 Source code
# File activestorage/app/jobs/active_storage/mirror_job.rb, line 12
@@ -98,7 +98,7 @@ 

ActiveStorage::Blob.service.try(:mirror, key, checksum: checksum) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveStorage/Preview.html b/src/classes/ActiveStorage/Preview.html index adb8fbb862..9be5515440 100644 --- a/src/classes/ActiveStorage/Preview.html +++ b/src/classes/ActiveStorage/Preview.html @@ -164,7 +164,7 @@

- Source code + 📝 Source code
# File activestorage/app/models/active_storage/preview.rb, line 38
@@ -172,7 +172,7 @@ 

@blob, @variation = blob, ActiveStorage::Variation.wrap(variation_or_variation_key) end

- See on GitHub + 🔎 See on GitHub
@@ -203,19 +203,19 @@

- Source code + 📝 Source code
# File activestorage/app/models/active_storage/preview.rb, line 85
-  def download(&block)
+  def download(&block)
     if processed?
-      variant.download(&block)
+      variant.download(&block)
     else
       raise UnprocessedError
     end
   end
- See on GitHub + 🔎 See on GitHub
@@ -242,7 +242,7 @@

- Source code + 📝 Source code
# File activestorage/app/models/active_storage/preview.rb, line 54
@@ -250,7 +250,7 @@ 

blob.preview_image end

- See on GitHub + 🔎 See on GitHub
@@ -277,7 +277,7 @@

- Source code + 📝 Source code
# File activestorage/app/models/active_storage/preview.rb, line 72
@@ -289,7 +289,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -321,7 +321,7 @@

- Source code + 📝 Source code
# File activestorage/app/models/active_storage/preview.rb, line 48
@@ -330,7 +330,7 @@ 

self end

- See on GitHub + 🔎 See on GitHub
@@ -359,7 +359,7 @@

- Source code + 📝 Source code
# File activestorage/app/models/active_storage/preview.rb, line 63
@@ -371,7 +371,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveStorage/Previewer.html b/src/classes/ActiveStorage/Previewer.html index 4fcc1101de..2b1e02e1ce 100644 --- a/src/classes/ActiveStorage/Previewer.html +++ b/src/classes/ActiveStorage/Previewer.html @@ -152,7 +152,7 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/previewer.rb, line 14
@@ -160,7 +160,7 @@ 

false end

- See on GitHub + 🔎 See on GitHub
@@ -187,7 +187,7 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/previewer.rb, line 18
@@ -195,7 +195,7 @@ 

@blob = blob end

- See on GitHub + 🔎 See on GitHub
@@ -226,7 +226,7 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/previewer.rb, line 25
@@ -234,7 +234,7 @@ 

raise NotImplementedError end

- See on GitHub + 🔎 See on GitHub
@@ -264,15 +264,15 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/previewer.rb, line 31
-      def download_blob_to_tempfile(&block) # :doc:
-        blob.open tmpdir: tmpdir, &block
+      def download_blob_to_tempfile(&block) # :doc:
+        blob.open tmpdir: tmpdir, &block
       end
- See on GitHub + 🔎 See on GitHub
@@ -312,7 +312,7 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/previewer.rb, line 49
@@ -326,7 +326,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -353,7 +353,7 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/previewer.rb, line 93
@@ -361,7 +361,7 @@ 

ActiveStorage.logger end

- See on GitHub + 🔎 See on GitHub
@@ -388,7 +388,7 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/previewer.rb, line 97
@@ -396,7 +396,7 @@ 

Dir.tmpdir end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveStorage/Previewer/MuPDFPreviewer.html b/src/classes/ActiveStorage/Previewer/MuPDFPreviewer.html index 716f776429..5c71950944 100644 --- a/src/classes/ActiveStorage/Previewer/MuPDFPreviewer.html +++ b/src/classes/ActiveStorage/Previewer/MuPDFPreviewer.html @@ -95,15 +95,15 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/previewer/mupdf_previewer.rb, line 6
       def accept?(blob)
-        blob.content_type == "application/pdf" && mutool_exists?
+        blob.content_type == "application/pdf" && mutool_exists?
       end
- See on GitHub + 🔎 See on GitHub
@@ -130,19 +130,19 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/previewer/mupdf_previewer.rb, line 14
       def mutool_exists?
-        return @mutool_exists if defined?(@mutool_exists) && !@mutool_exists.nil?
+        return @mutool_exists if defined?(@mutool_exists) && !@mutool_exists.nil?
 
         system mutool_path, out: File::NULL, err: File::NULL
 
         @mutool_exists = $?.exitstatus == 1
       end
- See on GitHub + 🔎 See on GitHub
@@ -169,15 +169,15 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/previewer/mupdf_previewer.rb, line 10
       def mutool_path
-        ActiveStorage.paths[:mutool] || "mutool"
+        ActiveStorage.paths[:mutool] || "mutool"
       end
- See on GitHub + 🔎 See on GitHub
@@ -208,19 +208,19 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/previewer/mupdf_previewer.rb, line 23
     def preview(**options)
       download_blob_to_tempfile do |input|
         draw_first_page_from input do |output|
-          yield io: output, filename: "#{blob.filename.base}.png", content_type: "image/png", **options
+          yield io: output, filename: "#{blob.filename.base}.png", content_type: "image/png", **options
         end
       end
     end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveStorage/Previewer/PopplerPDFPreviewer.html b/src/classes/ActiveStorage/Previewer/PopplerPDFPreviewer.html index 91ca6c39c1..c1885ec632 100644 --- a/src/classes/ActiveStorage/Previewer/PopplerPDFPreviewer.html +++ b/src/classes/ActiveStorage/Previewer/PopplerPDFPreviewer.html @@ -95,15 +95,15 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/previewer/poppler_pdf_previewer.rb, line 6
       def accept?(blob)
-        blob.content_type == "application/pdf" && pdftoppm_exists?
+        blob.content_type == "application/pdf" && pdftoppm_exists?
       end
- See on GitHub + 🔎 See on GitHub
@@ -130,17 +130,17 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/previewer/poppler_pdf_previewer.rb, line 14
       def pdftoppm_exists?
         return @pdftoppm_exists if defined?(@pdftoppm_exists)
 
-        @pdftoppm_exists = system(pdftoppm_path, "-v", out: File::NULL, err: File::NULL)
+        @pdftoppm_exists = system(pdftoppm_path, "-v", out: File::NULL, err: File::NULL)
       end
- See on GitHub + 🔎 See on GitHub
@@ -167,15 +167,15 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/previewer/poppler_pdf_previewer.rb, line 10
       def pdftoppm_path
-        ActiveStorage.paths[:pdftoppm] || "pdftoppm"
+        ActiveStorage.paths[:pdftoppm] || "pdftoppm"
       end
- See on GitHub + 🔎 See on GitHub
@@ -206,19 +206,19 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/previewer/poppler_pdf_previewer.rb, line 21
     def preview(**options)
       download_blob_to_tempfile do |input|
         draw_first_page_from input do |output|
-          yield io: output, filename: "#{blob.filename.base}.png", content_type: "image/png", **options
+          yield io: output, filename: "#{blob.filename.base}.png", content_type: "image/png", **options
         end
       end
     end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveStorage/Previewer/VideoPreviewer.html b/src/classes/ActiveStorage/Previewer/VideoPreviewer.html index a1741dc3c3..42d84987df 100644 --- a/src/classes/ActiveStorage/Previewer/VideoPreviewer.html +++ b/src/classes/ActiveStorage/Previewer/VideoPreviewer.html @@ -95,15 +95,15 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/previewer/video_previewer.rb, line 8
       def accept?(blob)
-        blob.video? && ffmpeg_exists?
+        blob.video? && ffmpeg_exists?
       end
- See on GitHub + 🔎 See on GitHub
@@ -130,17 +130,17 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/previewer/video_previewer.rb, line 12
       def ffmpeg_exists?
         return @ffmpeg_exists if defined?(@ffmpeg_exists)
 
-        @ffmpeg_exists = system(ffmpeg_path, "-version", out: File::NULL, err: File::NULL)
+        @ffmpeg_exists = system(ffmpeg_path, "-version", out: File::NULL, err: File::NULL)
       end
- See on GitHub + 🔎 See on GitHub
@@ -167,15 +167,15 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/previewer/video_previewer.rb, line 18
       def ffmpeg_path
-        ActiveStorage.paths[:ffmpeg] || "ffmpeg"
+        ActiveStorage.paths[:ffmpeg] || "ffmpeg"
       end
- See on GitHub + 🔎 See on GitHub
@@ -206,19 +206,19 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/previewer/video_previewer.rb, line 23
     def preview(**options)
       download_blob_to_tempfile do |input|
         draw_relevant_frame_from input do |output|
-          yield io: output, filename: "#{blob.filename.base}.jpg", content_type: "image/jpeg", **options
+          yield io: output, filename: "#{blob.filename.base}.jpg", content_type: "image/jpeg", **options
         end
       end
     end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveStorage/PurgeJob.html b/src/classes/ActiveStorage/PurgeJob.html index 32f464999d..1239660dbc 100644 --- a/src/classes/ActiveStorage/PurgeJob.html +++ b/src/classes/ActiveStorage/PurgeJob.html @@ -90,7 +90,7 @@

- Source code + 📝 Source code
# File activestorage/app/jobs/active_storage/purge_job.rb, line 10
@@ -98,7 +98,7 @@ 

blob.purge end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveStorage/Reflection/ActiveRecordExtensions/ClassMethods.html b/src/classes/ActiveStorage/Reflection/ActiveRecordExtensions/ClassMethods.html index cf627a31c8..6af44dfbbf 100644 --- a/src/classes/ActiveStorage/Reflection/ActiveRecordExtensions/ClassMethods.html +++ b/src/classes/ActiveStorage/Reflection/ActiveRecordExtensions/ClassMethods.html @@ -82,7 +82,7 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/reflection.rb, line 59
@@ -90,7 +90,7 @@ 

attachment_reflections.values end

- See on GitHub + 🔎 See on GitHub
@@ -121,7 +121,7 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/reflection.rb, line 68
@@ -129,7 +129,7 @@ 

attachment_reflections[attachment.to_s] end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveStorage/Representations/ProxyController.html b/src/classes/ActiveStorage/Representations/ProxyController.html index 0973ad69a2..bd5ead718b 100644 --- a/src/classes/ActiveStorage/Representations/ProxyController.html +++ b/src/classes/ActiveStorage/Representations/ProxyController.html @@ -114,7 +114,7 @@

- Source code + 📝 Source code
# File activestorage/app/controllers/active_storage/representations/proxy_controller.rb, line 13
@@ -124,7 +124,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveStorage/Representations/RedirectController.html b/src/classes/ActiveStorage/Representations/RedirectController.html index 4f312af0d1..1177e2be3c 100644 --- a/src/classes/ActiveStorage/Representations/RedirectController.html +++ b/src/classes/ActiveStorage/Representations/RedirectController.html @@ -92,7 +92,7 @@

- Source code + 📝 Source code
# File activestorage/app/controllers/active_storage/representations/redirect_controller.rb, line 10
@@ -101,7 +101,7 @@ 

redirect_to @representation.url(disposition: params[:disposition]), allow_other_host: true end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveStorage/Service.html b/src/classes/ActiveStorage/Service.html index e6bbd00c8b..8bd3bbe83c 100644 --- a/src/classes/ActiveStorage/Service.html +++ b/src/classes/ActiveStorage/Service.html @@ -227,7 +227,7 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/service.rb, line 52
@@ -235,7 +235,7 @@ 

Configurator.build(service_name, configurations) end

- See on GitHub + 🔎 See on GitHub
@@ -266,7 +266,7 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/service.rb, line 96
@@ -274,7 +274,7 @@ 

raise NotImplementedError end

- See on GitHub + 🔎 See on GitHub
@@ -301,7 +301,7 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/service.rb, line 101
@@ -309,7 +309,7 @@ 

raise NotImplementedError end

- See on GitHub + 🔎 See on GitHub
@@ -336,7 +336,7 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/service.rb, line 106
@@ -344,7 +344,7 @@ 

raise NotImplementedError end

- See on GitHub + 🔎 See on GitHub
@@ -371,7 +371,7 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/service.rb, line 82
@@ -379,7 +379,7 @@ 

raise NotImplementedError end

- See on GitHub + 🔎 See on GitHub
@@ -406,7 +406,7 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/service.rb, line 87
@@ -414,7 +414,7 @@ 

raise NotImplementedError end

- See on GitHub + 🔎 See on GitHub
@@ -441,7 +441,7 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/service.rb, line 111
@@ -449,7 +449,7 @@ 

raise NotImplementedError end

- See on GitHub + 🔎 See on GitHub
@@ -476,7 +476,7 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/service.rb, line 143
@@ -484,7 +484,7 @@ 

{} end

- See on GitHub + 🔎 See on GitHub
@@ -511,15 +511,15 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/service.rb, line 91
-    def open(*args, **options, &block)
-      ActiveStorage::Downloader.new(self).open(*args, **options, &block)
+    def open(*args, **options, &block)
+      ActiveStorage::Downloader.new(self).open(*args, **options, &block)
     end
- See on GitHub + 🔎 See on GitHub
@@ -546,7 +546,7 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/service.rb, line 147
@@ -554,7 +554,7 @@ 

@public end

- See on GitHub + 🔎 See on GitHub
@@ -581,14 +581,14 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/service.rb, line 78
     def update_metadata(key, **metadata)
     end
- See on GitHub + 🔎 See on GitHub
@@ -615,7 +615,7 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/service.rb, line 71
@@ -623,7 +623,7 @@ 

raise NotImplementedError end

- See on GitHub + 🔎 See on GitHub
@@ -650,7 +650,7 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/service.rb, line 119
@@ -669,7 +669,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -696,7 +696,7 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/service.rb, line 138
@@ -704,7 +704,7 @@ 

raise NotImplementedError end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveStorage/Service/AzureStorageService.html b/src/classes/ActiveStorage/Service/AzureStorageService.html index cf28c08d95..990b53086d 100644 --- a/src/classes/ActiveStorage/Service/AzureStorageService.html +++ b/src/classes/ActiveStorage/Service/AzureStorageService.html @@ -157,7 +157,7 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/service/azure_storage_service.rb, line 17
@@ -168,7 +168,7 @@ 

@public = public end

- See on GitHub + 🔎 See on GitHub
@@ -199,12 +199,12 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/service/azure_storage_service.rb, line 112
     def compose(source_keys, destination_key, filename: nil, content_type: nil, disposition: nil, custom_metadata: {})
-      content_disposition = content_disposition_with(type: disposition, filename: filename) if disposition && filename
+      content_disposition = content_disposition_with(type: disposition, filename: filename) if disposition && filename
 
       client.create_append_blob(
         container,
@@ -221,7 +221,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -248,20 +248,20 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/service/azure_storage_service.rb, line 58
     def delete(key)
       instrument :delete, key: key do
         client.delete_blob(container, key)
-      rescue Azure::Core::Http::HTTPError => e
-        raise unless e.type == "BlobNotFound"
+      rescue Azure::Core::Http::HTTPError => e
+        raise unless e.type == "BlobNotFound"
         # Ignore files already deleted
       end
     end
- See on GitHub + 🔎 See on GitHub
@@ -288,7 +288,7 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/service/azure_storage_service.rb, line 67
@@ -308,7 +308,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -335,14 +335,14 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/service/azure_storage_service.rb, line 34
-    def download(key, &block)
+    def download(key, &block)
       if block_given?
         instrument :streaming_download, key: key do
-          stream(key, &block)
+          stream(key, &block)
         end
       else
         instrument :download, key: key do
@@ -354,7 +354,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -381,7 +381,7 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/service/azure_storage_service.rb, line 49
@@ -394,7 +394,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -421,7 +421,7 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/service/azure_storage_service.rb, line 83
@@ -433,7 +433,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -460,17 +460,17 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/service/azure_storage_service.rb, line 106
     def headers_for_direct_upload(key, content_type:, checksum:, filename: nil, disposition: nil, custom_metadata: {}, **)
       content_disposition = content_disposition_with(type: disposition, filename: filename) if filename
 
-      { "Content-Type" => content_type, "Content-MD5" => checksum, "x-ms-blob-content-disposition" => content_disposition, "x-ms-blob-type" => "BlockBlob", **custom_metadata_headers(custom_metadata) }
+      { "Content-Type" => content_type, "Content-MD5" => checksum, "x-ms-blob-content-disposition" => content_disposition, "x-ms-blob-type" => "BlockBlob", **custom_metadata_headers(custom_metadata) }
     end
- See on GitHub + 🔎 See on GitHub
@@ -497,21 +497,21 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/service/azure_storage_service.rb, line 24
     def upload(key, io, checksum: nil, filename: nil, content_type: nil, disposition: nil, custom_metadata: {}, **)
       instrument :upload, key: key, checksum: checksum do
         handle_errors do
-          content_disposition = content_disposition_with(filename: filename, type: disposition) if disposition && filename
+          content_disposition = content_disposition_with(filename: filename, type: disposition) if disposition && filename
 
           client.create_block_blob(container, key, IO.try_convert(io) || io, content_md5: checksum, content_type: content_type, content_disposition: content_disposition, metadata: custom_metadata)
         end
       end
     end
- See on GitHub + 🔎 See on GitHub
@@ -538,7 +538,7 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/service/azure_storage_service.rb, line 91
@@ -546,8 +546,8 @@ 

instrument :url, key: key do |payload| generated_url = signer.signed_uri( uri_for(key), false, - service: "b", - permissions: "rw", + service: "b", + permissions: "rw", expiry: format_expiry(expires_in) ).to_s @@ -557,7 +557,7 @@

end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveStorage/Service/DiskService.html b/src/classes/ActiveStorage/Service/DiskService.html index 81dfb71937..7bbaee392a 100644 --- a/src/classes/ActiveStorage/Service/DiskService.html +++ b/src/classes/ActiveStorage/Service/DiskService.html @@ -141,7 +141,7 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/service/disk_service.rb, line 16
@@ -150,7 +150,7 @@ 

@public = public end

- See on GitHub + 🔎 See on GitHub
@@ -181,21 +181,21 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/service/disk_service.rb, line 105
     def compose(source_keys, destination_key, **)
-      File.open(make_path_for(destination_key), "w") do |destination_file|
+      File.open(make_path_for(destination_key), "w") do |destination_file|
         source_keys.each do |source_key|
-          File.open(path_for(source_key), "rb") do |source_file|
+          File.open(path_for(source_key), "rb") do |source_file|
             IO.copy_stream(source_file, destination_file)
           end
         end
       end
     end
- See on GitHub + 🔎 See on GitHub
@@ -222,7 +222,7 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/service/disk_service.rb, line 53
@@ -234,7 +234,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -261,19 +261,19 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/service/disk_service.rb, line 61
     def delete_prefixed(prefix)
       instrument :delete_prefixed, prefix: prefix do
-        Dir.glob(path_for("#{prefix}*")).each do |path|
+        Dir.glob(path_for("#{prefix}*")).each do |path|
           FileUtils.rm_rf(path)
         end
       end
     end
- See on GitHub + 🔎 See on GitHub
@@ -300,14 +300,14 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/service/disk_service.rb, line 28
-    def download(key, &block)
+    def download(key, &block)
       if block_given?
         instrument :streaming_download, key: key do
-          stream key, &block
+          stream key, &block
         end
       else
         instrument :download, key: key do
@@ -318,7 +318,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -345,13 +345,13 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/service/disk_service.rb, line 42
     def download_chunk(key, range)
       instrument :download_chunk, key: key, range: range do
-        File.open(path_for(key), "rb") do |file|
+        File.open(path_for(key), "rb") do |file|
           file.seek range.begin
           file.read range.size
         end
@@ -360,7 +360,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -387,7 +387,7 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/service/disk_service.rb, line 69
@@ -399,7 +399,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -426,15 +426,15 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/service/disk_service.rb, line 97
     def headers_for_direct_upload(key, content_type:, **)
-      { "Content-Type" => content_type }
+      { "Content-Type" => content_type }
     end
- See on GitHub + 🔎 See on GitHub
@@ -461,7 +461,7 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/service/disk_service.rb, line 21
@@ -472,7 +472,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -499,7 +499,7 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/service/disk_service.rb, line 77
@@ -523,7 +523,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveStorage/Service/GCSService.html b/src/classes/ActiveStorage/Service/GCSService.html index 2ab285508e..18b6c9b286 100644 --- a/src/classes/ActiveStorage/Service/GCSService.html +++ b/src/classes/ActiveStorage/Service/GCSService.html @@ -146,7 +146,7 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/service/gcs_service.rb, line 16
@@ -155,7 +155,7 @@ 

@public = public end

- See on GitHub + 🔎 See on GitHub
@@ -186,19 +186,19 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/service/gcs_service.rb, line 139
     def compose(source_keys, destination_key, filename: nil, content_type: nil, disposition: nil, custom_metadata: {})
       bucket.compose(source_keys, destination_key).update do |file|
         file.content_type = content_type
-        file.content_disposition = content_disposition_with(type: disposition, filename: filename) if disposition && filename
+        file.content_disposition = content_disposition_with(type: disposition, filename: filename) if disposition && filename
         file.metadata = custom_metadata
       end
     end
- See on GitHub + 🔎 See on GitHub
@@ -225,7 +225,7 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/service/gcs_service.rb, line 66
@@ -237,7 +237,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -264,7 +264,7 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/service/gcs_service.rb, line 74
@@ -278,7 +278,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -305,14 +305,14 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/service/gcs_service.rb, line 34
-    def download(key, &block)
+    def download(key, &block)
       if block_given?
         instrument :streaming_download, key: key do
-          stream(key, &block)
+          stream(key, &block)
         end
       else
         instrument :download, key: key do
@@ -323,7 +323,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -350,7 +350,7 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/service/gcs_service.rb, line 58
@@ -362,7 +362,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -389,7 +389,7 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/service/gcs_service.rb, line 84
@@ -401,7 +401,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -428,22 +428,22 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/service/gcs_service.rb, line 128
     def headers_for_direct_upload(key, checksum:, filename: nil, disposition: nil, custom_metadata: {}, **)
       content_disposition = content_disposition_with(type: disposition, filename: filename) if filename
 
-      headers = { "Content-MD5" => checksum, "Content-Disposition" => content_disposition, **custom_metadata_headers(custom_metadata) }
+      headers = { "Content-MD5" => checksum, "Content-Disposition" => content_disposition, **custom_metadata_headers(custom_metadata) }
       if @config[:cache_control].present?
-        headers["Cache-Control"] = @config[:cache_control]
+        headers["Cache-Control"] = @config[:cache_control]
       end
 
       headers
     end
- See on GitHub + 🔎 See on GitHub
@@ -470,7 +470,7 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/service/gcs_service.rb, line 48
@@ -478,13 +478,13 @@ 

instrument :update_metadata, key: key, content_type: content_type, disposition: disposition do file_for(key).update do |file| file.content_type = content_type - file.content_disposition = content_disposition_with(type: disposition, filename: filename) if disposition && filename + file.content_disposition = content_disposition_with(type: disposition, filename: filename) if disposition && filename file.metadata = custom_metadata end end end

- See on GitHub + 🔎 See on GitHub
@@ -511,24 +511,24 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/service/gcs_service.rb, line 21
     def upload(key, io, checksum: nil, content_type: nil, disposition: nil, filename: nil, custom_metadata: {})
       instrument :upload, key: key, checksum: checksum do
-        # GCS's signed URLs don't include params such as response-content-type response-content_disposition
+        # GCS's signed URLs don't include params such as response-content-type response-content_disposition
         # in the signature, which means an attacker can modify them and bypass our effort to force these to
-        # binary and attachment when the file's content type requires it. The only way to force them is to
-        # store them as object's metadata.
-        content_disposition = content_disposition_with(type: disposition, filename: filename) if disposition && filename
+        # binary and attachment when the file's content type requires it. The only way to force them is to
+        # store them as object's metadata.
+        content_disposition = content_disposition_with(type: disposition, filename: filename) if disposition && filename
         bucket.create_file(io, key, md5: checksum, cache_control: @config[:cache_control], content_type: content_type, content_disposition: content_disposition, metadata: custom_metadata)
       rescue Google::Cloud::InvalidArgumentError
         raise ActiveStorage::IntegrityError
       end
     end
- See on GitHub + 🔎 See on GitHub
@@ -555,7 +555,7 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/service/gcs_service.rb, line 92
@@ -565,8 +565,8 @@ 

version = :v2 if @config[:cache_control].present? - headers["Cache-Control"] = @config[:cache_control] - # v2 signing doesn't support non `x-goog-` headers. Only switch to v4 signing + headers["Cache-Control"] = @config[:cache_control] + # v2 signing doesn't support non `x-goog-` headers. Only switch to v4 signing # if necessary for back-compat; v4 limits the expiration of the URL to 7 days # whereas v2 has no limit version = :v4 @@ -578,7 +578,7 @@

content_md5: checksum, expires: expires_in, headers: headers, - method: "PUT", + method: "PUT", version: version, } @@ -595,7 +595,7 @@

end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveStorage/Service/MirrorService.html b/src/classes/ActiveStorage/Service/MirrorService.html index c78468458b..158e5435ac 100644 --- a/src/classes/ActiveStorage/Service/MirrorService.html +++ b/src/classes/ActiveStorage/Service/MirrorService.html @@ -140,7 +140,7 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/service/mirror_service.rb, line 31
@@ -148,7 +148,7 @@ 

@primary, @mirrors = primary, mirrors end

- See on GitHub + 🔎 See on GitHub
@@ -179,7 +179,7 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/service/mirror_service.rb, line 45
@@ -187,7 +187,7 @@ 

perform_across_services :delete, key end

- See on GitHub + 🔎 See on GitHub
@@ -214,7 +214,7 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/service/mirror_service.rb, line 50
@@ -222,7 +222,7 @@ 

perform_across_services :delete_prefixed, prefix end

- See on GitHub + 🔎 See on GitHub
@@ -249,7 +249,7 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/service/mirror_service.rb, line 59
@@ -266,7 +266,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -293,7 +293,7 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/service/mirror_service.rb, line 38
@@ -303,7 +303,7 @@ 

mirror_later key, checksum: checksum end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveStorage/Service/S3Service.html b/src/classes/ActiveStorage/Service/S3Service.html index 5b8ce9a527..5ec37b1c9a 100644 --- a/src/classes/ActiveStorage/Service/S3Service.html +++ b/src/classes/ActiveStorage/Service/S3Service.html @@ -109,11 +109,6 @@

Constants

10000 - -   - - - MINIMUM_UPLOAD_PART_SIZE @@ -121,11 +116,6 @@

Constants

5.megabytes - -   - - - @@ -195,7 +185,7 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/service/s3_service.rb, line 17
@@ -207,10 +197,10 @@ 

@public = public @upload_options = upload - @upload_options[:acl] = "public-read" if public? + @upload_options[:acl] = "public-read" if public? end

- See on GitHub + 🔎 See on GitHub
@@ -241,12 +231,12 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/service/s3_service.rb, line 100
     def compose(source_keys, destination_key, filename: nil, content_type: nil, disposition: nil, custom_metadata: {})
-      content_disposition = content_disposition_with(type: disposition, filename: filename) if disposition && filename
+      content_disposition = content_disposition_with(type: disposition, filename: filename) if disposition && filename
 
       object_for(destination_key).upload_stream(
         content_type: content_type,
@@ -263,7 +253,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -290,7 +280,7 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/service/s3_service.rb, line 62
@@ -300,7 +290,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -327,7 +317,7 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/service/s3_service.rb, line 68
@@ -337,7 +327,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -364,14 +354,14 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/service/s3_service.rb, line 40
-    def download(key, &block)
+    def download(key, &block)
       if block_given?
         instrument :streaming_download, key: key do
-          stream(key, &block)
+          stream(key, &block)
         end
       else
         instrument :download, key: key do
@@ -382,7 +372,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -409,19 +399,19 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/service/s3_service.rb, line 54
     def download_chunk(key, range)
       instrument :download_chunk, key: key, range: range do
-        object_for(key).get(range: "bytes=#{range.begin}-#{range.exclude_end? ? range.end - 1 : range.end}").body.string.force_encoding(Encoding::BINARY)
+        object_for(key).get(range: "bytes=#{range.begin}-#{range.exclude_end? ? range.end - 1 : range.end}").body.string.force_encoding(Encoding::BINARY)
       rescue Aws::S3::Errors::NoSuchKey
         raise ActiveStorage::FileNotFoundError
       end
     end
- See on GitHub + 🔎 See on GitHub
@@ -448,7 +438,7 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/service/s3_service.rb, line 74
@@ -460,7 +450,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -487,17 +477,17 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/service/s3_service.rb, line 94
     def headers_for_direct_upload(key, content_type:, checksum:, filename: nil, disposition: nil, custom_metadata: {}, **)
       content_disposition = content_disposition_with(type: disposition, filename: filename) if filename
 
-      { "Content-Type" => content_type, "Content-MD5" => checksum, "Content-Disposition" => content_disposition, **custom_metadata_headers(custom_metadata) }
+      { "Content-Type" => content_type, "Content-MD5" => checksum, "Content-Disposition" => content_disposition, **custom_metadata_headers(custom_metadata) }
     end
- See on GitHub + 🔎 See on GitHub
@@ -524,15 +514,15 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/service/s3_service.rb, line 28
     def upload(key, io, checksum: nil, filename: nil, content_type: nil, disposition: nil, custom_metadata: {}, **)
       instrument :upload, key: key, checksum: checksum do
-        content_disposition = content_disposition_with(filename: filename, type: disposition) if disposition && filename
+        content_disposition = content_disposition_with(filename: filename, type: disposition) if disposition && filename
 
-        if io.size < multipart_upload_threshold
+        if io.size < multipart_upload_threshold
           upload_with_single_part key, io, checksum: checksum, content_type: content_type, content_disposition: content_disposition, custom_metadata: custom_metadata
         else
           upload_with_multipart key, io, content_type: content_type, content_disposition: content_disposition, custom_metadata: custom_metadata
@@ -540,7 +530,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -567,7 +557,7 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/service/s3_service.rb, line 82
@@ -575,7 +565,7 @@ 

instrument :url, key: key do |payload| generated_url = object_for(key).presigned_url :put, expires_in: expires_in.to_i, content_type: content_type, content_length: content_length, content_md5: checksum, - metadata: custom_metadata, whitelist_headers: ["content-length"], **upload_options + metadata: custom_metadata, whitelist_headers: ["content-length"], **upload_options payload[:url] = generated_url @@ -583,7 +573,7 @@

end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveStorage/Streaming.html b/src/classes/ActiveStorage/Streaming.html index 7ee9202e7a..4d86b09617 100644 --- a/src/classes/ActiveStorage/Streaming.html +++ b/src/classes/ActiveStorage/Streaming.html @@ -81,11 +81,6 @@

Constants

"inline" - -   - - - @@ -118,7 +113,7 @@

- Source code + 📝 Source code
# File activestorage/app/controllers/concerns/active_storage/streaming.rb, line 56
@@ -133,7 +128,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveStorage/TransformJob.html b/src/classes/ActiveStorage/TransformJob.html index 3d4f3512a3..6a83a93177 100644 --- a/src/classes/ActiveStorage/TransformJob.html +++ b/src/classes/ActiveStorage/TransformJob.html @@ -84,7 +84,7 @@

- Source code + 📝 Source code
# File activestorage/app/jobs/active_storage/transform_job.rb, line 9
@@ -92,7 +92,7 @@ 

blob.variant(transformations).processed end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveStorage/Transformers/Transformer.html b/src/classes/ActiveStorage/Transformers/Transformer.html index 35f12d09ed..e9faf9f5ed 100644 --- a/src/classes/ActiveStorage/Transformers/Transformer.html +++ b/src/classes/ActiveStorage/Transformers/Transformer.html @@ -118,7 +118,7 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/transformers/transformer.rb, line 16
@@ -126,7 +126,7 @@ 

@transformations = transformations end

- See on GitHub + 🔎 See on GitHub
@@ -157,7 +157,7 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/transformers/transformer.rb, line 23
@@ -171,7 +171,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -201,7 +201,7 @@

- Source code + 📝 Source code
# File activestorage/lib/active_storage/transformers/transformer.rb, line 36
@@ -209,7 +209,7 @@ 

raise NotImplementedError end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveStorage/VERSION.html b/src/classes/ActiveStorage/VERSION.html index a5779a455d..103bffacc2 100644 --- a/src/classes/ActiveStorage/VERSION.html +++ b/src/classes/ActiveStorage/VERSION.html @@ -50,11 +50,6 @@

Constants

7 - -   - - - MINOR @@ -62,11 +57,6 @@

Constants

1 - -   - - - PRE @@ -74,11 +64,6 @@

Constants

nil - -   - - - STRING @@ -86,11 +71,6 @@

Constants

[MAJOR, MINOR, TINY, PRE].compact.join(".") - -   - - - TINY @@ -98,11 +78,6 @@

Constants

0 - -   - - - diff --git a/src/classes/ActiveStorage/Variant.html b/src/classes/ActiveStorage/Variant.html index c24b964089..216a45d0bd 100644 --- a/src/classes/ActiveStorage/Variant.html +++ b/src/classes/ActiveStorage/Variant.html @@ -182,7 +182,7 @@

- Source code + 📝 Source code
# File activestorage/app/models/active_storage/variant.rb, line 60
@@ -190,7 +190,7 @@ 

@blob, @variation = blob, ActiveStorage::Variation.wrap(variation_or_variation_key) end

- See on GitHub + 🔎 See on GitHub
@@ -221,7 +221,7 @@

- Source code + 📝 Source code
# File activestorage/app/models/active_storage/variant.rb, line 100
@@ -229,7 +229,7 @@ 

service.delete(key) end

- See on GitHub + 🔎 See on GitHub
@@ -256,15 +256,15 @@

- Source code + 📝 Source code
# File activestorage/app/models/active_storage/variant.rb, line 86
-  def download(&block)
-    service.download key, &block
+  def download(&block)
+    service.download key, &block
   end
- See on GitHub + 🔎 See on GitHub
@@ -291,15 +291,15 @@

- Source code + 📝 Source code
# File activestorage/app/models/active_storage/variant.rb, line 90
   def filename
-    ActiveStorage::Filename.new "#{blob.filename.base}.#{variation.format.downcase}"
+    ActiveStorage::Filename.new "#{blob.filename.base}.#{variation.format.downcase}"
   end
- See on GitHub + 🔎 See on GitHub
@@ -326,7 +326,7 @@

- Source code + 📝 Source code
# File activestorage/app/models/active_storage/variant.rb, line 95
@@ -334,7 +334,7 @@ 

self end

- See on GitHub + 🔎 See on GitHub
@@ -361,15 +361,15 @@

- Source code + 📝 Source code
# File activestorage/app/models/active_storage/variant.rb, line 71
   def key
-    "variants/#{blob.key}/#{OpenSSL::Digest::SHA256.hexdigest(variation.key)}"
+    "variants/#{blob.key}/#{OpenSSL::Digest::SHA256.hexdigest(variation.key)}"
   end
- See on GitHub + 🔎 See on GitHub
@@ -396,7 +396,7 @@

- Source code + 📝 Source code
# File activestorage/app/models/active_storage/variant.rb, line 65
@@ -405,7 +405,7 @@ 

self end

- See on GitHub + 🔎 See on GitHub
@@ -434,7 +434,7 @@

- Source code + 📝 Source code
# File activestorage/app/models/active_storage/variant.rb, line 80
@@ -442,7 +442,7 @@ 

service.url key, expires_in: expires_in, disposition: disposition, filename: filename, content_type: content_type end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveStorage/VariantWithRecord.html b/src/classes/ActiveStorage/VariantWithRecord.html index 0912423750..464db1d75c 100644 --- a/src/classes/ActiveStorage/VariantWithRecord.html +++ b/src/classes/ActiveStorage/VariantWithRecord.html @@ -129,7 +129,7 @@

- Source code + 📝 Source code
# File activestorage/app/models/active_storage/variant_with_record.rb, line 12
@@ -137,7 +137,7 @@ 

@blob, @variation = blob, ActiveStorage::Variation.wrap(variation) end

- See on GitHub + 🔎 See on GitHub
@@ -168,15 +168,15 @@

- Source code + 📝 Source code
# File activestorage/app/models/active_storage/variant_with_record.rb, line 30
   def destroy
-    record&.destroy
+    record&.destroy
   end
- See on GitHub + 🔎 See on GitHub
@@ -203,15 +203,15 @@

- Source code + 📝 Source code
# File activestorage/app/models/active_storage/variant_with_record.rb, line 25
   def filename
-    ActiveStorage::Filename.new "#{blob.filename.base}.#{variation.format.downcase}"
+    ActiveStorage::Filename.new "#{blob.filename.base}.#{variation.format.downcase}"
   end
- See on GitHub + 🔎 See on GitHub
@@ -238,15 +238,15 @@

- Source code + 📝 Source code
# File activestorage/app/models/active_storage/variant_with_record.rb, line 21
   def image
-    record&.image
+    record&.image
   end
- See on GitHub + 🔎 See on GitHub
@@ -273,7 +273,7 @@

- Source code + 📝 Source code
# File activestorage/app/models/active_storage/variant_with_record.rb, line 16
@@ -282,7 +282,7 @@ 

self end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveStorage/Variation.html b/src/classes/ActiveStorage/Variation.html index 58852c6e3d..91e65892e1 100644 --- a/src/classes/ActiveStorage/Variation.html +++ b/src/classes/ActiveStorage/Variation.html @@ -148,7 +148,7 @@

- Source code + 📝 Source code
# File activestorage/app/models/active_storage/variation.rb, line 35
@@ -156,7 +156,7 @@ 

new ActiveStorage.verifier.verify(key, purpose: :variation) end

- See on GitHub + 🔎 See on GitHub
@@ -183,7 +183,7 @@

- Source code + 📝 Source code
# File activestorage/app/models/active_storage/variation.rb, line 41
@@ -191,7 +191,7 @@ 

ActiveStorage.verifier.generate(transformations, purpose: :variation) end

- See on GitHub + 🔎 See on GitHub
@@ -218,7 +218,7 @@

- Source code + 📝 Source code
# File activestorage/app/models/active_storage/variation.rb, line 46
@@ -226,7 +226,7 @@ 

@transformations = transformations.deep_symbolize_keys end

- See on GitHub + 🔎 See on GitHub
@@ -253,7 +253,7 @@

- Source code + 📝 Source code
# File activestorage/app/models/active_storage/variation.rb, line 23
@@ -268,7 +268,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -299,7 +299,7 @@

- Source code + 📝 Source code
# File activestorage/app/models/active_storage/variation.rb, line 70
@@ -307,7 +307,7 @@ 

Marcel::MimeType.for(extension: format.to_s) end

- See on GitHub + 🔎 See on GitHub
@@ -334,7 +334,7 @@

- Source code + 📝 Source code
# File activestorage/app/models/active_storage/variation.rb, line 50
@@ -342,7 +342,7 @@ 

self.class.new transformations.reverse_merge(defaults) end

- See on GitHub + 🔎 See on GitHub
@@ -369,7 +369,7 @@

- Source code + 📝 Source code
# File activestorage/app/models/active_storage/variation.rb, line 79
@@ -377,7 +377,7 @@ 

OpenSSL::Digest::SHA1.base64digest Marshal.dump(transformations) end

- See on GitHub + 🔎 See on GitHub
@@ -404,19 +404,19 @@

- Source code + 📝 Source code
# File activestorage/app/models/active_storage/variation.rb, line 62
   def format
     transformations.fetch(:format, :png).tap do |format|
       if Marcel::Magic.by_extension(format.to_s).nil?
-        raise ArgumentError, "Invalid variant format (#{format.inspect})"
+        raise ArgumentError, "Invalid variant format (#{format.inspect})"
       end
     end
   end
- See on GitHub + 🔎 See on GitHub
@@ -443,7 +443,7 @@

- Source code + 📝 Source code
# File activestorage/app/models/active_storage/variation.rb, line 75
@@ -451,7 +451,7 @@ 

self.class.encode(transformations) end

- See on GitHub + 🔎 See on GitHub
@@ -478,17 +478,17 @@

- Source code + 📝 Source code
# File activestorage/app/models/active_storage/variation.rb, line 56
-  def transform(file, &block)
-    ActiveSupport::Notifications.instrument("transform.active_storage") do
-      transformer.transform(file, format: format, &block)
+  def transform(file, &block)
+    ActiveSupport::Notifications.instrument("transform.active_storage") do
+      transformer.transform(file, format: format, &block)
     end
   end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport.html b/src/classes/ActiveSupport.html index 5764336b44..71ecbf09c7 100644 --- a/src/classes/ActiveSupport.html +++ b/src/classes/ActiveSupport.html @@ -711,7 +711,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support.rb, line 104
@@ -719,7 +719,7 @@ 

Cache.format_version end

- See on GitHub + 🔎 See on GitHub
@@ -746,7 +746,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support.rb, line 108
@@ -754,7 +754,7 @@ 

Cache.format_version = value end

- See on GitHub + 🔎 See on GitHub
@@ -781,7 +781,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support.rb, line 92
@@ -791,7 +791,7 @@ 

NumberHelper.eager_load! end

- See on GitHub + 🔎 See on GitHub
@@ -818,7 +818,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/gem_version.rb, line 5
@@ -826,7 +826,7 @@ 

Gem::Version.new VERSION::STRING end

- See on GitHub + 🔎 See on GitHub
@@ -853,7 +853,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support.rb, line 112
@@ -861,7 +861,7 @@ 

DateAndTime::Compatibility.preserve_timezone end

- See on GitHub + 🔎 See on GitHub
@@ -888,21 +888,21 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support.rb, line 116
   def self.to_time_preserves_timezone=(value)
     unless value
       ActiveSupport.deprecator.warn(
-        "Support for the pre-Ruby 2.4 behavior of to_time has been deprecated and will be removed in Rails 7.2."
+        "Support for the pre-Ruby 2.4 behavior of to_time has been deprecated and will be removed in Rails 7.2."
       )
     end
 
     DateAndTime::Compatibility.preserve_timezone = value
   end
- See on GitHub + 🔎 See on GitHub
@@ -929,7 +929,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support.rb, line 126
@@ -937,7 +937,7 @@ 

DateAndTime::Compatibility.utc_to_local_returns_utc_offset_times end

- See on GitHub + 🔎 See on GitHub
@@ -964,7 +964,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support.rb, line 130
@@ -972,7 +972,7 @@ 

DateAndTime::Compatibility.utc_to_local_returns_utc_offset_times = value end

- See on GitHub + 🔎 See on GitHub
@@ -999,7 +999,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/version.rb, line 7
@@ -1007,7 +1007,7 @@ 

gem_version end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/ActionableError/ClassMethods.html b/src/classes/ActiveSupport/ActionableError/ClassMethods.html index fbeed8fc25..a2d19d0f32 100644 --- a/src/classes/ActiveSupport/ActionableError/ClassMethods.html +++ b/src/classes/ActiveSupport/ActionableError/ClassMethods.html @@ -87,15 +87,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/actionable_error.rb, line 45
-      def action(name, &block)
+      def action(name, &block)
         _actions[name] = block
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/ArrayInquirer.html b/src/classes/ActiveSupport/ArrayInquirer.html index 80a401719a..2fda761aa0 100644 --- a/src/classes/ActiveSupport/ArrayInquirer.html +++ b/src/classes/ActiveSupport/ArrayInquirer.html @@ -109,7 +109,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/array_inquirer.rb, line 27
@@ -123,7 +123,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/Autoload.html b/src/classes/ActiveSupport/Autoload.html index 79aab48a99..8bfba6347f 100644 --- a/src/classes/ActiveSupport/Autoload.html +++ b/src/classes/ActiveSupport/Autoload.html @@ -120,25 +120,25 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/dependencies/autoload.rb, line 42
     def autoload(const_name, path = @_at_path)
       unless path
-        full = [name, @_under_path, const_name.to_s].compact.join("::")
+        full = [name, @_under_path, const_name.to_s].compact.join("::")
         path = Inflector.underscore(full)
       end
 
       if @_eager_autoload
         @_eagerloaded_constants ||= []
-        @_eagerloaded_constants << const_name
+        @_eagerloaded_constants << const_name
       end
 
       super const_name, path
     end
- See on GitHub + 🔎 See on GitHub
@@ -165,7 +165,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/dependencies/autoload.rb, line 63
@@ -176,7 +176,7 @@ 

@_at_path = old_path end

- See on GitHub + 🔎 See on GitHub
@@ -203,7 +203,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/dependencies/autoload.rb, line 56
@@ -214,7 +214,7 @@ 

@_under_path = old_path end

- See on GitHub + 🔎 See on GitHub
@@ -241,7 +241,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/dependencies/autoload.rb, line 70
@@ -252,7 +252,7 @@ 

@_eager_autoload = old_eager end

- See on GitHub + 🔎 See on GitHub
@@ -279,7 +279,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/dependencies/autoload.rb, line 77
@@ -290,7 +290,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/BacktraceCleaner.html b/src/classes/ActiveSupport/BacktraceCleaner.html index 72800ede48..cd77f7aeaf 100644 --- a/src/classes/ActiveSupport/BacktraceCleaner.html +++ b/src/classes/ActiveSupport/BacktraceCleaner.html @@ -113,11 +113,6 @@

Constants

/\A[^\/]+ \([\w.]+\) / - -   - - - @@ -149,7 +144,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/backtrace_cleaner.rb, line 34
@@ -160,7 +155,7 @@ 

add_stdlib_silencer end

- See on GitHub + 🔎 See on GitHub
@@ -195,15 +190,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/backtrace_cleaner.rb, line 80
-    def add_filter(&block)
-      @filters << block
+    def add_filter(&block)
+      @filters << block
     end
- See on GitHub + 🔎 See on GitHub
@@ -234,15 +229,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/backtrace_cleaner.rb, line 89
-    def add_silencer(&block)
-      @silencers << block
+    def add_silencer(&block)
+      @silencers << block
     end
- See on GitHub + 🔎 See on GitHub
@@ -273,7 +268,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/backtrace_cleaner.rb, line 43
@@ -290,7 +285,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -317,7 +312,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/backtrace_cleaner.rb, line 59
@@ -337,7 +332,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -389,7 +384,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/backtrace_cleaner.rb, line 103
@@ -397,7 +392,7 @@ 

@filters = [] end

- See on GitHub + 🔎 See on GitHub
@@ -424,7 +419,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/backtrace_cleaner.rb, line 96
@@ -432,7 +427,7 @@ 

@silencers = [] end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/Benchmarkable.html b/src/classes/ActiveSupport/Benchmarkable.html index a9237df898..9fadef64c9 100644 --- a/src/classes/ActiveSupport/Benchmarkable.html +++ b/src/classes/ActiveSupport/Benchmarkable.html @@ -105,25 +105,25 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/benchmarkable.rb, line 38
-    def benchmark(message = "Benchmarking", options = {}, &block)
+    def benchmark(message = "Benchmarking", options = {}, &block)
       if logger
         options.assert_valid_keys(:level, :silence)
         options[:level] ||= :info
 
         result = nil
-        ms = Benchmark.ms { result = options[:silence] ? logger.silence(&block) : yield }
-        logger.public_send(options[:level], "%s (%.1fms)" % [ message, ms ])
+        ms = Benchmark.ms { result = options[:silence] ? logger.silence(&block) : yield }
+        logger.public_send(options[:level], "%s (%.1fms)" % [ message, ms ])
         result
       else
         yield
       end
     end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/BroadcastLogger.html b/src/classes/ActiveSupport/BroadcastLogger.html index 6a85f5e1ab..fee9f0e76c 100644 --- a/src/classes/ActiveSupport/BroadcastLogger.html +++ b/src/classes/ActiveSupport/BroadcastLogger.html @@ -290,18 +290,18 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/broadcast_logger.rb, line 62
     def initialize(*loggers)
       @broadcasts = []
-      @progname = "Broadcast"
+      @progname = "Broadcast"
 
       broadcast_to(*loggers)
     end
- See on GitHub + 🔎 See on GitHub
@@ -332,15 +332,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/broadcast_logger.rb, line 92
-    def <<(message)
-      dispatch { |logger| logger.<<(message) }
+    def <<(message)
+      dispatch { |logger| logger.<<(message) }
     end
- See on GitHub + 🔎 See on GitHub
@@ -371,15 +371,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/broadcast_logger.rb, line 96
-    def add(*args, &block)
-      dispatch { |logger| logger.add(*args, &block) }
+    def add(*args, &block)
+      dispatch { |logger| logger.add(*args, &block) }
     end
- See on GitHub + 🔎 See on GitHub
@@ -410,7 +410,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/broadcast_logger.rb, line 73
@@ -418,7 +418,7 @@ 

@broadcasts.concat(loggers) end

- See on GitHub + 🔎 See on GitHub
@@ -445,7 +445,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/broadcast_logger.rb, line 142
@@ -453,7 +453,7 @@ 

dispatch { |logger| logger.close } end

- See on GitHub + 🔎 See on GitHub
@@ -480,15 +480,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/broadcast_logger.rb, line 101
-    def debug(*args, &block)
-      dispatch { |logger| logger.debug(*args, &block) }
+    def debug(*args, &block)
+      dispatch { |logger| logger.debug(*args, &block) }
     end
- See on GitHub + 🔎 See on GitHub
@@ -515,7 +515,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/broadcast_logger.rb, line 153
@@ -523,7 +523,7 @@ 

dispatch { |logger| logger.debug! } end

- See on GitHub + 🔎 See on GitHub
@@ -550,7 +550,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/broadcast_logger.rb, line 148
@@ -558,7 +558,7 @@ 

@broadcasts.any? { |logger| logger.debug? } end

- See on GitHub + 🔎 See on GitHub
@@ -585,15 +585,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/broadcast_logger.rb, line 113
-    def error(*args, &block)
-      dispatch { |logger| logger.error(*args, &block) }
+    def error(*args, &block)
+      dispatch { |logger| logger.error(*args, &block) }
     end
- See on GitHub + 🔎 See on GitHub
@@ -620,7 +620,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/broadcast_logger.rb, line 186
@@ -628,7 +628,7 @@ 

dispatch { |logger| logger.error! } end

- See on GitHub + 🔎 See on GitHub
@@ -655,7 +655,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/broadcast_logger.rb, line 181
@@ -663,7 +663,7 @@ 

@broadcasts.any? { |logger| logger.error? } end

- See on GitHub + 🔎 See on GitHub
@@ -690,15 +690,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/broadcast_logger.rb, line 117
-    def fatal(*args, &block)
-      dispatch { |logger| logger.fatal(*args, &block) }
+    def fatal(*args, &block)
+      dispatch { |logger| logger.fatal(*args, &block) }
     end
- See on GitHub + 🔎 See on GitHub
@@ -725,7 +725,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/broadcast_logger.rb, line 197
@@ -733,7 +733,7 @@ 

dispatch { |logger| logger.fatal! } end

- See on GitHub + 🔎 See on GitHub
@@ -760,7 +760,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/broadcast_logger.rb, line 192
@@ -768,7 +768,7 @@ 

@broadcasts.any? { |logger| logger.fatal? } end

- See on GitHub + 🔎 See on GitHub
@@ -795,7 +795,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/broadcast_logger.rb, line 125
@@ -805,7 +805,7 @@ 

@formatter = formatter end

- See on GitHub + 🔎 See on GitHub
@@ -832,15 +832,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/broadcast_logger.rb, line 105
-    def info(*args, &block)
-      dispatch { |logger| logger.info(*args, &block) }
+    def info(*args, &block)
+      dispatch { |logger| logger.info(*args, &block) }
     end
- See on GitHub + 🔎 See on GitHub
@@ -867,7 +867,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/broadcast_logger.rb, line 164
@@ -875,7 +875,7 @@ 

dispatch { |logger| logger.info! } end

- See on GitHub + 🔎 See on GitHub
@@ -902,7 +902,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/broadcast_logger.rb, line 159
@@ -910,7 +910,7 @@ 

@broadcasts.any? { |logger| logger.info? } end

- See on GitHub + 🔎 See on GitHub
@@ -937,15 +937,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/broadcast_logger.rb, line 88
     def level
-      @broadcasts.map(&:level).min
+      @broadcasts.map(&:level).min
     end
- See on GitHub + 🔎 See on GitHub
@@ -976,7 +976,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/broadcast_logger.rb, line 131
@@ -984,7 +984,7 @@ 

dispatch { |logger| logger.level = level } end

- See on GitHub + 🔎 See on GitHub
@@ -1011,7 +1011,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/broadcast_logger.rb, line 136
@@ -1021,7 +1021,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -1104,7 +1104,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/broadcast_logger.rb, line 84
@@ -1112,7 +1112,7 @@ 

@broadcasts.delete(logger) end

- See on GitHub + 🔎 See on GitHub
@@ -1139,15 +1139,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/broadcast_logger.rb, line 121
-    def unknown(*args, &block)
-      dispatch { |logger| logger.unknown(*args, &block) }
+    def unknown(*args, &block)
+      dispatch { |logger| logger.unknown(*args, &block) }
     end
- See on GitHub + 🔎 See on GitHub
@@ -1174,15 +1174,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/broadcast_logger.rb, line 109
-    def warn(*args, &block)
-      dispatch { |logger| logger.warn(*args, &block) }
+    def warn(*args, &block)
+      dispatch { |logger| logger.warn(*args, &block) }
     end
- See on GitHub + 🔎 See on GitHub
@@ -1209,7 +1209,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/broadcast_logger.rb, line 175
@@ -1217,7 +1217,7 @@ 

dispatch { |logger| logger.warn! } end

- See on GitHub + 🔎 See on GitHub
@@ -1244,7 +1244,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/broadcast_logger.rb, line 170
@@ -1252,7 +1252,7 @@ 

@broadcasts.any? { |logger| logger.warn? } end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/Cache.html b/src/classes/ActiveSupport/Cache.html index 4ae9c3edc5..6923f9fef3 100644 --- a/src/classes/ActiveSupport/Cache.html +++ b/src/classes/ActiveSupport/Cache.html @@ -127,11 +127,6 @@

Constants

1.kilobyte - -   - - - DeserializationError @@ -235,22 +230,22 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/cache.rb, line 117
       def expand_cache_key(key, namespace = nil)
-        expanded_cache_key = namespace ? +"#{namespace}/" : +""
+        expanded_cache_key = namespace ? +"#{namespace}/" : +""
 
-        if prefix = ENV["RAILS_CACHE_ID"] || ENV["RAILS_APP_VERSION"]
-          expanded_cache_key << "#{prefix}/"
+        if prefix = ENV["RAILS_CACHE_ID"] || ENV["RAILS_APP_VERSION"]
+          expanded_cache_key << "#{prefix}/"
         end
 
-        expanded_cache_key << retrieve_cache_key(key)
+        expanded_cache_key << retrieve_cache_key(key)
         expanded_cache_key
       end
- See on GitHub + 🔎 See on GitHub
@@ -300,7 +295,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/cache.rb, line 85
@@ -324,7 +319,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/Cache/Coder/LazyEntry.html b/src/classes/ActiveSupport/Cache/Coder/LazyEntry.html index 32ee7d95b2..a808286287 100644 --- a/src/classes/ActiveSupport/Cache/Coder/LazyEntry.html +++ b/src/classes/ActiveSupport/Cache/Coder/LazyEntry.html @@ -91,7 +91,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/cache/coder.rb, line 99
@@ -102,7 +102,7 @@ 

@resolved = false end

- See on GitHub + 🔎 See on GitHub
@@ -133,7 +133,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/cache/coder.rb, line 114
@@ -143,7 +143,7 @@ 

true end

- See on GitHub + 🔎 See on GitHub
@@ -170,7 +170,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/cache/coder.rb, line 106
@@ -182,7 +182,7 @@ 

@value end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/Cache/Coder/StringDeserializer.html b/src/classes/ActiveSupport/Cache/Coder/StringDeserializer.html index d9372deabd..d16a4c4c6b 100644 --- a/src/classes/ActiveSupport/Cache/Coder/StringDeserializer.html +++ b/src/classes/ActiveSupport/Cache/Coder/StringDeserializer.html @@ -87,7 +87,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/cache/coder.rb, line 87
@@ -95,7 +95,7 @@ 

@encoding = encoding end

- See on GitHub + 🔎 See on GitHub
@@ -126,7 +126,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/cache/coder.rb, line 91
@@ -134,7 +134,7 @@ 

payload.force_encoding(@encoding) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/Cache/FileStore.html b/src/classes/ActiveSupport/Cache/FileStore.html index d3fa118cb3..242203c0ad 100644 --- a/src/classes/ActiveSupport/Cache/FileStore.html +++ b/src/classes/ActiveSupport/Cache/FileStore.html @@ -97,11 +97,6 @@

Constants

"%03X" - -   - - - FILENAME_MAX_SIZE @@ -109,11 +104,6 @@

Constants

226 - -   - - - FILEPATH_MAX_SIZE @@ -121,11 +111,6 @@

Constants

900 - -   - - - GITKEEP_FILES @@ -133,11 +118,6 @@

Constants

[".gitkeep", ".keep"].freeze - -   - - - @@ -183,7 +163,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/cache/file_store.rb, line 20
@@ -192,7 +172,7 @@ 

@cache_path = cache_path.to_s end

- See on GitHub + 🔎 See on GitHub
@@ -219,7 +199,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/cache/file_store.rb, line 26
@@ -227,7 +207,7 @@ 

true end

- See on GitHub + 🔎 See on GitHub
@@ -258,7 +238,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/cache/file_store.rb, line 40
@@ -266,11 +246,11 @@ 

options = merged_options(options) search_dir(cache_path) do |fname| entry = read_entry(fname, **options) - delete_entry(fname, **options) if entry && entry.expired? + delete_entry(fname, **options) if entry && entry.expired? end end

- See on GitHub + 🔎 See on GitHub
@@ -297,7 +277,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/cache/file_store.rb, line 33
@@ -307,7 +287,7 @@ 

rescue Errno::ENOENT, Errno::ENOTEMPTY end

- See on GitHub + 🔎 See on GitHub
@@ -345,7 +325,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/cache/file_store.rb, line 75
@@ -353,7 +333,7 @@ 

modify_value(name, -amount, options) end

- See on GitHub + 🔎 See on GitHub
@@ -380,7 +360,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/cache/file_store.rb, line 79
@@ -395,7 +375,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -434,7 +414,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/cache/file_store.rb, line 60
@@ -442,7 +422,7 @@ 

modify_value(name, amount, options) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/Cache/MemCacheStore.html b/src/classes/ActiveSupport/Cache/MemCacheStore.html index 5b56677a11..7e15b5f377 100644 --- a/src/classes/ActiveSupport/Cache/MemCacheStore.html +++ b/src/classes/ActiveSupport/Cache/MemCacheStore.html @@ -123,11 +123,6 @@

Constants

/[\x00-\x20%\x7F-\xFF]/n - -   - - - KEY_MAX_SIZE @@ -135,11 +130,6 @@

Constants

250 - -   - - - OVERRIDDEN_OPTIONS @@ -188,7 +178,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/cache/mem_cache_store.rb, line 118
@@ -201,24 +191,24 @@ 

super(options) unless [String, Dalli::Client, NilClass].include?(addresses.first.class) - raise ArgumentError, "First argument must be an empty array, address, or array of addresses." + raise ArgumentError, "First argument must be an empty array, address, or array of addresses." end if addresses.first.is_a?(Dalli::Client) - ActiveSupport.deprecator.warn(<<~MSG) + ActiveSupport.deprecator.warn(<<~MSG) Initializing MemCacheStore with a Dalli::Client is deprecated and will be removed in Rails 7.2. Use memcached server addresses instead. MSG @data = addresses.first else @mem_cache_options = options.dup - # The value "compress: false" prevents duplicate compression within Dalli. + # The value "compress: false" prevents duplicate compression within Dalli. @mem_cache_options[:compress] = false (OVERRIDDEN_OPTIONS - %i(compress)).each { |name| @mem_cache_options.delete(name) } @data = self.class.build_mem_cache(*(addresses + [@mem_cache_options])) end end

- See on GitHub + 🔎 See on GitHub
@@ -245,7 +235,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/cache/mem_cache_store.rb, line 38
@@ -253,7 +243,7 @@ 

true end

- See on GitHub + 🔎 See on GitHub
@@ -284,7 +274,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/cache/mem_cache_store.rb, line 215
@@ -292,7 +282,7 @@ 

rescue_error_with(nil) { @data.with { |c| c.flush_all } } end

- See on GitHub + 🔎 See on GitHub
@@ -332,7 +322,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/cache/mem_cache_store.rb, line 204
@@ -345,7 +335,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -386,7 +376,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/cache/mem_cache_store.rb, line 180
@@ -399,7 +389,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -426,16 +416,16 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/cache/mem_cache_store.rb, line 144
       def inspect
         instance = @data || @mem_cache_options
-        "#<#{self.class} options=#{options.inspect} mem_cache=#{instance.inspect}>"
+        "#<#{self.class} options=#{options.inspect} mem_cache=#{instance.inspect}>"
       end
- See on GitHub + 🔎 See on GitHub
@@ -462,7 +452,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/cache/mem_cache_store.rb, line 220
@@ -470,7 +460,7 @@ 

@data.with { |c| c.stats } end

- See on GitHub + 🔎 See on GitHub
@@ -503,7 +493,7 @@

Additional Options

- See on GitHub + 🔎 See on GitHub diff --git a/src/classes/ActiveSupport/Cache/MemCacheStore/DupLocalCache/DupLocalStore.html b/src/classes/ActiveSupport/Cache/MemCacheStore/DupLocalCache/DupLocalStore.html index 7659ec5022..5bbf76afab 100644 --- a/src/classes/ActiveSupport/Cache/MemCacheStore/DupLocalCache/DupLocalStore.html +++ b/src/classes/ActiveSupport/Cache/MemCacheStore/DupLocalCache/DupLocalStore.html @@ -88,7 +88,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/cache/mem_cache_store.rb, line 53
@@ -109,7 +109,7 @@ 

entry end

- See on GitHub + 🔎 See on GitHub
@@ -136,7 +136,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/cache/mem_cache_store.rb, line 46
@@ -147,7 +147,7 @@ 

super end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/Cache/MemoryStore.html b/src/classes/ActiveSupport/Cache/MemoryStore.html index 86cc4a9358..002a8086aa 100644 --- a/src/classes/ActiveSupport/Cache/MemoryStore.html +++ b/src/classes/ActiveSupport/Cache/MemoryStore.html @@ -111,11 +111,6 @@

Constants

240 - -   - - - @@ -147,7 +142,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/cache/memory_store.rb, line 73
@@ -165,7 +160,7 @@ 

@pruning = false end

- See on GitHub + 🔎 See on GitHub
@@ -192,7 +187,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/cache/memory_store.rb, line 88
@@ -200,7 +195,7 @@ 

true end

- See on GitHub + 🔎 See on GitHub
@@ -231,7 +226,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/cache/memory_store.rb, line 101
@@ -241,12 +236,12 @@ 

keys = synchronize { @data.keys } keys.each do |key| entry = @data[key] - delete_entry(key, **options) if entry && entry.expired? + delete_entry(key, **options) if entry && entry.expired? end end end

- See on GitHub + 🔎 See on GitHub
@@ -273,7 +268,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/cache/memory_store.rb, line 93
@@ -284,7 +279,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -322,7 +317,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/cache/memory_store.rb, line 164
@@ -330,7 +325,7 @@ 

modify_value(name, -amount, options) end

- See on GitHub + 🔎 See on GitHub
@@ -357,7 +352,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/cache/memory_store.rb, line 169
@@ -372,7 +367,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -411,7 +406,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/cache/memory_store.rb, line 149
@@ -419,7 +414,7 @@ 

modify_value(name, amount, options) end

- See on GitHub + 🔎 See on GitHub
@@ -446,7 +441,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/cache/memory_store.rb, line 114
@@ -460,7 +455,7 @@ 

keys = synchronize { @data.keys } keys.each do |key| delete_entry(key, **options) - return if @cache_size <= target_size || (max_time && Process.clock_gettime(Process::CLOCK_MONOTONIC) - start_time > max_time) + return if @cache_size <= target_size || (max_time && Process.clock_gettime(Process::CLOCK_MONOTONIC) - start_time > max_time) end end ensure @@ -468,7 +463,7 @@

end end

- See on GitHub + 🔎 See on GitHub
@@ -495,7 +490,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/cache/memory_store.rb, line 133
@@ -503,7 +498,7 @@ 

@pruning end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/Cache/NullStore.html b/src/classes/ActiveSupport/Cache/NullStore.html index e188f7ce37..f32f98fd5a 100644 --- a/src/classes/ActiveSupport/Cache/NullStore.html +++ b/src/classes/ActiveSupport/Cache/NullStore.html @@ -113,7 +113,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/cache/null_store.rb, line 18
@@ -121,7 +121,7 @@ 

true end

- See on GitHub + 🔎 See on GitHub
@@ -152,14 +152,14 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/cache/null_store.rb, line 25
       def cleanup(options = nil)
       end
- See on GitHub + 🔎 See on GitHub
@@ -186,14 +186,14 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/cache/null_store.rb, line 22
       def clear(options = nil)
       end
- See on GitHub + 🔎 See on GitHub
@@ -220,14 +220,14 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/cache/null_store.rb, line 31
       def decrement(name, amount = 1, options = nil)
       end
- See on GitHub + 🔎 See on GitHub
@@ -254,14 +254,14 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/cache/null_store.rb, line 34
       def delete_matched(matcher, options = nil)
       end
- See on GitHub + 🔎 See on GitHub
@@ -288,14 +288,14 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/cache/null_store.rb, line 28
       def increment(name, amount = 1, options = nil)
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/Cache/RedisCacheStore.html b/src/classes/ActiveSupport/Cache/RedisCacheStore.html index ef34d59dab..db99ecbcf5 100644 --- a/src/classes/ActiveSupport/Cache/RedisCacheStore.html +++ b/src/classes/ActiveSupport/Cache/RedisCacheStore.html @@ -133,11 +133,6 @@

Constants

end - -   - - - DEFAULT_REDIS_OPTIONS @@ -149,11 +144,6 @@

Constants

} - -   - - - MAX_KEY_BYTESIZE @@ -244,7 +234,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/cache/redis_cache_store.rb, line 145
@@ -263,7 +253,7 @@ 

super(universal_options) end

- See on GitHub + 🔎 See on GitHub
@@ -290,7 +280,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/cache/redis_cache_store.rb, line 62
@@ -298,7 +288,7 @@ 

true end

- See on GitHub + 🔎 See on GitHub
@@ -331,7 +321,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/cache/redis_cache_store.rb, line 272
@@ -339,7 +329,7 @@ 

super end

- See on GitHub + 🔎 See on GitHub
@@ -368,21 +358,21 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/cache/redis_cache_store.rb, line 280
       def clear(options = nil)
         failsafe :clear do
           if namespace = merged_options(options)[:namespace]
-            delete_matched "*", namespace: namespace
+            delete_matched "*", namespace: namespace
           else
             redis.then { |c| c.flushdb }
           end
         end
       end
- See on GitHub + 🔎 See on GitHub
@@ -424,7 +414,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/cache/redis_cache_store.rb, line 258
@@ -438,7 +428,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -480,18 +470,18 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/cache/redis_cache_store.rb, line 194
       def delete_matched(matcher, options = nil)
         instrument :delete_matched, matcher do
           unless String === matcher
-            raise ArgumentError, "Only Redis glob strings are supported: #{matcher.inspect}"
+            raise ArgumentError, "Only Redis glob strings are supported: #{matcher.inspect}"
           end
           redis.then do |c|
             pattern = namespace_key(matcher, options)
-            cursor = "0"
+            cursor = "0"
             # Fetch keys in batches using SCAN to avoid blocking the Redis server.
             nodes = c.respond_to?(:nodes) ? c.nodes : [c]
 
@@ -499,13 +489,13 @@ 

begin cursor, keys = node.scan(cursor, match: pattern, count: SCAN_BATCH_SIZE) node.del(*keys) unless keys.empty? - end until cursor == "0" + end until cursor == "0" end end end end

- See on GitHub + 🔎 See on GitHub
@@ -548,7 +538,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/cache/redis_cache_store.rb, line 232
@@ -562,7 +552,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -589,15 +579,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/cache/redis_cache_store.rb, line 160
       def inspect
-        "#<#{self.class} options=#{options.inspect} redis=#{redis.inspect}>"
+        "#<#{self.class} options=#{options.inspect} redis=#{redis.inspect}>"
       end
- See on GitHub + 🔎 See on GitHub
@@ -626,7 +616,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/cache/redis_cache_store.rb, line 168
@@ -641,7 +631,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -668,7 +658,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/cache/redis_cache_store.rb, line 291
@@ -676,7 +666,7 @@ 

redis.then { |c| c.info } end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/Cache/SerializerWithFallback/Marshal61WithFallback.html b/src/classes/ActiveSupport/Cache/SerializerWithFallback/Marshal61WithFallback.html index c1e151546f..22f43cf7a3 100644 --- a/src/classes/ActiveSupport/Cache/SerializerWithFallback/Marshal61WithFallback.html +++ b/src/classes/ActiveSupport/Cache/SerializerWithFallback/Marshal61WithFallback.html @@ -81,11 +81,6 @@

Constants

"\x04\x08".b.freeze - -   - - - @@ -118,7 +113,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/cache/serializer_with_fallback.rb, line 72
@@ -126,7 +121,7 @@ 

Marshal.dump(entry) end

- See on GitHub + 🔎 See on GitHub
@@ -153,7 +148,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/cache/serializer_with_fallback.rb, line 76
@@ -161,7 +156,7 @@ 

Marshal.dump(entry.compressed(threshold)) end

- See on GitHub + 🔎 See on GitHub
@@ -188,7 +183,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/cache/serializer_with_fallback.rb, line 83
@@ -196,7 +191,7 @@ 

dumped.start_with?(MARSHAL_SIGNATURE) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/Cache/SerializerWithFallback/Marshal70WithFallback.html b/src/classes/ActiveSupport/Cache/SerializerWithFallback/Marshal70WithFallback.html index 9f008c82bb..dc93f5b736 100644 --- a/src/classes/ActiveSupport/Cache/SerializerWithFallback/Marshal70WithFallback.html +++ b/src/classes/ActiveSupport/Cache/SerializerWithFallback/Marshal70WithFallback.html @@ -85,11 +85,6 @@

Constants

"\x01".b.freeze - -   - - - MARK_UNCOMPRESSED @@ -97,11 +92,6 @@

Constants

"\x00".b.freeze - -   - - - @@ -134,7 +124,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/cache/serializer_with_fallback.rb, line 110
@@ -144,7 +134,7 @@ 

Cache::Entry.unpack(marshal_load(dumped)) end

- See on GitHub + 🔎 See on GitHub
@@ -171,7 +161,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/cache/serializer_with_fallback.rb, line 95
@@ -179,7 +169,7 @@ 

MARK_UNCOMPRESSED + Marshal.dump(entry.pack) end

- See on GitHub + 🔎 See on GitHub
@@ -206,22 +196,22 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/cache/serializer_with_fallback.rb, line 99
           def dump_compressed(entry, threshold)
             dumped = Marshal.dump(entry.pack)
 
-            if dumped.bytesize >= threshold
+            if dumped.bytesize >= threshold
               compressed = Zlib::Deflate.deflate(dumped)
-              return MARK_COMPRESSED + compressed if compressed.bytesize < dumped.bytesize
+              return MARK_COMPRESSED + compressed if compressed.bytesize < dumped.bytesize
             end
 
             MARK_UNCOMPRESSED + dumped
           end
- See on GitHub + 🔎 See on GitHub
@@ -248,7 +238,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/cache/serializer_with_fallback.rb, line 116
@@ -256,7 +246,7 @@ 

dumped.start_with?(MARK_UNCOMPRESSED, MARK_COMPRESSED) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/Cache/SerializerWithFallback/Marshal71WithFallback.html b/src/classes/ActiveSupport/Cache/SerializerWithFallback/Marshal71WithFallback.html index 78915d1070..0cd55e4be7 100644 --- a/src/classes/ActiveSupport/Cache/SerializerWithFallback/Marshal71WithFallback.html +++ b/src/classes/ActiveSupport/Cache/SerializerWithFallback/Marshal71WithFallback.html @@ -81,11 +81,6 @@

Constants

"\x04\x08".b.freeze - -   - - - @@ -118,7 +113,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/cache/serializer_with_fallback.rb, line 131
@@ -126,7 +121,7 @@ 

marshal_load(dumped) end

- See on GitHub + 🔎 See on GitHub
@@ -153,7 +148,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/cache/serializer_with_fallback.rb, line 127
@@ -161,7 +156,7 @@ 

Marshal.dump(value) end

- See on GitHub + 🔎 See on GitHub
@@ -188,7 +183,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/cache/serializer_with_fallback.rb, line 135
@@ -196,7 +191,7 @@ 

dumped.start_with?(MARSHAL_SIGNATURE) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/Cache/SerializerWithFallback/MessagePackWithFallback.html b/src/classes/ActiveSupport/Cache/SerializerWithFallback/MessagePackWithFallback.html index d63761f57f..19ed7837d5 100644 --- a/src/classes/ActiveSupport/Cache/SerializerWithFallback/MessagePackWithFallback.html +++ b/src/classes/ActiveSupport/Cache/SerializerWithFallback/MessagePackWithFallback.html @@ -100,7 +100,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/cache/serializer_with_fallback.rb, line 148
@@ -108,7 +108,7 @@ 

ActiveSupport::MessagePack::CacheSerializer.load(dumped) end

- See on GitHub + 🔎 See on GitHub
@@ -135,7 +135,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/cache/serializer_with_fallback.rb, line 144
@@ -143,7 +143,7 @@ 

ActiveSupport::MessagePack::CacheSerializer.dump(value) end

- See on GitHub + 🔎 See on GitHub
@@ -170,15 +170,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/cache/serializer_with_fallback.rb, line 152
           def dumped?(dumped)
-            available? && ActiveSupport::MessagePack.signature?(dumped)
+            available? && ActiveSupport::MessagePack.signature?(dumped)
           end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/Cache/SerializerWithFallback/PassthroughWithFallback.html b/src/classes/ActiveSupport/Cache/SerializerWithFallback/PassthroughWithFallback.html index 4fdcb1937a..ed2c88679b 100644 --- a/src/classes/ActiveSupport/Cache/SerializerWithFallback/PassthroughWithFallback.html +++ b/src/classes/ActiveSupport/Cache/SerializerWithFallback/PassthroughWithFallback.html @@ -104,7 +104,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/cache/serializer_with_fallback.rb, line 57
@@ -112,7 +112,7 @@ 

entry end

- See on GitHub + 🔎 See on GitHub
@@ -139,7 +139,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/cache/serializer_with_fallback.rb, line 49
@@ -147,7 +147,7 @@ 

entry end

- See on GitHub + 🔎 See on GitHub
@@ -174,7 +174,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/cache/serializer_with_fallback.rb, line 53
@@ -182,7 +182,7 @@ 

entry.compressed(threshold) end

- See on GitHub + 🔎 See on GitHub
@@ -209,7 +209,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/cache/serializer_with_fallback.rb, line 61
@@ -217,7 +217,7 @@ 

dumped.is_a?(Cache::Entry) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/Cache/Store.html b/src/classes/ActiveSupport/Cache/Store.html index d6da1f93c0..70bf6f04e9 100644 --- a/src/classes/ActiveSupport/Cache/Store.html +++ b/src/classes/ActiveSupport/Cache/Store.html @@ -261,7 +261,7 @@

Options

- Source code + 📝 Source code
# File activesupport/lib/active_support/cache.rb, line 319
@@ -272,7 +272,7 @@ 

Options

@options[:compress_threshold] ||= DEFAULT_COMPRESS_LIMIT @coder = @options.delete(:coder) do - legacy_serializer = Cache.format_version < 7.1 && !@options[:serializer] + legacy_serializer = Cache.format_version < 7.1 && !@options[:serializer] serializer = @options.delete(:serializer) || default_serializer serializer = Cache::SerializerWithFallback[serializer] if serializer.is_a?(Symbol) compressor = @options.delete(:compressor) { Zlib } @@ -285,7 +285,7 @@

Options

@coder_supports_compression = @coder.respond_to?(:dump_compressed) end
- See on GitHub + 🔎 See on GitHub
@@ -320,15 +320,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/cache.rb, line 738
       def cleanup(options = nil)
-        raise NotImplementedError.new("#{self.class.name} does not support cleanup")
+        raise NotImplementedError.new("#{self.class.name} does not support cleanup")
       end
- See on GitHub + 🔎 See on GitHub
@@ -359,15 +359,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/cache.rb, line 748
       def clear(options = nil)
-        raise NotImplementedError.new("#{self.class.name} does not support clear")
+        raise NotImplementedError.new("#{self.class.name} does not support clear")
       end
- See on GitHub + 🔎 See on GitHub
@@ -398,15 +398,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/cache.rb, line 729
       def decrement(name, amount = 1, options = nil)
-        raise NotImplementedError.new("#{self.class.name} does not support decrement")
+        raise NotImplementedError.new("#{self.class.name} does not support decrement")
       end
- See on GitHub + 🔎 See on GitHub
@@ -435,7 +435,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/cache.rb, line 667
@@ -447,7 +447,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -478,15 +478,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/cache.rb, line 711
       def delete_matched(matcher, options = nil)
-        raise NotImplementedError.new("#{self.class.name} does not support delete_matched")
+        raise NotImplementedError.new("#{self.class.name} does not support delete_matched")
       end
- See on GitHub + 🔎 See on GitHub
@@ -515,7 +515,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/cache.rb, line 679
@@ -530,7 +530,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -559,7 +559,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/cache.rb, line 693
@@ -568,11 +568,11 @@ 

instrument(:exist?, name) do |payload| entry = read_entry(normalize_key(name, options), **options, event: payload) - (entry && !entry.expired? && !entry.mismatched?(normalize_version(name, options))) || false + (entry && !entry.expired? && !entry.mismatched?(normalize_version(name, options))) || false end end

- See on GitHub + 🔎 See on GitHub
@@ -685,11 +685,11 @@

Dynamic Options

- Source code + 📝 Source code
# File activesupport/lib/active_support/cache.rb, line 458
-      def fetch(name, options = nil, &block)
+      def fetch(name, options = nil, &block)
         if block_given?
           options = merged_options(options)
           key = normalize_key(name, options)
@@ -699,7 +699,7 @@ 

Dynamic Options

instrument(:read, name, options) do |payload| cached_entry = read_entry(key, **options, event: payload) entry = handle_expired_entry(cached_entry, key, options) - entry = nil if entry && entry.mismatched?(normalize_version(name, options)) + entry = nil if entry && entry.mismatched?(normalize_version(name, options)) payload[:super_operation] = :fetch if payload payload[:hit] = !!entry if payload end @@ -708,16 +708,16 @@

Dynamic Options

if entry get_entry_value(entry, name, options) else - save_block_result_to_cache(name, options, &block) + save_block_result_to_cache(name, options, &block) end - elsif options && options[:force] - raise ArgumentError, "Missing block: Calling `Cache#fetch` with `force: true` requires a block." + elsif options && options[:force] + raise ArgumentError, "Missing block: Calling `Cache#fetch` with `force: true` requires a block." else read(name, options) end end
- See on GitHub + 🔎 See on GitHub
@@ -767,12 +767,12 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/cache.rb, line 592
       def fetch_multi(*names)
-        raise ArgumentError, "Missing block: `Cache#fetch_multi` requires a block." unless block_given?
+        raise ArgumentError, "Missing block: `Cache#fetch_multi` requires a block." unless block_given?
         return {} if names.empty?
 
         options = names.extract_options!
@@ -800,7 +800,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -831,15 +831,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/cache.rb, line 720
       def increment(name, amount = 1, options = nil)
-        raise NotImplementedError.new("#{self.class.name} does not support increment")
+        raise NotImplementedError.new("#{self.class.name} does not support increment")
       end
- See on GitHub + 🔎 See on GitHub
@@ -866,18 +866,18 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/cache.rb, line 346
       def mute
-        previous_silence, @silence = defined?(@silence) && @silence, true
+        previous_silence, @silence = defined?(@silence) && @silence, true
         yield
       ensure
         @silence = previous_silence
       end
- See on GitHub + 🔎 See on GitHub
@@ -915,7 +915,7 @@

Options

- Source code + 📝 Source code
# File activesupport/lib/active_support/cache.rb, line 502
@@ -946,7 +946,7 @@ 

Options

end end
- See on GitHub + 🔎 See on GitHub
@@ -977,7 +977,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/cache.rb, line 535
@@ -994,7 +994,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -1021,7 +1021,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/cache.rb, line 340
@@ -1030,7 +1030,7 @@ 

self end

- See on GitHub + 🔎 See on GitHub
@@ -1082,7 +1082,7 @@

Options

- Source code + 📝 Source code
# File activesupport/lib/active_support/cache.rb, line 654
@@ -1095,7 +1095,7 @@ 

Options

end end
- See on GitHub + 🔎 See on GitHub
@@ -1122,7 +1122,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/cache.rb, line 549
@@ -1140,7 +1140,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -1170,7 +1170,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/cache.rb, line 776
@@ -1178,18 +1178,18 @@ 

prefix = options[:namespace].is_a?(Proc) ? options[:namespace].call : options[:namespace] if prefix source = pattern.source - if source.start_with?("^") + if source.start_with?("^") source = source[1, source.length] else - source = ".*#{source[0, source.length]}" + source = ".*#{source[0, source.length]}" end - Regexp.new("^#{Regexp.escape(prefix)}:#{source}", pattern.options) + Regexp.new("^#{Regexp.escape(prefix)}:#{source}", pattern.options) else pattern end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/Cache/Strategy/LocalCache.html b/src/classes/ActiveSupport/Cache/Strategy/LocalCache.html index 90efaa3184..cff4a4589b 100644 --- a/src/classes/ActiveSupport/Cache/Strategy/LocalCache.html +++ b/src/classes/ActiveSupport/Cache/Strategy/LocalCache.html @@ -105,17 +105,17 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/cache/strategy/local_cache.rb, line 73
         def middleware
           @middleware ||= Middleware.new(
-            "ActiveSupport::Cache::Strategy::LocalCache",
+            "ActiveSupport::Cache::Strategy::LocalCache",
             local_cache_key)
         end
- See on GitHub + 🔎 See on GitHub
@@ -142,15 +142,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/cache/strategy/local_cache.rb, line 67
-        def with_local_cache(&block)
-          use_temporary_local_cache(LocalStore.new, &block)
+        def with_local_cache(&block)
+          use_temporary_local_cache(LocalStore.new, &block)
         end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/Cache/Strategy/LocalCache/LocalStore.html b/src/classes/ActiveSupport/Cache/Strategy/LocalCache/LocalStore.html index 1356b40749..938438334c 100644 --- a/src/classes/ActiveSupport/Cache/Strategy/LocalCache/LocalStore.html +++ b/src/classes/ActiveSupport/Cache/Strategy/LocalCache/LocalStore.html @@ -111,7 +111,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/cache/strategy/local_cache.rb, line 36
@@ -119,7 +119,7 @@ 

@data = {} end

- See on GitHub + 🔎 See on GitHub
@@ -150,7 +150,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/cache/strategy/local_cache.rb, line 40
@@ -158,7 +158,7 @@ 

@data.clear end

- See on GitHub + 🔎 See on GitHub
@@ -185,7 +185,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/cache/strategy/local_cache.rb, line 57
@@ -193,7 +193,7 @@ 

!!@data.delete(key) end

- See on GitHub + 🔎 See on GitHub
@@ -220,7 +220,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/cache/strategy/local_cache.rb, line 44
@@ -228,7 +228,7 @@ 

@data[key] end

- See on GitHub + 🔎 See on GitHub
@@ -255,7 +255,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/cache/strategy/local_cache.rb, line 48
@@ -263,7 +263,7 @@ 

@data.slice(*keys) end

- See on GitHub + 🔎 See on GitHub
@@ -290,7 +290,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/cache/strategy/local_cache.rb, line 52
@@ -299,7 +299,7 @@ 

true end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/Cache/WriteOptions.html b/src/classes/ActiveSupport/Cache/WriteOptions.html index 0d922246ec..16e51512a3 100644 --- a/src/classes/ActiveSupport/Cache/WriteOptions.html +++ b/src/classes/ActiveSupport/Cache/WriteOptions.html @@ -104,7 +104,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/cache.rb, line 1078
@@ -112,7 +112,7 @@ 

@options[:expires_at] end

- See on GitHub + 🔎 See on GitHub
@@ -139,7 +139,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/cache.rb, line 1082
@@ -148,7 +148,7 @@ 

@options[:expires_at] = expires_at end

- See on GitHub + 🔎 See on GitHub
@@ -175,7 +175,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/cache.rb, line 1069
@@ -183,7 +183,7 @@ 

@options[:expires_in] end

- See on GitHub + 🔎 See on GitHub
@@ -210,7 +210,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/cache.rb, line 1073
@@ -219,7 +219,7 @@ 

@options[:expires_in] = expires_in end

- See on GitHub + 🔎 See on GitHub
@@ -246,7 +246,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/cache.rb, line 1061
@@ -254,7 +254,7 @@ 

@options[:version] end

- See on GitHub + 🔎 See on GitHub
@@ -281,7 +281,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/cache.rb, line 1065
@@ -289,7 +289,7 @@ 

@options[:version] = version end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/CachingKeyGenerator.html b/src/classes/ActiveSupport/CachingKeyGenerator.html index e1bdeb620f..bdd4c4cf04 100644 --- a/src/classes/ActiveSupport/CachingKeyGenerator.html +++ b/src/classes/ActiveSupport/CachingKeyGenerator.html @@ -95,7 +95,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/key_generator.rb, line 56
@@ -104,7 +104,7 @@ 

@cache_keys = Concurrent::Map.new end

- See on GitHub + 🔎 See on GitHub
@@ -135,15 +135,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/key_generator.rb, line 62
     def generate_key(*args)
-      @cache_keys[args.join("|")] ||= @key_generator.generate_key(*args)
+      @cache_keys[args.join("|")] ||= @key_generator.generate_key(*args)
     end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/Callbacks.html b/src/classes/ActiveSupport/Callbacks.html index d85a092f73..b426081d87 100644 --- a/src/classes/ActiveSupport/Callbacks.html +++ b/src/classes/ActiveSupport/Callbacks.html @@ -125,11 +125,6 @@

Constants

[:before, :after, :around].freeze - -   - - - @@ -171,7 +166,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/callbacks.rb, line 97
@@ -185,10 +180,10 @@ 

next_sequence = callbacks.compile(type) - # Common case: no 'around' callbacks defined + # Common case: no 'around' callbacks defined if next_sequence.final? next_sequence.invoke_before(env) - env.value = !env.halted && (!block_given? || yield) + env.value = !env.halted && (!block_given? || yield) next_sequence.invoke_after(env) env.value else @@ -199,22 +194,22 @@

current = next_sequence current.invoke_before(env) if current.final? - env.value = !env.halted && (!block_given? || yield) + env.value = !env.halted && (!block_given? || yield) elsif current.skip?(env) - (skipped ||= []) << current + (skipped ||= []) << current next_sequence = next_sequence.nested next else next_sequence = next_sequence.nested begin target, block, method, *arguments = current.expand_call_template(env, invoke_sequence) - target.send(method, *arguments, &block) + target.send(method, *arguments, &block) ensure next_sequence = current end end current.invoke_after(env) - skipped.pop.invoke_after(env) while skipped&.first + skipped.pop.invoke_after(env) while skipped&.first break env.value end end @@ -224,7 +219,7 @@

end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/Callbacks/CallTemplate/InstanceExec0.html b/src/classes/ActiveSupport/Callbacks/CallTemplate/InstanceExec0.html index 18e17903ca..52d687baca 100644 --- a/src/classes/ActiveSupport/Callbacks/CallTemplate/InstanceExec0.html +++ b/src/classes/ActiveSupport/Callbacks/CallTemplate/InstanceExec0.html @@ -95,7 +95,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/callbacks.rb, line 438
@@ -103,7 +103,7 @@ 

@override_block = block end

- See on GitHub + 🔎 See on GitHub
@@ -134,7 +134,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/callbacks.rb, line 442
@@ -142,7 +142,7 @@ 

[target, @override_block, :instance_exec] end

- See on GitHub + 🔎 See on GitHub
@@ -169,17 +169,17 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/callbacks.rb, line 452
           def inverted_lambda
-            lambda do |target, value, &block|
-              !target.instance_exec(&@override_block)
+            lambda do |target, value, &block|
+              !target.instance_exec(&@override_block)
             end
           end
- See on GitHub + 🔎 See on GitHub
@@ -206,17 +206,17 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/callbacks.rb, line 446
           def make_lambda
-            lambda do |target, value, &block|
-              target.instance_exec(&@override_block)
+            lambda do |target, value, &block|
+              target.instance_exec(&@override_block)
             end
           end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/Callbacks/CallTemplate/InstanceExec1.html b/src/classes/ActiveSupport/Callbacks/CallTemplate/InstanceExec1.html index 811fbf2323..bf3b510705 100644 --- a/src/classes/ActiveSupport/Callbacks/CallTemplate/InstanceExec1.html +++ b/src/classes/ActiveSupport/Callbacks/CallTemplate/InstanceExec1.html @@ -95,7 +95,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/callbacks.rb, line 460
@@ -103,7 +103,7 @@ 

@override_block = block end

- See on GitHub + 🔎 See on GitHub
@@ -134,7 +134,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/callbacks.rb, line 464
@@ -142,7 +142,7 @@ 

[target, @override_block, :instance_exec, target] end

- See on GitHub + 🔎 See on GitHub
@@ -169,17 +169,17 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/callbacks.rb, line 474
           def inverted_lambda
-            lambda do |target, value, &block|
-              !target.instance_exec(target, &@override_block)
+            lambda do |target, value, &block|
+              !target.instance_exec(target, &@override_block)
             end
           end
- See on GitHub + 🔎 See on GitHub
@@ -206,17 +206,17 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/callbacks.rb, line 468
           def make_lambda
-            lambda do |target, value, &block|
-              target.instance_exec(target, &@override_block)
+            lambda do |target, value, &block|
+              target.instance_exec(target, &@override_block)
             end
           end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/Callbacks/CallTemplate/InstanceExec2.html b/src/classes/ActiveSupport/Callbacks/CallTemplate/InstanceExec2.html index 799e70e418..91c1d6c752 100644 --- a/src/classes/ActiveSupport/Callbacks/CallTemplate/InstanceExec2.html +++ b/src/classes/ActiveSupport/Callbacks/CallTemplate/InstanceExec2.html @@ -95,7 +95,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/callbacks.rb, line 482
@@ -103,7 +103,7 @@ 

@override_block = block end

- See on GitHub + 🔎 See on GitHub
@@ -134,7 +134,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/callbacks.rb, line 486
@@ -143,7 +143,7 @@ 

[target, @override_block || block, :instance_exec, target, block] end

- See on GitHub + 🔎 See on GitHub
@@ -170,18 +170,18 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/callbacks.rb, line 498
           def inverted_lambda
-            lambda do |target, value, &block|
+            lambda do |target, value, &block|
               raise ArgumentError unless block
-              !target.instance_exec(target, block, &@override_block)
+              !target.instance_exec(target, block, &@override_block)
             end
           end
- See on GitHub + 🔎 See on GitHub
@@ -208,18 +208,18 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/callbacks.rb, line 491
           def make_lambda
-            lambda do |target, value, &block|
+            lambda do |target, value, &block|
               raise ArgumentError unless block
-              target.instance_exec(target, block, &@override_block)
+              target.instance_exec(target, block, &@override_block)
             end
           end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/Callbacks/CallTemplate/MethodCall.html b/src/classes/ActiveSupport/Callbacks/CallTemplate/MethodCall.html index 01b5f8fc17..b31fd6d8fc 100644 --- a/src/classes/ActiveSupport/Callbacks/CallTemplate/MethodCall.html +++ b/src/classes/ActiveSupport/Callbacks/CallTemplate/MethodCall.html @@ -95,7 +95,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/callbacks.rb, line 380
@@ -103,7 +103,7 @@ 

@method_name = method end

- See on GitHub + 🔎 See on GitHub
@@ -146,7 +146,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/callbacks.rb, line 397
@@ -154,7 +154,7 @@ 

[target, block, @method_name] end

- See on GitHub + 🔎 See on GitHub
@@ -181,17 +181,17 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/callbacks.rb, line 407
           def inverted_lambda
-            lambda do |target, value, &block|
-              !target.send(@method_name, &block)
+            lambda do |target, value, &block|
+              !target.send(@method_name, &block)
             end
           end
- See on GitHub + 🔎 See on GitHub
@@ -218,17 +218,17 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/callbacks.rb, line 401
           def make_lambda
-            lambda do |target, value, &block|
-              target.send(@method_name, &block)
+            lambda do |target, value, &block|
+              target.send(@method_name, &block)
             end
           end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/Callbacks/CallTemplate/ObjectCall.html b/src/classes/ActiveSupport/Callbacks/CallTemplate/ObjectCall.html index 1985a36ea0..2b6f872d3f 100644 --- a/src/classes/ActiveSupport/Callbacks/CallTemplate/ObjectCall.html +++ b/src/classes/ActiveSupport/Callbacks/CallTemplate/ObjectCall.html @@ -95,7 +95,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/callbacks.rb, line 415
@@ -104,7 +104,7 @@ 

@method_name = method end

- See on GitHub + 🔎 See on GitHub
@@ -135,7 +135,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/callbacks.rb, line 420
@@ -143,7 +143,7 @@ 

[@override_target || target, block, @method_name, target] end

- See on GitHub + 🔎 See on GitHub
@@ -170,17 +170,17 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/callbacks.rb, line 430
           def inverted_lambda
-            lambda do |target, value, &block|
-              !(@override_target || target).send(@method_name, target, &block)
+            lambda do |target, value, &block|
+              !(@override_target || target).send(@method_name, target, &block)
             end
           end
- See on GitHub + 🔎 See on GitHub
@@ -207,17 +207,17 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/callbacks.rb, line 424
           def make_lambda
-            lambda do |target, value, &block|
-              (@override_target || target).send(@method_name, target, &block)
+            lambda do |target, value, &block|
+              (@override_target || target).send(@method_name, target, &block)
             end
           end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/Callbacks/CallTemplate/ProcCall.html b/src/classes/ActiveSupport/Callbacks/CallTemplate/ProcCall.html index 31f7c4dedc..43e3f4e57d 100644 --- a/src/classes/ActiveSupport/Callbacks/CallTemplate/ProcCall.html +++ b/src/classes/ActiveSupport/Callbacks/CallTemplate/ProcCall.html @@ -95,7 +95,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/callbacks.rb, line 507
@@ -103,7 +103,7 @@ 

@override_target = target end

- See on GitHub + 🔎 See on GitHub
@@ -134,7 +134,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/callbacks.rb, line 511
@@ -142,7 +142,7 @@ 

[@override_target || target, block, :call, target, value] end

- See on GitHub + 🔎 See on GitHub
@@ -169,17 +169,17 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/callbacks.rb, line 521
           def inverted_lambda
-            lambda do |target, value, &block|
-              !(@override_target || target).call(target, value, &block)
+            lambda do |target, value, &block|
+              !(@override_target || target).call(target, value, &block)
             end
           end
- See on GitHub + 🔎 See on GitHub
@@ -206,17 +206,17 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/callbacks.rb, line 515
           def make_lambda
-            lambda do |target, value, &block|
-              (@override_target || target).call(target, value, &block)
+            lambda do |target, value, &block|
+              (@override_target || target).call(target, value, &block)
             end
           end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/Callbacks/ClassMethods.html b/src/classes/ActiveSupport/Callbacks/ClassMethods.html index 7e834a7b9c..d147a3c047 100644 --- a/src/classes/ActiveSupport/Callbacks/ClassMethods.html +++ b/src/classes/ActiveSupport/Callbacks/ClassMethods.html @@ -154,7 +154,7 @@

Notes
- Source code + 📝 Source code
# File activesupport/lib/active_support/callbacks.rb, line 940
@@ -168,9 +168,9 @@ 
Notes
target.set_callbacks name, CallbackChain.new(name, options) end - module_eval <<-RUBY, __FILE__, __LINE__ + 1 - def _run_#{name}_callbacks(&block) - run_callbacks #{name.inspect}, &block + module_eval <<-RUBY, __FILE__, __LINE__ + 1 + def _run_#{name}_callbacks(&block) + run_callbacks #{name.inspect}, &block end def self._#{name}_callbacks @@ -188,7 +188,7 @@
Notes
end end
- See on GitHub + 🔎 See on GitHub
@@ -215,7 +215,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/callbacks.rb, line 850
@@ -231,7 +231,7 @@ 

set_callbacks(name, callbacks.dup.clear) end

- See on GitHub + 🔎 See on GitHub
@@ -289,11 +289,11 @@

Options
- Source code + 📝 Source code
# File activesupport/lib/active_support/callbacks.rb, line 776
-        def set_callback(name, *filter_list, &block)
+        def set_callback(name, *filter_list, &block)
           type, filters, options = normalize_callback_params(filter_list, block)
 
           self_chain = get_callbacks name
@@ -307,7 +307,7 @@ 
Options
end end
- See on GitHub + 🔎 See on GitHub
@@ -371,11 +371,11 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/callbacks.rb, line 825
-        def skip_callback(name, *filter_list, &block)
+        def skip_callback(name, *filter_list, &block)
           type, filters, options = normalize_callback_params(filter_list, block)
 
           options[:raise] = true unless options.key?(:raise)
@@ -384,11 +384,11 @@ 

filters.each do |filter| callback = chain.find { |c| c.matches?(type, filter) } - if !callback && options[:raise] - raise ArgumentError, "#{type.to_s.capitalize} #{name} callback #{filter.inspect} has not been defined" + if !callback && options[:raise] + raise ArgumentError, "#{type.to_s.capitalize} #{name} callback #{filter.inspect} has not been defined" end - if callback && (options.key?(:if) || options.key?(:unless)) + if callback && (options.key?(:if) || options.key?(:unless)) new_callback = callback.merge_conditional_options(chain, if_option: options[:if], unless_option: options[:unless]) chain.insert(chain.index(callback), new_callback) end @@ -399,7 +399,7 @@

end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/Callbacks/Conditionals/Value.html b/src/classes/ActiveSupport/Callbacks/Conditionals/Value.html index 525f0a7775..055dc828b6 100644 --- a/src/classes/ActiveSupport/Callbacks/Conditionals/Value.html +++ b/src/classes/ActiveSupport/Callbacks/Conditionals/Value.html @@ -87,15 +87,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/callbacks.rb, line 155
-          def initialize(&block)
+          def initialize(&block)
             @block = block
           end
- See on GitHub + 🔎 See on GitHub
@@ -126,13 +126,13 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/callbacks.rb, line 158
           def call(target, value); @block.call(value); end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/Callbacks/Filters.html b/src/classes/ActiveSupport/Callbacks/Filters.html index 195ae94857..53789c9378 100644 --- a/src/classes/ActiveSupport/Callbacks/Filters.html +++ b/src/classes/ActiveSupport/Callbacks/Filters.html @@ -65,11 +65,6 @@

Constants

Struct.new(:target, :halted, :value) - -   - - - diff --git a/src/classes/ActiveSupport/Callbacks/Filters/After.html b/src/classes/ActiveSupport/Callbacks/Filters/After.html index 9e008d2c60..f7b8e5d599 100644 --- a/src/classes/ActiveSupport/Callbacks/Filters/After.html +++ b/src/classes/ActiveSupport/Callbacks/Filters/After.html @@ -83,7 +83,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/callbacks.rb, line 216
@@ -103,7 +103,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/Callbacks/Filters/Before.html b/src/classes/ActiveSupport/Callbacks/Filters/Before.html index dc07591370..2edeba1f5a 100644 --- a/src/classes/ActiveSupport/Callbacks/Filters/Before.html +++ b/src/classes/ActiveSupport/Callbacks/Filters/Before.html @@ -83,7 +83,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/callbacks.rb, line 166
@@ -97,7 +97,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/CodeGenerator/MethodSet.html b/src/classes/ActiveSupport/CodeGenerator/MethodSet.html index d9a241ab89..7f8f2489ca 100644 --- a/src/classes/ActiveSupport/CodeGenerator/MethodSet.html +++ b/src/classes/ActiveSupport/CodeGenerator/MethodSet.html @@ -73,11 +73,6 @@

Constants

Hash.new { |h, k| h[k] = Module.new } - -   - - - @@ -109,7 +104,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/code_generator.rb, line 8
@@ -119,7 +114,7 @@ 

@methods = {} end

- See on GitHub + 🔎 See on GitHub
@@ -150,20 +145,20 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/code_generator.rb, line 25
       def apply(owner, path, line)
         unless @sources.empty?
-          @cache.module_eval("# frozen_string_literal: true\n" + @sources.join(";"), path, line)
+          @cache.module_eval("# frozen_string_literal: true\n" + @sources.join(";"), path, line)
         end
         @methods.each do |name, as|
           owner.define_method(name, @cache.instance_method(as))
         end
       end
- See on GitHub + 🔎 See on GitHub
@@ -190,7 +185,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/code_generator.rb, line 14
@@ -205,7 +200,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/CompareWithRange.html b/src/classes/ActiveSupport/CompareWithRange.html index 7f1ea98620..d78d756ce2 100644 --- a/src/classes/ActiveSupport/CompareWithRange.html +++ b/src/classes/ActiveSupport/CompareWithRange.html @@ -96,25 +96,25 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/range/compare_range.rb, line 16
     def ===(value)
       if value.is_a?(::Range)
-        is_backwards_op = value.exclude_end? ? :>= : :>
-        return false if value.begin && value.end && value.begin.public_send(is_backwards_op, value.end)
+        is_backwards_op = value.exclude_end? ? :>= : :>
+        return false if value.begin && value.end && value.begin.public_send(is_backwards_op, value.end)
         # 1...10 includes 1..9 but it does not include 1..10.
         # 1..10 includes 1...11 but it does not include 1...12.
-        operator = exclude_end? && !value.exclude_end? ? :< : :<=
-        value_max = !exclude_end? && value.exclude_end? ? value.max : value.last
-        super(value.first) && (self.end.nil? || value_max.public_send(operator, last))
+        operator = exclude_end? && !value.exclude_end? ? :< : :<=
+        value_max = !exclude_end? && value.exclude_end? ? value.max : value.last
+        super(value.first) && (self.end.nil? || value_max.public_send(operator, last))
       else
         super
       end
     end
- See on GitHub + 🔎 See on GitHub
@@ -155,25 +155,25 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/range/compare_range.rb, line 41
     def include?(value)
       if value.is_a?(::Range)
-        is_backwards_op = value.exclude_end? ? :>= : :>
-        return false if value.begin && value.end && value.begin.public_send(is_backwards_op, value.end)
+        is_backwards_op = value.exclude_end? ? :>= : :>
+        return false if value.begin && value.end && value.begin.public_send(is_backwards_op, value.end)
         # 1...10 includes 1..9 but it does not include 1..10.
         # 1..10 includes 1...11 but it does not include 1...12.
-        operator = exclude_end? && !value.exclude_end? ? :< : :<=
-        value_max = !exclude_end? && value.exclude_end? ? value.max : value.last
-        super(value.first) && (self.end.nil? || value_max.public_send(operator, last))
+        operator = exclude_end? && !value.exclude_end? ? :< : :<=
+        value_max = !exclude_end? && value.exclude_end? ? value.max : value.last
+        super(value.first) && (self.end.nil? || value_max.public_send(operator, last))
       else
         super
       end
     end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/Concern.html b/src/classes/ActiveSupport/Concern.html index ee49c57e65..a091c9fb59 100644 --- a/src/classes/ActiveSupport/Concern.html +++ b/src/classes/ActiveSupport/Concern.html @@ -215,19 +215,19 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/concern.rb, line 209
-    def class_methods(&class_methods_module_definition)
+    def class_methods(&class_methods_module_definition)
       mod = const_defined?(:ClassMethods, false) ?
         const_get(:ClassMethods) :
         const_set(:ClassMethods, Module.new)
 
-      mod.module_eval(&class_methods_module_definition)
+      mod.module_eval(&class_methods_module_definition)
     end
- See on GitHub + 🔎 See on GitHub
@@ -254,11 +254,11 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/concern.rb, line 158
-    def included(base = nil, &block)
+    def included(base = nil, &block)
       if base.nil?
         if instance_variable_defined?(:@_included_block)
           if @_included_block.source_location != block.source_location
@@ -272,7 +272,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -299,11 +299,11 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/concern.rb, line 175
-    def prepended(base = nil, &block)
+    def prepended(base = nil, &block)
       if base.nil?
         if instance_variable_defined?(:@_prepended_block)
           if @_prepended_block.source_location != block.source_location
@@ -317,7 +317,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/Concurrency/ShareLock.html b/src/classes/ActiveSupport/Concurrency/ShareLock.html index 0b09dd9a20..5082fcd003 100644 --- a/src/classes/ActiveSupport/Concurrency/ShareLock.html +++ b/src/classes/ActiveSupport/Concurrency/ShareLock.html @@ -131,7 +131,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/concurrency/share_lock.rb, line 50
@@ -147,7 +147,7 @@ 

@exclusive_depth = 0 end

- See on GitHub + 🔎 See on GitHub
@@ -180,7 +180,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/concurrency/share_lock.rb, line 148
@@ -194,7 +194,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -221,7 +221,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/concurrency/share_lock.rb, line 159
@@ -234,7 +234,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -265,7 +265,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/concurrency/share_lock.rb, line 76
@@ -287,7 +287,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -314,17 +314,17 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/concurrency/share_lock.rb, line 114
       def start_sharing
         synchronize do
-          if @sharing[Thread.current] > 0 || @exclusive_thread == Thread.current
+          if @sharing[Thread.current] > 0 || @exclusive_thread == Thread.current
             # We already hold a lock; nothing to wait for
           elsif @waiting[Thread.current]
-            # We're nested inside a +yield_shares+ call: we'll resume as
-            # soon as there isn't an exclusive lock in our way
+            # We're nested inside a +yield_shares+ call: we'll resume as
+            # soon as there isn't an exclusive lock in our way
             wait_for(:start_sharing) { @exclusive_thread }
           else
             # This is an initial / outermost share call: any outstanding
@@ -335,7 +335,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -362,13 +362,13 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/concurrency/share_lock.rb, line 96
       def stop_exclusive(compatible: [])
         synchronize do
-          raise "invalid unlock" if @exclusive_thread != Thread.current
+          raise "invalid unlock" if @exclusive_thread != Thread.current
 
           @exclusive_depth -= 1
           if @exclusive_depth == 0
@@ -384,7 +384,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -411,13 +411,13 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/concurrency/share_lock.rb, line 131
       def stop_sharing
         synchronize do
-          if @sharing[Thread.current] > 1
+          if @sharing[Thread.current] > 1
             @sharing[Thread.current] -= 1
           else
             @sharing.delete Thread.current
@@ -426,7 +426,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -453,7 +453,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/concurrency/share_lock.rb, line 171
@@ -463,7 +463,7 @@ 

if loose_shares = @sharing.delete(Thread.current) if previous_wait = @waiting[Thread.current] purpose = nil unless purpose == previous_wait[0] - compatible &= previous_wait[1] + compatible &= previous_wait[1] end compatible |= [false] unless block_share @waiting[Thread.current] = [purpose, compatible] @@ -476,7 +476,7 @@

yield ensure synchronize do - wait_for(:yield_shares) { @exclusive_thread && @exclusive_thread != Thread.current } + wait_for(:yield_shares) { @exclusive_thread && @exclusive_thread != Thread.current } if previous_wait @waiting[Thread.current] = previous_wait @@ -488,7 +488,7 @@

end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/Configurable.html b/src/classes/ActiveSupport/Configurable.html index 57b47a7ef1..38593ab6bf 100644 --- a/src/classes/ActiveSupport/Configurable.html +++ b/src/classes/ActiveSupport/Configurable.html @@ -121,7 +121,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/configurable.rb, line 155
@@ -129,7 +129,7 @@ 

@_config ||= self.class.config.inheritable_copy end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/Configurable/ClassMethods.html b/src/classes/ActiveSupport/Configurable/ClassMethods.html index 10f93a5b37..9a5a11117d 100644 --- a/src/classes/ActiveSupport/Configurable/ClassMethods.html +++ b/src/classes/ActiveSupport/Configurable/ClassMethods.html @@ -86,20 +86,20 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/configurable.rb, line 30
       def config
-        @_config ||= if respond_to?(:superclass) && superclass.respond_to?(:config)
+        @_config ||= if respond_to?(:superclass) && superclass.respond_to?(:config)
           superclass.config.inheritable_copy
         else
-          # create a new "anonymous" class that will host the compiled reader methods
+          # create a new "anonymous" class that will host the compiled reader methods
           Class.new(Configuration).new
         end
       end
- See on GitHub + 🔎 See on GitHub
@@ -126,7 +126,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/configurable.rb, line 39
@@ -134,7 +134,7 @@ 

yield config end

- See on GitHub + 🔎 See on GitHub
@@ -234,16 +234,16 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/configurable.rb, line 111
       def config_accessor(*names, instance_reader: true, instance_writer: true, instance_accessor: true, default: nil) # :doc:
         names.each do |name|
-          raise NameError.new("invalid config attribute name") unless /\A[_A-Za-z]\w*\z/.match?(name)
+          raise NameError.new("invalid config attribute name") unless /\A[_A-Za-z]\w*\z/.match?(name)
 
-          reader, reader_line = "def #{name}; config.#{name}; end", __LINE__
-          writer, writer_line = "def #{name}=(value); config.#{name} = value; end", __LINE__
+          reader, reader_line = "def #{name}; config.#{name}; end", __LINE__
+          writer, writer_line = "def #{name}=(value); config.#{name} = value; end", __LINE__
 
           singleton_class.class_eval reader, __FILE__, reader_line
           singleton_class.class_eval writer, __FILE__, writer_line
@@ -253,11 +253,11 @@ 

class_eval writer, __FILE__, writer_line if instance_writer end - send("#{name}=", block_given? ? yield : default) + send("#{name}=", block_given? ? yield : default) end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/Configurable/Configuration.html b/src/classes/ActiveSupport/Configurable/Configuration.html index ab1646a3c3..7ddf35f8ff 100644 --- a/src/classes/ActiveSupport/Configurable/Configuration.html +++ b/src/classes/ActiveSupport/Configurable/Configuration.html @@ -87,19 +87,19 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/configurable.rb, line 20
       def self.compile_methods!(keys)
         keys.reject { |m| method_defined?(m) }.each do |key|
-          class_eval <<-RUBY, __FILE__, __LINE__ + 1
+          class_eval <<-RUBY, __FILE__, __LINE__ + 1
             def #{key}; _get(#{key.inspect}); end
           RUBY
         end
       end
- See on GitHub + 🔎 See on GitHub
@@ -130,7 +130,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/configurable.rb, line 15
@@ -138,7 +138,7 @@ 

self.class.compile_methods!(keys) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/CurrentAttributes.html b/src/classes/ActiveSupport/CurrentAttributes.html index 8e5e96a9fa..3b080ffcb6 100644 --- a/src/classes/ActiveSupport/CurrentAttributes.html +++ b/src/classes/ActiveSupport/CurrentAttributes.html @@ -248,29 +248,29 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/current_attributes.rb, line 104
       def attribute(*names)
-        invalid_attribute_names = names.map(&:to_sym) & INVALID_ATTRIBUTE_NAMES
+        invalid_attribute_names = names.map(&:to_sym) & INVALID_ATTRIBUTE_NAMES
         if invalid_attribute_names.any?
-          raise ArgumentError, "Restricted attribute names: #{invalid_attribute_names.join(", ")}"
+          raise ArgumentError, "Restricted attribute names: #{invalid_attribute_names.join(", ")}"
         end
 
         ActiveSupport::CodeGenerator.batch(generated_attribute_methods, __FILE__, __LINE__) do |owner|
           names.each do |name|
             owner.define_cached_method(name, namespace: :current_attributes) do |batch|
-              batch <<
-                "def #{name}" <<
-                "attributes[:#{name}]" <<
-                "end"
+              batch <<
+                "def #{name}" <<
+                "attributes[:#{name}]" <<
+                "end"
             end
-            owner.define_cached_method("#{name}=", namespace: :current_attributes) do |batch|
-              batch <<
-                "def #{name}=(value)" <<
-                "attributes[:#{name}] = value" <<
-                "end"
+            owner.define_cached_method("#{name}=", namespace: :current_attributes) do |batch|
+              batch <<
+                "def #{name}=(value)" <<
+                "attributes[:#{name}] = value" <<
+                "end"
             end
           end
         end
@@ -278,22 +278,22 @@ 

ActiveSupport::CodeGenerator.batch(singleton_class, __FILE__, __LINE__) do |owner| names.each do |name| owner.define_cached_method(name, namespace: :current_attributes_delegation) do |batch| - batch << - "def #{name}" << - "instance.#{name}" << - "end" + batch << + "def #{name}" << + "instance.#{name}" << + "end" end - owner.define_cached_method("#{name}=", namespace: :current_attributes_delegation) do |batch| - batch << - "def #{name}=(value)" << - "instance.#{name} = value" << - "end" + owner.define_cached_method("#{name}=", namespace: :current_attributes_delegation) do |batch| + batch << + "def #{name}=(value)" << + "instance.#{name} = value" << + "end" end end end end

- See on GitHub + 🔎 See on GitHub
@@ -320,15 +320,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/current_attributes.rb, line 146
-      def before_reset(*methods, &block)
-        set_callback :reset, :before, *methods, &block
+      def before_reset(*methods, &block)
+        set_callback :reset, :before, *methods, &block
       end
- See on GitHub + 🔎 See on GitHub
@@ -355,7 +355,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/current_attributes.rb, line 99
@@ -363,7 +363,7 @@ 

current_instances[current_instances_key] ||= new end

- See on GitHub + 🔎 See on GitHub
@@ -390,7 +390,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/current_attributes.rb, line 197
@@ -398,7 +398,7 @@ 

@attributes = {} end

- See on GitHub + 🔎 See on GitHub
@@ -429,15 +429,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/current_attributes.rb, line 151
-      def resets(*methods, &block)
-        set_callback :reset, :after, *methods, &block
+      def resets(*methods, &block)
+        set_callback :reset, :after, *methods, &block
       end
- See on GitHub + 🔎 See on GitHub
@@ -468,7 +468,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/current_attributes.rb, line 220
@@ -478,7 +478,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -514,7 +514,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/current_attributes.rb, line 211
@@ -526,7 +526,7 @@ 

assign_attributes(old_attributes) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/Dependencies.html b/src/classes/ActiveSupport/Dependencies.html index bb43ce3859..baa0b72b90 100644 --- a/src/classes/ActiveSupport/Dependencies.html +++ b/src/classes/ActiveSupport/Dependencies.html @@ -109,15 +109,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/dependencies.rb, line 24
-    def self.load_interlock(&block)
-      interlock.loading(&block)
+    def self.load_interlock(&block)
+      interlock.loading(&block)
     end
- See on GitHub + 🔎 See on GitHub
@@ -144,15 +144,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/dependencies.rb, line 17
-    def self.run_interlock(&block)
-      interlock.running(&block)
+    def self.run_interlock(&block)
+      interlock.running(&block)
     end
- See on GitHub + 🔎 See on GitHub
@@ -179,15 +179,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/dependencies.rb, line 31
-    def self.unload_interlock(&block)
-      interlock.unloading(&block)
+    def self.unload_interlock(&block)
+      interlock.unloading(&block)
     end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/Dependencies/Interlock.html b/src/classes/ActiveSupport/Dependencies/Interlock.html index 6d333bc38f..557c7bd05b 100644 --- a/src/classes/ActiveSupport/Dependencies/Interlock.html +++ b/src/classes/ActiveSupport/Dependencies/Interlock.html @@ -112,7 +112,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/dependencies/interlock.rb, line 32
@@ -120,7 +120,7 @@ 

@lock.stop_sharing end

- See on GitHub + 🔎 See on GitHub
@@ -147,7 +147,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/dependencies/interlock.rb, line 24
@@ -155,7 +155,7 @@ 

@lock.stop_exclusive(compatible: [:load, :unload]) end

- See on GitHub + 🔎 See on GitHub
@@ -182,15 +182,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/dependencies/interlock.rb, line 12
-      def loading(&block)
-        @lock.exclusive(purpose: :load, compatible: [:load], after_compatible: [:load], &block)
+      def loading(&block)
+        @lock.exclusive(purpose: :load, compatible: [:load], after_compatible: [:load], &block)
       end
- See on GitHub + 🔎 See on GitHub
@@ -217,15 +217,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/dependencies/interlock.rb, line 40
-      def permit_concurrent_loads(&block)
-        @lock.yield_shares(compatible: [:load], &block)
+      def permit_concurrent_loads(&block)
+        @lock.yield_shares(compatible: [:load], &block)
       end
- See on GitHub + 🔎 See on GitHub
@@ -252,15 +252,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/dependencies/interlock.rb, line 36
-      def running(&block)
-        @lock.sharing(&block)
+      def running(&block)
+        @lock.sharing(&block)
       end
- See on GitHub + 🔎 See on GitHub
@@ -287,7 +287,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/dependencies/interlock.rb, line 28
@@ -295,7 +295,7 @@ 

@lock.start_sharing end

- See on GitHub + 🔎 See on GitHub
@@ -322,7 +322,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/dependencies/interlock.rb, line 20
@@ -330,7 +330,7 @@ 

@lock.start_exclusive(purpose: :unload, compatible: [:load, :unload]) end

- See on GitHub + 🔎 See on GitHub
@@ -357,15 +357,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/dependencies/interlock.rb, line 16
-      def unloading(&block)
-        @lock.exclusive(purpose: :unload, compatible: [:load, :unload], after_compatible: [:load, :unload], &block)
+      def unloading(&block)
+        @lock.exclusive(purpose: :unload, compatible: [:load, :unload], after_compatible: [:load, :unload], &block)
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/Dependencies/RequireDependency.html b/src/classes/ActiveSupport/Dependencies/RequireDependency.html index 4ca7e41c6a..4688f7728b 100644 --- a/src/classes/ActiveSupport/Dependencies/RequireDependency.html +++ b/src/classes/ActiveSupport/Dependencies/RequireDependency.html @@ -80,7 +80,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/dependencies/require_dependency.rb, line 11
@@ -88,7 +88,7 @@ 

filename = filename.to_path if filename.respond_to?(:to_path) unless filename.is_a?(String) - raise ArgumentError, "the file name must be either a String or implement #to_path -- you passed #{filename.inspect}" + raise ArgumentError, "the file name must be either a String or implement #to_path -- you passed #{filename.inspect}" end if abspath = ActiveSupport::Dependencies.search_for_file(filename) @@ -98,7 +98,7 @@

end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/Deprecation.html b/src/classes/ActiveSupport/Deprecation.html index e483250225..eb7f038d20 100644 --- a/src/classes/ActiveSupport/Deprecation.html +++ b/src/classes/ActiveSupport/Deprecation.html @@ -283,11 +283,11 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/deprecation.rb, line 68
-    def initialize(deprecation_horizon = "7.2", gem_name = "Rails")
+    def initialize(deprecation_horizon = "7.2", gem_name = "Rails")
       self.gem_name = gem_name
       self.deprecation_horizon = deprecation_horizon
       # By default, warnings are not silenced and debugging is off.
@@ -297,7 +297,7 @@ 

@explicitly_allowed_warnings = Concurrent::ThreadLocalVar.new(nil) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/Deprecation/Behavior.html b/src/classes/ActiveSupport/Deprecation/Behavior.html index 75ef957761..b476d37bc5 100644 --- a/src/classes/ActiveSupport/Deprecation/Behavior.html +++ b/src/classes/ActiveSupport/Deprecation/Behavior.html @@ -131,7 +131,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/deprecation/behaviors.rb, line 74
@@ -139,7 +139,7 @@ 

@behavior ||= [DEFAULT_BEHAVIORS[:stderr]] end

- See on GitHub + 🔎 See on GitHub
@@ -200,7 +200,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/deprecation/behaviors.rb, line 109
@@ -208,7 +208,7 @@ 

@behavior = Array(behavior).map { |b| DEFAULT_BEHAVIORS[b] || arity_coerce(b) } end

- See on GitHub + 🔎 See on GitHub
@@ -235,7 +235,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/deprecation/behaviors.rb, line 79
@@ -243,7 +243,7 @@ 

@disallowed_behavior ||= [DEFAULT_BEHAVIORS[:raise]] end

- See on GitHub + 🔎 See on GitHub
@@ -270,7 +270,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/deprecation/behaviors.rb, line 117
@@ -278,7 +278,7 @@ 

@disallowed_behavior = Array(behavior).map { |b| DEFAULT_BEHAVIORS[b] || arity_coerce(b) } end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/Deprecation/DeprecatedConstantAccessor.html b/src/classes/ActiveSupport/Deprecation/DeprecatedConstantAccessor.html index 41d5684012..d718f64c53 100644 --- a/src/classes/ActiveSupport/Deprecation/DeprecatedConstantAccessor.html +++ b/src/classes/ActiveSupport/Deprecation/DeprecatedConstantAccessor.html @@ -109,18 +109,18 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/deprecation/constant_accessor.rb, line 28
       def self.included(base)
-        require "active_support/inflector/methods"
+        require "active_support/inflector/methods"
 
         extension = Module.new do
           def const_missing(missing_const_name)
             if class_variable_defined?(:@@_deprecated_constants)
               if (replacement = class_variable_get(:@@_deprecated_constants)[missing_const_name.to_s])
-                replacement[:deprecator].warn(replacement[:message] || "#{name}::#{missing_const_name} is deprecated! Use #{replacement[:new]} instead.", caller_locations)
+                replacement[:deprecator].warn(replacement[:message] || "#{name}::#{missing_const_name} is deprecated! Use #{replacement[:new]} instead.", caller_locations)
                 return ActiveSupport::Inflector.constantize(replacement[:new].to_s)
               end
             end
@@ -128,7 +128,7 @@ 

end def deprecate_constant(const_name, new_constant, message: nil, deprecator: nil) - ActiveSupport.deprecator.warn("DeprecatedConstantAccessor.deprecate_constant without a deprecator is deprecated") unless deprecator + ActiveSupport.deprecator.warn("DeprecatedConstantAccessor.deprecate_constant without a deprecator is deprecated") unless deprecator deprecator ||= ActiveSupport::Deprecation._instance class_variable_set(:@@_deprecated_constants, {}) unless class_variable_defined?(:@@_deprecated_constants) class_variable_get(:@@_deprecated_constants)[const_name.to_s] = { new: new_constant, message: message, deprecator: deprecator } @@ -137,7 +137,7 @@

base.singleton_class.prepend extension end

- See on GitHub + 🔎 See on GitHub
@@ -168,21 +168,21 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/deprecation/constant_accessor.rb, line 32
           def const_missing(missing_const_name)
             if class_variable_defined?(:@@_deprecated_constants)
               if (replacement = class_variable_get(:@@_deprecated_constants)[missing_const_name.to_s])
-                replacement[:deprecator].warn(replacement[:message] || "#{name}::#{missing_const_name} is deprecated! Use #{replacement[:new]} instead.", caller_locations)
+                replacement[:deprecator].warn(replacement[:message] || "#{name}::#{missing_const_name} is deprecated! Use #{replacement[:new]} instead.", caller_locations)
                 return ActiveSupport::Inflector.constantize(replacement[:new].to_s)
               end
             end
             super
           end
- See on GitHub + 🔎 See on GitHub
@@ -209,18 +209,18 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/deprecation/constant_accessor.rb, line 42
           def deprecate_constant(const_name, new_constant, message: nil, deprecator: nil)
-            ActiveSupport.deprecator.warn("DeprecatedConstantAccessor.deprecate_constant without a deprecator is deprecated") unless deprecator
+            ActiveSupport.deprecator.warn("DeprecatedConstantAccessor.deprecate_constant without a deprecator is deprecated") unless deprecator
             deprecator ||= ActiveSupport::Deprecation._instance
             class_variable_set(:@@_deprecated_constants, {}) unless class_variable_defined?(:@@_deprecated_constants)
             class_variable_get(:@@_deprecated_constants)[const_name.to_s] = { new: new_constant, message: message, deprecator: deprecator }
           end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/Deprecation/DeprecatedConstantProxy.html b/src/classes/ActiveSupport/Deprecation/DeprecatedConstantProxy.html index e2953a2ed0..8872523f86 100644 --- a/src/classes/ActiveSupport/Deprecation/DeprecatedConstantProxy.html +++ b/src/classes/ActiveSupport/Deprecation/DeprecatedConstantProxy.html @@ -126,18 +126,18 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/deprecation/proxy_wrappers.rb, line 123
-      def self.new(*args, **options, &block)
+      def self.new(*args, **options, &block)
         object = args.first
 
         return object unless object
         super
       end
- See on GitHub + 🔎 See on GitHub
@@ -164,21 +164,21 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/deprecation/proxy_wrappers.rb, line 130
-      def initialize(old_const, new_const, deprecator = nil, message: "#{old_const} is deprecated! Use #{new_const} instead.")
-        Kernel.require "active_support/inflector/methods"
+      def initialize(old_const, new_const, deprecator = nil, message: "#{old_const} is deprecated! Use #{new_const} instead.")
+        Kernel.require "active_support/inflector/methods"
 
         @old_const = old_const
         @new_const = new_const
-        ActiveSupport.deprecator.warn("DeprecatedConstantProxy without a deprecator is deprecated") unless deprecator
+        ActiveSupport.deprecator.warn("DeprecatedConstantProxy without a deprecator is deprecated") unless deprecator
         @deprecator = deprecator || ActiveSupport::Deprecation._instance
         @message = message
       end
- See on GitHub + 🔎 See on GitHub
@@ -209,7 +209,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/deprecation/proxy_wrappers.rb, line 161
@@ -218,7 +218,7 @@ 

base.include(target) end

- See on GitHub + 🔎 See on GitHub
@@ -250,7 +250,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/deprecation/proxy_wrappers.rb, line 157
@@ -258,7 +258,7 @@ 

target.class end

- See on GitHub + 🔎 See on GitHub
@@ -285,7 +285,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/deprecation/proxy_wrappers.rb, line 171
@@ -294,7 +294,7 @@ 

base.extend(target) end

- See on GitHub + 🔎 See on GitHub
@@ -321,7 +321,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/deprecation/proxy_wrappers.rb, line 144
@@ -329,7 +329,7 @@ 

target.inspect end

- See on GitHub + 🔎 See on GitHub
@@ -356,7 +356,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/deprecation/proxy_wrappers.rb, line 166
@@ -365,7 +365,7 @@ 

base.prepend(target) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/Deprecation/DeprecatedInstanceVariableProxy.html b/src/classes/ActiveSupport/Deprecation/DeprecatedInstanceVariableProxy.html index 0575e23d05..fea43f8857 100644 --- a/src/classes/ActiveSupport/Deprecation/DeprecatedInstanceVariableProxy.html +++ b/src/classes/ActiveSupport/Deprecation/DeprecatedInstanceVariableProxy.html @@ -119,19 +119,19 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/deprecation/proxy_wrappers.rb, line 89
-      def initialize(instance, method, var = "@#{method}", deprecator = nil)
+      def initialize(instance, method, var = "@#{method}", deprecator = nil)
         @instance = instance
         @method = method
         @var = var
-        ActiveSupport.deprecator.warn("DeprecatedInstanceVariableProxy without a deprecator is deprecated") unless deprecator
+        ActiveSupport.deprecator.warn("DeprecatedInstanceVariableProxy without a deprecator is deprecated") unless deprecator
         @deprecator = deprecator || ActiveSupport::Deprecation._instance
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/Deprecation/DeprecatedObjectProxy.html b/src/classes/ActiveSupport/Deprecation/DeprecatedObjectProxy.html index e2543b685f..a94de25565 100644 --- a/src/classes/ActiveSupport/Deprecation/DeprecatedObjectProxy.html +++ b/src/classes/ActiveSupport/Deprecation/DeprecatedObjectProxy.html @@ -98,18 +98,18 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/deprecation/proxy_wrappers.rb, line 39
       def initialize(object, message, deprecator = nil)
         @object = object
         @message = message
-        ActiveSupport.deprecator.warn("DeprecatedObjectProxy without a deprecator is deprecated") unless deprecator
+        ActiveSupport.deprecator.warn("DeprecatedObjectProxy without a deprecator is deprecated") unless deprecator
         @deprecator = deprecator || ActiveSupport::Deprecation._instance
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/Deprecation/Deprecators.html b/src/classes/ActiveSupport/Deprecation/Deprecators.html index cc64351fcf..dc6fa852a4 100644 --- a/src/classes/ActiveSupport/Deprecation/Deprecators.html +++ b/src/classes/ActiveSupport/Deprecation/Deprecators.html @@ -125,7 +125,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/deprecation/deprecators.rb, line 10
@@ -134,7 +134,7 @@ 

@deprecators = {} end

- See on GitHub + 🔎 See on GitHub
@@ -165,7 +165,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/deprecation/deprecators.rb, line 16
@@ -173,7 +173,7 @@ 

@deprecators[name] end

- See on GitHub + 🔎 See on GitHub
@@ -211,7 +211,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/deprecation/deprecators.rb, line 34
@@ -220,7 +220,7 @@ 

@deprecators[name] = deprecator end

- See on GitHub + 🔎 See on GitHub
@@ -249,7 +249,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/deprecation/deprecators.rb, line 60
@@ -257,7 +257,7 @@ 

set_option(:behavior, behavior) end

- See on GitHub + 🔎 See on GitHub
@@ -284,7 +284,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/deprecation/deprecators.rb, line 52
@@ -292,7 +292,7 @@ 

set_option(:debug, debug) end

- See on GitHub + 🔎 See on GitHub
@@ -321,7 +321,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/deprecation/deprecators.rb, line 68
@@ -329,7 +329,7 @@ 

set_option(:disallowed_behavior, disallowed_behavior) end

- See on GitHub + 🔎 See on GitHub
@@ -358,7 +358,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/deprecation/deprecators.rb, line 76
@@ -366,7 +366,7 @@ 

set_option(:disallowed_warnings, disallowed_warnings) end

- See on GitHub + 🔎 See on GitHub
@@ -393,16 +393,16 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/deprecation/deprecators.rb, line 41
-      def each(&block)
+      def each(&block)
         return to_enum(__method__) unless block
-        @deprecators.each_value(&block)
+        @deprecators.each_value(&block)
       end
- See on GitHub + 🔎 See on GitHub
@@ -431,18 +431,18 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/deprecation/deprecators.rb, line 84
-      def silence(&block)
+      def silence(&block)
         each { |deprecator| deprecator.begin_silence }
         block.call
       ensure
         each { |deprecator| deprecator.end_silence }
       end
- See on GitHub + 🔎 See on GitHub
@@ -469,7 +469,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/deprecation/deprecators.rb, line 47
@@ -477,7 +477,7 @@ 

set_option(:silenced, silenced) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/Deprecation/Disallowed.html b/src/classes/ActiveSupport/Deprecation/Disallowed.html index 304f627c2b..34e29323bd 100644 --- a/src/classes/ActiveSupport/Deprecation/Disallowed.html +++ b/src/classes/ActiveSupport/Deprecation/Disallowed.html @@ -96,7 +96,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/deprecation/disallowed.rb, line 21
@@ -104,7 +104,7 @@ 

@disallowed_warnings ||= [] end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/Deprecation/MethodWrapper.html b/src/classes/ActiveSupport/Deprecation/MethodWrapper.html index f19ee8fa5a..7bc13b4792 100644 --- a/src/classes/ActiveSupport/Deprecation/MethodWrapper.html +++ b/src/classes/ActiveSupport/Deprecation/MethodWrapper.html @@ -104,7 +104,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/deprecation/method_wrappers.rb, line 35
@@ -119,18 +119,18 @@ 

if target_module.method_defined?(method_name) || target_module.private_method_defined?(method_name) method = target_module.instance_method(method_name) target_module.module_eval do - redefine_method(method_name) do |*args, &block| + redefine_method(method_name) do |*args, &block| deprecator.deprecation_warning(method_name, message) - method.bind_call(self, *args, &block) + method.bind_call(self, *args, &block) end ruby2_keywords(method_name) end else mod ||= Module.new mod.module_eval do - define_method(method_name) do |*args, &block| + define_method(method_name) do |*args, &block| deprecator.deprecation_warning(method_name, message) - super(*args, &block) + super(*args, &block) end ruby2_keywords(method_name) end @@ -140,7 +140,7 @@

target_module.prepend(mod) if mod end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/Deprecation/Reporting.html b/src/classes/ActiveSupport/Deprecation/Reporting.html index 9d51fba90f..92ef03d3ed 100644 --- a/src/classes/ActiveSupport/Deprecation/Reporting.html +++ b/src/classes/ActiveSupport/Deprecation/Reporting.html @@ -75,11 +75,6 @@

Constants

File.expand_path("../../../..", __dir__) + "/" - -   - - - @@ -156,21 +151,21 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/deprecation/reporting.rb, line 89
-      def allow(allowed_warnings = :all, if: true, &block)
+      def allow(allowed_warnings = :all, if: true, &block)
         conditional = binding.local_variable_get(:if)
         conditional = conditional.call if conditional.respond_to?(:call)
         if conditional
-          @explicitly_allowed_warnings.bind(allowed_warnings, &block)
+          @explicitly_allowed_warnings.bind(allowed_warnings, &block)
         else
           yield
         end
       end
- See on GitHub + 🔎 See on GitHub
@@ -197,7 +192,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/deprecation/reporting.rb, line 99
@@ -208,7 +203,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -245,18 +240,18 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/deprecation/reporting.rb, line 41
-      def silence(&block)
+      def silence(&block)
         begin_silence
         block.call
       ensure
         end_silence
       end
- See on GitHub + 🔎 See on GitHub
@@ -283,7 +278,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/deprecation/reporting.rb, line 56
@@ -291,7 +286,7 @@ 

@silenced || @silence_counter.value.nonzero? end

- See on GitHub + 🔎 See on GitHub
@@ -322,7 +317,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/deprecation/reporting.rb, line 18
@@ -339,7 +334,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/DescendantsTracker.html b/src/classes/ActiveSupport/DescendantsTracker.html index daf3dbdc19..ac9668bb46 100644 --- a/src/classes/ActiveSupport/DescendantsTracker.html +++ b/src/classes/ActiveSupport/DescendantsTracker.html @@ -99,7 +99,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/descendants_tracker.rb, line 104
@@ -107,7 +107,7 @@ 

klass.descendants end

- See on GitHub + 🔎 See on GitHub
@@ -134,7 +134,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/descendants_tracker.rb, line 100
@@ -142,7 +142,7 @@ 

klass.subclasses end

- See on GitHub + 🔎 See on GitHub
@@ -173,16 +173,16 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/descendants_tracker.rb, line 109
       def descendants
         subclasses = DescendantsTracker.reject!(self.subclasses)
-        subclasses.concat(subclasses.flat_map(&:descendants))
+        subclasses.concat(subclasses.flat_map(&:descendants))
       end
- See on GitHub + 🔎 See on GitHub
@@ -209,7 +209,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/descendants_tracker.rb, line 175
@@ -217,7 +217,7 @@ 

DescendantsTracker.subclasses(self) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/Duration.html b/src/classes/ActiveSupport/Duration.html index e28e522cbc..52125ad944 100644 --- a/src/classes/ActiveSupport/Duration.html +++ b/src/classes/ActiveSupport/Duration.html @@ -203,11 +203,6 @@

Constants

[:years, :months, :weeks, :days, :hours, :minutes, :seconds].freeze - -   - - - PARTS_IN_SECONDS @@ -223,11 +218,6 @@

Constants

}.freeze - -   - - - SECONDS_PER_DAY @@ -235,11 +225,6 @@

Constants

86400 - -   - - - SECONDS_PER_HOUR @@ -247,11 +232,6 @@

Constants

3600 - -   - - - SECONDS_PER_MINUTE @@ -259,11 +239,6 @@

Constants

60 - -   - - - SECONDS_PER_MONTH @@ -271,11 +246,6 @@

Constants

2629746 - -   - - - SECONDS_PER_WEEK @@ -283,11 +253,6 @@

Constants

604800 - -   - - - SECONDS_PER_YEAR @@ -295,11 +260,6 @@

Constants

31556952 - -   - - - VARIABLE_PARTS @@ -307,11 +267,6 @@

Constants

[:years, :months, :weeks, :days].freeze - -   - - - @@ -361,17 +316,17 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/duration.rb, line 189
       def build(value)
         unless value.is_a?(::Numeric)
-          raise TypeError, "can't build an #{self.name} from a #{value.class.name}"
+          raise TypeError, "can't build an #{self.name} from a #{value.class.name}"
         end
 
         parts = {}
-        remainder_sign = value <=> 0
+        remainder_sign = value <=> 0
         remainder = value.round(9).abs
         variable = false
 
@@ -392,7 +347,7 @@ 

new(value, parts, variable) end

- See on GitHub + 🔎 See on GitHub
@@ -421,7 +376,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/duration.rb, line 144
@@ -430,7 +385,7 @@ 

new(calculate_total_seconds(parts), parts) end

- See on GitHub + 🔎 See on GitHub
@@ -461,7 +416,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/duration.rb, line 307
@@ -475,7 +430,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -502,7 +457,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/duration.rb, line 282
@@ -516,7 +471,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -543,7 +498,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/duration.rb, line 263
@@ -559,7 +514,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -586,7 +541,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/duration.rb, line 277
@@ -594,7 +549,7 @@ 

self + (-other) end

- See on GitHub + 🔎 See on GitHub
@@ -621,7 +576,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/duration.rb, line 293
@@ -637,7 +592,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -664,19 +619,19 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/duration.rb, line 253
-    def <=>(other)
+    def <=>(other)
       if Duration === other
-        value <=> other.value
+        value <=> other.value
       elsif Numeric === other
-        value <=> other
+        value <=> other
       end
     end
- See on GitHub + 🔎 See on GitHub
@@ -703,7 +658,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/duration.rb, line 336
@@ -715,7 +670,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -771,7 +726,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/duration.rb, line 439
@@ -779,7 +734,7 @@ 

sum(-1, time) end

- See on GitHub + 🔎 See on GitHub
@@ -831,15 +786,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/duration.rb, line 421
     def eql?(other)
-      Duration === other && other.value.eql?(value)
+      Duration === other && other.value.eql?(value)
     end
- See on GitHub + 🔎 See on GitHub
@@ -891,7 +846,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/duration.rb, line 425
@@ -899,7 +854,7 @@ 

@value.hash end

- See on GitHub + 🔎 See on GitHub
@@ -929,7 +884,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/duration.rb, line 394
@@ -937,7 +892,7 @@ 

in_seconds / SECONDS_PER_DAY.to_f end

- See on GitHub + 🔎 See on GitHub
@@ -967,7 +922,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/duration.rb, line 387
@@ -975,7 +930,7 @@ 

in_seconds / SECONDS_PER_HOUR.to_f end

- See on GitHub + 🔎 See on GitHub
@@ -1005,7 +960,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/duration.rb, line 380
@@ -1013,7 +968,7 @@ 

in_seconds / SECONDS_PER_MINUTE.to_f end

- See on GitHub + 🔎 See on GitHub
@@ -1043,7 +998,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/duration.rb, line 408
@@ -1051,7 +1006,7 @@ 

in_seconds / SECONDS_PER_MONTH.to_f end

- See on GitHub + 🔎 See on GitHub
@@ -1106,7 +1061,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/duration.rb, line 401
@@ -1114,7 +1069,7 @@ 

in_seconds / SECONDS_PER_WEEK.to_f end

- See on GitHub + 🔎 See on GitHub
@@ -1144,7 +1099,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/duration.rb, line 415
@@ -1152,7 +1107,7 @@ 

in_seconds / SECONDS_PER_YEAR.to_f end

- See on GitHub + 🔎 See on GitHub
@@ -1179,7 +1134,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/duration.rb, line 468
@@ -1187,7 +1142,7 @@ 

ISO8601Serializer.new(self, precision: precision).serialize end

- See on GitHub + 🔎 See on GitHub
@@ -1214,7 +1169,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/duration.rb, line 236
@@ -1222,7 +1177,7 @@ 

@parts.dup end

- See on GitHub + 🔎 See on GitHub
@@ -1253,7 +1208,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/duration.rb, line 431
@@ -1261,7 +1216,7 @@ 

sum(1, time) end

- See on GitHub + 🔎 See on GitHub
@@ -1308,7 +1263,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/duration.rb, line 372
@@ -1316,7 +1271,7 @@ 

@value.to_i end

- See on GitHub + 🔎 See on GitHub
@@ -1346,7 +1301,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/duration.rb, line 348
@@ -1354,7 +1309,7 @@ 

@value.to_s end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/EncryptedConfiguration.html b/src/classes/ActiveSupport/EncryptedConfiguration.html index 90761dd19d..426a06eca2 100644 --- a/src/classes/ActiveSupport/EncryptedConfiguration.html +++ b/src/classes/ActiveSupport/EncryptedConfiguration.html @@ -131,7 +131,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/encrypted_configuration.rb, line 48
@@ -142,7 +142,7 @@ 

@options = nil end

- See on GitHub + 🔎 See on GitHub
@@ -180,7 +180,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/encrypted_configuration.rb, line 75
@@ -188,7 +188,7 @@ 

@config ||= deserialize(read).deep_symbolize_keys end

- See on GitHub + 🔎 See on GitHub
@@ -215,7 +215,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/encrypted_configuration.rb, line 56
@@ -223,10 +223,10 @@ 

super rescue ActiveSupport::EncryptedFile::MissingContentError # Allow a config to be started without a file present - "" + "" end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/EncryptedConfiguration/InvalidContentError.html b/src/classes/ActiveSupport/EncryptedConfiguration/InvalidContentError.html index 58543ff44f..ed4cfb8c5b 100644 --- a/src/classes/ActiveSupport/EncryptedConfiguration/InvalidContentError.html +++ b/src/classes/ActiveSupport/EncryptedConfiguration/InvalidContentError.html @@ -87,15 +87,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/encrypted_configuration.rb, line 37
       def initialize(content_path)
-        super "Invalid YAML in '#{content_path}'."
+        super "Invalid YAML in '#{content_path}'."
       end
- See on GitHub + 🔎 See on GitHub
@@ -126,15 +126,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/encrypted_configuration.rb, line 41
       def message
-        cause.is_a?(Psych::SyntaxError) ? "#{super}\n\n  #{cause.message}" : super
+        cause.is_a?(Psych::SyntaxError) ? "#{super}\n\n  #{cause.message}" : super
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/EncryptedFile.html b/src/classes/ActiveSupport/EncryptedFile.html index a2614a6c2c..de18cfa499 100644 --- a/src/classes/ActiveSupport/EncryptedFile.html +++ b/src/classes/ActiveSupport/EncryptedFile.html @@ -106,11 +106,6 @@

Constants

"aes-128-gcm" - -   - - - @@ -180,7 +175,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/encrypted_file.rb, line 31
@@ -188,7 +183,7 @@ 

SecureRandom.hex(ActiveSupport::MessageEncryptor.key_len(CIPHER)) end

- See on GitHub + 🔎 See on GitHub
@@ -215,7 +210,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/encrypted_file.rb, line 42
@@ -225,7 +220,7 @@ 

@env_key, @raise_if_missing_key = env_key, raise_if_missing_key end

- See on GitHub + 🔎 See on GitHub
@@ -256,15 +251,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/encrypted_file.rb, line 83
-    def change(&block)
-      writing read, &block
+    def change(&block)
+      writing read, &block
     end
- See on GitHub + 🔎 See on GitHub
@@ -291,7 +286,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/encrypted_file.rb, line 52
@@ -299,7 +294,7 @@ 

read_env_key || read_key_file || handle_missing_key end

- See on GitHub + 🔎 See on GitHub
@@ -326,7 +321,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/encrypted_file.rb, line 58
@@ -334,7 +329,7 @@ 

read_env_key || read_key_file end

- See on GitHub + 🔎 See on GitHub
@@ -370,19 +365,19 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/encrypted_file.rb, line 70
     def read
-      if !key.nil? && content_path.exist?
+      if !key.nil? && content_path.exist?
         decrypt content_path.binread
       else
         raise MissingContentError, content_path
       end
     end
- See on GitHub + 🔎 See on GitHub
@@ -409,16 +404,16 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/encrypted_file.rb, line 78
     def write(contents)
-      IO.binwrite "#{content_path}.tmp", encrypt(contents)
-      FileUtils.mv "#{content_path}.tmp", content_path
+      IO.binwrite "#{content_path}.tmp", encrypt(contents)
+      FileUtils.mv "#{content_path}.tmp", content_path
     end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/EncryptedFile/InvalidKeyLengthError.html b/src/classes/ActiveSupport/EncryptedFile/InvalidKeyLengthError.html index 424db9b515..a64eb59fb1 100644 --- a/src/classes/ActiveSupport/EncryptedFile/InvalidKeyLengthError.html +++ b/src/classes/ActiveSupport/EncryptedFile/InvalidKeyLengthError.html @@ -83,15 +83,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/encrypted_file.rb, line 24
       def initialize
-        super "Encryption key must be exactly #{EncryptedFile.expected_key_length} characters."
+        super "Encryption key must be exactly #{EncryptedFile.expected_key_length} characters."
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/EncryptedFile/MissingContentError.html b/src/classes/ActiveSupport/EncryptedFile/MissingContentError.html index 2cdbba5091..3f994c15da 100644 --- a/src/classes/ActiveSupport/EncryptedFile/MissingContentError.html +++ b/src/classes/ActiveSupport/EncryptedFile/MissingContentError.html @@ -83,15 +83,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/encrypted_file.rb, line 10
       def initialize(content_path)
-        super "Missing encrypted content file in #{content_path}."
+        super "Missing encrypted content file in #{content_path}."
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/EncryptedFile/MissingKeyError.html b/src/classes/ActiveSupport/EncryptedFile/MissingKeyError.html index 80853de469..30b756dce9 100644 --- a/src/classes/ActiveSupport/EncryptedFile/MissingKeyError.html +++ b/src/classes/ActiveSupport/EncryptedFile/MissingKeyError.html @@ -83,17 +83,17 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/encrypted_file.rb, line 16
       def initialize(key_path:, env_key:)
         super \
-          "Missing encryption key to decrypt file with. " +
-          "Ask your team for your master key and write it to #{key_path} or put it in the ENV['#{env_key}']."
+          "Missing encryption key to decrypt file with. " +
+          "Ask your team for your master key and write it to #{key_path} or put it in the ENV['#{env_key}']."
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/ErrorReporter.html b/src/classes/ActiveSupport/ErrorReporter.html index 2422fc426f..7d32ccd424 100644 --- a/src/classes/ActiveSupport/ErrorReporter.html +++ b/src/classes/ActiveSupport/ErrorReporter.html @@ -137,11 +137,6 @@

Constants

"application" - -   - - - SEVERITIES @@ -149,11 +144,6 @@

Constants

%i(error warning info) - -   - - - @@ -199,7 +189,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/error_reporter.rb, line 32
@@ -208,7 +198,7 @@ 

@logger = logger end

- See on GitHub + 🔎 See on GitHub
@@ -241,13 +231,13 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/error_reporter.rb, line 147
     def disable(subscriber)
       disabled_subscribers = (ActiveSupport::IsolatedExecutionState[self] ||= [])
-      disabled_subscribers << subscriber
+      disabled_subscribers << subscriber
       begin
         yield
       ensure
@@ -255,7 +245,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -314,19 +304,19 @@

Options

- Source code + 📝 Source code
# File activesupport/lib/active_support/error_reporter.rb, line 74
     def handle(*error_classes, severity: :warning, context: {}, fallback: nil, source: DEFAULT_SOURCE)
       error_classes = [StandardError] if error_classes.blank?
       yield
-    rescue *error_classes => error
+    rescue *error_classes => error
       report(error, handled: true, severity: severity, context: context, source: source)
       fallback.call if fallback
     end
- See on GitHub + 🔎 See on GitHub
@@ -378,19 +368,19 @@

Options

- Source code + 📝 Source code
# File activesupport/lib/active_support/error_reporter.rb, line 110
     def record(*error_classes, severity: :error, context: {}, source: DEFAULT_SOURCE)
       error_classes = [StandardError] if error_classes.blank?
       yield
-    rescue *error_classes => error
+    rescue *error_classes => error
       report(error, handled: false, severity: severity, context: context, source: source)
       raise
     end
- See on GitHub + 🔎 See on GitHub
@@ -420,7 +410,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/error_reporter.rb, line 172
@@ -428,20 +418,20 @@ 

return if error.instance_variable_defined?(:@__rails_error_reported) unless SEVERITIES.include?(severity) - raise ArgumentError, "severity must be one of #{SEVERITIES.map(&:inspect).join(", ")}, got: #{severity.inspect}" + raise ArgumentError, "severity must be one of #{SEVERITIES.map(&:inspect).join(", ")}, got: #{severity.inspect}" end full_context = ActiveSupport::ExecutionContext.to_h.merge(context) disabled_subscribers = ActiveSupport::IsolatedExecutionState[self] @subscribers.each do |subscriber| - unless disabled_subscribers&.any? { |s| s === subscriber } + unless disabled_subscribers&.any? { |s| s === subscriber } subscriber.report(error, handled: handled, severity: severity, context: full_context, source: source) end - rescue => subscriber_error + rescue => subscriber_error if logger logger.fatal( - "Error subscriber raised an error: #{subscriber_error.message} (#{subscriber_error.class})\n" + - subscriber_error.backtrace.join("\n") + "Error subscriber raised an error: #{subscriber_error.message} (#{subscriber_error.class})\n" + + subscriber_error.backtrace.join("\n") ) else raise @@ -455,7 +445,7 @@

nil end

- See on GitHub + 🔎 See on GitHub
@@ -485,7 +475,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/error_reporter.rb, line 163
@@ -493,7 +483,7 @@ 

ActiveSupport::ExecutionContext.set(...) end

- See on GitHub + 🔎 See on GitHub
@@ -525,18 +515,18 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/error_reporter.rb, line 123
     def subscribe(subscriber)
       unless subscriber.respond_to?(:report)
-        raise ArgumentError, "Error subscribers must respond to #report"
+        raise ArgumentError, "Error subscribers must respond to #report"
       end
-      @subscribers << subscriber
+      @subscribers << subscriber
     end
- See on GitHub + 🔎 See on GitHub
@@ -571,7 +561,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/error_reporter.rb, line 138
@@ -579,7 +569,7 @@ 

@subscribers.delete_if { |s| subscriber === s } end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/ErrorReporter/TestHelper/ErrorSubscriber.html b/src/classes/ActiveSupport/ErrorReporter/TestHelper/ErrorSubscriber.html index eabf834ab6..898dbaf45c 100644 --- a/src/classes/ActiveSupport/ErrorReporter/TestHelper/ErrorSubscriber.html +++ b/src/classes/ActiveSupport/ErrorReporter/TestHelper/ErrorSubscriber.html @@ -101,7 +101,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/error_reporter/test_helper.rb, line 7
@@ -109,7 +109,7 @@ 

@events = [] end

- See on GitHub + 🔎 See on GitHub
@@ -140,15 +140,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/error_reporter/test_helper.rb, line 11
     def report(error, handled:, severity:, source:, context:)
-      @events << [error, handled, severity, source, context]
+      @events << [error, handled, severity, source, context]
     end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/ExecutionWrapper.html b/src/classes/ActiveSupport/ExecutionWrapper.html index 50d19b7247..3de1cf01c7 100644 --- a/src/classes/ActiveSupport/ExecutionWrapper.html +++ b/src/classes/ActiveSupport/ExecutionWrapper.html @@ -119,7 +119,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/execution_wrapper.rb, line 51
@@ -133,7 +133,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -164,14 +164,14 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/execution_wrapper.rb, line 67
     def self.run!(reset: false)
       if reset
         lost_instance = IsolatedExecutionState.delete(active_key)
-        lost_instance&.complete!
+        lost_instance&.complete!
       else
         return Null if active?
       end
@@ -187,7 +187,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -214,15 +214,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/execution_wrapper.rb, line 22
-    def self.to_complete(*args, &block)
-      set_callback(:complete, *args, &block)
+    def self.to_complete(*args, &block)
+      set_callback(:complete, *args, &block)
     end
- See on GitHub + 🔎 See on GitHub
@@ -249,15 +249,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/execution_wrapper.rb, line 18
-    def self.to_run(*args, &block)
-      set_callback(:run, *args, &block)
+    def self.to_run(*args, &block)
+      set_callback(:run, *args, &block)
     end
- See on GitHub + 🔎 See on GitHub
@@ -284,25 +284,25 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/execution_wrapper.rb, line 87
-    def self.wrap(source: "application.active_support")
+    def self.wrap(source: "application.active_support")
       return yield if active?
 
       instance = run!
       begin
         yield
-      rescue => error
-        error_reporter&.report(error, handled: false, source: source)
+      rescue => error
+        error_reporter&.report(error, handled: false, source: source)
         raise
       ensure
         instance.complete!
       end
     end
- See on GitHub + 🔎 See on GitHub
@@ -335,7 +335,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/execution_wrapper.rb, line 136
@@ -345,7 +345,7 @@ 

IsolatedExecutionState.delete(self.class.active_key) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/FileUpdateChecker.html b/src/classes/ActiveSupport/FileUpdateChecker.html index 29e3675197..68fc479be5 100644 --- a/src/classes/ActiveSupport/FileUpdateChecker.html +++ b/src/classes/ActiveSupport/FileUpdateChecker.html @@ -127,13 +127,13 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/file_update_checker.rb, line 44
-    def initialize(files, dirs = {}, &block)
+    def initialize(files, dirs = {}, &block)
       unless block
-        raise ArgumentError, "A block is required to initialize a FileUpdateChecker"
+        raise ArgumentError, "A block is required to initialize a FileUpdateChecker"
       end
 
       @files = files.freeze
@@ -147,7 +147,7 @@ 

@last_update_at = updated_at(@last_watched) end

- See on GitHub + 🔎 See on GitHub
@@ -178,7 +178,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/file_update_checker.rb, line 82
@@ -191,7 +191,7 @@ 

@updated_at = nil end

- See on GitHub + 🔎 See on GitHub
@@ -218,7 +218,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/file_update_checker.rb, line 92
@@ -232,7 +232,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -259,7 +259,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/file_update_checker.rb, line 63
@@ -270,7 +270,7 @@ 

true else current_updated_at = updated_at(current_watched) - if @last_update_at < current_updated_at + if @last_update_at < current_updated_at @watched = current_watched @updated_at = current_updated_at true @@ -280,7 +280,7 @@

end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/ForkTracker/ModernCoreExt.html b/src/classes/ActiveSupport/ForkTracker/ModernCoreExt.html index cfd2f431ca..c8571c7e4c 100644 --- a/src/classes/ActiveSupport/ForkTracker/ModernCoreExt.html +++ b/src/classes/ActiveSupport/ForkTracker/ModernCoreExt.html @@ -78,7 +78,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/fork_tracker.rb, line 6
@@ -90,7 +90,7 @@ 

pid end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/Gzip.html b/src/classes/ActiveSupport/Gzip.html index 2c203a53bc..d8000fc80b 100644 --- a/src/classes/ActiveSupport/Gzip.html +++ b/src/classes/ActiveSupport/Gzip.html @@ -109,7 +109,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/gzip.rb, line 32
@@ -121,7 +121,7 @@ 

output.string end

- See on GitHub + 🔎 See on GitHub
@@ -148,15 +148,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/gzip.rb, line 27
     def self.decompress(source)
-      Zlib::GzipReader.wrap(StringIO.new(source), &:read)
+      Zlib::GzipReader.wrap(StringIO.new(source), &:read)
     end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/Gzip/Stream.html b/src/classes/ActiveSupport/Gzip/Stream.html index dcd00980f4..fe327c52b1 100644 --- a/src/classes/ActiveSupport/Gzip/Stream.html +++ b/src/classes/ActiveSupport/Gzip/Stream.html @@ -87,16 +87,16 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/gzip.rb, line 19
       def initialize(*)
         super
-        set_encoding "BINARY"
+        set_encoding "BINARY"
       end
- See on GitHub + 🔎 See on GitHub
@@ -127,13 +127,13 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/gzip.rb, line 23
       def close; rewind; end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/HashWithIndifferentAccess.html b/src/classes/ActiveSupport/HashWithIndifferentAccess.html index 93ea5e1b36..9470961838 100644 --- a/src/classes/ActiveSupport/HashWithIndifferentAccess.html +++ b/src/classes/ActiveSupport/HashWithIndifferentAccess.html @@ -327,7 +327,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/hash_with_indifferent_access.rb, line 85
@@ -335,7 +335,7 @@ 

new.merge!(Hash[*args]) end

- See on GitHub + 🔎 See on GitHub
@@ -362,7 +362,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/hash_with_indifferent_access.rb, line 70
@@ -381,7 +381,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -420,7 +420,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/hash_with_indifferent_access.rb, line 168
@@ -428,7 +428,7 @@ 

super(convert_key(key)) end

- See on GitHub + 🔎 See on GitHub
@@ -465,7 +465,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/hash_with_indifferent_access.rb, line 98
@@ -473,7 +473,7 @@ 

regular_writer(convert_key(key), convert_value(value, conversion: :assignment)) end

- See on GitHub + 🔎 See on GitHub
@@ -508,7 +508,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/hash_with_indifferent_access.rb, line 181
@@ -516,7 +516,7 @@ 

super(convert_key(key)) end

- See on GitHub + 🔎 See on GitHub
@@ -543,15 +543,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/hash_with_indifferent_access.rb, line 375
     def compact
-      dup.tap(&:compact!)
+      dup.tap(&:compact!)
     end
- See on GitHub + 🔎 See on GitHub
@@ -578,13 +578,13 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/hash_with_indifferent_access.rb, line 319
     def deep_stringify_keys; dup end
- See on GitHub + 🔎 See on GitHub
@@ -611,13 +611,13 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/hash_with_indifferent_access.rb, line 317
     def deep_stringify_keys!; self end
- See on GitHub + 🔎 See on GitHub
@@ -644,13 +644,13 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/hash_with_indifferent_access.rb, line 324
     def deep_symbolize_keys; to_hash.deep_symbolize_keys! end
- See on GitHub + 🔎 See on GitHub
@@ -686,7 +686,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/hash_with_indifferent_access.rb, line 223
@@ -698,7 +698,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -725,7 +725,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/hash_with_indifferent_access.rb, line 303
@@ -733,7 +733,7 @@ 

super(convert_key(key)) end

- See on GitHub + 🔎 See on GitHub
@@ -768,16 +768,16 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/hash_with_indifferent_access.rb, line 208
     def dig(*args)
-      args[0] = convert_key(args[0]) if args.size > 0
+      args[0] = convert_key(args[0]) if args.size > 0
       super(*args)
     end
- See on GitHub + 🔎 See on GitHub
@@ -812,7 +812,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/hash_with_indifferent_access.rb, line 264
@@ -822,7 +822,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -858,7 +858,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/hash_with_indifferent_access.rb, line 311
@@ -866,7 +866,7 @@ 

dup.except!(*keys) end

- See on GitHub + 🔎 See on GitHub
@@ -893,7 +893,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/hash_with_indifferent_access.rb, line 58
@@ -901,7 +901,7 @@ 

true end

- See on GitHub + 🔎 See on GitHub
@@ -937,7 +937,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/hash_with_indifferent_access.rb, line 195
@@ -945,7 +945,7 @@ 

super(convert_key(key), *extras) end

- See on GitHub + 🔎 See on GitHub
@@ -980,16 +980,16 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/hash_with_indifferent_access.rb, line 251
-    def fetch_values(*indices, &block)
+    def fetch_values(*indices, &block)
       indices.map! { |key| convert_key(key) }
       super
     end
- See on GitHub + 🔎 See on GitHub
@@ -1076,7 +1076,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/hash_with_indifferent_access.rb, line 151
@@ -1084,7 +1084,7 @@ 

super(convert_key(key)) end

- See on GitHub + 🔎 See on GitHub
@@ -1136,15 +1136,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/hash_with_indifferent_access.rb, line 273
-    def merge(*hashes, &block)
-      dup.update(*hashes, &block)
+    def merge(*hashes, &block)
+      dup.update(*hashes, &block)
     end
- See on GitHub + 🔎 See on GitHub
@@ -1196,7 +1196,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/hash_with_indifferent_access.rb, line 66
@@ -1204,7 +1204,7 @@ 

self end

- See on GitHub + 🔎 See on GitHub
@@ -1281,16 +1281,16 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/hash_with_indifferent_access.rb, line 332
-    def reject(*args, &block)
+    def reject(*args, &block)
       return to_enum(:reject) unless block_given?
-      dup.tap { |hash| hash.reject!(*args, &block) }
+      dup.tap { |hash| hash.reject!(*args, &block) }
     end
- See on GitHub + 🔎 See on GitHub
@@ -1321,7 +1321,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/hash_with_indifferent_access.rb, line 298
@@ -1329,7 +1329,7 @@ 

super(self.class.new(other_hash)) end

- See on GitHub + 🔎 See on GitHub
@@ -1365,7 +1365,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/hash_with_indifferent_access.rb, line 283
@@ -1373,7 +1373,7 @@ 

super(self.class.new(other_hash)) end

- See on GitHub + 🔎 See on GitHub
@@ -1404,7 +1404,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/hash_with_indifferent_access.rb, line 289
@@ -1412,7 +1412,7 @@ 

super(self.class.new(other_hash)) end

- See on GitHub + 🔎 See on GitHub
@@ -1439,16 +1439,16 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/hash_with_indifferent_access.rb, line 327
-    def select(*args, &block)
+    def select(*args, &block)
       return to_enum(:select) unless block_given?
-      dup.tap { |hash| hash.select!(*args, &block) }
+      dup.tap { |hash| hash.select!(*args, &block) }
     end
- See on GitHub + 🔎 See on GitHub
@@ -1475,7 +1475,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/hash_with_indifferent_access.rb, line 365
@@ -1484,7 +1484,7 @@ 

self.class.new(super) end

- See on GitHub + 🔎 See on GitHub
@@ -1511,7 +1511,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/hash_with_indifferent_access.rb, line 370
@@ -1520,7 +1520,7 @@ 

super end

- See on GitHub + 🔎 See on GitHub
@@ -1572,13 +1572,13 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/hash_with_indifferent_access.rb, line 318
     def stringify_keys; dup end
- See on GitHub + 🔎 See on GitHub
@@ -1605,13 +1605,13 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/hash_with_indifferent_access.rb, line 316
     def stringify_keys!; self end
- See on GitHub + 🔎 See on GitHub
@@ -1642,13 +1642,13 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/hash_with_indifferent_access.rb, line 322
     def symbolize_keys; to_hash.symbolize_keys! end
- See on GitHub + 🔎 See on GitHub
@@ -1675,7 +1675,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/hash_with_indifferent_access.rb, line 380
@@ -1689,7 +1689,7 @@ 

_new_hash end

- See on GitHub + 🔎 See on GitHub
@@ -1741,13 +1741,13 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/hash_with_indifferent_access.rb, line 325
     def to_options!; self end
- See on GitHub + 🔎 See on GitHub
@@ -1774,16 +1774,16 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/hash_with_indifferent_access.rb, line 344
-    def transform_keys(hash = NOT_GIVEN, &block)
-      return to_enum(:transform_keys) if NOT_GIVEN.equal?(hash) && !block_given?
-      dup.tap { |h| h.transform_keys!(hash, &block) }
+    def transform_keys(hash = NOT_GIVEN, &block)
+      return to_enum(:transform_keys) if NOT_GIVEN.equal?(hash) && !block_given?
+      dup.tap { |h| h.transform_keys!(hash, &block) }
     end
- See on GitHub + 🔎 See on GitHub
@@ -1810,12 +1810,12 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/hash_with_indifferent_access.rb, line 349
-    def transform_keys!(hash = NOT_GIVEN, &block)
-      return to_enum(:transform_keys!) if NOT_GIVEN.equal?(hash) && !block_given?
+    def transform_keys!(hash = NOT_GIVEN, &block)
+      return to_enum(:transform_keys!) if NOT_GIVEN.equal?(hash) && !block_given?
 
       if hash.nil?
         super
@@ -1830,7 +1830,7 @@ 

self end

- See on GitHub + 🔎 See on GitHub
@@ -1857,16 +1857,16 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/hash_with_indifferent_access.rb, line 337
-    def transform_values(&block)
+    def transform_values(&block)
       return to_enum(:transform_values) unless block_given?
-      dup.tap { |hash| hash.transform_values!(&block) }
+      dup.tap { |hash| hash.transform_values!(&block) }
     end
- See on GitHub + 🔎 See on GitHub
@@ -1920,11 +1920,11 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/hash_with_indifferent_access.rb, line 132
-    def update(*other_hashes, &block)
+    def update(*other_hashes, &block)
       if other_hashes.size == 1
         update_with_single_argument(other_hashes.first, block)
       else
@@ -1935,7 +1935,7 @@ 

self end

- See on GitHub + 🔎 See on GitHub
@@ -1968,7 +1968,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/hash_with_indifferent_access.rb, line 237
@@ -1977,7 +1977,7 @@ 

super end

- See on GitHub + 🔎 See on GitHub
@@ -2054,7 +2054,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/hash_with_indifferent_access.rb, line 62
@@ -2062,7 +2062,7 @@ 

dup end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/Inflector.html b/src/classes/ActiveSupport/Inflector.html index 0ffa0cce3d..d66981bb7d 100644 --- a/src/classes/ActiveSupport/Inflector.html +++ b/src/classes/ActiveSupport/Inflector.html @@ -166,11 +166,6 @@

Constants

[Encoding::UTF_8, Encoding::US_ASCII, Encoding::GB18030].freeze - -   - - - @@ -216,7 +211,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/inflector/methods.rb, line 70
@@ -226,19 +221,19 @@ 

if !uppercase_first_letter || uppercase_first_letter == :lower string = string.sub(inflections.acronyms_camelize_regex) { |match| match.downcase! || match } elsif string.match?(/\A[a-z\d]*\z/) - return inflections.acronyms[string]&.dup || string.capitalize + return inflections.acronyms[string]&.dup || string.capitalize else string = string.sub(/^[a-z\d]*/) { |match| inflections.acronyms[match] || match.capitalize! || match } end string.gsub!(/(?:_|(\/))([a-z\d]*)/i) do word = $2 substituted = inflections.acronyms[word] || word.capitalize! || word - $1 ? "::#{substituted}" : substituted + $1 ? "::#{substituted}" : substituted end string end

- See on GitHub + 🔎 See on GitHub
@@ -274,16 +269,16 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/inflector/methods.rb, line 218
     def classify(table_name)
       # strip out any leading schema name
-      camelize(singularize(table_name.to_s.sub(/.*\./, "")))
+      camelize(singularize(table_name.to_s.sub(/.*\./, "")))
     end
- See on GitHub + 🔎 See on GitHub
@@ -326,7 +321,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/inflector/methods.rb, line 289
@@ -334,7 +329,7 @@ 

Object.const_get(camel_cased_word) end

- See on GitHub + 🔎 See on GitHub
@@ -364,15 +359,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/inflector/methods.rb, line 226
     def dasherize(underscored_word)
-      underscored_word.tr("_", "-")
+      underscored_word.tr("_", "-")
     end
- See on GitHub + 🔎 See on GitHub
@@ -408,15 +403,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/inflector/methods.rb, line 256
     def deconstantize(path)
-      path.to_s[0, path.rindex("::") || 0] # implementation based on the one in facets' Module#spacename
+      path.to_s[0, path.rindex("::") || 0] # implementation based on the one in facets' Module#spacename
     end
- See on GitHub + 🔎 See on GitHub
@@ -451,20 +446,20 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/inflector/methods.rb, line 238
     def demodulize(path)
       path = path.to_s
-      if i = path.rindex("::")
+      if i = path.rindex("::")
         path[(i + 2), path.length]
       else
         path
       end
     end
- See on GitHub + 🔎 See on GitHub
@@ -496,15 +491,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/inflector/methods.rb, line 175
     def downcase_first(string)
-      string.length > 0 ? string[0].downcase.concat(string[1..-1]) : ""
+      string.length > 0 ? string[0].downcase.concat(string[1..-1]) : ""
     end
- See on GitHub + 🔎 See on GitHub
@@ -536,15 +531,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/inflector/methods.rb, line 267
     def foreign_key(class_name, separate_class_name_and_id_with_underscore = true)
-      underscore(demodulize(class_name)) + (separate_class_name_and_id_with_underscore ? "_id" : "id")
+      underscore(demodulize(class_name)) + (separate_class_name_and_id_with_underscore ? "_id" : "id")
     end
- See on GitHub + 🔎 See on GitHub
@@ -602,7 +597,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/inflector/methods.rb, line 135
@@ -611,10 +606,10 @@ 

inflections.humans.each { |(rule, replacement)| break if result.sub!(rule, replacement) } - result.tr!("_", " ") + result.tr!("_", " ") result.lstrip! - if !keep_id_suffix && lower_case_and_underscored_word&.end_with?("_id") - result.delete_suffix!(" id") + if !keep_id_suffix && lower_case_and_underscored_word&.end_with?("_id") + result.delete_suffix!(" id") end result.gsub!(/([a-z\d]+)/i) do |match| @@ -632,7 +627,7 @@

result end

- See on GitHub + 🔎 See on GitHub
@@ -664,7 +659,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/inflector/inflections.rb, line 265
@@ -676,7 +671,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -711,15 +706,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/inflector/methods.rb, line 334
     def ordinal(number)
-      I18n.translate("number.nth.ordinals", number: number)
+      I18n.translate("number.nth.ordinals", number: number)
     end
- See on GitHub + 🔎 See on GitHub
@@ -754,15 +749,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/inflector/methods.rb, line 347
     def ordinalize(number)
-      I18n.translate("number.nth.ordinalized", number: number)
+      I18n.translate("number.nth.ordinalized", number: number)
     end
- See on GitHub + 🔎 See on GitHub
@@ -814,11 +809,11 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/inflector/transliterate.rb, line 123
-    def parameterize(string, separator: "-", preserve_case: false, locale: nil)
+    def parameterize(string, separator: "-", preserve_case: false, locale: nil)
       # Replace accented chars with their ASCII equivalents.
       parameterized_string = transliterate(string, locale: locale)
 
@@ -826,7 +821,7 @@ 

parameterized_string.gsub!(/[^a-z0-9\-_]+/i, separator) unless separator.nil? || separator.empty? - if separator == "-" + if separator == "-" re_duplicate_separator = /-{2,}/ re_leading_trailing_separator = /^-|-$/i else @@ -837,14 +832,14 @@

# No more than one of the separator in a row. parameterized_string.gsub!(re_duplicate_separator, separator) # Remove leading/trailing separator. - parameterized_string.gsub!(re_leading_trailing_separator, "") + parameterized_string.gsub!(re_leading_trailing_separator, "") end parameterized_string.downcase! unless preserve_case parameterized_string end

- See on GitHub + 🔎 See on GitHub
@@ -881,7 +876,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/inflector/methods.rb, line 33
@@ -889,7 +884,7 @@ 

apply_inflections(word, inflections(locale).plurals, locale) end

- See on GitHub + 🔎 See on GitHub
@@ -937,21 +932,21 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/inflector/methods.rb, line 315
     def safe_constantize(camel_cased_word)
       constantize(camel_cased_word)
-    rescue NameError => e
-      raise if e.name && !(camel_cased_word.to_s.split("::").include?(e.name.to_s) ||
+    rescue NameError => e
+      raise if e.name && !(camel_cased_word.to_s.split("::").include?(e.name.to_s) ||
         e.name.to_s == camel_cased_word.to_s)
-    rescue LoadError => e
+    rescue LoadError => e
       message = e.respond_to?(:original_message) ? e.original_message : e.message
       raise unless /Unable to autoload constant #{const_regexp(camel_cased_word)}/.match?(message)
     end
- See on GitHub + 🔎 See on GitHub
@@ -988,7 +983,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/inflector/methods.rb, line 50
@@ -996,7 +991,7 @@ 

apply_inflections(word, inflections(locale).singulars, locale) end

- See on GitHub + 🔎 See on GitHub
@@ -1028,7 +1023,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/inflector/methods.rb, line 204
@@ -1036,7 +1031,7 @@ 

pluralize(underscore(class_name)) end

- See on GitHub + 🔎 See on GitHub
@@ -1072,17 +1067,17 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/inflector/methods.rb, line 192
     def titleize(word, keep_id_suffix: false)
-      humanize(underscore(word), keep_id_suffix: keep_id_suffix).gsub(/\b(?
- See on GitHub + 🔎 See on GitHub
@@ -1157,20 +1152,20 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/inflector/transliterate.rb, line 64
-    def transliterate(string, replacement = "?", locale: nil)
-      raise ArgumentError, "Can only transliterate strings. Received #{string.class.name}" unless string.is_a?(String)
-      raise ArgumentError, "Cannot transliterate strings with #{string.encoding} encoding" unless ALLOWED_ENCODINGS_FOR_TRANSLITERATE.include?(string.encoding)
+    def transliterate(string, replacement = "?", locale: nil)
+      raise ArgumentError, "Can only transliterate strings. Received #{string.class.name}" unless string.is_a?(String)
+      raise ArgumentError, "Cannot transliterate strings with #{string.encoding} encoding" unless ALLOWED_ENCODINGS_FOR_TRANSLITERATE.include?(string.encoding)
 
       return string.dup if string.ascii_only?
       string = string.dup if string.frozen?
 
       input_encoding = string.encoding
 
-      # US-ASCII is a subset of UTF-8 so we'll force encoding as UTF-8 if
+      # US-ASCII is a subset of UTF-8 so we'll force encoding as UTF-8 if
       # US-ASCII is given. This way we can let tidy_bytes handle the string
       # in the same way as we do for UTF-8
       string.force_encoding(Encoding::UTF_8) if string.encoding == Encoding::US_ASCII
@@ -1178,7 +1173,7 @@ 

# GB18030 is Unicode compatible but is not a direct mapping so needs to be # transcoded. Using invalid/undef :replace will result in loss of data in # the event of invalid characters, but since tidy_bytes will replace - # invalid/undef with a "?" we're safe to do the same beforehand + # invalid/undef with a "?" we're safe to do the same beforehand string.encode!(Encoding::UTF_8, invalid: :replace, undef: :replace) if string.encoding == Encoding::GB18030 transliterated = I18n.transliterate( @@ -1194,7 +1189,7 @@

transliterated end

- See on GitHub + 🔎 See on GitHub
@@ -1232,21 +1227,21 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/inflector/methods.rb, line 99
     def underscore(camel_cased_word)
       return camel_cased_word.to_s.dup unless /[A-Z-]|::/.match?(camel_cased_word)
-      word = camel_cased_word.to_s.gsub("::", "/")
-      word.gsub!(inflections.acronyms_underscore_regex) { "#{$1 && '_' }#{$2.downcase}" }
-      word.gsub!(/(?<=[A-Z])(?=[A-Z][a-z])|(?<=[a-z\d])(?=[A-Z])/, "_")
-      word.tr!("-", "_")
+      word = camel_cased_word.to_s.gsub("::", "/")
+      word.gsub!(inflections.acronyms_underscore_regex) { "#{$1 && '_' }#{$2.downcase}" }
+      word.gsub!(/(?<=[A-Z])(?=[A-Z][a-z])|(?<=[a-z\d])(?=[A-Z])/, "_")
+      word.tr!("-", "_")
       word.downcase!
       word
     end
- See on GitHub + 🔎 See on GitHub
@@ -1278,15 +1273,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/inflector/methods.rb, line 166
     def upcase_first(string)
-      string.length > 0 ? string[0].upcase.concat(string[1..-1]) : ""
+      string.length > 0 ? string[0].upcase.concat(string[1..-1]) : ""
     end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/Inflector/Inflections.html b/src/classes/ActiveSupport/Inflector/Inflections.html index 5fd3a9f353..83b1aaa686 100644 --- a/src/classes/ActiveSupport/Inflector/Inflections.html +++ b/src/classes/ActiveSupport/Inflector/Inflections.html @@ -198,7 +198,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/inflector/inflections.rb, line 65
@@ -206,7 +206,7 @@ 

@__instance__[locale] ||= new end

- See on GitHub + 🔎 See on GitHub
@@ -233,7 +233,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/inflector/inflections.rb, line 69
@@ -244,7 +244,7 @@ 

instance(locale) end

- See on GitHub + 🔎 See on GitHub
@@ -271,7 +271,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/inflector/inflections.rb, line 80
@@ -280,7 +280,7 @@ 

define_acronym_regex_patterns end

- See on GitHub + 🔎 See on GitHub
@@ -352,7 +352,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/inflector/inflections.rb, line 142
@@ -361,7 +361,7 @@ 

define_acronym_regex_patterns end

- See on GitHub + 🔎 See on GitHub
@@ -392,7 +392,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/inflector/inflections.rb, line 231
@@ -410,11 +410,11 @@ 

when :uncountables @uncountables = Uncountables.new when :plurals, :singulars, :humans - instance_variable_set "@#{scope}", [] + instance_variable_set "@#{scope}", [] end end

- See on GitHub + 🔎 See on GitHub
@@ -445,7 +445,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/inflector/inflections.rb, line 220
@@ -453,7 +453,7 @@ 

@humans.prepend([rule, replacement]) end

- See on GitHub + 🔎 See on GitHub
@@ -484,7 +484,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/inflector/inflections.rb, line 174
@@ -499,11 +499,11 @@ 

prest = plural[1..-1] if s0.upcase == p0.upcase - plural(/(#{s0})#{srest}$/i, '\1' + prest) - plural(/(#{p0})#{prest}$/i, '\1' + prest) + plural(/(#{s0})#{srest}$/i, '\1' + prest) + plural(/(#{p0})#{prest}$/i, '\1' + prest) - singular(/(#{s0})#{srest}$/i, '\1' + srest) - singular(/(#{p0})#{prest}$/i, '\1' + srest) + singular(/(#{s0})#{srest}$/i, '\1' + srest) + singular(/(#{p0})#{prest}$/i, '\1' + srest) else plural(/#{s0.upcase}(?i)#{srest}$/, p0.upcase + prest) plural(/#{s0.downcase}(?i)#{srest}$/, p0.downcase + prest) @@ -517,7 +517,7 @@

end end

- See on GitHub + 🔎 See on GitHub
@@ -544,7 +544,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/inflector/inflections.rb, line 151
@@ -554,7 +554,7 @@ 

@plurals.prepend([rule, replacement]) end

- See on GitHub + 🔎 See on GitHub
@@ -581,7 +581,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/inflector/inflections.rb, line 161
@@ -591,7 +591,7 @@ 

@singulars.prepend([rule, replacement]) end

- See on GitHub + 🔎 See on GitHub
@@ -623,7 +623,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/inflector/inflections.rb, line 208
@@ -631,7 +631,7 @@ 

@uncountables.add(words) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/Inflector/Inflections/Uncountables.html b/src/classes/ActiveSupport/Inflector/Inflections/Uncountables.html index 61d42385b7..42ed0682c2 100644 --- a/src/classes/ActiveSupport/Inflector/Inflections/Uncountables.html +++ b/src/classes/ActiveSupport/Inflector/Inflections/Uncountables.html @@ -99,7 +99,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/inflector/inflections.rb, line 34
@@ -108,7 +108,7 @@ 

super end

- See on GitHub + 🔎 See on GitHub
@@ -139,15 +139,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/inflector/inflections.rb, line 44
-        def <<(*word)
+        def <<(*word)
           add(word)
         end
- See on GitHub + 🔎 See on GitHub
@@ -174,18 +174,18 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/inflector/inflections.rb, line 48
         def add(words)
-          words = words.flatten.map(&:downcase)
+          words = words.flatten.map(&:downcase)
           concat(words)
           @regex_array += words.map { |word| to_regex(word) }
           self
         end
- See on GitHub + 🔎 See on GitHub
@@ -212,7 +212,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/inflector/inflections.rb, line 39
@@ -221,7 +221,7 @@ 

@regex_array.delete(to_regex(entry)) end

- See on GitHub + 🔎 See on GitHub
@@ -248,7 +248,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/inflector/inflections.rb, line 55
@@ -256,7 +256,7 @@ 

@regex_array.any? { |regex| regex.match? str } end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/InheritableOptions.html b/src/classes/ActiveSupport/InheritableOptions.html index 1be88ef804..6ff343c064 100644 --- a/src/classes/ActiveSupport/InheritableOptions.html +++ b/src/classes/ActiveSupport/InheritableOptions.html @@ -109,7 +109,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/ordered_options.rb, line 94
@@ -124,7 +124,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -155,7 +155,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/ordered_options.rb, line 105
@@ -163,7 +163,7 @@ 

self.class.new(self) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/JSON.html b/src/classes/ActiveSupport/JSON.html index 9c167eae1a..c4be74f77a 100644 --- a/src/classes/ActiveSupport/JSON.html +++ b/src/classes/ActiveSupport/JSON.html @@ -79,11 +79,6 @@

Constants

/\A(?:\d{4}-\d{2}-\d{2}|\d{4}-\d{1,2}-\d{1,2}[T \t]+\d{1,2}:\d{2}:\d{2}(\.[0-9]*)?(([ \t]*)Z|[-+]\d{2}?(:\d{2})?)?)\z/ - -   - - - DATE_REGEX @@ -135,7 +130,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/json/decoding.rb, line 22
@@ -149,7 +144,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -205,7 +200,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/json/encoding.rb, line 22
@@ -213,7 +208,7 @@ 

Encoding.json_encoder.new(options).encode(value) end

- See on GitHub + 🔎 See on GitHub
@@ -272,7 +267,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/json/decoding.rb, line 43
@@ -280,7 +275,7 @@ 

::JSON::ParserError end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/KeyGenerator.html b/src/classes/ActiveSupport/KeyGenerator.html index edd3d908cf..f43c076102 100644 --- a/src/classes/ActiveSupport/KeyGenerator.html +++ b/src/classes/ActiveSupport/KeyGenerator.html @@ -103,7 +103,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/key_generator.rb, line 23
@@ -111,7 +111,7 @@ 

@hash_digest_class ||= OpenSSL::Digest::SHA1 end

- See on GitHub + 🔎 See on GitHub
@@ -138,19 +138,19 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/key_generator.rb, line 15
       def hash_digest_class=(klass)
-        if klass.kind_of?(Class) && klass < OpenSSL::Digest
+        if klass.kind_of?(Class) && klass < OpenSSL::Digest
           @hash_digest_class = klass
         else
-          raise ArgumentError, "#{klass} is expected to be an OpenSSL::Digest subclass"
+          raise ArgumentError, "#{klass} is expected to be an OpenSSL::Digest subclass"
         end
       end
- See on GitHub + 🔎 See on GitHub
@@ -177,7 +177,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/key_generator.rb, line 28
@@ -191,7 +191,7 @@ 

@hash_digest_class = options[:hash_digest_class] || self.class.hash_digest_class end

- See on GitHub + 🔎 See on GitHub
@@ -222,7 +222,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/key_generator.rb, line 41
@@ -230,7 +230,7 @@ 

OpenSSL::PKCS5.pbkdf2_hmac(@secret, salt, @iterations, key_size, @hash_digest_class.new) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/LazyLoadHooks.html b/src/classes/ActiveSupport/LazyLoadHooks.html index 5dffd3f662..09fb9164ec 100644 --- a/src/classes/ActiveSupport/LazyLoadHooks.html +++ b/src/classes/ActiveSupport/LazyLoadHooks.html @@ -125,19 +125,19 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/lazy_load_hooks.rb, line 60
-    def on_load(name, options = {}, &block)
+    def on_load(name, options = {}, &block)
       @loaded[name].each do |base|
         execute_hook(name, base, options, block)
       end
 
-      @load_hooks[name] << [block, options]
+      @load_hooks[name] << [block, options]
     end
- See on GitHub + 🔎 See on GitHub
@@ -169,18 +169,18 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/lazy_load_hooks.rb, line 75
     def run_load_hooks(name, base = Object)
-      @loaded[name] << base
+      @loaded[name] << base
       @load_hooks[name].each do |hook, options|
         execute_hook(name, base, options, hook)
       end
     end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/LogSubscriber.html b/src/classes/ActiveSupport/LogSubscriber.html index 3e7f35c328..8d666ba0c8 100644 --- a/src/classes/ActiveSupport/LogSubscriber.html +++ b/src/classes/ActiveSupport/LogSubscriber.html @@ -171,11 +171,6 @@

Constants

"\e[34m" - -   - - - BOLD @@ -183,11 +178,6 @@

Constants

ActiveSupport::Deprecation::DeprecatedObjectProxy.new("\e[1m", "BOLD is deprecated! Use MODES[:bold] instead.", ActiveSupport.deprecator) - -   - - - CLEAR @@ -207,11 +197,6 @@

Constants

"\e[36m" - -   - - - GREEN @@ -219,11 +204,6 @@

Constants

"\e[32m" - -   - - - MAGENTA @@ -231,11 +211,6 @@

Constants

"\e[35m" - -   - - - MODES @@ -260,11 +235,6 @@

Constants

"\e[31m" - -   - - - WHITE @@ -272,11 +242,6 @@

Constants

"\e[37m" - -   - - - YELLOW @@ -284,11 +249,6 @@

Constants

"\e[33m" - -   - - - @@ -334,7 +294,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/log_subscriber.rb, line 109
@@ -342,7 +302,7 @@ 

logger.flush if logger.respond_to?(:flush) end

- See on GitHub + 🔎 See on GitHub
@@ -369,7 +329,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/log_subscriber.rb, line 104
@@ -377,7 +337,7 @@ 

subscribers end

- See on GitHub + 🔎 See on GitHub
@@ -404,17 +364,17 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/log_subscriber.rb, line 90
       def logger
-        @logger ||= if defined?(Rails) && Rails.respond_to?(:logger)
+        @logger ||= if defined?(Rails) && Rails.respond_to?(:logger)
           Rails.logger
         end
       end
- See on GitHub + 🔎 See on GitHub
@@ -441,7 +401,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/log_subscriber.rb, line 130
@@ -450,7 +410,7 @@ 

@event_levels = {} end

- See on GitHub + 🔎 See on GitHub
@@ -481,17 +441,17 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/log_subscriber.rb, line 143
     def call(event)
       super if logger
-    rescue => e
+    rescue => e
       log_exception(event.name, e)
     end
- See on GitHub + 🔎 See on GitHub
@@ -518,7 +478,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/log_subscriber.rb, line 135
@@ -526,7 +486,7 @@ 

LogSubscriber.logger end

- See on GitHub + 🔎 See on GitHub
@@ -553,17 +513,17 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/log_subscriber.rb, line 149
     def publish_event(event)
       super if logger
-    rescue => e
+    rescue => e
       log_exception(event.name, e)
     end
- See on GitHub + 🔎 See on GitHub
@@ -590,15 +550,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/log_subscriber.rb, line 139
     def silenced?(event)
-      logger.nil? || logger.level > @event_levels.fetch(event, Float::INFINITY)
+      logger.nil? || logger.level > @event_levels.fetch(event, Float::INFINITY)
     end
- See on GitHub + 🔎 See on GitHub
@@ -628,7 +588,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/log_subscriber.rb, line 169
@@ -636,11 +596,11 @@ 

return text unless colorize_logging color = self.class.const_get(color.upcase) if color.is_a?(Symbol) mode = mode_from(mode_options) - clear = "\e[#{MODES[:clear]}m" - "#{mode}#{color}#{text}#{clear}" + clear = "\e[#{MODES[:clear]}m" + "#{mode}#{color}#{text}#{clear}" end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/LogSubscriber/TestHelper.html b/src/classes/ActiveSupport/LogSubscriber/TestHelper.html index f2a4ffd99c..9b804fd1ac 100644 --- a/src/classes/ActiveSupport/LogSubscriber/TestHelper.html +++ b/src/classes/ActiveSupport/LogSubscriber/TestHelper.html @@ -127,7 +127,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/log_subscriber/test_helper.rb, line 101
@@ -135,7 +135,7 @@ 

ActiveSupport::LogSubscriber.logger = logger end

- See on GitHub + 🔎 See on GitHub
@@ -162,7 +162,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/log_subscriber/test_helper.rb, line 92
@@ -170,7 +170,7 @@ 

@notifier.wait end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/LogSubscriber/TestHelper/MockLogger.html b/src/classes/ActiveSupport/LogSubscriber/TestHelper/MockLogger.html index 5a631f552f..30e6be81fd 100644 --- a/src/classes/ActiveSupport/LogSubscriber/TestHelper/MockLogger.html +++ b/src/classes/ActiveSupport/LogSubscriber/TestHelper/MockLogger.html @@ -129,7 +129,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/log_subscriber/test_helper.rb, line 60
@@ -139,7 +139,7 @@ 

@logged = Hash.new { |h, k| h[k] = [] } end

- See on GitHub + 🔎 See on GitHub
@@ -170,7 +170,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/log_subscriber/test_helper.rb, line 78
@@ -178,7 +178,7 @@ 

@flush_count += 1 end

- See on GitHub + 🔎 See on GitHub
@@ -205,7 +205,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/log_subscriber/test_helper.rb, line 74
@@ -213,7 +213,7 @@ 

@logged[level].compact.map { |l| l.to_s.strip } end

- See on GitHub + 🔎 See on GitHub
@@ -240,19 +240,19 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/log_subscriber/test_helper.rb, line 66
         def method_missing(level, message = nil)
           if block_given?
-            @logged[level] << yield
+            @logged[level] << yield
           else
-            @logged[level] << message
+            @logged[level] << message
           end
         end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/Logger.html b/src/classes/ActiveSupport/Logger.html index bcabee743a..ae3e17a055 100644 --- a/src/classes/ActiveSupport/Logger.html +++ b/src/classes/ActiveSupport/Logger.html @@ -127,7 +127,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/logger.rb, line 16
@@ -141,10 +141,10 @@ 

logdevs = loggers.map { |logger| logger.instance_variable_get(:@logdev) } logger_sources = logdevs.filter_map { |logdev| logdev.dev if logdev.respond_to?(:dev) } - (sources & logger_sources).any? + (sources & logger_sources).any? end

- See on GitHub + 🔎 See on GitHub
@@ -171,7 +171,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/logger.rb, line 29
@@ -180,7 +180,7 @@ 

@formatter ||= SimpleFormatter.new end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/Logger/SimpleFormatter.html b/src/classes/ActiveSupport/Logger/SimpleFormatter.html index 9005b91889..ef0f0977cc 100644 --- a/src/classes/ActiveSupport/Logger/SimpleFormatter.html +++ b/src/classes/ActiveSupport/Logger/SimpleFormatter.html @@ -90,15 +90,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/logger.rb, line 37
       def call(severity, timestamp, progname, msg)
-        "#{String === msg ? msg : msg.inspect}\n"
+        "#{String === msg ? msg : msg.inspect}\n"
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/LoggerSilence.html b/src/classes/ActiveSupport/LoggerSilence.html index b935b63f60..372300142b 100644 --- a/src/classes/ActiveSupport/LoggerSilence.html +++ b/src/classes/ActiveSupport/LoggerSilence.html @@ -78,7 +78,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/logger_silence.rb, line 17
@@ -86,7 +86,7 @@ 

silencer ? log_at(severity) { yield self } : yield(self) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/MessageEncryptor.html b/src/classes/ActiveSupport/MessageEncryptor.html index 7bf7abd73f..bfc35589f4 100644 --- a/src/classes/ActiveSupport/MessageEncryptor.html +++ b/src/classes/ActiveSupport/MessageEncryptor.html @@ -168,11 +168,6 @@

Constants

OpenSSL::Cipher::CipherError - -   - - - @@ -204,7 +199,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/message_encryptor.rb, line 252
@@ -212,7 +207,7 @@ 

OpenSSL::Cipher.new(cipher).key_len end

- See on GitHub + 🔎 See on GitHub
@@ -272,7 +267,7 @@

Options

- Source code + 📝 Source code
# File activesupport/lib/active_support/message_encryptor.rb, line 183
@@ -286,7 +281,7 @@ 

Options

end end
- See on GitHub + 🔎 See on GitHub
@@ -332,7 +327,7 @@

Options

- Source code + 📝 Source code
# File activesupport/lib/active_support/message_encryptor.rb, line 241
@@ -346,7 +341,7 @@ 

Options

end end
- See on GitHub + 🔎 See on GitHub
@@ -397,7 +392,7 @@

Options

- Source code + 📝 Source code
# File activesupport/lib/active_support/message_encryptor.rb, line 220
@@ -405,7 +400,7 @@ 

Options

create_message(value, **options) end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/MessageEncryptors.html b/src/classes/ActiveSupport/MessageEncryptors.html index 197940eb78..5f774a79fb 100644 --- a/src/classes/ActiveSupport/MessageEncryptors.html +++ b/src/classes/ActiveSupport/MessageEncryptors.html @@ -126,7 +126,7 @@

- See on GitHub + 🔎 See on GitHub @@ -150,7 +150,7 @@

- See on GitHub + 🔎 See on GitHub @@ -174,7 +174,7 @@

- See on GitHub + 🔎 See on GitHub @@ -205,7 +205,7 @@

- See on GitHub + 🔎 See on GitHub @@ -260,7 +260,7 @@

- See on GitHub + 🔎 See on GitHub @@ -284,7 +284,7 @@

- See on GitHub + 🔎 See on GitHub diff --git a/src/classes/ActiveSupport/MessagePack.html b/src/classes/ActiveSupport/MessagePack.html index c569c97cdc..d0ff692e24 100644 --- a/src/classes/ActiveSupport/MessagePack.html +++ b/src/classes/ActiveSupport/MessagePack.html @@ -110,7 +110,7 @@

- See on GitHub + 🔎 See on GitHub @@ -134,7 +134,7 @@

- See on GitHub + 🔎 See on GitHub @@ -158,7 +158,7 @@

- See on GitHub + 🔎 See on GitHub diff --git a/src/classes/ActiveSupport/MessagePack/CacheSerializer.html b/src/classes/ActiveSupport/MessagePack/CacheSerializer.html index 72fd465186..da7cc22bc3 100644 --- a/src/classes/ActiveSupport/MessagePack/CacheSerializer.html +++ b/src/classes/ActiveSupport/MessagePack/CacheSerializer.html @@ -78,17 +78,17 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/message_pack/cache_serializer.rb, line 11
       def load(dumped)
         super
       rescue ActiveSupport::MessagePack::MissingClassError
-        # Treat missing class as cache miss => return nil
+        # Treat missing class as cache miss => return nil
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/MessageVerifier.html b/src/classes/ActiveSupport/MessageVerifier.html index 9de36be40d..3a951cb45e 100644 --- a/src/classes/ActiveSupport/MessageVerifier.html +++ b/src/classes/ActiveSupport/MessageVerifier.html @@ -223,18 +223,18 @@

Options

- Source code + 📝 Source code
# File activesupport/lib/active_support/message_verifier.rb, line 153
     def initialize(secret, **options)
-      raise ArgumentError, "Secret should not be nil." unless secret
+      raise ArgumentError, "Secret should not be nil." unless secret
       super(**options)
       @secret = secret
-      @digest = options[:digest]&.to_s || "SHA1"
+      @digest = options[:digest]&.to_s || "SHA1"
     end
- See on GitHub + 🔎 See on GitHub
@@ -297,7 +297,7 @@

Options

- Source code + 📝 Source code
# File activesupport/lib/active_support/message_verifier.rb, line 292
@@ -305,7 +305,7 @@ 

Options

create_message(value, **options) end
- See on GitHub + 🔎 See on GitHub
@@ -340,7 +340,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/message_verifier.rb, line 169
@@ -348,7 +348,7 @@ 

!!catch_and_ignore(:invalid_message_format) { extract_encoded(message) } end

- See on GitHub + 🔎 See on GitHub
@@ -415,7 +415,7 @@

Options

- Source code + 📝 Source code
# File activesupport/lib/active_support/message_verifier.rb, line 210
@@ -429,7 +429,7 @@ 

Options

end end
- See on GitHub + 🔎 See on GitHub
@@ -484,7 +484,7 @@

Options

- Source code + 📝 Source code
# File activesupport/lib/active_support/message_verifier.rb, line 248
@@ -498,7 +498,7 @@ 

Options

end end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/MessageVerifiers.html b/src/classes/ActiveSupport/MessageVerifiers.html index 983ce6da62..57715cde65 100644 --- a/src/classes/ActiveSupport/MessageVerifiers.html +++ b/src/classes/ActiveSupport/MessageVerifiers.html @@ -126,7 +126,7 @@

- See on GitHub + 🔎 See on GitHub @@ -150,7 +150,7 @@

- See on GitHub + 🔎 See on GitHub @@ -174,7 +174,7 @@

- See on GitHub + 🔎 See on GitHub @@ -205,7 +205,7 @@

- See on GitHub + 🔎 See on GitHub @@ -260,7 +260,7 @@

- See on GitHub + 🔎 See on GitHub @@ -284,7 +284,7 @@

- See on GitHub + 🔎 See on GitHub diff --git a/src/classes/ActiveSupport/Messages/SerializerWithFallback/JsonWithFallback.html b/src/classes/ActiveSupport/Messages/SerializerWithFallback/JsonWithFallback.html index 060596f916..aaefa7dc3d 100644 --- a/src/classes/ActiveSupport/Messages/SerializerWithFallback/JsonWithFallback.html +++ b/src/classes/ActiveSupport/Messages/SerializerWithFallback/JsonWithFallback.html @@ -85,11 +85,6 @@

Constants

/\A(?:[{\["]|-?\d|true|false|null)/ - -   - - - @@ -122,7 +117,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/messages/serializer_with_fallback.rb, line 90
@@ -130,7 +125,7 @@ 

ActiveSupport::JSON.decode(dumped) end

- See on GitHub + 🔎 See on GitHub
@@ -157,7 +152,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/messages/serializer_with_fallback.rb, line 86
@@ -165,7 +160,7 @@ 

ActiveSupport::JSON.encode(object) end

- See on GitHub + 🔎 See on GitHub
@@ -192,7 +187,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/messages/serializer_with_fallback.rb, line 96
@@ -200,7 +195,7 @@ 

JSON_START_WITH.match?(dumped) end

- See on GitHub + 🔎 See on GitHub
@@ -227,7 +222,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/messages/serializer_with_fallback.rb, line 82
@@ -235,7 +230,7 @@ 

:json end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/Messages/SerializerWithFallback/MarshalWithFallback.html b/src/classes/ActiveSupport/Messages/SerializerWithFallback/MarshalWithFallback.html index 248783f31b..5e1ba0db9e 100644 --- a/src/classes/ActiveSupport/Messages/SerializerWithFallback/MarshalWithFallback.html +++ b/src/classes/ActiveSupport/Messages/SerializerWithFallback/MarshalWithFallback.html @@ -85,11 +85,6 @@

Constants

"\x04\x08" - -   - - - @@ -122,7 +117,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/messages/serializer_with_fallback.rb, line 67
@@ -130,7 +125,7 @@ 

Marshal.load(dumped) end

- See on GitHub + 🔎 See on GitHub
@@ -157,7 +152,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/messages/serializer_with_fallback.rb, line 63
@@ -165,7 +160,7 @@ 

Marshal.dump(object) end

- See on GitHub + 🔎 See on GitHub
@@ -192,7 +187,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/messages/serializer_with_fallback.rb, line 73
@@ -200,7 +195,7 @@ 

dumped.start_with?(MARSHAL_SIGNATURE) end

- See on GitHub + 🔎 See on GitHub
@@ -227,7 +222,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/messages/serializer_with_fallback.rb, line 59
@@ -235,7 +230,7 @@ 

:marshal end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/Messages/SerializerWithFallback/MessagePackWithFallback.html b/src/classes/ActiveSupport/Messages/SerializerWithFallback/MessagePackWithFallback.html index 9cdc36554f..0d8de8f0d0 100644 --- a/src/classes/ActiveSupport/Messages/SerializerWithFallback/MessagePackWithFallback.html +++ b/src/classes/ActiveSupport/Messages/SerializerWithFallback/MessagePackWithFallback.html @@ -104,7 +104,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/messages/serializer_with_fallback.rb, line 125
@@ -112,7 +112,7 @@ 

ActiveSupport::MessagePack.load(dumped) end

- See on GitHub + 🔎 See on GitHub
@@ -139,7 +139,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/messages/serializer_with_fallback.rb, line 121
@@ -147,7 +147,7 @@ 

ActiveSupport::MessagePack.dump(object) end

- See on GitHub + 🔎 See on GitHub
@@ -174,15 +174,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/messages/serializer_with_fallback.rb, line 129
           def dumped?(dumped)
-            available? && ActiveSupport::MessagePack.signature?(dumped)
+            available? && ActiveSupport::MessagePack.signature?(dumped)
           end
- See on GitHub + 🔎 See on GitHub
@@ -209,7 +209,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/messages/serializer_with_fallback.rb, line 117
@@ -217,7 +217,7 @@ 

:message_pack end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/Multibyte.html b/src/classes/ActiveSupport/Multibyte.html index 46e89a6e41..d70f6f8c96 100644 --- a/src/classes/ActiveSupport/Multibyte.html +++ b/src/classes/ActiveSupport/Multibyte.html @@ -105,7 +105,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/multibyte.rb, line 19
@@ -113,7 +113,7 @@ 

@proxy_class ||= ActiveSupport::Multibyte::Chars end

- See on GitHub + 🔎 See on GitHub
@@ -143,7 +143,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/multibyte.rb, line 14
@@ -151,7 +151,7 @@ 

@proxy_class = klass end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/Multibyte/Chars.html b/src/classes/ActiveSupport/Multibyte/Chars.html index eeb43bf555..0178e70eff 100644 --- a/src/classes/ActiveSupport/Multibyte/Chars.html +++ b/src/classes/ActiveSupport/Multibyte/Chars.html @@ -207,7 +207,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/multibyte/chars.rb, line 56
@@ -216,7 +216,7 @@ 

@wrapped_string.force_encoding(Encoding::UTF_8) unless @wrapped_string.frozen? end

- See on GitHub + 🔎 See on GitHub
@@ -251,15 +251,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/multibyte/chars.rb, line 140
       def compose
-        chars(Unicode.compose(@wrapped_string.codepoints.to_a).pack("U*"))
+        chars(Unicode.compose(@wrapped_string.codepoints.to_a).pack("U*"))
       end
- See on GitHub + 🔎 See on GitHub
@@ -290,15 +290,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/multibyte/chars.rb, line 132
       def decompose
-        chars(Unicode.decompose(:canonical, @wrapped_string.codepoints.to_a).pack("U*"))
+        chars(Unicode.decompose(:canonical, @wrapped_string.codepoints.to_a).pack("U*"))
       end
- See on GitHub + 🔎 See on GitHub
@@ -329,7 +329,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/multibyte/chars.rb, line 148
@@ -337,7 +337,7 @@ 

@wrapped_string.grapheme_clusters.length end

- See on GitHub + 🔎 See on GitHub
@@ -367,7 +367,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/multibyte/chars.rb, line 115
@@ -375,7 +375,7 @@ 

chars(@wrapped_string.truncate_bytes(limit, omission: nil)) end

- See on GitHub + 🔎 See on GitHub
@@ -402,20 +402,20 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/multibyte/chars.rb, line 62
-      def method_missing(method, *args, &block)
-        result = @wrapped_string.__send__(method, *args, &block)
-        if method.end_with?("!")
+      def method_missing(method, *args, &block)
+        result = @wrapped_string.__send__(method, *args, &block)
+        if method.end_with?("!")
           self if result
         else
           result.kind_of?(String) ? chars(result) : result
         end
       end
- See on GitHub + 🔎 See on GitHub
@@ -442,7 +442,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/multibyte/chars.rb, line 74
@@ -450,7 +450,7 @@ 

@wrapped_string.respond_to?(method, include_private) end

- See on GitHub + 🔎 See on GitHub
@@ -480,7 +480,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/multibyte/chars.rb, line 106
@@ -488,7 +488,7 @@ 

chars(@wrapped_string.grapheme_clusters.reverse.join) end

- See on GitHub + 🔎 See on GitHub
@@ -522,7 +522,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/multibyte/chars.rb, line 96
@@ -533,7 +533,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -563,7 +563,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/multibyte/chars.rb, line 83
@@ -571,7 +571,7 @@ 

@wrapped_string.split(*args).map { |i| self.class.new(i) } end

- See on GitHub + 🔎 See on GitHub
@@ -600,7 +600,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/multibyte/chars.rb, line 157
@@ -608,7 +608,7 @@ 

chars(Unicode.tidy_bytes(@wrapped_string, force)) end

- See on GitHub + 🔎 See on GitHub
@@ -668,15 +668,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/multibyte/chars.rb, line 123
       def titleize
-        chars(downcase.to_s.gsub(/\b('?\S)/u) { $1.upcase })
+        chars(downcase.to_s.gsub(/\b('?\S)/u) { $1.upcase })
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/Multibyte/Unicode.html b/src/classes/ActiveSupport/Multibyte/Unicode.html index 893bf1b089..a47d140cae 100644 --- a/src/classes/ActiveSupport/Multibyte/Unicode.html +++ b/src/classes/ActiveSupport/Multibyte/Unicode.html @@ -104,15 +104,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/multibyte/unicode.rb, line 21
       def compose(codepoints)
-        codepoints.pack("U*").unicode_normalize(:nfc).codepoints
+        codepoints.pack("U*").unicode_normalize(:nfc).codepoints
       end
- See on GitHub + 🔎 See on GitHub
@@ -139,19 +139,19 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/multibyte/unicode.rb, line 12
       def decompose(type, codepoints)
         if type == :compatibility
-          codepoints.pack("U*").unicode_normalize(:nfkd).codepoints
+          codepoints.pack("U*").unicode_normalize(:nfkd).codepoints
         else
-          codepoints.pack("U*").unicode_normalize(:nfd).codepoints
+          codepoints.pack("U*").unicode_normalize(:nfd).codepoints
         end
       end
- See on GitHub + 🔎 See on GitHub
@@ -180,7 +180,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/multibyte/unicode.rb, line 30
@@ -190,7 +190,7 @@ 

string.scrub { |bad| recode_windows1252_chars(bad) } end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/Notifications.html b/src/classes/ActiveSupport/Notifications.html index 7e0efe6998..d5200c98a8 100644 --- a/src/classes/ActiveSupport/Notifications.html +++ b/src/classes/ActiveSupport/Notifications.html @@ -310,7 +310,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/notifications.rb, line 204
@@ -322,7 +322,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -349,7 +349,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/notifications.rb, line 268
@@ -357,7 +357,7 @@ 

registry[notifier] ||= Instrumenter.new(notifier) end

- See on GitHub + 🔎 See on GitHub
@@ -384,15 +384,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/notifications.rb, line 253
-      def monotonic_subscribe(pattern = nil, callback = nil, &block)
-        notifier.subscribe(pattern, callback, monotonic: true, &block)
+      def monotonic_subscribe(pattern = nil, callback = nil, &block)
+        notifier.subscribe(pattern, callback, monotonic: true, &block)
       end
- See on GitHub + 🔎 See on GitHub
@@ -419,7 +419,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/notifications.rb, line 196
@@ -427,7 +427,7 @@ 

notifier.publish(name, *args) end

- See on GitHub + 🔎 See on GitHub
@@ -485,15 +485,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/notifications.rb, line 243
-      def subscribe(pattern = nil, callback = nil, &block)
-        notifier.subscribe(pattern, callback, monotonic: false, &block)
+      def subscribe(pattern = nil, callback = nil, &block)
+        notifier.subscribe(pattern, callback, monotonic: false, &block)
       end
- See on GitHub + 🔎 See on GitHub
@@ -520,18 +520,18 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/notifications.rb, line 257
-      def subscribed(callback, pattern = nil, monotonic: false, &block)
+      def subscribed(callback, pattern = nil, monotonic: false, &block)
         subscriber = notifier.subscribe(pattern, callback, monotonic: monotonic)
         yield
       ensure
         unsubscribe(subscriber)
       end
- See on GitHub + 🔎 See on GitHub
@@ -558,7 +558,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/notifications.rb, line 264
@@ -566,7 +566,7 @@ 

notifier.unsubscribe(subscriber_or_name) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/Notifications/Event.html b/src/classes/ActiveSupport/Notifications/Event.html index d6fd3407f5..85166dba61 100644 --- a/src/classes/ActiveSupport/Notifications/Event.html +++ b/src/classes/ActiveSupport/Notifications/Event.html @@ -157,7 +157,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/notifications/instrumenter.rb, line 110
@@ -173,7 +173,7 @@ 

@allocation_count_finish = 0 end

- See on GitHub + 🔎 See on GitHub
@@ -204,7 +204,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/notifications/instrumenter.rb, line 164
@@ -212,7 +212,7 @@ 

@allocation_count_finish - @allocation_count_start end

- See on GitHub + 🔎 See on GitHub
@@ -239,7 +239,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/notifications/instrumenter.rb, line 151
@@ -247,7 +247,7 @@ 

@cpu_time_finish - @cpu_time_start end

- See on GitHub + 🔎 See on GitHub
@@ -285,7 +285,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/notifications/instrumenter.rb, line 197
@@ -293,7 +293,7 @@ 

self.end - time end

- See on GitHub + 🔎 See on GitHub
@@ -320,7 +320,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/notifications/instrumenter.rb, line 143
@@ -330,7 +330,7 @@ 

@allocation_count_finish = now_allocations end

- See on GitHub + 🔎 See on GitHub
@@ -357,16 +357,16 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/notifications/instrumenter.rb, line 157
       def idle_time
         diff = duration - cpu_time
-        diff > 0.0 ? diff : 0.0
+        diff > 0.0 ? diff : 0.0
       end
- See on GitHub + 🔎 See on GitHub
@@ -393,7 +393,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/notifications/instrumenter.rb, line 122
@@ -401,7 +401,7 @@ 

start! begin yield payload if block_given? - rescue Exception => e + rescue Exception => e payload[:exception] = [e.class.name, e.message] payload[:exception_object] = e raise e @@ -410,7 +410,7 @@

end end

- See on GitHub + 🔎 See on GitHub
@@ -437,7 +437,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/notifications/instrumenter.rb, line 136
@@ -447,7 +447,7 @@ 

@allocation_count_start = now_allocations end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/Notifications/Fanout.html b/src/classes/ActiveSupport/Notifications/Fanout.html index 60785f8fa6..d01f5cf06c 100644 --- a/src/classes/ActiveSupport/Notifications/Fanout.html +++ b/src/classes/ActiveSupport/Notifications/Fanout.html @@ -167,7 +167,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/notifications/fanout.rb, line 50
@@ -180,7 +180,7 @@ 

super end

- See on GitHub + 🔎 See on GitHub
@@ -211,12 +211,12 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/notifications/fanout.rb, line 295
       def all_listeners_for(name)
-        # this is correctly done double-checked locking (Concurrent::Map's lookups have volatile semantics)
+        # this is correctly done double-checked locking (Concurrent::Map's lookups have volatile semantics)
         @all_listeners_for[name] || synchronize do
           # use synchronisation when accessing @subscribers
           @all_listeners_for[name] ||=
@@ -224,7 +224,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -251,7 +251,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/notifications/fanout.rb, line 270
@@ -259,7 +259,7 @@ 

Handle.new(self, name, id, payload) end

- See on GitHub + 🔎 See on GitHub
@@ -286,7 +286,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/notifications/fanout.rb, line 281
@@ -296,7 +296,7 @@ 

handle.finish_with_values(name, id, payload) end

- See on GitHub + 🔎 See on GitHub
@@ -323,7 +323,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/notifications/fanout.rb, line 304
@@ -331,7 +331,7 @@ 

all_listeners_for(name).reject { |s| s.silenced?(name) } end

- See on GitHub + 🔎 See on GitHub
@@ -358,7 +358,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/notifications/fanout.rb, line 308
@@ -366,7 +366,7 @@ 

all_listeners_for(name).any? { |s| !s.silenced?(name) } end

- See on GitHub + 🔎 See on GitHub
@@ -393,7 +393,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/notifications/fanout.rb, line 287
@@ -401,7 +401,7 @@ 

iterate_guarding_exceptions(listeners_for(name)) { |s| s.publish(name, *args) } end

- See on GitHub + 🔎 See on GitHub
@@ -428,7 +428,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/notifications/fanout.rb, line 291
@@ -436,7 +436,7 @@ 

iterate_guarding_exceptions(listeners_for(event.name)) { |s| s.publish_event(event) } end

- See on GitHub + 🔎 See on GitHub
@@ -463,18 +463,18 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/notifications/fanout.rb, line 274
       def start(name, id, payload)
         handle_stack = (IsolatedExecutionState[:_fanout_handle_stack] ||= [])
         handle = build_handle(name, id, payload)
-        handle_stack << handle
+        handle_stack << handle
         handle.start
       end
- See on GitHub + 🔎 See on GitHub
@@ -501,28 +501,28 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/notifications/fanout.rb, line 64
-      def subscribe(pattern = nil, callable = nil, monotonic: false, &block)
+      def subscribe(pattern = nil, callable = nil, monotonic: false, &block)
         subscriber = Subscribers.new(pattern, callable || block, monotonic)
         synchronize do
           case pattern
           when String
-            @string_subscribers[pattern] << subscriber
+            @string_subscribers[pattern] << subscriber
             clear_cache(pattern)
           when NilClass, Regexp
-            @other_subscribers << subscriber
+            @other_subscribers << subscriber
             clear_cache
           else
-            raise ArgumentError,  "pattern must be specified as a String, Regexp or empty"
+            raise ArgumentError,  "pattern must be specified as a String, Regexp or empty"
           end
         end
         subscriber
       end
- See on GitHub + 🔎 See on GitHub
@@ -549,7 +549,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/notifications/fanout.rb, line 81
@@ -573,7 +573,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -600,14 +600,14 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/notifications/fanout.rb, line 313
       def wait
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/Notifications/Fanout/Handle.html b/src/classes/ActiveSupport/Notifications/Fanout/Handle.html index d41296ec32..ad7b4ce519 100644 --- a/src/classes/ActiveSupport/Notifications/Fanout/Handle.html +++ b/src/classes/ActiveSupport/Notifications/Fanout/Handle.html @@ -107,7 +107,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/notifications/fanout.rb, line 247
@@ -115,7 +115,7 @@ 

finish_with_values(@name, @id, @payload) end

- See on GitHub + 🔎 See on GitHub
@@ -142,7 +142,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/notifications/fanout.rb, line 238
@@ -155,7 +155,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/Notifications/Fanout/Subscribers/EventObject.html b/src/classes/ActiveSupport/Notifications/Fanout/Subscribers/EventObject.html index a713c03eec..5f35cbdda3 100644 --- a/src/classes/ActiveSupport/Notifications/Fanout/Subscribers/EventObject.html +++ b/src/classes/ActiveSupport/Notifications/Fanout/Subscribers/EventObject.html @@ -88,7 +88,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/notifications/fanout.rb, line 432
@@ -96,7 +96,7 @@ 

EventObjectGroup end

- See on GitHub + 🔎 See on GitHub
@@ -123,7 +123,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/notifications/fanout.rb, line 436
@@ -131,7 +131,7 @@ 

@delegate.call event end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/Notifications/Fanout/Subscribers/Matcher/AllMessages.html b/src/classes/ActiveSupport/Notifications/Fanout/Subscribers/Matcher/AllMessages.html index aa7be04c2c..b45d9fa7d1 100644 --- a/src/classes/ActiveSupport/Notifications/Fanout/Subscribers/Matcher/AllMessages.html +++ b/src/classes/ActiveSupport/Notifications/Fanout/Subscribers/Matcher/AllMessages.html @@ -88,7 +88,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/notifications/fanout.rb, line 363
@@ -96,7 +96,7 @@ 

true end

- See on GitHub + 🔎 See on GitHub
@@ -123,7 +123,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/notifications/fanout.rb, line 367
@@ -131,7 +131,7 @@ 

false end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/Notifications/InstrumentationSubscriberError.html b/src/classes/ActiveSupport/Notifications/InstrumentationSubscriberError.html index ed7b362645..e713e85ab5 100644 --- a/src/classes/ActiveSupport/Notifications/InstrumentationSubscriberError.html +++ b/src/classes/ActiveSupport/Notifications/InstrumentationSubscriberError.html @@ -97,17 +97,17 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/notifications/fanout.rb, line 13
       def initialize(exceptions)
         @exceptions = exceptions
         exception_class_names = exceptions.map { |e| e.class.name }
-        super "Exception(s) occurred within instrumentation subscribers: #{exception_class_names.join(', ')}"
+        super "Exception(s) occurred within instrumentation subscribers: #{exception_class_names.join(', ')}"
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/Notifications/Instrumenter.html b/src/classes/ActiveSupport/Notifications/Instrumenter.html index 1047448e2a..1d0cca2871 100644 --- a/src/classes/ActiveSupport/Notifications/Instrumenter.html +++ b/src/classes/ActiveSupport/Notifications/Instrumenter.html @@ -123,7 +123,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/notifications/instrumenter.rb, line 12
@@ -136,7 +136,7 @@ 

@notifier = notifier end

- See on GitHub + 🔎 See on GitHub
@@ -173,7 +173,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/notifications/instrumenter.rb, line 78
@@ -181,7 +181,7 @@ 

@notifier.build_handle(name, @id, payload) end

- See on GitHub + 🔎 See on GitHub
@@ -208,7 +208,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/notifications/instrumenter.rb, line 92
@@ -216,7 +216,7 @@ 

@notifier.finish name, @id, payload end

- See on GitHub + 🔎 See on GitHub
@@ -243,7 +243,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/notifications/instrumenter.rb, line 96
@@ -251,7 +251,7 @@ 

@notifier.finish name, @id, payload, listeners_state end

- See on GitHub + 🔎 See on GitHub
@@ -278,7 +278,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/notifications/instrumenter.rb, line 54
@@ -287,7 +287,7 @@ 

handle.start begin yield payload if block_given? - rescue Exception => e + rescue Exception => e payload[:exception] = [e.class.name, e.message] payload[:exception_object] = e raise e @@ -296,7 +296,7 @@

end end

- See on GitHub + 🔎 See on GitHub
@@ -323,7 +323,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/notifications/instrumenter.rb, line 87
@@ -331,7 +331,7 @@ 

@notifier.start name, @id, payload end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/NumberHelper.html b/src/classes/ActiveSupport/NumberHelper.html index 5bb2e78f7c..af9575ceb3 100644 --- a/src/classes/ActiveSupport/NumberHelper.html +++ b/src/classes/ActiveSupport/NumberHelper.html @@ -165,7 +165,7 @@

Examples

- Source code + 📝 Source code
# File activesupport/lib/active_support/number_helper.rb, line 114
@@ -173,7 +173,7 @@ 

Examples

NumberToCurrencyConverter.convert(number, options) end
- See on GitHub + 🔎 See on GitHub
@@ -228,7 +228,7 @@

Examples

- Source code + 📝 Source code
# File activesupport/lib/active_support/number_helper.rb, line 189
@@ -236,7 +236,7 @@ 

Examples

NumberToDelimitedConverter.convert(number, options) end
- See on GitHub + 🔎 See on GitHub
@@ -360,7 +360,7 @@

Custom Unit Quan
- Source code + 📝 Source code
# File activesupport/lib/active_support/number_helper.rb, line 392
@@ -368,7 +368,7 @@ 

Custom Unit Quan NumberToHumanConverter.convert(number, options) end

- See on GitHub + 🔎 See on GitHub
@@ -432,7 +432,7 @@

Examples

- Source code + 📝 Source code
# File activesupport/lib/active_support/number_helper.rb, line 283
@@ -440,7 +440,7 @@ 

Examples

NumberToHumanSizeConverter.convert(number, options) end
- See on GitHub + 🔎 See on GitHub
@@ -500,7 +500,7 @@

Examples

- Source code + 📝 Source code
# File activesupport/lib/active_support/number_helper.rb, line 154
@@ -508,7 +508,7 @@ 

Examples

NumberToPercentageConverter.convert(number, options) end
- See on GitHub + 🔎 See on GitHub
@@ -568,7 +568,7 @@

Examples

- Source code + 📝 Source code
# File activesupport/lib/active_support/number_helper.rb, line 53
@@ -576,7 +576,7 @@ 

Examples

NumberToPhoneConverter.convert(number, options) end
- See on GitHub + 🔎 See on GitHub
@@ -641,7 +641,7 @@

Examples

- Source code + 📝 Source code
# File activesupport/lib/active_support/number_helper.rb, line 236
@@ -649,7 +649,7 @@ 

Examples

NumberToRoundedConverter.convert(number, options) end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/NumericWithFormat.html b/src/classes/ActiveSupport/NumericWithFormat.html index 9138fa17cc..ed32dc24b7 100644 --- a/src/classes/ActiveSupport/NumericWithFormat.html +++ b/src/classes/ActiveSupport/NumericWithFormat.html @@ -214,7 +214,7 @@

Examples

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/numeric/conversions.rb, line 113
@@ -245,7 +245,7 @@ 

Examples

end end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/OrderedOptions.html b/src/classes/ActiveSupport/OrderedOptions.html index 4935bdd103..e0049d4ae1 100644 --- a/src/classes/ActiveSupport/OrderedOptions.html +++ b/src/classes/ActiveSupport/OrderedOptions.html @@ -149,7 +149,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/ordered_options.rb, line 41
@@ -157,7 +157,7 @@ 

super(key.to_sym) end

- See on GitHub + 🔎 See on GitHub
@@ -184,7 +184,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/ordered_options.rb, line 37
@@ -192,7 +192,7 @@ 

super(key.to_sym, value) end

- See on GitHub + 🔎 See on GitHub
@@ -244,15 +244,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/ordered_options.rb, line 45
     def dig(*keys)
-      super(*keys.flatten.map(&:to_sym))
+      super(*keys.flatten.map(&:to_sym))
     end
- See on GitHub + 🔎 See on GitHub
@@ -279,7 +279,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/ordered_options.rb, line 68
@@ -287,7 +287,7 @@ 

true end

- See on GitHub + 🔎 See on GitHub
@@ -314,15 +314,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/ordered_options.rb, line 72
     def inspect
-      "#<#{self.class.name} #{super}>"
+      "#<#{self.class.name} #{super}>"
     end
- See on GitHub + 🔎 See on GitHub
@@ -349,26 +349,26 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/ordered_options.rb, line 49
     def method_missing(name, *args)
       name_string = +name.to_s
-      if name_string.chomp!("=")
+      if name_string.chomp!("=")
         self[name_string] = args.first
       else
-        bangs = name_string.chomp!("!")
+        bangs = name_string.chomp!("!")
 
         if bangs
-          self[name_string].presence || raise(KeyError.new(":#{name_string} is blank"))
+          self[name_string].presence || raise(KeyError.new(":#{name_string} is blank"))
         else
           self[name_string]
         end
       end
     end
- See on GitHub + 🔎 See on GitHub
@@ -395,7 +395,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/ordered_options.rb, line 64
@@ -403,7 +403,7 @@ 

true end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/ParameterFilter.html b/src/classes/ActiveSupport/ParameterFilter.html index 817c26cb28..f3a8739047 100644 --- a/src/classes/ActiveSupport/ParameterFilter.html +++ b/src/classes/ActiveSupport/ParameterFilter.html @@ -133,7 +133,7 @@

Options

- Source code + 📝 Source code
# File activesupport/lib/active_support/parameter_filter.rb, line 77
@@ -142,7 +142,7 @@ 

Options

compile_filters!(filters) end
- See on GitHub + 🔎 See on GitHub
@@ -177,7 +177,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/parameter_filter.rb, line 55
@@ -185,18 +185,18 @@ 

filters, patterns = filters.partition { |filter| filter.is_a?(Proc) } patterns.map! do |pattern| - pattern.is_a?(Regexp) ? pattern : "(?i:#{Regexp.escape pattern.to_s})" + pattern.is_a?(Regexp) ? pattern : "(?i:#{Regexp.escape pattern.to_s})" end - deep_patterns = patterns.extract! { |pattern| pattern.to_s.include?("\\.") } + deep_patterns = patterns.extract! { |pattern| pattern.to_s.include?("\\.") } - filters << Regexp.new(patterns.join("|")) if patterns.any? - filters << Regexp.new(deep_patterns.join("|")) if deep_patterns.any? + filters << Regexp.new(patterns.join("|")) if patterns.any? + filters << Regexp.new(deep_patterns.join("|")) if deep_patterns.any? filters end

- See on GitHub + 🔎 See on GitHub
@@ -227,7 +227,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/parameter_filter.rb, line 83
@@ -235,7 +235,7 @@ 

@no_filters ? params.dup : call(params) end

- See on GitHub + 🔎 See on GitHub
@@ -262,7 +262,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/parameter_filter.rb, line 88
@@ -270,7 +270,7 @@ 

@no_filters ? value : value_for_key(key, value) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/ProxyObject.html b/src/classes/ActiveSupport/ProxyObject.html index a4f87d908c..c6557c2584 100644 --- a/src/classes/ActiveSupport/ProxyObject.html +++ b/src/classes/ActiveSupport/ProxyObject.html @@ -92,7 +92,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/proxy_object.rb, line 13
@@ -100,7 +100,7 @@ 

::Object.send(:raise, *args) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/RangeWithFormat.html b/src/classes/ActiveSupport/RangeWithFormat.html index 0f545fef7b..5c49d36f7c 100644 --- a/src/classes/ActiveSupport/RangeWithFormat.html +++ b/src/classes/ActiveSupport/RangeWithFormat.html @@ -91,11 +91,6 @@

Constants

} - -   - - - @@ -179,7 +174,7 @@

Adding your
- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/range/conversions.rb, line 51
@@ -191,7 +186,7 @@ 

Adding your end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/Reloader.html b/src/classes/ActiveSupport/Reloader.html index 64eb3a04da..2206265d3c 100644 --- a/src/classes/ActiveSupport/Reloader.html +++ b/src/classes/ActiveSupport/Reloader.html @@ -137,15 +137,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/reloader.rb, line 44
-    def self.after_class_unload(*args, &block)
-      set_callback(:class_unload, :after, *args, &block)
+    def self.after_class_unload(*args, &block)
+      set_callback(:class_unload, :after, *args, &block)
     end
- See on GitHub + 🔎 See on GitHub
@@ -172,15 +172,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/reloader.rb, line 39
-    def self.before_class_unload(*args, &block)
-      set_callback(:class_unload, *args, &block)
+    def self.before_class_unload(*args, &block)
+      set_callback(:class_unload, *args, &block)
     end
- See on GitHub + 🔎 See on GitHub
@@ -207,7 +207,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/reloader.rb, line 99
@@ -216,7 +216,7 @@ 

@locked = false end

- See on GitHub + 🔎 See on GitHub
@@ -243,7 +243,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/reloader.rb, line 51
@@ -258,7 +258,7 @@ 

prepare! end

- See on GitHub + 🔎 See on GitHub
@@ -285,15 +285,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/reloader.rb, line 34
-    def self.to_prepare(*args, &block)
-      set_callback(:prepare, *args, &block)
+    def self.to_prepare(*args, &block)
+      set_callback(:prepare, *args, &block)
     end
- See on GitHub + 🔎 See on GitHub
@@ -320,7 +320,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/reloader.rb, line 71
@@ -337,7 +337,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -368,7 +368,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/reloader.rb, line 114
@@ -379,7 +379,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -406,7 +406,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/reloader.rb, line 106
@@ -417,7 +417,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/Rescuable.html b/src/classes/ActiveSupport/Rescuable.html index c7f263e8ee..5ab97a2f70 100644 --- a/src/classes/ActiveSupport/Rescuable.html +++ b/src/classes/ActiveSupport/Rescuable.html @@ -99,7 +99,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/rescuable.rb, line 166
@@ -107,7 +107,7 @@ 

self.class.rescue_with_handler exception, object: self end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/Rescuable/ClassMethods.html b/src/classes/ActiveSupport/Rescuable/ClassMethods.html index 2b3b91fce5..ddeb4112da 100644 --- a/src/classes/ActiveSupport/Rescuable/ClassMethods.html +++ b/src/classes/ActiveSupport/Rescuable/ClassMethods.html @@ -109,26 +109,26 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/rescuable.rb, line 53
-      def rescue_from(*klasses, with: nil, &block)
+      def rescue_from(*klasses, with: nil, &block)
         unless with
           if block_given?
             with = block
           else
-            raise ArgumentError, "Need a handler. Pass the with: keyword argument or provide a block."
+            raise ArgumentError, "Need a handler. Pass the with: keyword argument or provide a block."
           end
         end
 
         klasses.each do |klass|
-          key = if klass.is_a?(Module) && klass.respond_to?(:===)
+          key = if klass.is_a?(Module) && klass.respond_to?(:===)
             klass.name
           elsif klass.is_a?(String)
             klass
           else
-            raise ArgumentError, "#{klass.inspect} must be an Exception class or a String referencing an Exception class"
+            raise ArgumentError, "#{klass.inspect} must be an Exception class or a String referencing an Exception class"
           end
 
           # Put the new handler at the end because the list is read in reverse.
@@ -136,7 +136,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -174,12 +174,12 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/rescuable.rb, line 90
       def rescue_with_handler(exception, object: self, visited_exceptions: [])
-        visited_exceptions << exception
+        visited_exceptions << exception
 
         if handler = handler_for_rescue(exception, object: object)
           handler.call exception
@@ -193,7 +193,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/SafeBuffer.html b/src/classes/ActiveSupport/SafeBuffer.html index e62754ce30..cccac51833 100644 --- a/src/classes/ActiveSupport/SafeBuffer.html +++ b/src/classes/ActiveSupport/SafeBuffer.html @@ -162,11 +162,6 @@

Constants

) - -   - - - UNSAFE_STRING_METHODS_WITH_BACKREF @@ -174,11 +169,6 @@

Constants

%w(gsub sub) - -   - - - @@ -232,16 +222,16 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/string/output_safety.rb, line 70
-    def initialize(str = "")
+    def initialize(str = "")
       @html_safe = true
       super
     end
- See on GitHub + 🔎 See on GitHub
@@ -272,7 +262,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/string/output_safety.rb, line 130
@@ -287,7 +277,7 @@ 

self.class.new(super(escaped_args)) end

- See on GitHub + 🔎 See on GitHub
@@ -314,7 +304,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/string/output_safety.rb, line 123
@@ -325,7 +315,7 @@ 

new_safe_buffer end

- See on GitHub + 🔎 See on GitHub
@@ -352,7 +342,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/string/output_safety.rb, line 119
@@ -360,7 +350,7 @@ 

dup.concat(other) end

- See on GitHub + 🔎 See on GitHub
@@ -416,7 +406,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/string/output_safety.rb, line 38
@@ -432,7 +422,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -459,7 +449,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/string/output_safety.rb, line 111
@@ -471,7 +461,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -498,7 +488,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/string/output_safety.rb, line 95
@@ -506,7 +496,7 @@ 

super(*args, implicit_html_escape_interpolated_argument(value)) end

- See on GitHub + 🔎 See on GitHub
@@ -533,7 +523,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/string/output_safety.rb, line 59
@@ -543,7 +533,7 @@ 

string_into_safe_buffer(super, true) end

- See on GitHub + 🔎 See on GitHub
@@ -574,7 +564,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/string/output_safety.rb, line 87
@@ -585,7 +575,7 @@ 

self end

- See on GitHub + 🔎 See on GitHub
@@ -612,7 +602,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/string/output_safety.rb, line 153
@@ -620,7 +610,7 @@ 

coder.represent_object nil, to_str end

- See on GitHub + 🔎 See on GitHub
@@ -647,7 +637,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/string/output_safety.rb, line 75
@@ -656,7 +646,7 @@ 

@html_safe = other.html_safe? end

- See on GitHub + 🔎 See on GitHub
@@ -683,7 +673,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/string/output_safety.rb, line 99
@@ -691,7 +681,7 @@ 

super(index, implicit_html_escape_interpolated_argument(value)) end

- See on GitHub + 🔎 See on GitHub
@@ -743,7 +733,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/string/output_safety.rb, line 103
@@ -751,7 +741,7 @@ 

super(implicit_html_escape_interpolated_argument(value)) end

- See on GitHub + 🔎 See on GitHub
@@ -778,7 +768,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/string/output_safety.rb, line 107
@@ -786,7 +776,7 @@ 

super(implicit_html_escape_interpolated_argument(value)) end

- See on GitHub + 🔎 See on GitHub
@@ -813,7 +803,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/string/output_safety.rb, line 65
@@ -822,7 +812,7 @@ 

original_concat(value) end

- See on GitHub + 🔎 See on GitHub
@@ -874,7 +864,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/string/output_safety.rb, line 51
@@ -886,7 +876,7 @@ 

string_into_safe_buffer(new_string, true) end

- See on GitHub + 🔎 See on GitHub
@@ -913,7 +903,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/string/output_safety.rb, line 149
@@ -921,7 +911,7 @@ 

to_str end

- See on GitHub + 🔎 See on GitHub
@@ -948,7 +938,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/string/output_safety.rb, line 145
@@ -956,7 +946,7 @@ 

self end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/SafeBuffer/SafeConcatError.html b/src/classes/ActiveSupport/SafeBuffer/SafeConcatError.html index c86c95e3a1..46d217e29e 100644 --- a/src/classes/ActiveSupport/SafeBuffer/SafeConcatError.html +++ b/src/classes/ActiveSupport/SafeBuffer/SafeConcatError.html @@ -89,15 +89,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/string/output_safety.rb, line 33
       def initialize
-        super "Could not concatenate to the buffer because it is not HTML safe."
+        super "Could not concatenate to the buffer because it is not HTML safe."
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/SecureCompareRotator.html b/src/classes/ActiveSupport/SecureCompareRotator.html index dd503dea9f..5ae932b4b4 100644 --- a/src/classes/ActiveSupport/SecureCompareRotator.html +++ b/src/classes/ActiveSupport/SecureCompareRotator.html @@ -118,11 +118,6 @@

Constants

Class.new(StandardError) - -   - - - @@ -154,7 +149,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/secure_compare_rotator.rb, line 37
@@ -164,7 +159,7 @@ 

@on_rotation = on_rotation end

- See on GitHub + 🔎 See on GitHub
@@ -195,15 +190,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/secure_compare_rotator.rb, line 43
     def rotate(previous_value)
-      @rotate_values << previous_value
+      @rotate_values << previous_value
     end
- See on GitHub + 🔎 See on GitHub
@@ -230,7 +225,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/secure_compare_rotator.rb, line 47
@@ -238,14 +233,14 @@ 

if secure_compare(@value, other_value) true elsif @rotate_values.any? { |value| secure_compare(value, other_value) } - on_rotation&.call + on_rotation&.call true else raise InvalidMatch end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/SecurityUtils.html b/src/classes/ActiveSupport/SecurityUtils.html index c784dd7013..e1f081b4df 100644 --- a/src/classes/ActiveSupport/SecurityUtils.html +++ b/src/classes/ActiveSupport/SecurityUtils.html @@ -81,7 +81,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/security_utils.rb, line 11
@@ -89,7 +89,7 @@ 

OpenSSL.fixed_length_secure_compare(a, b) end

- See on GitHub + 🔎 See on GitHub
@@ -118,15 +118,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/security_utils.rb, line 33
     def secure_compare(a, b)
-      a.bytesize == b.bytesize && fixed_length_secure_compare(a, b)
+      a.bytesize == b.bytesize && fixed_length_secure_compare(a, b)
     end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/Subscriber.html b/src/classes/ActiveSupport/Subscriber.html index aa897d901c..283764f3fc 100644 --- a/src/classes/ActiveSupport/Subscriber.html +++ b/src/classes/ActiveSupport/Subscriber.html @@ -139,7 +139,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/subscriber.rb, line 35
@@ -149,7 +149,7 @@ 

@notifier = notifier @inherit_all = inherit_all - subscribers << subscriber + subscribers << subscriber # Add event subscribers for all existing methods on the class. fetch_public_methods(subscriber, inherit_all).each do |event| @@ -157,7 +157,7 @@

end end

- See on GitHub + 🔎 See on GitHub
@@ -184,7 +184,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/subscriber.rb, line 50
@@ -206,7 +206,7 @@ 

@notifier = nil end

- See on GitHub + 🔎 See on GitHub
@@ -233,7 +233,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/subscriber.rb, line 69
@@ -241,12 +241,12 @@ 

# Only public methods are added as subscribers, and only if a notifier # has been set up. This means that subscribers will only be set up for # classes that call #attach_to. - if public_method_defined?(event) && notifier + if public_method_defined?(event) && notifier add_event_subscriber(event) end end

- See on GitHub + 🔎 See on GitHub
@@ -273,7 +273,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/subscriber.rb, line 130
@@ -282,7 +282,7 @@ 

super end

- See on GitHub + 🔎 See on GitHub
@@ -309,7 +309,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/subscriber.rb, line 78
@@ -317,7 +317,7 @@ 

@@subscribers ||= [] end

- See on GitHub + 🔎 See on GitHub
@@ -347,7 +347,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/subscriber.rb, line 85
@@ -356,13 +356,13 @@ 

pattern = prepare_pattern(event) - # Don't add multiple subscribers (e.g. if methods are redefined). + # Don't add multiple subscribers (e.g. if methods are redefined). return if pattern_subscribed?(pattern) subscriber.patterns[pattern] = notifier.subscribe(pattern, subscriber) end

- See on GitHub + 🔎 See on GitHub
@@ -389,7 +389,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/subscriber.rb, line 96
@@ -404,7 +404,7 @@ 

subscriber.patterns.delete(pattern) end

- See on GitHub + 🔎 See on GitHub
@@ -435,16 +435,16 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/subscriber.rb, line 135
     def call(event)
-      method = event.name[0, event.name.index(".")]
+      method = event.name[0, event.name.index(".")]
       send(method, event)
     end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/TaggedLogging.html b/src/classes/ActiveSupport/TaggedLogging.html index 2e7bc6bee4..8cdb3e725b 100644 --- a/src/classes/ActiveSupport/TaggedLogging.html +++ b/src/classes/ActiveSupport/TaggedLogging.html @@ -111,7 +111,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/tagged_logging.rb, line 117
@@ -121,7 +121,7 @@ 

if logger.formatter logger.formatter = logger.formatter.clone else - # Ensure we set a default formatter so we aren't extending nil! + # Ensure we set a default formatter so we aren't extending nil! logger.formatter = ActiveSupport::Logger::SimpleFormatter.new end @@ -129,7 +129,7 @@

logger.extend(self) end

- See on GitHub + 🔎 See on GitHub
@@ -160,7 +160,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/tagged_logging.rb, line 144
@@ -169,7 +169,7 @@ 

super if defined?(super) end

- See on GitHub + 🔎 See on GitHub
@@ -196,7 +196,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/tagged_logging.rb, line 133
@@ -211,7 +211,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/TestCase.html b/src/classes/ActiveSupport/TestCase.html index 33e84b8b7e..c222590283 100644 --- a/src/classes/ActiveSupport/TestCase.html +++ b/src/classes/ActiveSupport/TestCase.html @@ -195,11 +195,6 @@

Constants

Minitest::Assertion - -   - - - @@ -231,7 +226,7 @@

- See on GitHub + 🔎 See on GitHub @@ -262,7 +257,7 @@

- See on GitHub + 🔎 See on GitHub @@ -308,18 +303,18 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/test_case.rb, line 80
       def parallelize(workers: :number_of_processors, with: :processes, threshold: ActiveSupport.test_parallelization_threshold)
         workers = Concurrent.physical_processor_count if workers == :number_of_processors
-        workers = ENV["PARALLEL_WORKERS"].to_i if ENV["PARALLEL_WORKERS"]
+        workers = ENV["PARALLEL_WORKERS"].to_i if ENV["PARALLEL_WORKERS"]
 
         Minitest.parallel_executor = ActiveSupport::Testing::ParallelizeExecutor.new(size: workers, with: with, threshold: threshold)
       end
- See on GitHub + 🔎 See on GitHub
@@ -357,15 +352,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/test_case.rb, line 100
-      def parallelize_setup(&block)
-        ActiveSupport::Testing::Parallelization.after_fork_hook(&block)
+      def parallelize_setup(&block)
+        ActiveSupport::Testing::Parallelization.after_fork_hook(&block)
       end
- See on GitHub + 🔎 See on GitHub
@@ -403,15 +398,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/test_case.rb, line 117
-      def parallelize_teardown(&block)
-        ActiveSupport::Testing::Parallelization.run_cleanup_hook(&block)
+      def parallelize_teardown(&block)
+        ActiveSupport::Testing::Parallelization.run_cleanup_hook(&block)
       end
- See on GitHub + 🔎 See on GitHub
@@ -443,7 +438,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/test_case.rb, line 43
@@ -451,7 +446,7 @@ 

ActiveSupport.test_order ||= :random end

- See on GitHub + 🔎 See on GitHub
@@ -492,7 +487,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/test_case.rb, line 33
@@ -500,7 +495,7 @@ 

ActiveSupport.test_order = new_order end

- See on GitHub + 🔎 See on GitHub
@@ -530,7 +525,7 @@

- See on GitHub + 🔎 See on GitHub @@ -554,7 +549,7 @@

- See on GitHub + 🔎 See on GitHub @@ -578,7 +573,7 @@

- See on GitHub + 🔎 See on GitHub @@ -602,7 +597,7 @@

- See on GitHub + 🔎 See on GitHub @@ -626,7 +621,7 @@

- See on GitHub + 🔎 See on GitHub @@ -650,7 +645,7 @@

- See on GitHub + 🔎 See on GitHub @@ -674,7 +669,7 @@

- See on GitHub + 🔎 See on GitHub @@ -698,7 +693,7 @@

- See on GitHub + 🔎 See on GitHub @@ -722,7 +717,7 @@

- See on GitHub + 🔎 See on GitHub @@ -746,7 +741,7 @@

- See on GitHub + 🔎 See on GitHub @@ -770,7 +765,7 @@

- See on GitHub + 🔎 See on GitHub @@ -794,7 +789,7 @@

- See on GitHub + 🔎 See on GitHub @@ -818,7 +813,7 @@

- See on GitHub + 🔎 See on GitHub diff --git a/src/classes/ActiveSupport/Testing/Assertions.html b/src/classes/ActiveSupport/Testing/Assertions.html index d75ae02192..78d91d37ab 100644 --- a/src/classes/ActiveSupport/Testing/Assertions.html +++ b/src/classes/ActiveSupport/Testing/Assertions.html @@ -139,39 +139,39 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/testing/assertions.rb, line 191
-      def assert_changes(expression, message = nil, from: UNTRACKED, to: UNTRACKED, &block)
-        exp = expression.respond_to?(:call) ? expression : -> { eval(expression.to_s, block.binding) }
+      def assert_changes(expression, message = nil, from: UNTRACKED, to: UNTRACKED, &block)
+        exp = expression.respond_to?(:call) ? expression : -> { eval(expression.to_s, block.binding) }
 
         before = exp.call
-        retval = _assert_nothing_raised_or_warn("assert_changes", &block)
+        retval = _assert_nothing_raised_or_warn("assert_changes", &block)
 
         unless from == UNTRACKED
-          error = "Expected change from #{from.inspect}, got #{before}"
-          error = "#{message}.\n#{error}" if message
+          error = "Expected change from #{from.inspect}, got #{before}"
+          error = "#{message}.\n#{error}" if message
           assert from === before, error
         end
 
         after = exp.call
 
-        error = "#{expression.inspect} didn't change"
-        error = "#{error}. It was already #{to}" if before == to
-        error = "#{message}.\n#{error}" if message
+        error = "#{expression.inspect} didn't change"
+        error = "#{error}. It was already #{to}" if before == to
+        error = "#{message}.\n#{error}" if message
         refute_equal before, after, error
 
         unless to == UNTRACKED
-          error = "Expected change to #{to}, got #{after}\n"
-          error = "#{message}.\n#{error}" if message
+          error = "Expected change to #{to}, got #{after}\n"
+          error = "#{message}.\n#{error}" if message
           assert to === after, error
         end
 
         retval
       end
- See on GitHub + 🔎 See on GitHub
@@ -249,11 +249,11 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/testing/assertions.rb, line 101
-      def assert_difference(expression, *args, &block)
+      def assert_difference(expression, *args, &block)
         expressions =
           if expression.is_a?(Hash)
             message = args[0]
@@ -267,21 +267,21 @@ 

exps = expressions.keys.map { |e| e.respond_to?(:call) ? e : lambda { eval(e, block.binding) } } - before = exps.map(&:call) + before = exps.map(&:call) - retval = _assert_nothing_raised_or_warn("assert_difference", &block) + retval = _assert_nothing_raised_or_warn("assert_difference", &block) expressions.zip(exps, before) do |(code, diff), exp, before_value| actual = exp.call - error = "#{code.inspect} didn't change by #{diff}, but by #{actual - before_value}" - error = "#{message}.\n#{error}" if message + error = "#{code.inspect} didn't change by #{diff}, but by #{actual - before_value}" + error = "#{message}.\n#{error}" if message assert_equal(before_value + diff, actual, error) end retval end

- See on GitHub + 🔎 See on GitHub
@@ -327,26 +327,26 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/testing/assertions.rb, line 238
-      def assert_no_changes(expression, message = nil, from: UNTRACKED, &block)
-        exp = expression.respond_to?(:call) ? expression : -> { eval(expression.to_s, block.binding) }
+      def assert_no_changes(expression, message = nil, from: UNTRACKED, &block)
+        exp = expression.respond_to?(:call) ? expression : -> { eval(expression.to_s, block.binding) }
 
         before = exp.call
-        retval = _assert_nothing_raised_or_warn("assert_no_changes", &block)
+        retval = _assert_nothing_raised_or_warn("assert_no_changes", &block)
 
         unless from == UNTRACKED
-          error = "Expected initial value of #{from.inspect}"
-          error = "#{message}.\n#{error}" if message
+          error = "Expected initial value of #{from.inspect}"
+          error = "#{message}.\n#{error}" if message
           assert from === before, error
         end
 
         after = exp.call
 
-        error = "#{expression.inspect} changed"
-        error = "#{message}.\n#{error}" if message
+        error = "#{expression.inspect} changed"
+        error = "#{message}.\n#{error}" if message
 
         if before.nil?
           assert_nil after, error
@@ -357,7 +357,7 @@ 

retval end

- See on GitHub + 🔎 See on GitHub
@@ -410,15 +410,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/testing/assertions.rb, line 153
-      def assert_no_difference(expression, message = nil, &block)
-        assert_difference expression, 0, message, &block
+      def assert_no_difference(expression, message = nil, &block)
+        assert_difference expression, 0, message, &block
       end
- See on GitHub + 🔎 See on GitHub
@@ -455,16 +455,16 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/testing/assertions.rb, line 21
       def assert_not(object, message = nil)
-        message ||= "Expected #{mu_pp(object)} to be nil or false"
+        message ||= "Expected #{mu_pp(object)} to be nil or false"
         assert !object, message
       end
- See on GitHub + 🔎 See on GitHub
@@ -498,17 +498,17 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/testing/assertions.rb, line 48
       def assert_nothing_raised
         yield.tap { assert(true) }
-      rescue => error
+      rescue => error
         raise Minitest::UnexpectedError.new(error)
       end
- See on GitHub + 🔎 See on GitHub
@@ -569,17 +569,17 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/testing/assertions.rb, line 34
-      def assert_raises(*exp, match: nil, &block)
-        error = super(*exp, &block)
+      def assert_raises(*exp, match: nil, &block)
+        error = super(*exp, &block)
         assert_match(match, error.message) if match
         error
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/Testing/ConstantStubbing.html b/src/classes/ActiveSupport/Testing/ConstantStubbing.html index 6686fa57e9..fd89c15201 100644 --- a/src/classes/ActiveSupport/Testing/ConstantStubbing.html +++ b/src/classes/ActiveSupport/Testing/ConstantStubbing.html @@ -90,7 +90,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/testing/constant_stubbing.rb, line 21
@@ -104,7 +104,7 @@ 

mod.const_set(constant, old_value) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/Testing/Declarative.html b/src/classes/ActiveSupport/Testing/Declarative.html index ef44fed291..9e6d7916ee 100644 --- a/src/classes/ActiveSupport/Testing/Declarative.html +++ b/src/classes/ActiveSupport/Testing/Declarative.html @@ -83,24 +83,24 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/testing/declarative.rb, line 13
-        def test(name, &block)
-          test_name = "test_#{name.gsub(/\s+/, '_')}".to_sym
+        def test(name, &block)
+          test_name = "test_#{name.gsub(/\s+/, '_')}".to_sym
           defined = method_defined? test_name
-          raise "#{test_name} is already defined in #{self}" if defined
+          raise "#{test_name} is already defined in #{self}" if defined
           if block_given?
-            define_method(test_name, &block)
+            define_method(test_name, &block)
           else
             define_method(test_name) do
-              flunk "No implementation provided for #{name}"
+              flunk "No implementation provided for #{name}"
             end
           end
         end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/Testing/Deprecation.html b/src/classes/ActiveSupport/Testing/Deprecation.html index c8fbcd629d..6894f5b123 100644 --- a/src/classes/ActiveSupport/Testing/Deprecation.html +++ b/src/classes/ActiveSupport/Testing/Deprecation.html @@ -106,26 +106,26 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/testing/deprecation.rb, line 30
-      def assert_deprecated(match = nil, deprecator = nil, &block)
+      def assert_deprecated(match = nil, deprecator = nil, &block)
         match, deprecator = nil, match if match.is_a?(ActiveSupport::Deprecation)
         unless deprecator
-          ActiveSupport.deprecator.warn("assert_deprecated without a deprecator is deprecated")
+          ActiveSupport.deprecator.warn("assert_deprecated without a deprecator is deprecated")
           deprecator = ActiveSupport::Deprecation._instance
         end
-        result, warnings = collect_deprecations(deprecator, &block)
-        assert !warnings.empty?, "Expected a deprecation warning within the block but received none"
+        result, warnings = collect_deprecations(deprecator, &block)
+        assert !warnings.empty?, "Expected a deprecation warning within the block but received none"
         if match
           match = Regexp.new(Regexp.escape(match)) unless match.is_a?(Regexp)
-          assert warnings.any? { |w| match.match?(w) }, "No deprecation warning matched #{match}: #{warnings.join(', ')}"
+          assert warnings.any? { |w| match.match?(w) }, "No deprecation warning matched #{match}: #{warnings.join(', ')}"
         end
         result
       end
- See on GitHub + 🔎 See on GitHub
@@ -161,21 +161,21 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/testing/deprecation.rb, line 54
-      def assert_not_deprecated(deprecator = nil, &block)
+      def assert_not_deprecated(deprecator = nil, &block)
         unless deprecator
-          ActiveSupport.deprecator.warn("assert_not_deprecated without a deprecator is deprecated")
+          ActiveSupport.deprecator.warn("assert_not_deprecated without a deprecator is deprecated")
           deprecator = ActiveSupport::Deprecation._instance
         end
-        result, deprecations = collect_deprecations(deprecator, &block)
-        assert deprecations.empty?, "Expected no deprecation warning within the block but received #{deprecations.size}: \n  #{deprecations * "\n  "}"
+        result, deprecations = collect_deprecations(deprecator, &block)
+        assert deprecations.empty?, "Expected no deprecation warning within the block but received #{deprecations.size}: \n  #{deprecations * "\n  "}"
         result
       end
- See on GitHub + 🔎 See on GitHub
@@ -209,19 +209,19 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/testing/deprecation.rb, line 72
       def collect_deprecations(deprecator = nil)
         unless deprecator
-          ActiveSupport.deprecator.warn("collect_deprecations without a deprecator is deprecated")
+          ActiveSupport.deprecator.warn("collect_deprecations without a deprecator is deprecated")
           deprecator = ActiveSupport::Deprecation._instance
         end
         old_behavior = deprecator.behavior
         deprecations = []
         deprecator.behavior = Proc.new do |message, callstack|
-          deprecations << message
+          deprecations << message
         end
         result = yield
         [result, deprecations]
@@ -229,7 +229,7 @@ 

deprecator.behavior = old_behavior end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/Testing/ErrorReporterAssertions.html b/src/classes/ActiveSupport/Testing/ErrorReporterAssertions.html index c0c8b80c4e..c29c6cc7d0 100644 --- a/src/classes/ActiveSupport/Testing/ErrorReporterAssertions.html +++ b/src/classes/ActiveSupport/Testing/ErrorReporterAssertions.html @@ -113,29 +113,29 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/testing/error_reporter_assertions.rb, line 88
-      def assert_error_reported(error_class = StandardError, &block)
+      def assert_error_reported(error_class = StandardError, &block)
         reports = ErrorCollector.record do
-          _assert_nothing_raised_or_warn("assert_error_reported", &block)
+          _assert_nothing_raised_or_warn("assert_error_reported", &block)
         end
 
         if reports.empty?
-          assert(false, "Expected a #{error_class.name} to be reported, but there were no errors reported.")
+          assert(false, "Expected a #{error_class.name} to be reported, but there were no errors reported.")
         elsif (report = reports.find { |r| error_class === r.error })
           self.assertions += 1
           report
         else
-          message = "Expected a #{error_class.name} to be reported, but none of the " \
-            "#{reports.size} reported errors matched:  \n" \
-            "#{reports.map { |r| r.error.class.name }.join("\n  ")}"
+          message = "Expected a #{error_class.name} to be reported, but none of the " \
+            "#{reports.size} reported errors matched:  \n" \
+            "#{reports.map { |r| r.error.class.name }.join("\n  ")}"
           assert(false, message)
         end
       end
- See on GitHub + 🔎 See on GitHub
@@ -169,18 +169,18 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/testing/error_reporter_assertions.rb, line 62
-      def assert_no_error_reported(&block)
+      def assert_no_error_reported(&block)
         reports = ErrorCollector.record do
-          _assert_nothing_raised_or_warn("assert_no_error_reported", &block)
+          _assert_nothing_raised_or_warn("assert_no_error_reported", &block)
         end
         assert_predicate(reports, :empty?)
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/Testing/FileFixtures.html b/src/classes/ActiveSupport/Testing/FileFixtures.html index 6f3e134398..aad2c45428 100644 --- a/src/classes/ActiveSupport/Testing/FileFixtures.html +++ b/src/classes/ActiveSupport/Testing/FileFixtures.html @@ -92,7 +92,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/testing/file_fixtures.rb, line 26
@@ -102,12 +102,12 @@ 

if path.exist? path else - msg = "the directory '%s' does not contain a file named '%s'" + msg = "the directory '%s' does not contain a file named '%s'" raise ArgumentError, msg % [file_fixture_path, fixture_name] end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/Testing/Isolation.html b/src/classes/ActiveSupport/Testing/Isolation.html index f2cacfc3e7..b270bab140 100644 --- a/src/classes/ActiveSupport/Testing/Isolation.html +++ b/src/classes/ActiveSupport/Testing/Isolation.html @@ -96,15 +96,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/testing/isolation.rb, line 14
       def self.forking_env?
-        !ENV["NO_FORK"] && Process.respond_to?(:fork)
+        !ENV["NO_FORK"] && Process.respond_to?(:fork)
       end
- See on GitHub + 🔎 See on GitHub
@@ -135,7 +135,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/testing/isolation.rb, line 18
@@ -147,7 +147,7 @@ 

Marshal.load(serialized) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/Testing/Isolation/Forking.html b/src/classes/ActiveSupport/Testing/Isolation/Forking.html index ef6a13c797..cda4f53273 100644 --- a/src/classes/ActiveSupport/Testing/Isolation/Forking.html +++ b/src/classes/ActiveSupport/Testing/Isolation/Forking.html @@ -78,11 +78,11 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/testing/isolation.rb, line 27
-        def run_in_isolation(&blk)
+        def run_in_isolation(&blk)
           IO.pipe do |read, write|
             read.binmode
             write.binmode
@@ -107,18 +107,18 @@ 

result = Marshal.dump(test_result) end - write.puts [result].pack("m") + write.puts [result].pack("m") exit! end write.close result = read.read Process.wait2(pid) - result.unpack1("m") + result.unpack1("m") end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/Testing/Isolation/Subprocess.html b/src/classes/ActiveSupport/Testing/Isolation/Subprocess.html index bcb21da4f8..fe56ce2caf 100644 --- a/src/classes/ActiveSupport/Testing/Isolation/Subprocess.html +++ b/src/classes/ActiveSupport/Testing/Isolation/Subprocess.html @@ -59,11 +59,6 @@

Constants

ARGV.dup unless defined?(ORIG_ARGV) - -   - - - @@ -96,33 +91,33 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/testing/isolation.rb, line 69
-        def run_in_isolation(&blk)
-          require "tempfile"
+        def run_in_isolation(&blk)
+          require "tempfile"
 
-          if ENV["ISOLATION_TEST"]
+          if ENV["ISOLATION_TEST"]
             yield
             test_result = defined?(Minitest::Result) ? Minitest::Result.from(self) : dup
-            File.open(ENV["ISOLATION_OUTPUT"], "w") do |file|
-              file.puts [Marshal.dump(test_result)].pack("m")
+            File.open(ENV["ISOLATION_OUTPUT"], "w") do |file|
+              file.puts [Marshal.dump(test_result)].pack("m")
             end
             exit!
           else
-            Tempfile.open("isolation") do |tmpfile|
+            Tempfile.open("isolation") do |tmpfile|
               env = {
-                "ISOLATION_TEST" => self.class.name,
-                "ISOLATION_OUTPUT" => tmpfile.path
+                "ISOLATION_TEST" => self.class.name,
+                "ISOLATION_OUTPUT" => tmpfile.path
               }
 
-              test_opts = "-n#{self.class.name}##{name}"
+              test_opts = "-n#{self.class.name}##{name}"
 
               load_path_args = []
               $-I.each do |p|
-                load_path_args << "-I"
-                load_path_args << File.expand_path(p)
+                load_path_args << "-I"
+                load_path_args << File.expand_path(p)
               end
 
               child = IO.popen([env, Gem.ruby, *load_path_args, $0, *ORIG_ARGV, test_opts])
@@ -133,12 +128,12 @@ 

nil end - return tmpfile.read.unpack1("m") + return tmpfile.read.unpack1("m") end end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/Testing/Parallelization/Server.html b/src/classes/ActiveSupport/Testing/Parallelization/Server.html index 38673e441b..3f9517fd92 100644 --- a/src/classes/ActiveSupport/Testing/Parallelization/Server.html +++ b/src/classes/ActiveSupport/Testing/Parallelization/Server.html @@ -127,7 +127,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/testing/parallelization/server.rb, line 12
@@ -137,7 +137,7 @@ 

@in_flight = Concurrent::Map.new end

- See on GitHub + 🔎 See on GitHub
@@ -168,16 +168,16 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/testing/parallelization/server.rb, line 28
-        def <<(o)
+        def <<(o)
           o[2] = DRbObject.new(o[2]) if o
-          @queue << o
+          @queue << o
         end
- See on GitHub + 🔎 See on GitHub
@@ -204,15 +204,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/testing/parallelization/server.rb, line 48
         def active_workers?
-          @active_workers.size > 0
+          @active_workers.size > 0
         end
- See on GitHub + 🔎 See on GitHub
@@ -239,7 +239,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/testing/parallelization/server.rb, line 52
@@ -247,7 +247,7 @@ 

@queue.clear end

- See on GitHub + 🔎 See on GitHub
@@ -274,7 +274,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/testing/parallelization/server.rb, line 33
@@ -285,7 +285,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -312,7 +312,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/testing/parallelization/server.rb, line 18
@@ -326,7 +326,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -353,7 +353,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/testing/parallelization/server.rb, line 56
@@ -372,16 +372,16 @@ 

@in_flight.values.each do |(klass, name, reporter)| result = Minitest::Result.from(klass.new(name)) - error = RuntimeError.new("result not reported") - error.set_backtrace([""]) - result.failures << Minitest::UnexpectedError.new(error) + error = RuntimeError.new("result not reported") + error.set_backtrace([""]) + result.failures << Minitest::UnexpectedError.new(error) reporter.synchronize do reporter.record(result) end end end

- See on GitHub + 🔎 See on GitHub
@@ -408,7 +408,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/testing/parallelization/server.rb, line 40
@@ -416,7 +416,7 @@ 

@active_workers[worker_id] = true end

- See on GitHub + 🔎 See on GitHub
@@ -443,7 +443,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/testing/parallelization/server.rb, line 44
@@ -451,7 +451,7 @@ 

@active_workers.delete(worker_id) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/Testing/Parallelization/Worker.html b/src/classes/ActiveSupport/Testing/Parallelization/Worker.html index 9e850e0322..f244626b06 100644 --- a/src/classes/ActiveSupport/Testing/Parallelization/Worker.html +++ b/src/classes/ActiveSupport/Testing/Parallelization/Worker.html @@ -107,7 +107,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/testing/parallelization/worker.rb, line 7
@@ -118,7 +118,7 @@ 

@setup_exception = nil end

- See on GitHub + 🔎 See on GitHub
@@ -149,7 +149,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/testing/parallelization/worker.rb, line 80
@@ -159,7 +159,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -186,7 +186,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/testing/parallelization/worker.rb, line 42
@@ -195,7 +195,7 @@ 

method = job[1] reporter = job[2] - set_process_title("#{klass}##{method}") + set_process_title("#{klass}##{method}") result = klass.with_info_handler reporter do Minitest.run_one_method(klass, method) @@ -204,7 +204,7 @@

safe_record(reporter, result) end

- See on GitHub + 🔎 See on GitHub
@@ -231,7 +231,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/testing/parallelization/worker.rb, line 86
@@ -241,7 +241,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -268,7 +268,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/testing/parallelization/worker.rb, line 56
@@ -280,7 +280,7 @@ 

rescue DRb::DRbConnError result.failures.map! do |failure| if failure.respond_to?(:error) - # minitest >5.14.0 + # minitest >5.14.0 error = DRb::DRbRemoteError.new(failure.error) else error = DRb::DRbRemoteError.new(failure.exception) @@ -293,10 +293,10 @@

raise end - set_process_title("(idle)") + set_process_title("(idle)") end

- See on GitHub + 🔎 See on GitHub
@@ -323,13 +323,13 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/testing/parallelization/worker.rb, line 14
         def start
           fork do
-            set_process_title("(starting)")
+            set_process_title("(starting)")
 
             DRb.stop_service
 
@@ -338,18 +338,18 @@ 

begin after_fork - rescue => @setup_exception; end + rescue => @setup_exception; end work_from_queue ensure - set_process_title("(stopping)") + set_process_title("(stopping)") run_cleanup @queue.stop_worker(@id) end end

- See on GitHub + 🔎 See on GitHub
@@ -376,7 +376,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/testing/parallelization/worker.rb, line 36
@@ -386,7 +386,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/Testing/SetupAndTeardown.html b/src/classes/ActiveSupport/Testing/SetupAndTeardown.html index 4173cba48c..f8078a5969 100644 --- a/src/classes/ActiveSupport/Testing/SetupAndTeardown.html +++ b/src/classes/ActiveSupport/Testing/SetupAndTeardown.html @@ -121,7 +121,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/testing/setup_and_teardown.rb, line 21
@@ -131,7 +131,7 @@ 

klass.extend ClassMethods end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/Testing/SetupAndTeardown/ClassMethods.html b/src/classes/ActiveSupport/Testing/SetupAndTeardown/ClassMethods.html index e99482fe50..8dd365a8b4 100644 --- a/src/classes/ActiveSupport/Testing/SetupAndTeardown/ClassMethods.html +++ b/src/classes/ActiveSupport/Testing/SetupAndTeardown/ClassMethods.html @@ -82,15 +82,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/testing/setup_and_teardown.rb, line 29
-        def setup(*args, &block)
-          set_callback(:setup, :before, *args, &block)
+        def setup(*args, &block)
+          set_callback(:setup, :before, *args, &block)
         end
- See on GitHub + 🔎 See on GitHub
@@ -117,15 +117,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/testing/setup_and_teardown.rb, line 34
-        def teardown(*args, &block)
-          set_callback(:teardown, :after, *args, &block)
+        def teardown(*args, &block)
+          set_callback(:teardown, :after, *args, &block)
         end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/Testing/TimeHelpers.html b/src/classes/ActiveSupport/Testing/TimeHelpers.html index 1d330c36be..32aa278321 100644 --- a/src/classes/ActiveSupport/Testing/TimeHelpers.html +++ b/src/classes/ActiveSupport/Testing/TimeHelpers.html @@ -104,7 +104,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/testing/time_helpers.rb, line 69
@@ -113,7 +113,7 @@ 

super end

- See on GitHub + 🔎 See on GitHub
@@ -156,15 +156,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/testing/time_helpers.rb, line 252
-      def freeze_time(with_usec: false, &block)
-        travel_to Time.now, with_usec: with_usec, &block
+      def freeze_time(with_usec: false, &block)
+        travel_to Time.now, with_usec: with_usec, &block
       end
- See on GitHub + 🔎 See on GitHub
@@ -209,15 +209,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/testing/time_helpers.rb, line 97
-      def travel(duration, with_usec: false, &block)
-        travel_to Time.now + duration, with_usec: with_usec, &block
+      def travel(duration, with_usec: false, &block)
+        travel_to Time.now + duration, with_usec: with_usec, &block
       end
- See on GitHub + 🔎 See on GitHub
@@ -271,12 +271,12 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/testing/time_helpers.rb, line 226
       def travel_back
-        stubbed_time = Time.current if block_given? && simple_stubs.stubbed?
+        stubbed_time = Time.current if block_given? && simple_stubs.stubbed?
 
         simple_stubs.unstub_all!
         yield if block_given?
@@ -284,7 +284,7 @@ 

travel_to stubbed_time if stubbed_time end

- See on GitHub + 🔎 See on GitHub
@@ -331,13 +331,13 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/testing/time_helpers.rb, line 133
       def travel_to(date_or_time, with_usec: false)
-        if block_given? && in_block
-          travel_to_nested_block_call = <<~MSG
+        if block_given? && in_block
+          travel_to_nested_block_call = <<~MSG
 
       Calling `travel_to` with a block, when we have previously already made a call to `travel_to`, can lead to confusing time stubbing.
 
@@ -364,7 +364,7 @@ 

raise travel_to_nested_block_call end - if date_or_time.is_a?(Date) && !date_or_time.is_a?(DateTime) + if date_or_time.is_a?(Date) && !date_or_time.is_a?(DateTime) now = date_or_time.midnight.to_time elsif date_or_time.is_a?(String) now = Time.zone.parse(date_or_time) @@ -379,7 +379,7 @@

stubs.stub_object(Time, :now) { at(now) } stubs.stub_object(Time, :new) do |*args, **options| - if args.empty? && options.empty? + if args.empty? && options.empty? at(now) else stub = stubs.stubbing(Time, :new) @@ -405,7 +405,7 @@

end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/TimeWithZone.html b/src/classes/ActiveSupport/TimeWithZone.html index 9ca5107e2b..46ab05734b 100644 --- a/src/classes/ActiveSupport/TimeWithZone.html +++ b/src/classes/ActiveSupport/TimeWithZone.html @@ -364,11 +364,6 @@

Constants

Hash.new { |h, n| h[n] = "%FT%T.%#{n}N" } - -   - - - SECONDS_PER_DAY @@ -376,11 +371,6 @@

Constants

86400 - -   - - - @@ -426,7 +416,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/time_with_zone.rb, line 51
@@ -436,7 +426,7 @@ 

@period = @utc ? period : get_period_and_ensure_valid_local_time(period) end

- See on GitHub + 🔎 See on GitHub
@@ -484,7 +474,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/time_with_zone.rb, line 299
@@ -497,7 +487,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -542,7 +532,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/time_with_zone.rb, line 333
@@ -557,7 +547,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -584,15 +574,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/time_with_zone.rb, line 232
-    def <=>(other)
-      utc <=> other
+    def <=>(other)
+      utc <=> other
     end
- See on GitHub + 🔎 See on GitHub
@@ -619,7 +609,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/time_with_zone.rb, line 494
@@ -627,7 +617,7 @@ 

true end

- See on GitHub + 🔎 See on GitHub
@@ -669,12 +659,12 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/time_with_zone.rb, line 422
     def advance(options)
-      # If we're advancing a value of variable length (i.e., years, weeks, months, days), advance from #time,
+      # If we're advancing a value of variable length (i.e., years, weeks, months, days), advance from #time,
       # otherwise advance from #utc, for accuracy when moving across DST boundaries
       if options.values_at(:years, :weeks, :months, :days).any?
         method_missing(:advance, options)
@@ -683,7 +673,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -723,7 +713,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/time_with_zone.rb, line 361
@@ -731,7 +721,7 @@ 

since(-other) end

- See on GitHub + 🔎 See on GitHub
@@ -767,7 +757,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/time_with_zone.rb, line 166
@@ -775,11 +765,11 @@ 

if ActiveSupport::JSON::Encoding.use_standard_json_time_format xmlschema(ActiveSupport::JSON::Encoding.time_precision) else - %(#{time.strftime("%Y/%m/%d %H:%M:%S")} #{formatted_offset(false)}) + %(#{time.strftime("%Y/%m/%d %H:%M:%S")} #{formatted_offset(false)}) end end

- See on GitHub + 🔎 See on GitHub
@@ -806,7 +796,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/time_with_zone.rb, line 240
@@ -814,7 +804,7 @@ 

utc.between?(min, max) end

- See on GitHub + 🔎 See on GitHub
@@ -841,7 +831,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/time_with_zone.rb, line 505
@@ -849,7 +839,7 @@ 

false end

- See on GitHub + 🔎 See on GitHub
@@ -884,13 +874,13 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/time_with_zone.rb, line 382
     def change(options)
-      if options[:zone] && options[:offset]
-        raise ArgumentError, "Can't change both :offset and :zone at the same time: #{options.inspect}"
+      if options[:zone] && options[:offset]
+        raise ArgumentError, "Can't change both :offset and :zone at the same time: #{options.inspect}"
       end
 
       new_time = time.change(options)
@@ -907,7 +897,7 @@ 

self.class.new(nil, new_zone, new_time, periods.include?(period) ? period : nil) end

- See on GitHub + 🔎 See on GitHub
@@ -968,7 +958,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/time_with_zone.rb, line 94
@@ -976,7 +966,7 @@ 

period.dst? end

- See on GitHub + 🔎 See on GitHub
@@ -1003,7 +993,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/time_with_zone.rb, line 275
@@ -1011,7 +1001,7 @@ 

other.eql?(utc) end

- See on GitHub + 🔎 See on GitHub
@@ -1045,15 +1035,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/time_with_zone.rb, line 125
     def formatted_offset(colon = true, alternate_utc_string = nil)
-      utc? && alternate_utc_string || TimeZone.seconds_to_utc_offset(utc_offset, colon)
+      utc? && alternate_utc_string || TimeZone.seconds_to_utc_offset(utc_offset, colon)
     end
- See on GitHub + 🔎 See on GitHub
@@ -1080,7 +1070,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/time_with_zone.rb, line 509
@@ -1090,7 +1080,7 @@ 

super end

- See on GitHub + 🔎 See on GitHub
@@ -1117,7 +1107,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/time_with_zone.rb, line 270
@@ -1125,7 +1115,7 @@ 

utc.future? end

- See on GitHub + 🔎 See on GitHub
@@ -1327,7 +1317,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/time_with_zone.rb, line 279
@@ -1335,7 +1325,7 @@ 

utc.hash end

- See on GitHub + 🔎 See on GitHub
@@ -1365,7 +1355,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/time_with_zone.rb, line 186
@@ -1373,7 +1363,7 @@ 

utc.httpdate end

- See on GitHub + 🔎 See on GitHub
@@ -1425,7 +1415,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/time_with_zone.rb, line 77
@@ -1434,7 +1424,7 @@ 

utc.in_time_zone(new_zone) end

- See on GitHub + 🔎 See on GitHub
@@ -1464,15 +1454,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/time_with_zone.rb, line 140
     def inspect
-      "#{time.strftime('%a, %d %b %Y %H:%M:%S.%9N')} #{zone} #{formatted_offset}"
+      "#{time.strftime('%a, %d %b %Y %H:%M:%S.%9N')} #{zone} #{formatted_offset}"
     end
- See on GitHub + 🔎 See on GitHub
@@ -1503,7 +1493,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/time_with_zone.rb, line 499
@@ -1511,7 +1501,7 @@ 

klass == ::Time || super end

- See on GitHub + 🔎 See on GitHub
@@ -1617,7 +1607,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/time_with_zone.rb, line 83
@@ -1625,7 +1615,7 @@ 

utc.getlocal(utc_offset) end

- See on GitHub + 🔎 See on GitHub
@@ -1652,7 +1642,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/time_with_zone.rb, line 515
@@ -1660,7 +1650,7 @@ 

[utc, time_zone.name, time] end

- See on GitHub + 🔎 See on GitHub
@@ -1687,7 +1677,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/time_with_zone.rb, line 519
@@ -1695,7 +1685,7 @@ 

initialize(variables[0].utc, ::Time.find_zone(variables[1]), variables[2].utc) end

- See on GitHub + 🔎 See on GitHub
@@ -1722,17 +1712,17 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/time_with_zone.rb, line 540
     def method_missing(...)
       wrap_with_time_zone time.__send__(...)
-    rescue NoMethodError => e
-      raise e, e.message.sub(time.inspect, inspect).sub("Time", "ActiveSupport::TimeWithZone"), e.backtrace
+    rescue NoMethodError => e
+      raise e, e.message.sub(time.inspect, inspect).sub("Time", "ActiveSupport::TimeWithZone"), e.backtrace
     end
- See on GitHub + 🔎 See on GitHub
@@ -1784,7 +1774,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/time_with_zone.rb, line 245
@@ -1792,7 +1782,7 @@ 

utc.past? end

- See on GitHub + 🔎 See on GitHub
@@ -1819,7 +1809,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/time_with_zone.rb, line 72
@@ -1827,7 +1817,7 @@ 

@period ||= time_zone.period_for_utc(@utc) end

- See on GitHub + 🔎 See on GitHub
@@ -1879,17 +1869,17 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/time_with_zone.rb, line 525
     def respond_to?(sym, include_priv = false)
-      # ensure that we're not going to throw and rescue from NoMethodError in method_missing which is slow
+      # ensure that we're not going to throw and rescue from NoMethodError in method_missing which is slow
       return false if sym.to_sym == :to_str
       super
     end
- See on GitHub + 🔎 See on GitHub
@@ -1916,7 +1906,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/time_with_zone.rb, line 533
@@ -1925,7 +1915,7 @@ 

time.respond_to?(sym, include_priv) end

- See on GitHub + 🔎 See on GitHub
@@ -1959,7 +1949,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/time_with_zone.rb, line 194
@@ -1967,7 +1957,7 @@ 

to_fs(:rfc822) end

- See on GitHub + 🔎 See on GitHub
@@ -2069,16 +2059,16 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/time_with_zone.rb, line 226
     def strftime(format)
-      format = format.gsub(/((?:\A|[^%])(?:%%)*)%Z/, "\\1#{zone}")
+      format = format.gsub(/((?:\A|[^%])(?:%%)*)%Z/, "\\1#{zone}")
       getlocal(utc_offset).strftime(format)
     end
- See on GitHub + 🔎 See on GitHub
@@ -2105,7 +2095,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/time_with_zone.rb, line 58
@@ -2113,7 +2103,7 @@ 

@time ||= incorporate_utc_offset(@utc, utc_offset) end

- See on GitHub + 🔎 See on GitHub
@@ -2144,7 +2134,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/time_with_zone.rb, line 445
@@ -2152,7 +2142,7 @@ 

[time.sec, time.min, time.hour, time.day, time.mon, time.year, time.wday, time.yday, dst?, zone] end

- See on GitHub + 🔎 See on GitHub
@@ -2183,7 +2173,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/time_with_zone.rb, line 478
@@ -2191,7 +2181,7 @@ 

@to_datetime ||= utc.to_datetime.new_offset(Rational(utc_offset, 86_400)) end

- See on GitHub + 🔎 See on GitHub
@@ -2221,7 +2211,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/time_with_zone.rb, line 453
@@ -2229,7 +2219,7 @@ 

utc.to_f end

- See on GitHub + 🔎 See on GitHub
@@ -2296,7 +2286,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/time_with_zone.rb, line 212
@@ -2307,11 +2297,11 @@ 

formatter.respond_to?(:call) ? formatter.call(self).to_s : strftime(formatter) else # Change to to_s when deprecation is gone. - "#{time.strftime("%Y-%m-%d %H:%M:%S")} #{formatted_offset(false, 'UTC')}" + "#{time.strftime("%Y-%m-%d %H:%M:%S")} #{formatted_offset(false, 'UTC')}" end end

- See on GitHub + 🔎 See on GitHub
@@ -2345,7 +2335,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/time_with_zone.rb, line 461
@@ -2353,7 +2343,7 @@ 

utc.to_i end

- See on GitHub + 🔎 See on GitHub
@@ -2383,7 +2373,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/time_with_zone.rb, line 470
@@ -2391,7 +2381,7 @@ 

utc.to_r end

- See on GitHub + 🔎 See on GitHub
@@ -2418,15 +2408,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/time_with_zone.rb, line 200
     def to_s
-      "#{time.strftime("%Y-%m-%d %H:%M:%S")} #{formatted_offset(false, 'UTC')}" # mimicking Ruby Time#to_s format
+      "#{time.strftime("%Y-%m-%d %H:%M:%S")} #{formatted_offset(false, 'UTC')}" # mimicking Ruby Time#to_s format
     end
- See on GitHub + 🔎 See on GitHub
@@ -2453,7 +2443,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/time_with_zone.rb, line 485
@@ -2465,7 +2455,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -2492,7 +2482,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/time_with_zone.rb, line 251
@@ -2500,7 +2490,7 @@ 

time.today? end

- See on GitHub + 🔎 See on GitHub
@@ -2531,7 +2521,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/time_with_zone.rb, line 257
@@ -2539,7 +2529,7 @@ 

time.tomorrow? end

- See on GitHub + 🔎 See on GitHub
@@ -2595,7 +2585,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/time_with_zone.rb, line 63
@@ -2603,7 +2593,7 @@ 

@utc ||= incorporate_utc_offset(@time, -utc_offset) end

- See on GitHub + 🔎 See on GitHub
@@ -2640,15 +2630,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/time_with_zone.rb, line 105
     def utc?
-      zone == "UTC" || zone == "UCT"
+      zone == "UTC" || zone == "UCT"
     end
- See on GitHub + 🔎 See on GitHub
@@ -2679,7 +2669,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/time_with_zone.rb, line 111
@@ -2687,7 +2677,7 @@ 

period.observed_utc_offset end

- See on GitHub + 🔎 See on GitHub
@@ -2721,15 +2711,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/time_with_zone.rb, line 148
     def xmlschema(fraction_digits = 0)
-      "#{time.strftime(PRECISIONS[fraction_digits.to_i])}#{formatted_offset(true, 'Z')}"
+      "#{time.strftime(PRECISIONS[fraction_digits.to_i])}#{formatted_offset(true, 'Z')}"
     end
- See on GitHub + 🔎 See on GitHub
@@ -2760,7 +2750,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/time_with_zone.rb, line 264
@@ -2768,7 +2758,7 @@ 

time.yesterday? end

- See on GitHub + 🔎 See on GitHub
@@ -2799,7 +2789,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/time_with_zone.rb, line 133
@@ -2807,7 +2797,7 @@ 

period.abbreviation end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/TimeZone.html b/src/classes/ActiveSupport/TimeZone.html index edb0a1df89..a7886ff11d 100644 --- a/src/classes/ActiveSupport/TimeZone.html +++ b/src/classes/ActiveSupport/TimeZone.html @@ -428,7 +428,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/values/time_zone.rb, line 232
@@ -445,14 +445,14 @@ 

when TZInfo::Timezone @lazy_zones_map[arg.name] ||= create(arg.name, nil, arg) when Numeric, ActiveSupport::Duration - arg *= 3600 if arg.abs <= 13 + arg *= 3600 if arg.abs <= 13 all.find { |z| z.utc_offset == arg.to_i } else - raise ArgumentError, "invalid argument to TimeZone[]: #{arg.inspect}" + raise ArgumentError, "invalid argument to TimeZone[]: #{arg.inspect}" end end

- See on GitHub + 🔎 See on GitHub
@@ -479,7 +479,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/values/time_zone.rb, line 223
@@ -487,7 +487,7 @@ 

@zones ||= zones_map.values.sort end

- See on GitHub + 🔎 See on GitHub
@@ -514,7 +514,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/values/time_zone.rb, line 260
@@ -523,7 +523,7 @@ 

@country_zones[code] ||= load_country_zones(code) end

- See on GitHub + 🔎 See on GitHub
@@ -575,7 +575,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/values/time_zone.rb, line 207
@@ -583,7 +583,7 @@ 

TZInfo::Timezone.get(MAPPING[name] || name) end

- See on GitHub + 🔎 See on GitHub
@@ -610,7 +610,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/values/time_zone.rb, line 303
@@ -620,7 +620,7 @@ 

@tzinfo = tzinfo || TimeZone.find_tzinfo(name) end

- See on GitHub + 🔎 See on GitHub
@@ -651,7 +651,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/values/time_zone.rb, line 216
@@ -659,7 +659,7 @@ 

self[name] end

- See on GitHub + 🔎 See on GitHub
@@ -689,19 +689,19 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/values/time_zone.rb, line 199
       def seconds_to_utc_offset(seconds, colon = true)
         format = colon ? UTC_OFFSET_WITH_COLON : UTC_OFFSET_WITHOUT_COLON
-        sign = (seconds < 0 ? "-" : "+")
+        sign = (seconds < 0 ? "-" : "+")
         hours = seconds.abs / 3600
         minutes = (seconds.abs % 3600) / 60
         format % [sign, hours, minutes]
       end
- See on GitHub + 🔎 See on GitHub
@@ -728,7 +728,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/values/time_zone.rb, line 254
@@ -736,7 +736,7 @@ 

country_zones(:us) end

- See on GitHub + 🔎 See on GitHub
@@ -767,18 +767,18 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/values/time_zone.rb, line 326
-    def <=>(zone)
+    def <=>(zone)
       return unless zone.respond_to? :utc_offset
-      result = (utc_offset <=> zone.utc_offset)
-      result = (name <=> zone.name) if result == 0
+      result = (utc_offset <=> zone.utc_offset)
+      result = (name <=> zone.name) if result == 0
       result
     end
- See on GitHub + 🔎 See on GitHub
@@ -805,7 +805,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/values/time_zone.rb, line 335
@@ -813,7 +813,7 @@ 

re === name || re === MAPPING[name] end

- See on GitHub + 🔎 See on GitHub
@@ -851,7 +851,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/values/time_zone.rb, line 372
@@ -859,7 +859,7 @@ 

Time.at(*args).utc.in_time_zone(self) end

- See on GitHub + 🔎 See on GitHub
@@ -891,15 +891,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/values/time_zone.rb, line 320
     def formatted_offset(colon = true, alternate_utc_string = nil)
-      utc_offset == 0 && alternate_utc_string || self.class.seconds_to_utc_offset(utc_offset, colon)
+      utc_offset == 0 && alternate_utc_string || self.class.seconds_to_utc_offset(utc_offset, colon)
     end
- See on GitHub + 🔎 See on GitHub
@@ -938,7 +938,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/values/time_zone.rb, line 389
@@ -946,7 +946,7 @@ 

# Historically `Date._iso8601(nil)` returns `{}`, but in the `date` gem versions `3.2.1`, `3.1.2`, `3.0.2`, # and `2.0.1`, `Date._iso8601(nil)` raises `TypeError` https://github.com/ruby/date/issues/39 # Future `date` releases are expected to revert back to the original behavior. - raise ArgumentError, "invalid date" if str.nil? + raise ArgumentError, "invalid date" if str.nil? parts = Date._iso8601(str) @@ -978,10 +978,10 @@

end rescue Date::Error, KeyError - raise ArgumentError, "invalid date" + raise ArgumentError, "invalid date" end

- See on GitHub + 🔎 See on GitHub
@@ -1012,7 +1012,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/values/time_zone.rb, line 356
@@ -1021,7 +1021,7 @@ 

ActiveSupport::TimeWithZone.new(nil, self, time) end

- See on GitHub + 🔎 See on GitHub
@@ -1048,7 +1048,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/values/time_zone.rb, line 544
@@ -1056,7 +1056,7 @@ 

tzinfo.local_to_utc(time, dst) end

- See on GitHub + 🔎 See on GitHub
@@ -1083,16 +1083,16 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/values/time_zone.rb, line 341
     def match?(re)
       (re == name) || (re == MAPPING[name]) ||
-        ((Regexp === re) && (re.match?(name) || re.match?(MAPPING[name])))
+        ((Regexp === re) && (re.match?(name) || re.match?(MAPPING[name])))
     end
- See on GitHub + 🔎 See on GitHub
@@ -1123,7 +1123,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/values/time_zone.rb, line 509
@@ -1131,7 +1131,7 @@ 

time_now.utc.in_time_zone(self) end

- See on GitHub + 🔎 See on GitHub
@@ -1175,7 +1175,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/values/time_zone.rb, line 446
@@ -1183,7 +1183,7 @@ 

parts_to_time(Date._parse(str, false), now) end

- See on GitHub + 🔎 See on GitHub
@@ -1210,7 +1210,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/values/time_zone.rb, line 556
@@ -1218,7 +1218,7 @@ 

tzinfo.period_for_local(time, dst) { |periods| periods.last } end

- See on GitHub + 🔎 See on GitHub
@@ -1245,7 +1245,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/values/time_zone.rb, line 550
@@ -1253,7 +1253,7 @@ 

tzinfo.period_for_utc(time) end

- See on GitHub + 🔎 See on GitHub
@@ -1290,14 +1290,14 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/values/time_zone.rb, line 462
     def rfc3339(str)
       parts = Date._rfc3339(str)
 
-      raise ArgumentError, "invalid date" if parts.empty?
+      raise ArgumentError, "invalid date" if parts.empty?
 
       time = Time.new(
         parts.fetch(:year),
@@ -1312,7 +1312,7 @@ 

TimeWithZone.new(time.utc, self) end

- See on GitHub + 🔎 See on GitHub
@@ -1356,7 +1356,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/values/time_zone.rb, line 500
@@ -1364,7 +1364,7 @@ 

parts_to_time(DateTime._strptime(str, format), now) end

- See on GitHub + 🔎 See on GitHub
@@ -1391,15 +1391,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/values/time_zone.rb, line 347
     def to_s
-      "(GMT#{formatted_offset}) #{name}"
+      "(GMT#{formatted_offset}) #{name}"
     end
- See on GitHub + 🔎 See on GitHub
@@ -1426,7 +1426,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/values/time_zone.rb, line 514
@@ -1434,7 +1434,7 @@ 

tzinfo.now.to_date end

- See on GitHub + 🔎 See on GitHub
@@ -1461,7 +1461,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/values/time_zone.rb, line 519
@@ -1469,7 +1469,7 @@ 

today + 1 end

- See on GitHub + 🔎 See on GitHub
@@ -1496,15 +1496,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/values/time_zone.rb, line 310
     def utc_offset
-      @utc_offset || tzinfo&.current_period&.base_utc_offset
+      @utc_offset || tzinfo&.current_period&.base_utc_offset
     end
- See on GitHub + 🔎 See on GitHub
@@ -1533,7 +1533,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/values/time_zone.rb, line 535
@@ -1544,7 +1544,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -1571,7 +1571,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/values/time_zone.rb, line 524
@@ -1579,7 +1579,7 @@ 

today - 1 end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/VERSION.html b/src/classes/ActiveSupport/VERSION.html index 1f2b0da0a4..63c9ddae72 100644 --- a/src/classes/ActiveSupport/VERSION.html +++ b/src/classes/ActiveSupport/VERSION.html @@ -50,11 +50,6 @@

Constants

7 - -   - - - MINOR @@ -62,11 +57,6 @@

Constants

1 - -   - - - PRE @@ -74,11 +64,6 @@

Constants

nil - -   - - - STRING @@ -86,11 +71,6 @@

Constants

[MAJOR, MINOR, TINY, PRE].compact.join(".") - -   - - - TINY @@ -98,11 +78,6 @@

Constants

0 - -   - - - diff --git a/src/classes/ActiveSupport/XMLConverter/DisallowedType.html b/src/classes/ActiveSupport/XMLConverter/DisallowedType.html index 1e6890b1bc..4270325447 100644 --- a/src/classes/ActiveSupport/XMLConverter/DisallowedType.html +++ b/src/classes/ActiveSupport/XMLConverter/DisallowedType.html @@ -89,15 +89,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/hash/conversions.rb, line 144
       def initialize(type)
-        super "Disallowed type attribute: #{type.inspect}"
+        super "Disallowed type attribute: #{type.inspect}"
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/XmlMini.html b/src/classes/ActiveSupport/XmlMini.html index 874b32ec2a..e66450499a 100644 --- a/src/classes/ActiveSupport/XmlMini.html +++ b/src/classes/ActiveSupport/XmlMini.html @@ -89,11 +89,6 @@

Constants

} unless defined?(DEFAULT_ENCODINGS) - -   - - - FORMATTING @@ -107,11 +102,6 @@

Constants

} unless defined?(FORMATTING) - -   - - - PARSING @@ -138,11 +128,6 @@

Constants

} - -   - - - TYPE_NAMES @@ -162,11 +147,6 @@

Constants

} - -   - - - @@ -213,7 +193,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/xml_mini.rb, line 97
@@ -221,7 +201,7 @@ 

current_thread_backend || @backend end

- See on GitHub + 🔎 See on GitHub
@@ -248,17 +228,17 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/xml_mini.rb, line 101
     def backend=(name)
-      backend = name && cast_backend_name_to_module(name)
+      backend = name && cast_backend_name_to_module(name)
       self.current_thread_backend = backend if current_thread_backend
       @backend = backend
     end
- See on GitHub + 🔎 See on GitHub
@@ -285,7 +265,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/xml_mini.rb, line 148
@@ -299,7 +279,7 @@ 

key end

- See on GitHub + 🔎 See on GitHub
@@ -326,7 +306,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/xml_mini.rb, line 115
@@ -344,9 +324,9 @@ 

value.to_xml(merged_options) else type_name ||= TYPE_NAMES[value.class.name] - type_name ||= value.class.name if value && !value.respond_to?(:to_str) + type_name ||= value.class.name if value && !value.respond_to?(:to_str) type_name = type_name.to_s if type_name - type_name = "dateTime" if type_name == "datetime" + type_name = "dateTime" if type_name == "datetime" key = rename_key(key.to_s, options) @@ -356,14 +336,14 @@

encoding = options[:encoding] || DEFAULT_ENCODINGS[type_name] attributes[:encoding] = encoding if encoding - formatted_value = FORMATTING[type_name] && !value.nil? ? + formatted_value = FORMATTING[type_name] && !value.nil? ? FORMATTING[type_name].call(value) : value options[:builder].tag!(key, formatted_value, attributes) end end

- See on GitHub + 🔎 See on GitHub
@@ -390,19 +370,19 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/xml_mini.rb, line 107
     def with_backend(name)
       old_backend = current_thread_backend
-      self.current_thread_backend = name && cast_backend_name_to_module(name)
+      self.current_thread_backend = name && cast_backend_name_to_module(name)
       yield
     ensure
       self.current_thread_backend = old_backend
     end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/XmlMini_LibXMLSAX/HashBuilder.html b/src/classes/ActiveSupport/XmlMini_LibXMLSAX/HashBuilder.html index 17c9883d8f..72fff02fff 100644 --- a/src/classes/ActiveSupport/XmlMini_LibXMLSAX/HashBuilder.html +++ b/src/classes/ActiveSupport/XmlMini_LibXMLSAX/HashBuilder.html @@ -107,11 +107,6 @@

Constants

"__content__" - -   - - - HASH_SIZE_KEY @@ -119,11 +114,6 @@

Constants

"__hash_size__" - -   - - - @@ -170,7 +160,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/xml_mini/libxmlsax.rb, line 21
@@ -178,7 +168,7 @@ 

@hash_stack.last end

- See on GitHub + 🔎 See on GitHub
@@ -234,15 +224,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/xml_mini/libxmlsax.rb, line 55
       def on_characters(string)
-        current_hash[CONTENT_KEY] << string
+        current_hash[CONTENT_KEY] << string
       end
- See on GitHub + 🔎 See on GitHub
@@ -269,7 +259,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/xml_mini/libxmlsax.rb, line 30
@@ -278,7 +268,7 @@ 

@hash.delete(CONTENT_KEY) end

- See on GitHub + 🔎 See on GitHub
@@ -305,18 +295,18 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/xml_mini/libxmlsax.rb, line 48
       def on_end_element(name)
-        if current_hash.length > current_hash.delete(HASH_SIZE_KEY) && current_hash[CONTENT_KEY].blank? || current_hash[CONTENT_KEY] == ""
+        if current_hash.length > current_hash.delete(HASH_SIZE_KEY) && current_hash[CONTENT_KEY].blank? || current_hash[CONTENT_KEY] == ""
           current_hash.delete(CONTENT_KEY)
         end
         @hash_stack.pop
       end
- See on GitHub + 🔎 See on GitHub
@@ -343,16 +333,16 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/xml_mini/libxmlsax.rb, line 25
       def on_start_document
-        @hash = { CONTENT_KEY => +"" }
+        @hash = { CONTENT_KEY => +"" }
         @hash_stack = [@hash]
       end
- See on GitHub + 🔎 See on GitHub
@@ -379,16 +369,16 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/xml_mini/libxmlsax.rb, line 35
       def on_start_element(name, attrs = {})
-        new_hash = { CONTENT_KEY => +"" }.merge!(attrs)
+        new_hash = { CONTENT_KEY => +"" }.merge!(attrs)
         new_hash[HASH_SIZE_KEY] = new_hash.size + 1
 
         case current_hash[name]
-        when Array then current_hash[name] << new_hash
+        when Array then current_hash[name] << new_hash
         when Hash  then current_hash[name] = [current_hash[name], new_hash]
         when nil   then current_hash[name] = new_hash
         end
@@ -396,7 +386,7 @@ 

@hash_stack.push(new_hash) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ActiveSupport/XmlMini_NokogiriSAX/HashBuilder.html b/src/classes/ActiveSupport/XmlMini_NokogiriSAX/HashBuilder.html index d3a0c337cd..c8500585d2 100644 --- a/src/classes/ActiveSupport/XmlMini_NokogiriSAX/HashBuilder.html +++ b/src/classes/ActiveSupport/XmlMini_NokogiriSAX/HashBuilder.html @@ -99,11 +99,6 @@

Constants

"__content__" - -   - - - HASH_SIZE_KEY @@ -111,11 +106,6 @@

Constants

"__hash_size__" - -   - - - @@ -191,15 +181,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/xml_mini/nokogirisax.rb, line 61
       def characters(string)
-        current_hash[CONTENT_KEY] << string
+        current_hash[CONTENT_KEY] << string
       end
- See on GitHub + 🔎 See on GitHub
@@ -226,7 +216,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/xml_mini/nokogirisax.rb, line 24
@@ -234,7 +224,7 @@ 

@hash_stack.last end

- See on GitHub + 🔎 See on GitHub
@@ -261,15 +251,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/xml_mini/nokogirisax.rb, line 33
       def end_document
-        raise "Parse stack not empty!" if @hash_stack.size > 1
+        raise "Parse stack not empty!" if @hash_stack.size > 1
       end
- See on GitHub + 🔎 See on GitHub
@@ -296,18 +286,18 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/xml_mini/nokogirisax.rb, line 54
       def end_element(name)
-        if current_hash.length > current_hash.delete(HASH_SIZE_KEY) && current_hash[CONTENT_KEY].blank? || current_hash[CONTENT_KEY] == ""
+        if current_hash.length > current_hash.delete(HASH_SIZE_KEY) && current_hash[CONTENT_KEY].blank? || current_hash[CONTENT_KEY] == ""
           current_hash.delete(CONTENT_KEY)
         end
         @hash_stack.pop
       end
- See on GitHub + 🔎 See on GitHub
@@ -334,7 +324,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/xml_mini/nokogirisax.rb, line 37
@@ -342,7 +332,7 @@ 

raise error_message end

- See on GitHub + 🔎 See on GitHub
@@ -369,7 +359,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/xml_mini/nokogirisax.rb, line 28
@@ -378,7 +368,7 @@ 

@hash_stack = [@hash] end

- See on GitHub + 🔎 See on GitHub
@@ -405,16 +395,16 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/xml_mini/nokogirisax.rb, line 41
       def start_element(name, attrs = [])
-        new_hash = { CONTENT_KEY => +"" }.merge!(Hash[attrs])
+        new_hash = { CONTENT_KEY => +"" }.merge!(Hash[attrs])
         new_hash[HASH_SIZE_KEY] = new_hash.size + 1
 
         case current_hash[name]
-        when Array then current_hash[name] << new_hash
+        when Array then current_hash[name] << new_hash
         when Hash  then current_hash[name] = [current_hash[name], new_hash]
         when nil   then current_hash[name] = new_hash
         end
@@ -422,7 +412,7 @@ 

@hash_stack.push(new_hash) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/Arel.html b/src/classes/Arel.html index c8efe6d3d1..cd1a652560 100644 --- a/src/classes/Arel.html +++ b/src/classes/Arel.html @@ -59,11 +59,6 @@

Constants

"10.0.0" - -   - - - @@ -104,19 +99,19 @@

- Source code + 📝 Source code
# File activerecord/lib/arel.rb, line 48
   def self.sql(sql_string, *positional_binds, **named_binds)
-    if positional_binds.empty? && named_binds.empty?
+    if positional_binds.empty? && named_binds.empty?
       Arel::Nodes::SqlLiteral.new sql_string
     else
       Arel::Nodes::BoundSqlLiteral.new sql_string, positional_binds, named_binds
     end
   end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/Array.html b/src/classes/Array.html index ac5d2f5637..f1429f5e0b 100644 --- a/src/classes/Array.html +++ b/src/classes/Array.html @@ -243,7 +243,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/array/wrap.rb, line 39
@@ -257,7 +257,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -296,15 +296,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/object/deep_dup.rb, line 29
   def deep_dup
-    map(&:deep_dup)
+    map(&:deep_dup)
   end
- See on GitHub + 🔎 See on GitHub
@@ -341,7 +341,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/array/access.rb, line 47
@@ -349,7 +349,7 @@ 

self - elements.flatten(1) end

- See on GitHub + 🔎 See on GitHub
@@ -381,7 +381,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/array/extract.rb, line 10
@@ -391,13 +391,13 @@ 

extracted_elements = [] reject! do |element| - extracted_elements << element if yield(element) + extracted_elements << element if yield(element) end extracted_elements end

- See on GitHub + 🔎 See on GitHub
@@ -432,19 +432,19 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/array/extract_options.rb, line 24
   def extract_options!
-    if last.is_a?(Hash) && last.extractable_options?
+    if last.is_a?(Hash) && last.extractable_options?
       pop
     else
       {}
     end
   end
- See on GitHub + 🔎 See on GitHub
@@ -474,7 +474,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/array/access.rb, line 76
@@ -482,7 +482,7 @@ 

self[4] end

- See on GitHub + 🔎 See on GitHub
@@ -512,7 +512,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/array/access.rb, line 83
@@ -520,7 +520,7 @@ 

self[41] end

- See on GitHub + 🔎 See on GitHub
@@ -550,7 +550,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/array/access.rb, line 69
@@ -558,7 +558,7 @@ 

self[3] end

- See on GitHub + 🔎 See on GitHub
@@ -593,7 +593,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/array/access.rb, line 12
@@ -601,7 +601,7 @@ 

self[position, length] || [] end

- See on GitHub + 🔎 See on GitHub
@@ -644,11 +644,11 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/array/grouping.rb, line 62
-  def in_groups(number, fill_with = nil, &block)
+  def in_groups(number, fill_with = nil, &block)
     # size.div number gives minor group size;
     # size % number gives how many objects need extra accommodation;
     # each group hold either division or division + 1 items.
@@ -660,21 +660,21 @@ 

start = 0 number.times do |index| - length = division + (modulo > 0 && modulo > index ? 1 : 0) - groups << last_group = slice(start, length) - last_group << fill_with if fill_with != false && - modulo > 0 && length == division + length = division + (modulo > 0 && modulo > index ? 1 : 0) + groups << last_group = slice(start, length) + last_group << fill_with if fill_with != false && + modulo > 0 && length == division start += length end if block_given? - groups.each(&block) + groups.each(&block) else groups end end

- See on GitHub + 🔎 See on GitHub
@@ -718,14 +718,14 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/array/grouping.rb, line 22
-  def in_groups_of(number, fill_with = nil, &block)
-    if number.to_i <= 0
+  def in_groups_of(number, fill_with = nil, &block)
+    if number.to_i <= 0
       raise ArgumentError,
-        "Group size must be a positive integer, was #{number.inspect}"
+        "Group size must be a positive integer, was #{number.inspect}"
     end
 
     if fill_with == false
@@ -733,19 +733,19 @@ 

else # size % number gives how many extra we have; # subtracting from number gives how many to add; - # modulo number ensures we don't add group of just fill. + # modulo number ensures we don't add group of just fill. padding = (number - size % number) % number collection = dup.concat(Array.new(padding, fill_with)) end if block_given? - collection.each_slice(number, &block) + collection.each_slice(number, &block) else collection.each_slice(number).to_a end end

- See on GitHub + 🔎 See on GitHub
@@ -776,7 +776,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/array/access.rb, line 36
@@ -784,7 +784,7 @@ 

self + elements.flatten(1) end

- See on GitHub + 🔎 See on GitHub
@@ -820,7 +820,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/array/inquiry.rb, line 16
@@ -828,7 +828,7 @@ 

ActiveSupport::ArrayInquirer.new(self) end

- See on GitHub + 🔎 See on GitHub
@@ -858,7 +858,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/array/access.rb, line 55
@@ -866,7 +866,7 @@ 

self[1] end

- See on GitHub + 🔎 See on GitHub
@@ -896,7 +896,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/array/access.rb, line 97
@@ -904,7 +904,7 @@ 

self[-2] end

- See on GitHub + 🔎 See on GitHub
@@ -935,28 +935,28 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/array/grouping.rb, line 93
-  def split(value = nil, &block)
+  def split(value = nil, &block)
     arr = dup
     result = []
     if block_given?
-      while (idx = arr.index(&block))
-        result << arr.shift(idx)
+      while (idx = arr.index(&block))
+        result << arr.shift(idx)
         arr.shift
       end
     else
       while (idx = arr.index(value))
-        result << arr.shift(idx)
+        result << arr.shift(idx)
         arr.shift
       end
     end
-    result << arr
+    result << arr
   end
- See on GitHub + 🔎 See on GitHub
@@ -986,7 +986,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/array/access.rb, line 62
@@ -994,7 +994,7 @@ 

self[2] end

- See on GitHub + 🔎 See on GitHub
@@ -1024,7 +1024,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/array/access.rb, line 90
@@ -1032,7 +1032,7 @@ 

self[-3] end

- See on GitHub + 🔎 See on GitHub
@@ -1067,19 +1067,19 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/array/access.rb, line 24
   def to(position)
-    if position >= 0
+    if position >= 0
       take position + 1
     else
       self[0..position]
     end
   end
- See on GitHub + 🔎 See on GitHub
@@ -1142,7 +1142,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/array/conversions.rb, line 94
@@ -1150,16 +1150,16 @@ 

case format when :db if empty? - "null" + "null" else - collect(&:id).join(",") + collect(&:id).join(",") end else to_s end end

- See on GitHub + 🔎 See on GitHub
@@ -1186,15 +1186,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/object/to_query.rb, line 42
   def to_param
-    collect(&:to_param).join "/"
+    collect(&:to_param).join "/"
   end
- See on GitHub + 🔎 See on GitHub
@@ -1224,21 +1224,21 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/object/to_query.rb, line 50
   def to_query(key)
-    prefix = "#{key}[]"
+    prefix = "#{key}[]"
 
     if empty?
       nil.to_query(prefix)
     else
-      collect { |value| value.to_query(prefix) }.join "&"
+      collect { |value| value.to_query(prefix) }.join "&"
     end
   end
- See on GitHub + 🔎 See on GitHub
@@ -1313,7 +1313,7 @@

Examples

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/array/conversions.rb, line 60
@@ -1321,29 +1321,29 @@ 

Examples

options.assert_valid_keys(:words_connector, :two_words_connector, :last_word_connector, :locale) default_connectors = { - words_connector: ", ", - two_words_connector: " and ", - last_word_connector: ", and " + words_connector: ", ", + two_words_connector: " and ", + last_word_connector: ", and " } - if options[:locale] != false && defined?(I18n) - i18n_connectors = I18n.translate(:'support.array', locale: options[:locale], default: {}) + if options[:locale] != false && defined?(I18n) + i18n_connectors = I18n.translate(:'support.array', locale: options[:locale], default: {}) default_connectors.merge!(i18n_connectors) end options = default_connectors.merge!(options) case length when 0 - +"" + +"" when 1 - +"#{self[0]}" + +"#{self[0]}" when 2 - +"#{self[0]}#{options[:two_words_connector]}#{self[1]}" + +"#{self[0]}#{options[:two_words_connector]}#{self[1]}" else - +"#{self[0...-1].join(options[:words_connector])}#{options[:last_word_connector]}#{self[-1]}" + +"#{self[0...-1].join(options[:words_connector])}#{options[:last_word_connector]}#{self[-1]}" end end
- See on GitHub + 🔎 See on GitHub
@@ -1443,22 +1443,22 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/array/conversions.rb, line 185
   def to_xml(options = {})
-    require "active_support/builder" unless defined?(Builder::XmlMarkup)
+    require "active_support/builder" unless defined?(Builder::XmlMarkup)
 
     options = options.dup
     options[:indent]  ||= 2
     options[:builder] ||= Builder::XmlMarkup.new(indent: options[:indent])
     options[:root]    ||= \
-      if first.class != Hash && all?(first.class)
+      if first.class != Hash && all?(first.class)
         underscored = ActiveSupport::Inflector.underscore(first.class.name)
-        ActiveSupport::Inflector.pluralize(underscored).tr("/", "_")
+        ActiveSupport::Inflector.pluralize(underscored).tr("/", "_")
       else
-        "objects"
+        "objects"
       end
 
     builder = options[:builder]
@@ -1466,7 +1466,7 @@ 

root = ActiveSupport::XmlMini.rename_key(options[:root].to_s, options) children = options.delete(:children) || root.singularize - attributes = options[:skip_types] ? {} : { type: "array" } + attributes = options[:skip_types] ? {} : { type: "array" } if empty? builder.tag!(root, attributes) @@ -1478,7 +1478,7 @@

end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/Benchmark.html b/src/classes/Benchmark.html index 1ee6ca1316..d9483dee41 100644 --- a/src/classes/Benchmark.html +++ b/src/classes/Benchmark.html @@ -84,15 +84,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/benchmark.rb, line 13
-  def ms(&block)
-    1000 * realtime(&block)
+  def ms(&block)
+    1000 * realtime(&block)
   end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/Class.html b/src/classes/Class.html index fb6ed4c753..55f2f690a2 100644 --- a/src/classes/Class.html +++ b/src/classes/Class.html @@ -176,7 +176,7 @@

Examples

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/class/attribute.rb, line 85
@@ -186,21 +186,21 @@ 

Examples

class_methods, methods = [], [] attrs.each do |name| unless name.is_a?(Symbol) || name.is_a?(String) - raise TypeError, "#{name.inspect} is not a symbol nor a string" + raise TypeError, "#{name.inspect} is not a symbol nor a string" end - class_methods << <<~RUBY # In case the method exists and is not public + class_methods << <<~RUBY # In case the method exists and is not public silence_redefinition_of_method def #{name} end RUBY - methods << <<~RUBY if instance_reader + methods << <<~RUBY if instance_reader silence_redefinition_of_method def #{name} defined?(@#{name}) ? @#{name} : self.class.#{name} end RUBY - class_methods << <<~RUBY + class_methods << <<~RUBY silence_redefinition_of_method def #{name}=(value) redefine_method(:#{name}) { value } if singleton_class? redefine_singleton_method(:#{name}) { value } @@ -208,26 +208,26 @@

Examples

end RUBY - methods << <<~RUBY if instance_writer + methods << <<~RUBY if instance_writer silence_redefinition_of_method(:#{name}=) attr_writer :#{name} RUBY if instance_predicate - class_methods << "silence_redefinition_of_method def #{name}?; !!self.#{name}; end" + class_methods << "silence_redefinition_of_method def #{name}?; !!self.#{name}; end" if instance_reader - methods << "silence_redefinition_of_method def #{name}?; !!self.#{name}; end" + methods << "silence_redefinition_of_method def #{name}?; !!self.#{name}; end" end end end location = caller_locations(1, 1).first - class_eval(["class << self", *class_methods, "end", *methods].join(";").tr("\n", ";"), location.path, location.lineno) + class_eval(["class << self", *class_methods, "end", *methods].join(";").tr("\n", ";"), location.path, location.lineno) - attrs.each { |name| public_send("#{name}=", default) } + attrs.each { |name| public_send("#{name}=", default) } end
- See on GitHub + 🔎 See on GitHub
@@ -267,15 +267,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/class/subclasses.rb, line 21
     def descendants
-      subclasses.concat(subclasses.flat_map(&:descendants))
+      subclasses.concat(subclasses.flat_map(&:descendants))
     end
- See on GitHub + 🔎 See on GitHub
@@ -309,7 +309,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/class/subclasses.rb, line 38
@@ -317,7 +317,7 @@ 

descendants.select { |descendant| descendant.superclass == self } end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/Date.html b/src/classes/Date.html index 3de2cae357..76f50aa114 100644 --- a/src/classes/Date.html +++ b/src/classes/Date.html @@ -241,11 +241,6 @@

Constants

} - -   - - - @@ -291,7 +286,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/date/calculations.rb, line 19
@@ -299,7 +294,7 @@ 

::ActiveSupport::IsolatedExecutionState[:beginning_of_week] || beginning_of_week_default || :monday end

- See on GitHub + 🔎 See on GitHub
@@ -328,7 +323,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/date/calculations.rb, line 27
@@ -336,7 +331,7 @@ 

::ActiveSupport::IsolatedExecutionState[:beginning_of_week] = find_beginning_of_week!(week_start) end

- See on GitHub + 🔎 See on GitHub
@@ -363,7 +358,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/date/calculations.rb, line 48
@@ -371,7 +366,7 @@ 

::Time.zone ? ::Time.zone.today : ::Date.today end

- See on GitHub + 🔎 See on GitHub
@@ -398,16 +393,16 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/date/calculations.rb, line 32
     def find_beginning_of_week!(week_start)
-      raise ArgumentError, "Invalid beginning of week: #{week_start}" unless ::Date::DAYS_INTO_WEEK.key?(week_start)
+      raise ArgumentError, "Invalid beginning of week: #{week_start}" unless ::Date::DAYS_INTO_WEEK.key?(week_start)
       week_start
     end
- See on GitHub + 🔎 See on GitHub
@@ -434,7 +429,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/date/calculations.rb, line 43
@@ -442,7 +437,7 @@ 

::Date.current.tomorrow end

- See on GitHub + 🔎 See on GitHub
@@ -469,7 +464,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/date/calculations.rb, line 38
@@ -477,7 +472,7 @@ 

::Date.current.yesterday end

- See on GitHub + 🔎 See on GitHub
@@ -537,7 +532,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/date/acts_like.rb, line 7
@@ -545,7 +540,7 @@ 

true end

- See on GitHub + 🔎 See on GitHub
@@ -584,22 +579,22 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/date/calculations.rb, line 127
   def advance(options)
     d = self
 
-    d = d >> options[:years] * 12 if options[:years]
-    d = d >> options[:months] if options[:months]
+    d = d >> options[:years] * 12 if options[:years]
+    d = d >> options[:months] if options[:months]
     d = d + options[:weeks] * 7 if options[:weeks]
     d = d + options[:days] if options[:days]
 
     d
   end
- See on GitHub + 🔎 See on GitHub
@@ -626,7 +621,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/date/calculations.rb, line 55
@@ -634,7 +629,7 @@ 

in_time_zone.since(-seconds) end

- See on GitHub + 🔎 See on GitHub
@@ -815,7 +810,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/date/calculations.rb, line 67
@@ -823,7 +818,7 @@ 

in_time_zone end

- See on GitHub + 🔎 See on GitHub
@@ -854,7 +849,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/date/calculations.rb, line 143
@@ -866,7 +861,7 @@ 

) end

- See on GitHub + 🔎 See on GitHub
@@ -897,19 +892,19 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/date/calculations.rb, line 152
   def compare_with_coercion(other)
     if other.is_a?(Time)
-      to_datetime <=> other
+      to_datetime <=> other
     else
       compare_without_coercion(other)
     end
   end
- See on GitHub + 🔎 See on GitHub
@@ -990,7 +985,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/date/calculations.rb, line 85
@@ -998,7 +993,7 @@ 

in_time_zone.end_of_day end

- See on GitHub + 🔎 See on GitHub
@@ -1108,7 +1103,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/date/calculations.rb, line 75
@@ -1116,7 +1111,7 @@ 

in_time_zone.middle_of_day end

- See on GitHub + 🔎 See on GitHub
@@ -1197,15 +1192,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/date/conversions.rb, line 63
   def readable_inspect
-    strftime("%a, %d %b %Y")
+    strftime("%a, %d %b %Y")
   end
- See on GitHub + 🔎 See on GitHub
@@ -1236,7 +1231,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/date/calculations.rb, line 61
@@ -1244,7 +1239,7 @@ 

in_time_zone.since(seconds) end

- See on GitHub + 🔎 See on GitHub
@@ -1324,7 +1319,7 @@

Adding your
- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/date/conversions.rb, line 47
@@ -1340,7 +1335,7 @@ 

Adding your end end

- See on GitHub + 🔎 See on GitHub
@@ -1377,16 +1372,16 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/date/conversions.rb, line 83
   def to_time(form = :local)
-    raise ArgumentError, "Expected :local or :utc, got #{form.inspect}." unless [:local, :utc].include?(form)
+    raise ArgumentError, "Expected :local or :utc, got #{form.inspect}." unless [:local, :utc].include?(form)
     ::Time.public_send(form, year, month, day)
   end
- See on GitHub + 🔎 See on GitHub
@@ -1417,7 +1412,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/date/conversions.rb, line 95
@@ -1425,7 +1420,7 @@ 

in_time_zone.xmlschema end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/DateAndTime/Calculations.html b/src/classes/DateAndTime/Calculations.html index 8e3614f327..90fb79e6ad 100644 --- a/src/classes/DateAndTime/Calculations.html +++ b/src/classes/DateAndTime/Calculations.html @@ -299,11 +299,6 @@

Constants

} - -   - - - WEEKEND_DAYS @@ -311,11 +306,6 @@

Constants

[ 6, 0 ] - -   - - - @@ -348,15 +338,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/date_and_time/calculations.rb, line 72
     def after?(date_or_time)
-      self > date_or_time
+      self > date_or_time
     end
- See on GitHub + 🔎 See on GitHub
@@ -383,7 +373,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/date_and_time/calculations.rb, line 310
@@ -391,7 +381,7 @@ 

beginning_of_day..end_of_day end

- See on GitHub + 🔎 See on GitHub
@@ -418,7 +408,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/date_and_time/calculations.rb, line 321
@@ -426,7 +416,7 @@ 

beginning_of_month..end_of_month end

- See on GitHub + 🔎 See on GitHub
@@ -453,7 +443,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/date_and_time/calculations.rb, line 326
@@ -461,7 +451,7 @@ 

beginning_of_quarter..end_of_quarter end

- See on GitHub + 🔎 See on GitHub
@@ -488,7 +478,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/date_and_time/calculations.rb, line 316
@@ -496,7 +486,7 @@ 

beginning_of_week(start_day)..end_of_week(start_day) end

- See on GitHub + 🔎 See on GitHub
@@ -523,7 +513,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/date_and_time/calculations.rb, line 331
@@ -531,7 +521,7 @@ 

beginning_of_year..end_of_year end

- See on GitHub + 🔎 See on GitHub
@@ -758,15 +748,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/date_and_time/calculations.rb, line 67
     def before?(date_or_time)
-      self < date_or_time
+      self < date_or_time
     end
- See on GitHub + 🔎 See on GitHub
@@ -807,7 +797,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/date_and_time/calculations.rb, line 125
@@ -815,7 +805,7 @@ 

first_hour(change(day: 1)) end

- See on GitHub + 🔎 See on GitHub
@@ -856,7 +846,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/date_and_time/calculations.rb, line 139
@@ -865,7 +855,7 @@ 

beginning_of_month.change(month: first_quarter_month) end

- See on GitHub + 🔎 See on GitHub
@@ -896,7 +886,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/date_and_time/calculations.rb, line 267
@@ -905,7 +895,7 @@ 

acts_like?(:time) ? result.midnight : result end

- See on GitHub + 🔎 See on GitHub
@@ -946,7 +936,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/date_and_time/calculations.rb, line 179
@@ -954,7 +944,7 @@ 

change(month: 1).beginning_of_month end

- See on GitHub + 🔎 See on GitHub
@@ -981,7 +971,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/date_and_time/calculations.rb, line 77
@@ -989,7 +979,7 @@ 

advance(days: -days) end

- See on GitHub + 🔎 See on GitHub
@@ -1016,7 +1006,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/date_and_time/calculations.rb, line 82
@@ -1024,7 +1014,7 @@ 

advance(days: days) end

- See on GitHub + 🔎 See on GitHub
@@ -1051,7 +1041,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/date_and_time/calculations.rb, line 258
@@ -1060,7 +1050,7 @@ 

(wday - start_day_number) % 7 end

- See on GitHub + 🔎 See on GitHub
@@ -1091,7 +1081,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/date_and_time/calculations.rb, line 296
@@ -1100,7 +1090,7 @@ 

last_hour(days_since(last_day - day)) end

- See on GitHub + 🔎 See on GitHub
@@ -1141,7 +1131,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/date_and_time/calculations.rb, line 154
@@ -1150,7 +1140,7 @@ 

beginning_of_month.change(month: last_quarter_month).end_of_month end

- See on GitHub + 🔎 See on GitHub
@@ -1181,7 +1171,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/date_and_time/calculations.rb, line 283
@@ -1189,7 +1179,7 @@ 

last_hour(days_since(6 - days_to_week_start(start_day))) end

- See on GitHub + 🔎 See on GitHub
@@ -1220,7 +1210,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/date_and_time/calculations.rb, line 304
@@ -1228,7 +1218,7 @@ 

change(month: 12).end_of_month end

- See on GitHub + 🔎 See on GitHub
@@ -1255,15 +1245,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/date_and_time/calculations.rb, line 52
     def future?
-      self > self.class.current
+      self > self.class.current
     end
- See on GitHub + 🔎 See on GitHub
@@ -1290,7 +1280,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/date_and_time/calculations.rb, line 240
@@ -1298,7 +1288,7 @@ 

months_ago(1) end

- See on GitHub + 🔎 See on GitHub
@@ -1400,7 +1390,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/date_and_time/calculations.rb, line 251
@@ -1408,7 +1398,7 @@ 

years_ago(1) end

- See on GitHub + 🔎 See on GitHub
@@ -1435,7 +1425,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/date_and_time/calculations.rb, line 275
@@ -1443,7 +1433,7 @@ 

beginning_of_week(:monday) end

- See on GitHub + 🔎 See on GitHub
@@ -1470,7 +1460,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/date_and_time/calculations.rb, line 97
@@ -1478,7 +1468,7 @@ 

advance(months: -months) end

- See on GitHub + 🔎 See on GitHub
@@ -1505,7 +1495,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/date_and_time/calculations.rb, line 102
@@ -1513,7 +1503,7 @@ 

advance(months: months) end

- See on GitHub + 🔎 See on GitHub
@@ -1570,17 +1560,17 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/date_and_time/calculations.rb, line 340
     def next_occurring(day_of_week)
       from_now = DAYS_INTO_WEEK.fetch(day_of_week) - wday
-      from_now += 7 unless from_now > 0
+      from_now += 7 unless from_now > 0
       advance(days: from_now)
     end
- See on GitHub + 🔎 See on GitHub
@@ -1607,7 +1597,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/date_and_time/calculations.rb, line 215
@@ -1615,7 +1605,7 @@ 

months_since(3) end

- See on GitHub + 🔎 See on GitHub
@@ -1658,7 +1648,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/date_and_time/calculations.rb, line 200
@@ -1667,7 +1657,7 @@ 

same_time ? copy_time_to(result) : result end

- See on GitHub + 🔎 See on GitHub
@@ -1694,7 +1684,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/date_and_time/calculations.rb, line 206
@@ -1706,7 +1696,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -1733,7 +1723,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/date_and_time/calculations.rb, line 62
@@ -1741,7 +1731,7 @@ 

!WEEKEND_DAYS.include?(wday) end

- See on GitHub + 🔎 See on GitHub
@@ -1768,7 +1758,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/date_and_time/calculations.rb, line 57
@@ -1776,7 +1766,7 @@ 

WEEKEND_DAYS.include?(wday) end

- See on GitHub + 🔎 See on GitHub
@@ -1803,15 +1793,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/date_and_time/calculations.rb, line 47
     def past?
-      self < self.class.current
+      self < self.class.current
     end
- See on GitHub + 🔎 See on GitHub
@@ -1868,17 +1858,17 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/date_and_time/calculations.rb, line 351
     def prev_occurring(day_of_week)
       ago = wday - DAYS_INTO_WEEK.fetch(day_of_week)
-      ago += 7 unless ago > 0
+      ago += 7 unless ago > 0
       advance(days: -ago)
     end
- See on GitHub + 🔎 See on GitHub
@@ -1909,7 +1899,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/date_and_time/calculations.rb, line 245
@@ -1917,7 +1907,7 @@ 

months_ago(3) end

- See on GitHub + 🔎 See on GitHub
@@ -1948,7 +1938,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/date_and_time/calculations.rb, line 223
@@ -1957,7 +1947,7 @@ 

same_time ? copy_time_to(result) : result end

- See on GitHub + 🔎 See on GitHub
@@ -1988,7 +1978,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/date_and_time/calculations.rb, line 230
@@ -2000,7 +1990,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -2033,7 +2023,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/date_and_time/calculations.rb, line 166
@@ -2041,7 +2031,7 @@ 

(month / 3.0).ceil end

- See on GitHub + 🔎 See on GitHub
@@ -2068,7 +2058,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/date_and_time/calculations.rb, line 290
@@ -2076,7 +2066,7 @@ 

end_of_week(:monday) end

- See on GitHub + 🔎 See on GitHub
@@ -2103,7 +2093,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/date_and_time/calculations.rb, line 30
@@ -2111,7 +2101,7 @@ 

to_date == ::Date.current end

- See on GitHub + 🔎 See on GitHub
@@ -2138,7 +2128,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/date_and_time/calculations.rb, line 25
@@ -2146,7 +2136,7 @@ 

advance(days: 1) end

- See on GitHub + 🔎 See on GitHub
@@ -2177,7 +2167,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/date_and_time/calculations.rb, line 35
@@ -2185,7 +2175,7 @@ 

to_date == ::Date.current.tomorrow end

- See on GitHub + 🔎 See on GitHub
@@ -2212,7 +2202,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/date_and_time/calculations.rb, line 87
@@ -2220,7 +2210,7 @@ 

advance(weeks: -weeks) end

- See on GitHub + 🔎 See on GitHub
@@ -2247,7 +2237,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/date_and_time/calculations.rb, line 92
@@ -2255,7 +2245,7 @@ 

advance(weeks: weeks) end

- See on GitHub + 🔎 See on GitHub
@@ -2282,7 +2272,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/date_and_time/calculations.rb, line 107
@@ -2290,7 +2280,7 @@ 

advance(years: -years) end

- See on GitHub + 🔎 See on GitHub
@@ -2317,7 +2307,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/date_and_time/calculations.rb, line 112
@@ -2325,7 +2315,7 @@ 

advance(years: years) end

- See on GitHub + 🔎 See on GitHub
@@ -2352,7 +2342,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/date_and_time/calculations.rb, line 20
@@ -2360,7 +2350,7 @@ 

advance(days: -1) end

- See on GitHub + 🔎 See on GitHub
@@ -2391,7 +2381,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/date_and_time/calculations.rb, line 41
@@ -2399,7 +2389,7 @@ 

to_date == ::Date.current.yesterday end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/DateAndTime/Zones.html b/src/classes/DateAndTime/Zones.html index cbd275d9de..3fe3d37e7e 100644 --- a/src/classes/DateAndTime/Zones.html +++ b/src/classes/DateAndTime/Zones.html @@ -91,7 +91,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/date_and_time/zones.rb, line 20
@@ -106,7 +106,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/DateTime.html b/src/classes/DateTime.html index 7adc137091..64a8ea7bc8 100644 --- a/src/classes/DateTime.html +++ b/src/classes/DateTime.html @@ -317,7 +317,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/date_time/conversions.rb, line 73
@@ -330,7 +330,7 @@ 

civil(year, month, day, hour, min, sec, offset) end

- See on GitHub + 🔎 See on GitHub
@@ -357,7 +357,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/date_time/calculations.rb, line 10
@@ -365,7 +365,7 @@ 

::Time.zone ? ::Time.zone.now.to_datetime : ::Time.now.to_datetime end

- See on GitHub + 🔎 See on GitHub
@@ -396,11 +396,11 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/date_time/calculations.rb, line 208
-  def <=>(other)
+  def <=>(other)
     if other.respond_to? :to_datetime
       super other.to_datetime rescue nil
     else
@@ -408,7 +408,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -435,7 +435,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/date_time/acts_like.rb, line 8
@@ -443,7 +443,7 @@ 

true end

- See on GitHub + 🔎 See on GitHub
@@ -470,7 +470,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/date_time/acts_like.rb, line 13
@@ -478,7 +478,7 @@ 

true end

- See on GitHub + 🔎 See on GitHub
@@ -507,7 +507,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/date_time/calculations.rb, line 82
@@ -536,7 +536,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -563,7 +563,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/date_time/calculations.rb, line 109
@@ -571,7 +571,7 @@ 

since(-seconds) end

- See on GitHub + 🔎 See on GitHub
@@ -852,7 +852,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/date_time/calculations.rb, line 122
@@ -860,7 +860,7 @@ 

change(hour: 0) end

- See on GitHub + 🔎 See on GitHub
@@ -891,7 +891,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/date_time/calculations.rb, line 146
@@ -899,7 +899,7 @@ 

change(min: 0) end

- See on GitHub + 🔎 See on GitHub
@@ -930,7 +930,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/date_time/calculations.rb, line 158
@@ -938,7 +938,7 @@ 

change(sec: 0) end

- See on GitHub + 🔎 See on GitHub
@@ -970,20 +970,20 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/date_time/calculations.rb, line 51
   def change(options)
     if new_nsec = options[:nsec]
-      raise ArgumentError, "Can't change both :nsec and :usec at the same time: #{options.inspect}" if options[:usec]
+      raise ArgumentError, "Can't change both :nsec and :usec at the same time: #{options.inspect}" if options[:usec]
       new_fraction = Rational(new_nsec, 1000000000)
     else
       new_usec = options.fetch(:usec, (options[:hour] || options[:min] || options[:sec]) ? 0 : Rational(nsec, 1000))
       new_fraction = Rational(new_usec, 1000000)
     end
 
-    raise ArgumentError, "argument out of range" if new_fraction >= 1
+    raise ArgumentError, "argument out of range" if new_fraction >= 1
 
     ::DateTime.civil(
       options.fetch(:year, year),
@@ -997,7 +997,7 @@ 

) end

- See on GitHub + 🔎 See on GitHub
@@ -1053,7 +1053,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/date_time/calculations.rb, line 140
@@ -1061,7 +1061,7 @@ 

change(hour: 23, min: 59, sec: 59, usec: Rational(999999999, 1000)) end

- See on GitHub + 🔎 See on GitHub
@@ -1092,7 +1092,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/date_time/calculations.rb, line 152
@@ -1100,7 +1100,7 @@ 

change(min: 59, sec: 59, usec: Rational(999999999, 1000)) end

- See on GitHub + 🔎 See on GitHub
@@ -1131,7 +1131,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/date_time/calculations.rb, line 164
@@ -1139,7 +1139,7 @@ 

change(sec: 59, usec: Rational(999999999, 1000)) end

- See on GitHub + 🔎 See on GitHub
@@ -1171,15 +1171,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/date_time/conversions.rb, line 55
   def formatted_offset(colon = true, alternate_utc_string = nil)
-    utc? && alternate_utc_string || ActiveSupport::TimeZone.seconds_to_utc_offset(utc_offset, colon)
+    utc? && alternate_utc_string || ActiveSupport::TimeZone.seconds_to_utc_offset(utc_offset, colon)
   end
- See on GitHub + 🔎 See on GitHub
@@ -1364,7 +1364,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/date_time/calculations.rb, line 170
@@ -1377,7 +1377,7 @@ 

).getlocal(utc_offset) end

- See on GitHub + 🔎 See on GitHub
@@ -1433,7 +1433,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/date_time/calculations.rb, line 130
@@ -1441,7 +1441,7 @@ 

change(hour: 12) end

- See on GitHub + 🔎 See on GitHub
@@ -1518,7 +1518,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/date_time/conversions.rb, line 98
@@ -1526,7 +1526,7 @@ 

(sec_fraction * 1_000_000_000).to_i end

- See on GitHub + 🔎 See on GitHub
@@ -1557,7 +1557,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/date_time/conversions.rb, line 60
@@ -1565,7 +1565,7 @@ 

to_fs(:rfc822) end

- See on GitHub + 🔎 See on GitHub
@@ -1597,7 +1597,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/date_time/calculations.rb, line 20
@@ -1605,7 +1605,7 @@ 

sec + (min * 60) + (hour * 3600) end

- See on GitHub + 🔎 See on GitHub
@@ -1637,7 +1637,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/date_time/calculations.rb, line 29
@@ -1645,7 +1645,7 @@ 

end_of_day.to_i - to_i end

- See on GitHub + 🔎 See on GitHub
@@ -1676,7 +1676,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/date_time/calculations.rb, line 116
@@ -1684,7 +1684,7 @@ 

self + Rational(seconds, 86400) end

- See on GitHub + 🔎 See on GitHub
@@ -1714,7 +1714,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/date_time/calculations.rb, line 36
@@ -1722,7 +1722,7 @@ 

sec_fraction end

- See on GitHub + 🔎 See on GitHub
@@ -1749,7 +1749,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/date_time/conversions.rb, line 83
@@ -1757,7 +1757,7 @@ 

seconds_since_unix_epoch.to_f + sec_fraction end

- See on GitHub + 🔎 See on GitHub
@@ -1838,7 +1838,7 @@

Adding y
- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/date_time/conversions.rb, line 35
@@ -1850,7 +1850,7 @@ 

Adding y end end

- See on GitHub + 🔎 See on GitHub
@@ -1877,7 +1877,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/date_time/conversions.rb, line 88
@@ -1885,7 +1885,7 @@ 

seconds_since_unix_epoch.to_i end

- See on GitHub + 🔎 See on GitHub
@@ -1912,7 +1912,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/date_time/compatibility.rb, line 15
@@ -1920,7 +1920,7 @@ 

preserve_timezone ? getlocal(utc_offset) : getlocal end

- See on GitHub + 🔎 See on GitHub
@@ -1947,7 +1947,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/date_time/conversions.rb, line 93
@@ -1955,7 +1955,7 @@ 

(sec_fraction * 1_000_000).to_i end

- See on GitHub + 🔎 See on GitHub
@@ -1990,7 +1990,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/date_time/calculations.rb, line 184
@@ -2003,7 +2003,7 @@ 

) end

- See on GitHub + 🔎 See on GitHub
@@ -2030,7 +2030,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/date_time/calculations.rb, line 197
@@ -2038,7 +2038,7 @@ 

offset == 0 end

- See on GitHub + 🔎 See on GitHub
@@ -2065,7 +2065,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/date_time/calculations.rb, line 202
@@ -2073,7 +2073,7 @@ 

(offset * 86400).to_i end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/Delegator.html b/src/classes/Delegator.html index 6a70a00130..69e40a2980 100644 --- a/src/classes/Delegator.html +++ b/src/classes/Delegator.html @@ -87,7 +87,7 @@

- See on GitHub + 🔎 See on GitHub @@ -111,7 +111,7 @@

- See on GitHub + 🔎 See on GitHub diff --git a/src/classes/Digest/UUID.html b/src/classes/Digest/UUID.html index b23e6f116e..206ad79d99 100644 --- a/src/classes/Digest/UUID.html +++ b/src/classes/Digest/UUID.html @@ -93,7 +93,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/digest/uuid.rb, line 19
@@ -103,7 +103,7 @@ 

elsif hash_class == Digest::SHA1 || hash_class == OpenSSL::Digest::SHA1 version = 5 else - raise ArgumentError, "Expected OpenSSL::Digest::SHA1 or OpenSSL::Digest::MD5, got #{hash_class.name}." + raise ArgumentError, "Expected OpenSSL::Digest::SHA1 or OpenSSL::Digest::MD5, got #{hash_class.name}." end uuid_namespace = pack_uuid_namespace(namespace) @@ -112,14 +112,14 @@

hash.update(uuid_namespace) hash.update(name) - ary = hash.digest.unpack("NnnnnN") - ary[2] = (ary[2] & 0x0FFF) | (version << 12) - ary[3] = (ary[3] & 0x3FFF) | 0x8000 + ary = hash.digest.unpack("NnnnnN") + ary[2] = (ary[2] & 0x0FFF) | (version << 12) + ary[3] = (ary[3] & 0x3FFF) | 0x8000 - "%08x-%04x-%04x-%04x-%04x%08x" % ary + "%08x-%04x-%04x-%04x-%04x%08x" % ary end

- See on GitHub + 🔎 See on GitHub
@@ -146,7 +146,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/digest/uuid.rb, line 42
@@ -154,7 +154,7 @@ 

uuid_from_hash(OpenSSL::Digest::MD5, uuid_namespace, name) end

- See on GitHub + 🔎 See on GitHub
@@ -181,7 +181,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/digest/uuid.rb, line 52
@@ -189,7 +189,7 @@ 

SecureRandom.uuid end

- See on GitHub + 🔎 See on GitHub
@@ -216,7 +216,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/digest/uuid.rb, line 47
@@ -224,7 +224,7 @@ 

uuid_from_hash(OpenSSL::Digest::SHA1, uuid_namespace, name) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/ERB/Util.html b/src/classes/ERB/Util.html index 39a01e485d..2b054a190e 100644 --- a/src/classes/ERB/Util.html +++ b/src/classes/ERB/Util.html @@ -67,11 +67,6 @@

Constants

{ "&" => "&amp;", ">" => "&gt;", "<" => "&lt;", '"' => "&quot;", "'" => "&#39;" } - -   - - - HTML_ESCAPE_ONCE_REGEXP @@ -79,11 +74,6 @@

Constants

/["><']|&(?!([a-zA-Z]+|(#\d+)|(#[xX][\dA-Fa-f]+));)/ - -   - - - INVALID_TAG_NAME_FOLLOWING_REGEXP @@ -91,11 +81,6 @@

Constants

/[^#{TAG_NAME_FOLLOWING_CODEPOINTS}]/ - -   - - - INVALID_TAG_NAME_START_REGEXP @@ -103,11 +88,6 @@

Constants

/[^#{TAG_NAME_START_CODEPOINTS}]/ - -   - - - SAFE_XML_TAG_NAME_REGEXP @@ -115,11 +95,6 @@

Constants

/\A[#{TAG_NAME_START_CODEPOINTS}][#{TAG_NAME_FOLLOWING_CODEPOINTS}]*\z/ - -   - - - TAG_NAME_FOLLOWING_CODEPOINTS @@ -127,11 +102,6 @@

Constants

"#{TAG_NAME_START_CODEPOINTS}\\-.0-9\u{B7}\u{0300}-\u{036F}\u{203F}-\u{2040}" - -   - - - TAG_NAME_REPLACEMENT_CHAR @@ -139,11 +109,6 @@

Constants

"_" - -   - - - TAG_NAME_START_CODEPOINTS @@ -196,7 +161,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/erb/util.rb, line 63
@@ -204,7 +169,7 @@ 

ActiveSupport::Multibyte::Unicode.tidy_bytes(s.to_s).gsub(HTML_ESCAPE_ONCE_REGEXP, HTML_ESCAPE).html_safe end

- See on GitHub + 🔎 See on GitHub
@@ -263,21 +228,21 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/erb/util.rb, line 124
     def json_escape(s)
       result = s.to_s.dup
-      result.gsub!(">", '\u003e')
-      result.gsub!("<", '\u003c')
-      result.gsub!("&", '\u0026')
-      result.gsub!("\u2028", '\u2028')
-      result.gsub!("\u2029", '\u2029')
+      result.gsub!(">", '\u003e')
+      result.gsub!("<", '\u003c')
+      result.gsub!("&", '\u0026')
+      result.gsub!("\u2028", '\u2028')
+      result.gsub!("\u2029", '\u2029')
       s.html_safe? ? result.html_safe : result
     end
- See on GitHub + 🔎 See on GitHub
@@ -310,13 +275,13 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/erb/util.rb, line 142
     def xml_name_escape(name)
       name = name.to_s
-      return "" if name.blank?
+      return "" if name.blank?
       return name if name.match?(SAFE_XML_TAG_NAME_REGEXP)
 
       starting_char = name[0]
@@ -327,10 +292,10 @@ 

following_chars = name[1..-1] following_chars.gsub!(INVALID_TAG_NAME_FOLLOWING_REGEXP, TAG_NAME_REPLACEMENT_CHAR) - starting_char << following_chars + starting_char << following_chars end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/Enumerable.html b/src/classes/Enumerable.html index a974d514c1..4678e4cf9f 100644 --- a/src/classes/Enumerable.html +++ b/src/classes/Enumerable.html @@ -158,15 +158,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/enumerable.rb, line 184
   def compact_blank
-    reject(&:blank?)
+    reject(&:blank?)
   end
- See on GitHub + 🔎 See on GitHub
@@ -193,7 +193,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/enumerable.rb, line 118
@@ -201,7 +201,7 @@ 

!include?(object) end

- See on GitHub + 🔎 See on GitHub
@@ -242,7 +242,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/enumerable.rb, line 132
@@ -251,7 +251,7 @@ 

reject { |element| elements.include?(element) } end

- See on GitHub + 🔎 See on GitHub
@@ -284,15 +284,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/enumerable.rb, line 196
   def in_order_of(key, series)
-    group_by(&key).values_at(*series).flatten(1).compact
+    group_by(&key).values_at(*series).flatten(1).compact
   end
- See on GitHub + 🔎 See on GitHub
@@ -326,7 +326,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/enumerable.rb, line 112
@@ -334,7 +334,7 @@ 

to_a.including(*elements) end

- See on GitHub + 🔎 See on GitHub
@@ -368,7 +368,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/enumerable.rb, line 52
@@ -382,7 +382,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -421,7 +421,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/enumerable.rb, line 75
@@ -439,7 +439,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -466,7 +466,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/enumerable.rb, line 93
@@ -475,14 +475,14 @@ 

if block_given? any? do |*args| cnt += 1 if yield(*args) - cnt > 1 + cnt > 1 end else - any? { (cnt += 1) > 1 } + any? { (cnt += 1) > 1 } end end

- See on GitHub + 🔎 See on GitHub
@@ -513,15 +513,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/enumerable.rb, line 40
   def maximum(key)
-    map(&key).max
+    map(&key).max
   end
- See on GitHub + 🔎 See on GitHub
@@ -552,15 +552,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/enumerable.rb, line 32
   def minimum(key)
-    map(&key).min
+    map(&key).min
   end
- See on GitHub + 🔎 See on GitHub
@@ -594,7 +594,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/enumerable.rb, line 161
@@ -608,7 +608,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -642,7 +642,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/enumerable.rb, line 145
@@ -655,7 +655,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -687,19 +687,19 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/enumerable.rb, line 206
   def sole
     case count
     when 1   then return first # rubocop:disable Style/RedundantReturn
-    when 0   then raise ActiveSupport::EnumerableCoreExt::SoleItemExpectedError, "no item found"
-    when 2.. then raise ActiveSupport::EnumerableCoreExt::SoleItemExpectedError, "multiple items found"
+    when 0   then raise ActiveSupport::EnumerableCoreExt::SoleItemExpectedError, "no item found"
+    when 2.. then raise ActiveSupport::EnumerableCoreExt::SoleItemExpectedError, "multiple items found"
     end
   end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/Exception.html b/src/classes/Exception.html index 404a7bc72a..02ac376070 100644 --- a/src/classes/Exception.html +++ b/src/classes/Exception.html @@ -84,7 +84,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/object/json.rb, line 249
@@ -92,7 +92,7 @@ 

to_s end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/FalseClass.html b/src/classes/FalseClass.html index 71249cc0fa..ccd687a659 100644 --- a/src/classes/FalseClass.html +++ b/src/classes/FalseClass.html @@ -97,7 +97,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/object/blank.rb, line 67
@@ -105,7 +105,7 @@ 

true end

- See on GitHub + 🔎 See on GitHub
@@ -132,7 +132,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/object/to_query.rb, line 34
@@ -140,7 +140,7 @@ 

self end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/File.html b/src/classes/File.html index 9343fbd667..1404ecc9ad 100644 --- a/src/classes/File.html +++ b/src/classes/File.html @@ -99,14 +99,14 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/file/atomic.rb, line 21
   def self.atomic_write(file_name, temp_dir = dirname(file_name))
-    require "tempfile" unless defined?(Tempfile)
+    require "tempfile" unless defined?(Tempfile)
 
-    Tempfile.open(".#{basename(file_name)}", temp_dir) do |temp_file|
+    Tempfile.open(".#{basename(file_name)}", temp_dir) do |temp_file|
       temp_file.binmode
       return_val = yield temp_file
       temp_file.close
@@ -124,7 +124,7 @@ 

# Set correct permissions on new file begin chown(old_stat.uid, old_stat.gid, temp_file.path) - # This operation will affect filesystem ACL's + # This operation will affect filesystem ACL's chmod(old_stat.mode, temp_file.path) rescue Errno::EPERM, Errno::EACCES # Changing file ownership failed, moving on. @@ -137,7 +137,7 @@

end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/Hash.html b/src/classes/Hash.html index 7afbf9515f..89e385f741 100644 --- a/src/classes/Hash.html +++ b/src/classes/Hash.html @@ -245,7 +245,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/hash/conversions.rb, line 133
@@ -253,7 +253,7 @@ 

from_xml xml, [] end

- See on GitHub + 🔎 See on GitHub
@@ -310,7 +310,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/hash/conversions.rb, line 128
@@ -318,7 +318,7 @@ 

ActiveSupport::XMLConverter.new(xml, disallowed_types).to_h end

- See on GitHub + 🔎 See on GitHub
@@ -356,7 +356,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/hash/keys.rb, line 48
@@ -364,12 +364,12 @@ 

valid_keys.flatten! each_key do |k| unless valid_keys.include?(k) - raise ArgumentError.new("Unknown key: #{k.inspect}. Valid keys are: #{valid_keys.map(&:inspect).join(', ')}") + raise ArgumentError.new("Unknown key: #{k.inspect}. Valid keys are: #{valid_keys.map(&:inspect).join(', ')}") end end end

- See on GitHub + 🔎 See on GitHub
@@ -401,7 +401,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/enumerable.rb, line 227
@@ -410,7 +410,7 @@ 

delete_if { |_k, v| v.blank? } end

- See on GitHub + 🔎 See on GitHub
@@ -445,7 +445,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/object/deep_dup.rb, line 43
@@ -462,7 +462,7 @@ 

hash end

- See on GitHub + 🔎 See on GitHub
@@ -502,7 +502,7 @@

- See on GitHub + 🔎 See on GitHub @@ -533,15 +533,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/hash/keys.rb, line 84
   def deep_stringify_keys
-    deep_transform_keys(&:to_s)
+    deep_transform_keys(&:to_s)
   end
- See on GitHub + 🔎 See on GitHub
@@ -568,15 +568,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/hash/keys.rb, line 91
   def deep_stringify_keys!
-    deep_transform_keys!(&:to_s)
+    deep_transform_keys!(&:to_s)
   end
- See on GitHub + 🔎 See on GitHub
@@ -609,7 +609,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/hash/keys.rb, line 103
@@ -617,7 +617,7 @@ 

deep_transform_keys { |key| key.to_sym rescue key } end

- See on GitHub + 🔎 See on GitHub
@@ -644,7 +644,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/hash/keys.rb, line 110
@@ -652,7 +652,7 @@ 

deep_transform_keys! { |key| key.to_sym rescue key } end

- See on GitHub + 🔎 See on GitHub
@@ -685,15 +685,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/hash/keys.rb, line 65
-  def deep_transform_keys(&block)
-    _deep_transform_keys_in_object(self, &block)
+  def deep_transform_keys(&block)
+    _deep_transform_keys_in_object(self, &block)
   end
- See on GitHub + 🔎 See on GitHub
@@ -720,15 +720,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/hash/keys.rb, line 72
-  def deep_transform_keys!(&block)
-    _deep_transform_keys_in_object!(self, &block)
+  def deep_transform_keys!(&block)
+    _deep_transform_keys_in_object!(self, &block)
   end
- See on GitHub + 🔎 See on GitHub
@@ -761,15 +761,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/hash/deep_transform_values.rb, line 12
-  def deep_transform_values(&block)
-    _deep_transform_values_in_object(self, &block)
+  def deep_transform_values(&block)
+    _deep_transform_values_in_object(self, &block)
   end
- See on GitHub + 🔎 See on GitHub
@@ -796,15 +796,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/hash/deep_transform_values.rb, line 19
-  def deep_transform_values!(&block)
-    _deep_transform_values_in_object!(self, &block)
+  def deep_transform_values!(&block)
+    _deep_transform_values_in_object!(self, &block)
   end
- See on GitHub + 🔎 See on GitHub
@@ -842,7 +842,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/hash/except.rb, line 12
@@ -850,7 +850,7 @@ 

slice(*self.keys - keys) end

- See on GitHub + 🔎 See on GitHub
@@ -882,7 +882,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/hash/except.rb, line 20
@@ -891,7 +891,7 @@ 

self end

- See on GitHub + 🔎 See on GitHub
@@ -923,7 +923,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/hash/slice.rb, line 24
@@ -931,7 +931,7 @@ 

keys.each_with_object(self.class.new) { |key, result| result[key] = delete(key) if has_key?(key) } end

- See on GitHub + 🔎 See on GitHub
@@ -958,7 +958,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/array/extract_options.rb, line 9
@@ -966,7 +966,7 @@ 

instance_of?(Hash) end

- See on GitHub + 🔎 See on GitHub
@@ -1037,7 +1037,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/hash/reverse_merge.rb, line 14
@@ -1045,7 +1045,7 @@ 

other_hash.merge(self) end

- See on GitHub + 🔎 See on GitHub
@@ -1076,7 +1076,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/hash/reverse_merge.rb, line 20
@@ -1084,7 +1084,7 @@ 

replace(reverse_merge(other_hash)) end

- See on GitHub + 🔎 See on GitHub
@@ -1141,7 +1141,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/hash/slice.rb, line 10
@@ -1154,7 +1154,7 @@ 

omit end

- See on GitHub + 🔎 See on GitHub
@@ -1187,15 +1187,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/hash/keys.rb, line 10
   def stringify_keys
-    transform_keys(&:to_s)
+    transform_keys(&:to_s)
   end
- See on GitHub + 🔎 See on GitHub
@@ -1222,15 +1222,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/hash/keys.rb, line 16
   def stringify_keys!
-    transform_keys!(&:to_s)
+    transform_keys!(&:to_s)
   end
- See on GitHub + 🔎 See on GitHub
@@ -1267,7 +1267,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/hash/keys.rb, line 27
@@ -1275,7 +1275,7 @@ 

transform_keys { |key| key.to_sym rescue key } end

- See on GitHub + 🔎 See on GitHub
@@ -1306,7 +1306,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/hash/keys.rb, line 34
@@ -1314,7 +1314,7 @@ 

transform_keys! { |key| key.to_sym rescue key } end

- See on GitHub + 🔎 See on GitHub
@@ -1432,22 +1432,22 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/object/to_query.rb, line 75
   def to_query(namespace = nil)
     query = filter_map do |key, value|
-      unless (value.is_a?(Hash) || value.is_a?(Array)) && value.empty?
-        value.to_query(namespace ? "#{namespace}[#{key}]" : key)
+      unless (value.is_a?(Hash) || value.is_a?(Array)) && value.empty?
+        value.to_query(namespace ? "#{namespace}[#{key}]" : key)
       end
     end
 
-    query.sort! unless namespace.to_s.include?("[]")
-    query.join("&")
+    query.sort! unless namespace.to_s.include?("[]")
+    query.join("&")
   end
- See on GitHub + 🔎 See on GitHub
@@ -1530,16 +1530,16 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/hash/conversions.rb, line 74
   def to_xml(options = {})
-    require "active_support/builder" unless defined?(Builder::XmlMarkup)
+    require "active_support/builder" unless defined?(Builder::XmlMarkup)
 
     options = options.dup
     options[:indent]  ||= 2
-    options[:root]    ||= "hash"
+    options[:root]    ||= "hash"
     options[:builder] ||= Builder::XmlMarkup.new(indent: options[:indent])
 
     builder = options[:builder]
@@ -1553,7 +1553,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -1637,7 +1637,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/hash/indifferent_access.rb, line 9
@@ -1645,7 +1645,7 @@ 

ActiveSupport::HashWithIndifferentAccess.new(self) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/Integer.html b/src/classes/Integer.html index 48fdb00500..30ab25ecdf 100644 --- a/src/classes/Integer.html +++ b/src/classes/Integer.html @@ -144,7 +144,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/integer/time.rb, line 10
@@ -152,7 +152,7 @@ 

ActiveSupport::Duration.months(self) end

- See on GitHub + 🔎 See on GitHub
@@ -184,7 +184,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/integer/multiple.rb, line 9
@@ -192,7 +192,7 @@ 

number == 0 ? self == 0 : self % number == 0 end

- See on GitHub + 🔎 See on GitHub
@@ -227,7 +227,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/integer/inflections.rb, line 28
@@ -235,7 +235,7 @@ 

ActiveSupport::Inflector.ordinal(self) end

- See on GitHub + 🔎 See on GitHub
@@ -270,7 +270,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/integer/inflections.rb, line 15
@@ -278,7 +278,7 @@ 

ActiveSupport::Inflector.ordinalize(self) end

- See on GitHub + 🔎 See on GitHub
@@ -337,7 +337,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/integer/time.rb, line 18
@@ -345,7 +345,7 @@ 

ActiveSupport::Duration.years(self) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/Kernel.html b/src/classes/Kernel.html index b626bd1e4c..94c152da04 100644 --- a/src/classes/Kernel.html +++ b/src/classes/Kernel.html @@ -102,15 +102,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/kernel/singleton_class.rb, line 5
-  def class_eval(*args, &block)
-    singleton_class.class_eval(*args, &block)
+  def class_eval(*args, &block)
+    singleton_class.class_eval(*args, &block)
   end
- See on GitHub + 🔎 See on GitHub
@@ -139,15 +139,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/kernel/concern.rb, line 11
-  def concern(topic, &module_definition)
-    Object.concern topic, &module_definition
+  def concern(topic, &module_definition)
+    Object.concern topic, &module_definition
   end
- See on GitHub + 🔎 See on GitHub
@@ -174,15 +174,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/kernel/reporting.rb, line 20
-  def enable_warnings(&block)
-    with_warnings(true, &block)
+  def enable_warnings(&block)
+    with_warnings(true, &block)
   end
- See on GitHub + 🔎 See on GitHub
@@ -216,15 +216,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/kernel/reporting.rb, line 14
-  def silence_warnings(&block)
-    with_warnings(nil, &block)
+  def silence_warnings(&block)
+    with_warnings(nil, &block)
   end
- See on GitHub + 🔎 See on GitHub
@@ -259,7 +259,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/kernel/reporting.rb, line 41
@@ -268,7 +268,7 @@ 

rescue *exception_classes end

- See on GitHub + 🔎 See on GitHub
@@ -295,7 +295,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/kernel/reporting.rb, line 26
@@ -306,7 +306,7 @@ 

$VERBOSE = old_verbose end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/LoadError.html b/src/classes/LoadError.html index 89d579815f..a3a434057b 100644 --- a/src/classes/LoadError.html +++ b/src/classes/LoadError.html @@ -84,15 +84,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/load_error.rb, line 6
   def is_missing?(location)
-    location.delete_suffix(".rb") == path.to_s.delete_suffix(".rb")
+    location.delete_suffix(".rb") == path.to_s.delete_suffix(".rb")
   end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/Mail.html b/src/classes/Mail.html index 91376fd931..8093810866 100644 --- a/src/classes/Mail.html +++ b/src/classes/Mail.html @@ -106,7 +106,7 @@

- Source code + 📝 Source code
# File actionmailbox/lib/action_mailbox/mail_ext/from_source.rb, line 4
@@ -114,7 +114,7 @@ 

Mail.new Mail::Utilities.binary_unsafe_to_crlf(source.to_s) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/Mail/Address.html b/src/classes/Mail/Address.html index 9b1b8a8166..b6d44b3654 100644 --- a/src/classes/Mail/Address.html +++ b/src/classes/Mail/Address.html @@ -89,7 +89,7 @@

- Source code + 📝 Source code
# File actionmailbox/lib/action_mailbox/mail_ext/address_wrapping.rb, line 5
@@ -97,7 +97,7 @@ 

address.is_a?(Mail::Address) ? address : Mail::Address.new(address) end

- See on GitHub + 🔎 See on GitHub
@@ -128,15 +128,15 @@

- Source code + 📝 Source code
# File actionmailbox/lib/action_mailbox/mail_ext/address_equality.rb, line 5
     def ==(other_address)
-      other_address.is_a?(Mail::Address) && to_s == other_address.to_s
+      other_address.is_a?(Mail::Address) && to_s == other_address.to_s
     end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/Mail/Message.html b/src/classes/Mail/Message.html index 354f178594..26da0300a0 100644 --- a/src/classes/Mail/Message.html +++ b/src/classes/Mail/Message.html @@ -114,15 +114,15 @@

- Source code + 📝 Source code
# File actionmailbox/lib/action_mailbox/mail_ext/addresses.rb, line 21
     def bcc_addresses
-      Array(address_list(header[:bcc])&.addresses)
+      Array(address_list(header[:bcc])&.addresses)
     end
- See on GitHub + 🔎 See on GitHub
@@ -149,15 +149,15 @@

- Source code + 📝 Source code
# File actionmailbox/lib/action_mailbox/mail_ext/addresses.rb, line 17
     def cc_addresses
-      Array(address_list(header[:cc])&.addresses)
+      Array(address_list(header[:cc])&.addresses)
     end
- See on GitHub + 🔎 See on GitHub
@@ -184,15 +184,15 @@

- Source code + 📝 Source code
# File actionmailbox/lib/action_mailbox/mail_ext/addresses.rb, line 5
     def from_address
-      address_list(header[:from])&.addresses&.first
+      address_list(header[:from])&.addresses&.first
     end
- See on GitHub + 🔎 See on GitHub
@@ -219,16 +219,16 @@

- Source code + 📝 Source code
# File actionmailbox/lib/action_mailbox/mail_ext/recipients.rb, line 5
     def recipients
-      Array(to) + Array(cc) + Array(bcc) + Array(header[:x_original_to]).map(&:to_s) +
-        Array(header[:x_forwarded_to]).map(&:to_s)
+      Array(to) + Array(cc) + Array(bcc) + Array(header[:x_original_to]).map(&:to_s) +
+        Array(header[:x_forwarded_to]).map(&:to_s)
     end
- See on GitHub + 🔎 See on GitHub
@@ -255,7 +255,7 @@

- Source code + 📝 Source code
# File actionmailbox/lib/action_mailbox/mail_ext/addresses.rb, line 9
@@ -263,7 +263,7 @@ 

to_addresses + cc_addresses + bcc_addresses + x_original_to_addresses + x_forwarded_to_addresses end

- See on GitHub + 🔎 See on GitHub
@@ -290,15 +290,15 @@

- Source code + 📝 Source code
# File actionmailbox/lib/action_mailbox/mail_ext/addresses.rb, line 13
     def to_addresses
-      Array(address_list(header[:to])&.addresses)
+      Array(address_list(header[:to])&.addresses)
     end
- See on GitHub + 🔎 See on GitHub
@@ -325,7 +325,7 @@

- Source code + 📝 Source code
# File actionmailbox/lib/action_mailbox/mail_ext/addresses.rb, line 29
@@ -333,7 +333,7 @@ 

Array(header[:x_forwarded_to]).collect { |header| Mail::Address.new header.to_s } end

- See on GitHub + 🔎 See on GitHub
@@ -360,7 +360,7 @@

- Source code + 📝 Source code
# File actionmailbox/lib/action_mailbox/mail_ext/addresses.rb, line 25
@@ -368,7 +368,7 @@ 

Array(header[:x_original_to]).collect { |header| Mail::Address.new header.to_s } end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/Method.html b/src/classes/Method.html index 7c408268e0..83124fb303 100644 --- a/src/classes/Method.html +++ b/src/classes/Method.html @@ -88,7 +88,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/object/duplicable.rb, line 36
@@ -96,7 +96,7 @@ 

false end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/Mime.html b/src/classes/Mime.html index 8a8c95711c..5f26edcdf1 100644 --- a/src/classes/Mime.html +++ b/src/classes/Mime.html @@ -104,11 +104,6 @@

Constants

{} - -   - - - LOOKUP @@ -116,11 +111,6 @@

Constants

{} - -   - - - SET @@ -128,11 +118,6 @@

Constants

Mimes.new - -   - - - @@ -164,7 +149,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/mime_type.rb, line 49
@@ -173,7 +158,7 @@ 

Type.lookup_by_extension(type) end

- See on GitHub + 🔎 See on GitHub
@@ -200,16 +185,16 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/mime_type.rb, line 62
-    def fetch(type, &block)
+    def fetch(type, &block)
       return type if type.is_a?(Type)
-      EXTENSION_LOOKUP.fetch(type.to_s, &block)
+      EXTENSION_LOOKUP.fetch(type.to_s, &block)
     end
- See on GitHub + 🔎 See on GitHub
@@ -236,7 +221,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/mime_type.rb, line 54
@@ -244,7 +229,7 @@ 

SET.symbols end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/Mime/AllType.html b/src/classes/Mime/AllType.html index 58c081f21b..fc77c6ba40 100644 --- a/src/classes/Mime/AllType.html +++ b/src/classes/Mime/AllType.html @@ -105,15 +105,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/mime_type.rb, line 345
     def initialize
-      super "*/*", nil
+      super "*/*", nil
     end
- See on GitHub + 🔎 See on GitHub
@@ -144,13 +144,13 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/mime_type.rb, line 349
     def all?; true; end
- See on GitHub + 🔎 See on GitHub
@@ -177,13 +177,13 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/mime_type.rb, line 350
     def html?; true; end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/Mime/Mimes.html b/src/classes/Mime/Mimes.html index 576a0cd22b..3967068b42 100644 --- a/src/classes/Mime/Mimes.html +++ b/src/classes/Mime/Mimes.html @@ -127,7 +127,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/mime_type.rb, line 11
@@ -137,7 +137,7 @@ 

@symbols_set = Set.new end

- See on GitHub + 🔎 See on GitHub
@@ -168,18 +168,18 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/mime_type.rb, line 21
-    def <<(type)
-      @mimes << type
+    def <<(type)
+      @mimes << type
       sym_type = type.to_sym
-      @symbols << sym_type
-      @symbols_set << sym_type
+      @symbols << sym_type
+      @symbols_set << sym_type
     end
- See on GitHub + 🔎 See on GitHub
@@ -206,7 +206,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/mime_type.rb, line 28
@@ -221,7 +221,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -248,15 +248,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/mime_type.rb, line 17
-    def each(&block)
-      @mimes.each(&block)
+    def each(&block)
+      @mimes.each(&block)
     end
- See on GitHub + 🔎 See on GitHub
@@ -283,7 +283,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/mime_type.rb, line 39
@@ -291,7 +291,7 @@ 

symbols.all? { |s| @symbols_set.include?(s) } end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/Mime/NullType.html b/src/classes/Mime/NullType.html index 7aff57d042..91bfbd461c 100644 --- a/src/classes/Mime/NullType.html +++ b/src/classes/Mime/NullType.html @@ -106,7 +106,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/mime_type.rb, line 361
@@ -114,7 +114,7 @@ 

true end

- See on GitHub + 🔎 See on GitHub
@@ -141,13 +141,13 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/mime_type.rb, line 369
     def ref; end
- See on GitHub + 🔎 See on GitHub
@@ -174,15 +174,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/mime_type.rb, line 365
     def to_s
-      ""
+      ""
     end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/Mime/Type.html b/src/classes/Mime/Type.html index 89c5613786..2e36bacd9c 100644 --- a/src/classes/Mime/Type.html +++ b/src/classes/Mime/Type.html @@ -177,11 +177,6 @@

Constants

/[^,\s"](?:[^,"]|"[^"]*")*/ - -   - - - MIME_NAME @@ -189,11 +184,6 @@

Constants

"[a-zA-Z0-9][a-zA-Z0-9#{Regexp.escape('!#$&-^_.+')}]{0,126}" - -   - - - MIME_PARAMETER @@ -201,11 +191,6 @@

Constants

"\s*;\s*#{MIME_NAME}(?:=#{MIME_PARAMETER_VALUE})?" - -   - - - MIME_PARAMETER_VALUE @@ -213,11 +198,6 @@

Constants

"(?:#{MIME_NAME}|\"[^\"\r\\\\]*\")" - -   - - - MIME_REGEXP @@ -225,11 +205,6 @@

Constants

/\A(?:\*\/\*|#{MIME_NAME}\/(?:\*|#{MIME_NAME})(?>#{MIME_PARAMETER})*\s*)\z/ - -   - - - PARAMETER_SEPARATOR_REGEXP @@ -249,11 +224,6 @@

Constants

/^(text|application)\/\*/ - -   - - - @@ -323,16 +293,16 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/mime_type.rb, line 164
       def lookup(string)
         # fallback to the media-type without parameters if it was not found
-        LOOKUP[string] || LOOKUP[string.split(";", 2)[0]&.rstrip] || Type.new(string)
+        LOOKUP[string] || LOOKUP[string.split(";", 2)[0]&.rstrip] || Type.new(string)
       end
- See on GitHub + 🔎 See on GitHub
@@ -359,7 +329,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/mime_type.rb, line 169
@@ -367,7 +337,7 @@ 

EXTENSION_LOOKUP[extension.to_s] end

- See on GitHub + 🔎 See on GitHub
@@ -394,20 +364,20 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/mime_type.rb, line 257
     def initialize(string, symbol = nil, synonyms = [])
       unless MIME_REGEXP.match?(string)
-        raise InvalidMimeType, "#{string.inspect} is not a valid MIME type"
+        raise InvalidMimeType, "#{string.inspect} is not a valid MIME type"
       end
       @symbol, @synonyms = symbol, synonyms
       @string = string
       @hash = [@string, @synonyms, @symbol].hash
     end
- See on GitHub + 🔎 See on GitHub
@@ -434,12 +404,12 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/mime_type.rb, line 193
       def parse(accept_header)
-        if !accept_header.include?(",")
+        if !accept_header.include?(",")
           if (index = accept_header.index(PARAMETER_SEPARATOR_REGEXP))
             accept_header = accept_header[0, index]
           end
@@ -457,7 +427,7 @@ 

params = parse_trailing_star(params) || [params] params.each do |m| - list << AcceptItem.new(index, m.to_s, q) + list << AcceptItem.new(index, m.to_s, q) index += 1 end end @@ -465,7 +435,7 @@

end end

- See on GitHub + 🔎 See on GitHub
@@ -494,7 +464,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/mime_type.rb, line 229
@@ -502,7 +472,7 @@ 

Mime::SET.select { |m| m.match?(type) } end

- See on GitHub + 🔎 See on GitHub
@@ -529,7 +499,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/mime_type.rb, line 220
@@ -537,7 +507,7 @@ 

parse_data_with_trailing_star($1) if accept_header =~ TRAILING_STAR_REGEXP end

- See on GitHub + 🔎 See on GitHub
@@ -564,14 +534,14 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/mime_type.rb, line 179
       def register(string, symbol, mime_type_synonyms = [], extension_synonyms = [], skip_lookup = false)
         new_mime = Type.new(string, symbol, mime_type_synonyms)
 
-        SET << new_mime
+        SET << new_mime
 
         ([string] + mime_type_synonyms).each { |str| LOOKUP[str] = new_mime } unless skip_lookup
         ([symbol] + extension_synonyms).each { |ext| EXTENSION_LOOKUP[ext.to_s] = new_mime }
@@ -582,7 +552,7 @@ 

new_mime end

- See on GitHub + 🔎 See on GitHub
@@ -609,7 +579,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/mime_type.rb, line 175
@@ -617,7 +587,7 @@ 

register(string, symbol, [], extension_synonyms, true) end

- See on GitHub + 🔎 See on GitHub
@@ -644,15 +614,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/mime_type.rb, line 160
-      def register_callback(&block)
-        @register_callbacks << block
+      def register_callback(&block)
+        @register_callbacks << block
       end
- See on GitHub + 🔎 See on GitHub
@@ -684,7 +654,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/mime_type.rb, line 238
@@ -697,7 +667,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -728,7 +698,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/mime_type.rb, line 290
@@ -739,7 +709,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -766,7 +736,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/mime_type.rb, line 282
@@ -778,7 +748,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -805,7 +775,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/mime_type.rb, line 304
@@ -815,7 +785,7 @@ 

@synonyms.any? { |synonym| synonym.to_s =~ regexp } || @string =~ regexp end

- See on GitHub + 🔎 See on GitHub
@@ -842,13 +812,13 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/mime_type.rb, line 320
     def all?; false; end
- See on GitHub + 🔎 See on GitHub
@@ -875,18 +845,18 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/mime_type.rb, line 297
     def eql?(other)
-      super || (self.class == other.class &&
-                @string    == other.string &&
-                @synonyms  == other.synonyms &&
+      super || (self.class == other.class &&
+                @string    == other.string &&
+                @synonyms  == other.synonyms &&
                 @symbol    == other.symbol)
     end
- See on GitHub + 🔎 See on GitHub
@@ -913,15 +883,15 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/mime_type.rb, line 316
     def html?
-      (symbol == :html) || @string.include?("html")
+      (symbol == :html) || @string.include?("html")
     end
- See on GitHub + 🔎 See on GitHub
@@ -948,7 +918,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/mime_type.rb, line 310
@@ -958,7 +928,7 @@ 

@synonyms.any? { |synonym| synonym.to_s.match?(regexp) } || @string.match?(regexp) end

- See on GitHub + 🔎 See on GitHub
@@ -985,7 +955,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/mime_type.rb, line 278
@@ -993,7 +963,7 @@ 

symbol || to_s end

- See on GitHub + 🔎 See on GitHub
@@ -1020,7 +990,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/mime_type.rb, line 266
@@ -1028,7 +998,7 @@ 

@string end

- See on GitHub + 🔎 See on GitHub
@@ -1055,7 +1025,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/mime_type.rb, line 270
@@ -1063,7 +1033,7 @@ 

to_s end

- See on GitHub + 🔎 See on GitHub
@@ -1090,7 +1060,7 @@

- Source code + 📝 Source code
# File actionpack/lib/action_dispatch/http/mime_type.rb, line 274
@@ -1098,7 +1068,7 @@ 

@symbol end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/Minitest.html b/src/classes/Minitest.html index a93e7b7fae..32bf2d1aac 100644 --- a/src/classes/Minitest.html +++ b/src/classes/Minitest.html @@ -98,12 +98,12 @@

- Source code + 📝 Source code
# File railties/lib/minitest/rails_plugin.rb, line 111
   def self.plugin_rails_init(options)
-    unless options[:full_backtrace] || ENV["BACKTRACE"]
+    unless options[:full_backtrace] || ENV["BACKTRACE"]
       # Plugin can run without Rails loaded, check before filtering.
       if ::Rails.respond_to?(:backtrace_cleaner)
         Minitest.backtrace_filter = BacktraceFilterWithFallback.new(::Rails.backtrace_cleaner, Minitest.backtrace_filter)
@@ -112,21 +112,21 @@ 

# Suppress summary reports when outputting inline rerun snippets. if reporter.reporters.reject! { |reporter| reporter.kind_of?(SummaryReporter) } - reporter << SuppressedSummaryReporter.new(options[:io], options) + reporter << SuppressedSummaryReporter.new(options[:io], options) end # Replace progress reporter for colors. if reporter.reporters.reject! { |reporter| reporter.kind_of?(ProgressReporter) } - reporter << ::Rails::TestUnitReporter.new(options[:io], options) + reporter << ::Rails::TestUnitReporter.new(options[:io], options) end # Add slowest tests reporter at the end. if options[:profile] - reporter << ProfileReporter.new(options[:io], options) + reporter << ProfileReporter.new(options[:io], options) end end

- See on GitHub + 🔎 See on GitHub
@@ -153,30 +153,30 @@

- Source code + 📝 Source code
# File railties/lib/minitest/rails_plugin.rb, line 68
   def self.plugin_rails_options(opts, options)
     ::Rails::TestUnit::Runner.attach_before_load_options(opts)
 
-    opts.on("-b", "--backtrace", "Show the complete backtrace") do
+    opts.on("-b", "--backtrace", "Show the complete backtrace") do
       options[:full_backtrace] = true
     end
 
-    opts.on("-d", "--defer-output", "Output test failures and errors after the test run") do
+    opts.on("-d", "--defer-output", "Output test failures and errors after the test run") do
       options[:output_inline] = false
     end
 
-    opts.on("-f", "--fail-fast", "Abort test run on first failure or error") do
+    opts.on("-f", "--fail-fast", "Abort test run on first failure or error") do
       options[:fail_fast] = true
     end
 
-    opts.on("-c", "--[no-]color", "Enable color in the output") do |value|
+    opts.on("-c", "--[no-]color", "Enable color in the output") do |value|
       options[:color] = value
     end
 
-    opts.on("--profile [COUNT]", "Enable profiling of tests and list the slowest test cases (default: 10)") do |value|
+    opts.on("--profile [COUNT]", "Enable profiling of tests and list the slowest test cases (default: 10)") do |value|
       default_count = 10
 
       if value.nil?
@@ -184,9 +184,9 @@ 

else count = Integer(value, exception: false) if count.nil? - warn("Non integer specified as profile count, separate " \ - "your path from options with -- e.g. " \ - "`bin/test --profile -- #{value}`") + warn("Non integer specified as profile count, separate " \ + "your path from options with -- e.g. " \ + "`bin/test --profile -- #{value}`") count = default_count end end @@ -198,7 +198,7 @@

options[:output_inline] = true end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/Minitest/BacktraceFilterWithFallback.html b/src/classes/Minitest/BacktraceFilterWithFallback.html index c3ef527d27..9f9fc289cd 100644 --- a/src/classes/Minitest/BacktraceFilterWithFallback.html +++ b/src/classes/Minitest/BacktraceFilterWithFallback.html @@ -87,7 +87,7 @@

- Source code + 📝 Source code
# File railties/lib/minitest/rails_plugin.rb, line 9
@@ -96,7 +96,7 @@ 

@fallback = fallback end

- See on GitHub + 🔎 See on GitHub
@@ -127,7 +127,7 @@

- Source code + 📝 Source code
# File railties/lib/minitest/rails_plugin.rb, line 14
@@ -137,7 +137,7 @@ 

filtered end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/Minitest/ProfileReporter.html b/src/classes/Minitest/ProfileReporter.html index acbd967fb9..f0623635af 100644 --- a/src/classes/Minitest/ProfileReporter.html +++ b/src/classes/Minitest/ProfileReporter.html @@ -91,7 +91,7 @@

- Source code + 📝 Source code
# File railties/lib/minitest/rails_plugin.rb, line 29
@@ -101,7 +101,7 @@ 

@count = options[:profile] end

- See on GitHub + 🔎 See on GitHub
@@ -132,15 +132,15 @@

- Source code + 📝 Source code
# File railties/lib/minitest/rails_plugin.rb, line 35
     def record(result)
-      @results << result
+      @results << result
     end
- See on GitHub + 🔎 See on GitHub
@@ -167,27 +167,27 @@

- Source code + 📝 Source code
# File railties/lib/minitest/rails_plugin.rb, line 39
     def report
-      total_time = @results.sum(&:time)
+      total_time = @results.sum(&:time)
 
-      @results.sort! { |a, b| b.time <=> a.time }
+      @results.sort! { |a, b| b.time <=> a.time }
       slow_results = @results.take(@count)
-      slow_tests_total_time = slow_results.sum(&:time)
+      slow_tests_total_time = slow_results.sum(&:time)
 
       ratio = (total_time == 0) ? 0.0 : (slow_tests_total_time / total_time) * 100
 
-      io.puts("\nTop %d slowest tests (%.2f seconds, %.1f%% of total time):\n" % [slow_results.size, slow_tests_total_time, ratio])
+      io.puts("\nTop %d slowest tests (%.2f seconds, %.1f%% of total time):\n" % [slow_results.size, slow_tests_total_time, ratio])
       slow_results.each do |result|
-        io.puts("  %s\n    %.4f seconds %s\n" % [result.location, result.time, source_location(result)])
+        io.puts("  %s\n    %.4f seconds %s\n" % [result.location, result.time, source_location(result)])
       end
-      io.puts("\n")
+      io.puts("\n")
     end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/Minitest/SuppressedSummaryReporter.html b/src/classes/Minitest/SuppressedSummaryReporter.html index c8ebcb7835..5aca0087e9 100644 --- a/src/classes/Minitest/SuppressedSummaryReporter.html +++ b/src/classes/Minitest/SuppressedSummaryReporter.html @@ -84,7 +84,7 @@

- Source code + 📝 Source code
# File railties/lib/minitest/rails_plugin.rb, line 23
@@ -92,7 +92,7 @@ 

super unless options[:output_inline] end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/Module.html b/src/classes/Module.html index a6c5762e4b..58b7a4149c 100644 --- a/src/classes/Module.html +++ b/src/classes/Module.html @@ -239,11 +239,6 @@

Constants

%w(_ arg args block) - -   - - - DELEGATION_RESERVED_METHOD_NAMES @@ -253,11 +248,6 @@

Constants

).freeze - -   - - - RUBY_RESERVED_KEYWORDS @@ -267,11 +257,6 @@

Constants

not or redo rescue retry return self super then true undef unless until when while yield) - -   - - - @@ -334,7 +319,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/module/aliasing.rb, line 21
@@ -342,14 +327,14 @@ 

# The following reader methods use an explicit `self` receiver in order to # support aliases that start with an uppercase letter. Otherwise, they would # be resolved as constants instead. - module_eval <<-STR, __FILE__, __LINE__ + 1 + module_eval <<-STR, __FILE__, __LINE__ + 1 def #{new_name}; self.#{old_name}; end # def subject; self.title; end def #{new_name}?; self.#{old_name}?; end # def subject?; self.title?; end def #{new_name}=(v); self.#{old_name} = v; end # def subject=(v); self.title = v; end STR end

- See on GitHub + 🔎 See on GitHub
@@ -400,7 +385,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/module/anonymous.rb, line 27
@@ -408,7 +393,7 @@ 

name.nil? end

- See on GitHub + 🔎 See on GitHub
@@ -464,7 +449,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/module/attr_internal.rb, line 16
@@ -473,7 +458,7 @@ 

attr_internal_writer(*attrs) end

- See on GitHub + 🔎 See on GitHub
@@ -500,7 +485,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/module/attr_internal.rb, line 5
@@ -508,7 +493,7 @@ 

attrs.each { |attr_name| attr_internal_define(attr_name, :reader) } end

- See on GitHub + 🔎 See on GitHub
@@ -535,7 +520,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/module/attr_internal.rb, line 10
@@ -543,7 +528,7 @@ 

attrs.each { |attr_name| attr_internal_define(attr_name, :writer) } end

- See on GitHub + 🔎 See on GitHub
@@ -650,7 +635,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/object/deep_dup.rb, line 64
@@ -662,7 +647,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -843,70 +828,70 @@

Options

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/module/delegation.rb, line 171
   def delegate(*methods, to: nil, prefix: nil, allow_nil: nil, private: nil)
     unless to
-      raise ArgumentError, "Delegation needs a target. Supply a keyword argument 'to' (e.g. delegate :hello, to: :greeter)."
+      raise ArgumentError, "Delegation needs a target. Supply a keyword argument 'to' (e.g. delegate :hello, to: :greeter)."
     end
 
-    if prefix == true && /^[^a-z_]/.match?(to)
-      raise ArgumentError, "Can only automatically set the delegation prefix when delegating to a method."
+    if prefix == true && /^[^a-z_]/.match?(to)
+      raise ArgumentError, "Can only automatically set the delegation prefix when delegating to a method."
     end
 
     method_prefix = \
       if prefix
-        "#{prefix == true ? to : prefix}_"
+        "#{prefix == true ? to : prefix}_"
       else
-        ""
+        ""
       end
 
     location = caller_locations(1, 1).first
     file, line = location.path, location.lineno
 
     receiver = to.to_s
-    receiver = "self.#{receiver}" if DELEGATION_RESERVED_METHOD_NAMES.include?(receiver)
+    receiver = "self.#{receiver}" if DELEGATION_RESERVED_METHOD_NAMES.include?(receiver)
 
     method_def = []
     method_names = []
 
-    method_def << "self.private" if private
+    method_def << "self.private" if private
 
     methods.each do |method|
-      method_name = prefix ? "#{method_prefix}#{method}" : method
-      method_names << method_name.to_sym
+      method_name = prefix ? "#{method_prefix}#{method}" : method
+      method_names << method_name.to_sym
 
       # Attribute writer methods only accept one argument. Makes sure []=
       # methods still accept two arguments.
       definition = \
         if /[^\]]=\z/.match?(method)
-          "arg"
+          "arg"
         else
           method_object =
             begin
               if to.is_a?(Module)
                 to.method(method)
-              elsif receiver == "self.class"
+              elsif receiver == "self.class"
                 method(method)
               end
             rescue NameError
-              # Do nothing. Fall back to `"..."`
+              # Do nothing. Fall back to `"..."`
             end
 
           if method_object
             parameters = method_object.parameters
 
-            if (parameters.map(&:first) & [:opt, :rest, :keyreq, :key, :keyrest]).any?
-              "..."
+            if (parameters.map(&:first) & [:opt, :rest, :keyreq, :key, :keyrest]).any?
+              "..."
             else
               defn = parameters.filter_map { |type, arg| arg if type == :req }
-              defn << "&block"
-              defn.join(", ")
+              defn << "&block"
+              defn.join(", ")
             end
           else
-            "..."
+            "..."
           end
         end
 
@@ -920,35 +905,35 @@ 

Options

if allow_nil method = method.to_s - method_def << - "def #{method_name}(#{definition})" << - " _ = #{receiver}" << - " if !_.nil? || nil.respond_to?(:#{method})" << - " _.#{method}(#{definition})" << - " end" << - "end" + method_def << + "def #{method_name}(#{definition})" << + " _ = #{receiver}" << + " if !_.nil? || nil.respond_to?(:#{method})" << + " _.#{method}(#{definition})" << + " end" << + "end" else method = method.to_s method_name = method_name.to_s - method_def << - "def #{method_name}(#{definition})" << - " _ = #{receiver}" << - " _.#{method}(#{definition})" << - "rescue NoMethodError => e" << - " if _.nil? && e.name == :#{method}" << - %( raise DelegationError, "#{self}##{method_name} delegated to #{receiver}.#{method}, but #{receiver} is nil: \#{self.inspect}") << - " else" << - " raise" << - " end" << - "end" + method_def << + "def #{method_name}(#{definition})" << + " _ = #{receiver}" << + " _.#{method}(#{definition})" << + "rescue NoMethodError => e" << + " if _.nil? && e.name == :#{method}" << + %( raise DelegationError, "#{self}##{method_name} delegated to #{receiver}.#{method}, but #{receiver} is nil: \#{self.inspect}") << + " else" << + " raise" << + " end" << + "end" end end - module_eval(method_def.join(";"), file, line) + module_eval(method_def.join(";"), file, line) method_names end
- See on GitHub + 🔎 See on GitHub
@@ -1016,15 +1001,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/module/delegation.rb, line 318
   def delegate_missing_to(target, allow_nil: nil)
     target = target.to_s
-    target = "self.#{target}" if DELEGATION_RESERVED_METHOD_NAMES.include?(target)
+    target = "self.#{target}" if DELEGATION_RESERVED_METHOD_NAMES.include?(target)
 
-    module_eval <<-RUBY, __FILE__, __LINE__ + 1
+    module_eval <<-RUBY, __FILE__, __LINE__ + 1
       def respond_to_missing?(name, include_private = false)
         # It may look like an oversight, but we deliberately do not pass
         # +include_private+, because they do not get delegated.
@@ -1033,9 +1018,9 @@ 

#{target}.respond_to?(name) || super end - def method_missing(method, *args, &block) + def method_missing(method, *args, &block) if #{target}.respond_to?(method) - #{target}.public_send(method, *args, &block) + #{target}.public_send(method, *args, &block) else begin super @@ -1044,7 +1029,7 @@

if #{allow_nil == true} nil else - raise DelegationError, "\#{method} delegated to #{target}, but #{target} is nil" + raise DelegationError, "\#{method} delegated to #{target}, but #{target} is nil" end else raise @@ -1056,7 +1041,7 @@

RUBY end

- See on GitHub + 🔎 See on GitHub
@@ -1095,7 +1080,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/module/deprecation.rb, line 17
@@ -1106,12 +1091,12 @@ 

# we just need any instance to call deprecate_methods, but the deprecation will be emitted by deprecator ActiveSupport.deprecator.deprecate_methods(self, *method_names, **options, deprecator: deprecator) else - ActiveSupport.deprecator.warn("Module.deprecate without a deprecator is deprecated") + ActiveSupport.deprecator.warn("Module.deprecate without a deprecator is deprecated") ActiveSupport::Deprecation._instance.deprecate_methods(self, *method_names, **options) end end

- See on GitHub + 🔎 See on GitHub
@@ -1207,17 +1192,17 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/module/attribute_accessors.rb, line 208
-  def mattr_accessor(*syms, instance_reader: true, instance_writer: true, instance_accessor: true, default: nil, &blk)
+  def mattr_accessor(*syms, instance_reader: true, instance_writer: true, instance_accessor: true, default: nil, &blk)
     location = caller_locations(1, 1).first
-    mattr_reader(*syms, instance_reader: instance_reader, instance_accessor: instance_accessor, default: default, location: location, &blk)
+    mattr_reader(*syms, instance_reader: instance_reader, instance_accessor: instance_accessor, default: default, location: location, &blk)
     mattr_writer(*syms, instance_writer: instance_writer, instance_accessor: instance_accessor, default: default, location: location)
   end
- See on GitHub + 🔎 See on GitHub
@@ -1293,32 +1278,32 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/module/attribute_accessors.rb, line 55
   def mattr_reader(*syms, instance_reader: true, instance_accessor: true, default: nil, location: nil)
-    raise TypeError, "module attributes should be defined directly on class, not singleton" if singleton_class?
+    raise TypeError, "module attributes should be defined directly on class, not singleton" if singleton_class?
     location ||= caller_locations(1, 1).first
 
     definition = []
     syms.each do |sym|
-      raise NameError.new("invalid attribute name: #{sym}") unless /\A[_A-Za-z]\w*\z/.match?(sym)
+      raise NameError.new("invalid attribute name: #{sym}") unless /\A[_A-Za-z]\w*\z/.match?(sym)
 
-      definition << "def self.#{sym}; @@#{sym}; end"
+      definition << "def self.#{sym}; @@#{sym}; end"
 
-      if instance_reader && instance_accessor
-        definition << "def #{sym}; @@#{sym}; end"
+      if instance_reader && instance_accessor
+        definition << "def #{sym}; @@#{sym}; end"
       end
 
-      sym_default_value = (block_given? && default.nil?) ? yield : default
-      class_variable_set("@@#{sym}", sym_default_value) unless sym_default_value.nil? && class_variable_defined?("@@#{sym}")
+      sym_default_value = (block_given? && default.nil?) ? yield : default
+      class_variable_set("@@#{sym}", sym_default_value) unless sym_default_value.nil? && class_variable_defined?("@@#{sym}")
     end
 
-    module_eval(definition.join(";"), location.path, location.lineno)
+    module_eval(definition.join(";"), location.path, location.lineno)
   end
- See on GitHub + 🔎 See on GitHub
@@ -1391,31 +1376,31 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/module/attribute_accessors.rb, line 121
   def mattr_writer(*syms, instance_writer: true, instance_accessor: true, default: nil, location: nil)
-    raise TypeError, "module attributes should be defined directly on class, not singleton" if singleton_class?
+    raise TypeError, "module attributes should be defined directly on class, not singleton" if singleton_class?
     location ||= caller_locations(1, 1).first
 
     definition = []
     syms.each do |sym|
-      raise NameError.new("invalid attribute name: #{sym}") unless /\A[_A-Za-z]\w*\z/.match?(sym)
-      definition << "def self.#{sym}=(val); @@#{sym} = val; end"
+      raise NameError.new("invalid attribute name: #{sym}") unless /\A[_A-Za-z]\w*\z/.match?(sym)
+      definition << "def self.#{sym}=(val); @@#{sym} = val; end"
 
-      if instance_writer && instance_accessor
-        definition << "def #{sym}=(val); @@#{sym} = val; end"
+      if instance_writer && instance_accessor
+        definition << "def #{sym}=(val); @@#{sym} = val; end"
       end
 
-      sym_default_value = (block_given? && default.nil?) ? yield : default
-      class_variable_set("@@#{sym}", sym_default_value) unless sym_default_value.nil? && class_variable_defined?("@@#{sym}")
+      sym_default_value = (block_given? && default.nil?) ? yield : default
+      class_variable_set("@@#{sym}", sym_default_value) unless sym_default_value.nil? && class_variable_defined?("@@#{sym}")
     end
 
-    module_eval(definition.join(";"), location.path, location.lineno)
+    module_eval(definition.join(";"), location.path, location.lineno)
   end
- See on GitHub + 🔎 See on GitHub
@@ -1458,7 +1443,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/module/introspection.rb, line 34
@@ -1466,7 +1451,7 @@ 

module_parent_name ? ActiveSupport::Inflector.constantize(module_parent_name) : Object end

- See on GitHub + 🔎 See on GitHub
@@ -1496,7 +1481,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/module/introspection.rb, line 9
@@ -1510,7 +1495,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -1548,24 +1533,24 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/module/introspection.rb, line 50
   def module_parents
     parents = []
     if module_parent_name
-      parts = module_parent_name.split("::")
+      parts = module_parent_name.split("::")
       until parts.empty?
-        parents << ActiveSupport::Inflector.constantize(parts * "::")
+        parents << ActiveSupport::Inflector.constantize(parts * "::")
         parts.pop
       end
     end
-    parents << Object unless parents.include? Object
+    parents << Object unless parents.include? Object
     parents
   end
- See on GitHub + 🔎 See on GitHub
@@ -1592,18 +1577,18 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/module/redefine_method.rb, line 17
-  def redefine_method(method, &block)
+  def redefine_method(method, &block)
     visibility = method_visibility(method)
     silence_redefinition_of_method(method)
-    define_method(method, &block)
+    define_method(method, &block)
     send(visibility, method)
   end
- See on GitHub + 🔎 See on GitHub
@@ -1630,15 +1615,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/module/redefine_method.rb, line 26
-  def redefine_singleton_method(method, &block)
-    singleton_class.redefine_method(method, &block)
+  def redefine_singleton_method(method, &block)
+    singleton_class.redefine_method(method, &block)
   end
- See on GitHub + 🔎 See on GitHub
@@ -1665,7 +1650,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/module/remove_method.rb, line 7
@@ -1675,7 +1660,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -1702,7 +1687,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/module/remove_method.rb, line 14
@@ -1710,7 +1695,7 @@ 

singleton_class.remove_possible_method(method) end

- See on GitHub + 🔎 See on GitHub
@@ -1737,19 +1722,19 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/module/redefine_method.rb, line 7
   def silence_redefinition_of_method(method)
     if method_defined?(method) || private_method_defined?(method)
-      # This suppresses the "method redefined" warning; the self-alias
-      # looks odd, but means we don't need to generate a unique name
+      # This suppresses the "method redefined" warning; the self-alias
+      # looks odd, but means we don't need to generate a unique name
       alias_method method, method
     end
   end
- See on GitHub + 🔎 See on GitHub
@@ -1848,7 +1833,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb, line 170
@@ -1857,7 +1842,7 @@ 

thread_mattr_writer(*syms, instance_writer: instance_writer, instance_accessor: instance_accessor) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/Module/Concerning.html b/src/classes/Module/Concerning.html index 8548ad5d0b..bbe7aef11e 100644 --- a/src/classes/Module/Concerning.html +++ b/src/classes/Module/Concerning.html @@ -203,18 +203,18 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/module/concerning.rb, line 132
-    def concern(topic, &module_definition)
+    def concern(topic, &module_definition)
       const_set topic, Module.new {
         extend ::ActiveSupport::Concern
-        module_eval(&module_definition)
+        module_eval(&module_definition)
       }
     end
- See on GitHub + 🔎 See on GitHub
@@ -241,16 +241,16 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/module/concerning.rb, line 114
-    def concerning(topic, prepend: false, &block)
+    def concerning(topic, prepend: false, &block)
       method = prepend ? :prepend : :include
-      __send__(method, concern(topic, &block))
+      __send__(method, concern(topic, &block))
     end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/NameError.html b/src/classes/NameError.html index aa8a099351..fc3a1aa0f9 100644 --- a/src/classes/NameError.html +++ b/src/classes/NameError.html @@ -96,7 +96,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/name_error.rb, line 12
@@ -105,7 +105,7 @@ 

# It extends NameError#message with spell corrections which are SLOW. # We should use original_message message instead. message = respond_to?(:original_message) ? original_message : self.message - return unless message.start_with?("uninitialized constant ") + return unless message.start_with?("uninitialized constant ") receiver = begin self.receiver @@ -116,7 +116,7 @@

if receiver == Object name.to_s elsif receiver - "#{real_mod_name(receiver)}::#{self.name}" + "#{real_mod_name(receiver)}::#{self.name}" else if match = message.match(/((::)?([A-Z]\w*)(::[A-Z]\w*)*)$/) match[1] @@ -124,7 +124,7 @@

end end

- See on GitHub + 🔎 See on GitHub
@@ -159,7 +159,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/name_error.rb, line 44
@@ -171,7 +171,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/NilClass.html b/src/classes/NilClass.html index 3dc7ed3717..388c4adbd1 100644 --- a/src/classes/NilClass.html +++ b/src/classes/NilClass.html @@ -107,7 +107,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/object/blank.rb, line 56
@@ -115,7 +115,7 @@ 

true end

- See on GitHub + 🔎 See on GitHub
@@ -142,7 +142,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/object/to_query.rb, line 20
@@ -150,7 +150,7 @@ 

self end

- See on GitHub + 🔎 See on GitHub
@@ -190,7 +190,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/object/try.rb, line 148
@@ -198,7 +198,7 @@ 

nil end

- See on GitHub + 🔎 See on GitHub
@@ -228,7 +228,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/object/try.rb, line 155
@@ -236,7 +236,7 @@ 

nil end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/Numeric.html b/src/classes/Numeric.html index 4de4e147e9..e2971931ce 100644 --- a/src/classes/Numeric.html +++ b/src/classes/Numeric.html @@ -189,11 +189,6 @@

Constants

PETABYTE * 1024 - -   - - - GIGABYTE @@ -201,11 +196,6 @@

Constants

MEGABYTE * 1024 - -   - - - KILOBYTE @@ -213,11 +203,6 @@

Constants

1024 - -   - - - MEGABYTE @@ -225,11 +210,6 @@

Constants

KILOBYTE * 1024 - -   - - - PETABYTE @@ -237,11 +217,6 @@

Constants

TERABYTE * 1024 - -   - - - TERABYTE @@ -249,11 +224,6 @@

Constants

GIGABYTE * 1024 - -   - - - ZETTABYTE @@ -261,11 +231,6 @@

Constants

EXABYTE * 1024 - -   - - - @@ -330,7 +295,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/numeric/bytes.rb, line 15
@@ -338,7 +303,7 @@ 

self end

- See on GitHub + 🔎 See on GitHub
@@ -397,7 +362,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/numeric/time.rb, line 37
@@ -405,7 +370,7 @@ 

ActiveSupport::Duration.days(self) end

- See on GitHub + 🔎 See on GitHub
@@ -464,7 +429,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/numeric/bytes.rb, line 63
@@ -472,7 +437,7 @@ 

self * EXABYTE end

- See on GitHub + 🔎 See on GitHub
@@ -531,7 +496,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/numeric/time.rb, line 53
@@ -539,7 +504,7 @@ 

ActiveSupport::Duration.weeks(self * 2) end

- See on GitHub + 🔎 See on GitHub
@@ -598,7 +563,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/numeric/bytes.rb, line 39
@@ -606,7 +571,7 @@ 

self * GIGABYTE end

- See on GitHub + 🔎 See on GitHub
@@ -665,7 +630,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/numeric/time.rb, line 29
@@ -673,7 +638,7 @@ 

ActiveSupport::Duration.hours(self) end

- See on GitHub + 🔎 See on GitHub
@@ -700,7 +665,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/string/output_safety.rb, line 13
@@ -708,7 +673,7 @@ 

true end

- See on GitHub + 🔎 See on GitHub
@@ -739,7 +704,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/numeric/time.rb, line 63
@@ -747,7 +712,7 @@ 

self * 1000 end

- See on GitHub + 🔎 See on GitHub
@@ -806,7 +771,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/numeric/bytes.rb, line 23
@@ -814,7 +779,7 @@ 

self * KILOBYTE end

- See on GitHub + 🔎 See on GitHub
@@ -873,7 +838,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/numeric/bytes.rb, line 31
@@ -881,7 +846,7 @@ 

self * MEGABYTE end

- See on GitHub + 🔎 See on GitHub
@@ -940,7 +905,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/numeric/time.rb, line 21
@@ -948,7 +913,7 @@ 

ActiveSupport::Duration.minutes(self) end

- See on GitHub + 🔎 See on GitHub
@@ -1007,7 +972,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/numeric/bytes.rb, line 55
@@ -1015,7 +980,7 @@ 

self * PETABYTE end

- See on GitHub + 🔎 See on GitHub
@@ -1074,7 +1039,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/numeric/time.rb, line 13
@@ -1082,7 +1047,7 @@ 

ActiveSupport::Duration.seconds(self) end

- See on GitHub + 🔎 See on GitHub
@@ -1141,7 +1106,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/numeric/bytes.rb, line 47
@@ -1149,7 +1114,7 @@ 

self * TERABYTE end

- See on GitHub + 🔎 See on GitHub
@@ -1208,7 +1173,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/numeric/time.rb, line 45
@@ -1216,7 +1181,7 @@ 

ActiveSupport::Duration.weeks(self) end

- See on GitHub + 🔎 See on GitHub
@@ -1275,7 +1240,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/numeric/bytes.rb, line 71
@@ -1283,7 +1248,7 @@ 

self * ZETTABYTE end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/Object.html b/src/classes/Object.html index 5df2c0b121..57b352918b 100644 --- a/src/classes/Object.html +++ b/src/classes/Object.html @@ -169,11 +169,6 @@

Constants

File.expand_path("test/dummy/config/application", ENGINE_ROOT) - -   - - - @@ -227,7 +222,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/object/acts_like.rb, line 33
@@ -240,11 +235,11 @@ 

- See on GitHub + 🔎 See on GitHub @@ -283,7 +278,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/object/blank.rb, line 18
@@ -291,7 +286,7 @@ 

respond_to?(:empty?) ? !!empty? : !self end

- See on GitHub + 🔎 See on GitHub
@@ -326,7 +321,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/object/deep_dup.rb, line 15
@@ -334,7 +329,7 @@ 

duplicable? ? dup : self end

- See on GitHub + 🔎 See on GitHub
@@ -363,7 +358,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/object/duplicable.rb, line 26
@@ -371,7 +366,7 @@ 

true end

- See on GitHub + 🔎 See on GitHub
@@ -398,7 +393,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/string/output_safety.rb, line 7
@@ -406,7 +401,7 @@ 

false end

- See on GitHub + 🔎 See on GitHub
@@ -441,7 +436,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/object/inclusion.rb, line 15
@@ -453,10 +448,10 @@ 

another_object.include?(self) end rescue NoMethodError - raise ArgumentError.new("The parameter passed to #in? must respond to #include?") + raise ArgumentError.new("The parameter passed to #in? must respond to #include?") end

- See on GitHub + 🔎 See on GitHub
@@ -492,7 +487,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/object/instance_variables.rb, line 14
@@ -502,7 +497,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -538,15 +533,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/object/instance_variables.rb, line 30
     def instance_variable_names
-      instance_variables.map(&:name)
+      instance_variables.map(&:name)
     end
- See on GitHub + 🔎 See on GitHub
@@ -590,7 +585,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/object/blank.rb, line 45
@@ -598,7 +593,7 @@ 

self if present? end

- See on GitHub + 🔎 See on GitHub
@@ -632,7 +627,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/object/inclusion.rb, line 34
@@ -640,7 +635,7 @@ 

in?(another_object) ? self : nil end

- See on GitHub + 🔎 See on GitHub
@@ -669,7 +664,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/object/blank.rb, line 25
@@ -677,7 +672,7 @@ 

!blank? end

- See on GitHub + 🔎 See on GitHub
@@ -704,7 +699,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/object/to_query.rb, line 7
@@ -712,7 +707,7 @@ 

to_s end

- See on GitHub + 🔎 See on GitHub
@@ -739,15 +734,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/object/to_query.rb, line 13
   def to_query(key)
-    "#{CGI.escape(key.to_param)}=#{CGI.escape(to_param.to_s)}"
+    "#{CGI.escape(key.to_param)}=#{CGI.escape(to_param.to_s)}"
   end
- See on GitHub + 🔎 See on GitHub
@@ -831,7 +826,7 @@

- See on GitHub + 🔎 See on GitHub @@ -860,7 +855,7 @@

- See on GitHub + 🔎 See on GitHub @@ -905,7 +900,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/object/with.rb, line 24
@@ -914,17 +909,17 @@ 

begin attributes.each do |key, value| old_values[key] = public_send(key) - public_send("#{key}=", value) + public_send("#{key}=", value) end yield ensure old_values.each do |key, old_value| - public_send("#{key}=", old_value) + public_send("#{key}=", old_value) end end end

- See on GitHub + 🔎 See on GitHub
@@ -1037,21 +1032,21 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/object/with_options.rb, line 92
-  def with_options(options, &block)
+  def with_options(options, &block)
     option_merger = ActiveSupport::OptionMerger.new(self, options)
 
     if block
-      block.arity.zero? ? option_merger.instance_eval(&block) : block.call(option_merger)
+      block.arity.zero? ? option_merger.instance_eval(&block) : block.call(option_merger)
     else
       option_merger
     end
   end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/Pathname.html b/src/classes/Pathname.html index 27b56e299a..57b56e8b5c 100644 --- a/src/classes/Pathname.html +++ b/src/classes/Pathname.html @@ -99,7 +99,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/pathname/blank.rb, line 13
@@ -107,7 +107,7 @@ 

to_s.empty? end

- See on GitHub + 🔎 See on GitHub
@@ -149,7 +149,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/pathname/existence.rb, line 20
@@ -157,7 +157,7 @@ 

self if exist? end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/Rails.html b/src/classes/Rails.html index 33d37c3bd3..5d684965d1 100644 --- a/src/classes/Rails.html +++ b/src/classes/Rails.html @@ -494,7 +494,7 @@

- Source code + 📝 Source code
# File railties/lib/rails.rb, line 43
@@ -502,7 +502,7 @@ 

@application ||= (app_class.instance if app_class) end

- See on GitHub + 🔎 See on GitHub
@@ -529,7 +529,7 @@

- Source code + 📝 Source code
# File railties/lib/rails.rb, line 123
@@ -537,7 +537,7 @@ 

application.autoloaders end

- See on GitHub + 🔎 See on GitHub
@@ -564,7 +564,7 @@

- Source code + 📝 Source code
# File railties/lib/rails.rb, line 54
@@ -572,7 +572,7 @@ 

@backtrace_cleaner ||= Rails::BacktraceCleaner.new end

- See on GitHub + 🔎 See on GitHub
@@ -599,7 +599,7 @@

- Source code + 📝 Source code
# File railties/lib/rails.rb, line 50
@@ -607,7 +607,7 @@ 

application.config end

- See on GitHub + 🔎 See on GitHub
@@ -639,15 +639,15 @@

- Source code + 📝 Source code
# File railties/lib/rails.rb, line 72
     def env
-      @_env ||= ActiveSupport::EnvironmentInquirer.new(ENV["RAILS_ENV"].presence || ENV["RACK_ENV"].presence || "development")
+      @_env ||= ActiveSupport::EnvironmentInquirer.new(ENV["RAILS_ENV"].presence || ENV["RACK_ENV"].presence || "development")
     end
- See on GitHub + 🔎 See on GitHub
@@ -677,7 +677,7 @@

- Source code + 📝 Source code
# File railties/lib/rails.rb, line 79
@@ -685,7 +685,7 @@ 

@_env = ActiveSupport::EnvironmentInquirer.new(environment) end

- See on GitHub + 🔎 See on GitHub
@@ -718,7 +718,7 @@

- Source code + 📝 Source code
# File railties/lib/rails.rb, line 90
@@ -726,7 +726,7 @@ 

ActiveSupport.error_reporter end

- See on GitHub + 🔎 See on GitHub
@@ -753,7 +753,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/gem_version.rb, line 5
@@ -761,7 +761,7 @@ 

Gem::Version.new VERSION::STRING end

- See on GitHub + 🔎 See on GitHub
@@ -800,7 +800,7 @@

- Source code + 📝 Source code
# File railties/lib/rails.rb, line 103
@@ -808,14 +808,14 @@ 

hash = groups.extract_options! env = Rails.env groups.unshift(:default, env) - groups.concat ENV["RAILS_GROUPS"].to_s.split(",") - groups.concat hash.map { |k, v| k if v.map(&:to_s).include?(env) } + groups.concat ENV["RAILS_GROUPS"].to_s.split(",") + groups.concat hash.map { |k, v| k if v.map(&:to_s).include?(env) } groups.compact! groups.uniq! groups end

- See on GitHub + 🔎 See on GitHub
@@ -846,15 +846,15 @@

- Source code + 📝 Source code
# File railties/lib/rails.rb, line 119
     def public_path
-      application && Pathname.new(application.paths["public"].first)
+      application && Pathname.new(application.paths["public"].first)
     end
- See on GitHub + 🔎 See on GitHub
@@ -885,15 +885,15 @@

- Source code + 📝 Source code
# File railties/lib/rails.rb, line 63
     def root
-      application && application.config.root
+      application && application.config.root
     end
- See on GitHub + 🔎 See on GitHub
@@ -920,7 +920,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/version.rb, line 7
@@ -928,7 +928,7 @@ 

VERSION::STRING end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/Rails/API/EdgeTask.html b/src/classes/Rails/API/EdgeTask.html index e1a5c4af3c..00f893fb35 100644 --- a/src/classes/Rails/API/EdgeTask.html +++ b/src/classes/Rails/API/EdgeTask.html @@ -92,15 +92,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/api/task.rb, line 210
       def badge_version
-        "edge"
+        "edge"
       end
- See on GitHub + 🔎 See on GitHub
@@ -127,15 +127,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/api/task.rb, line 214
       def canonical_url
-        "https://edgeapi.rubyonrails.org"
+        "https://edgeapi.rubyonrails.org"
       end
- See on GitHub + 🔎 See on GitHub
@@ -162,15 +162,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/api/task.rb, line 206
       def rails_version
-        "main@#{`git rev-parse HEAD`[0, 7]}"
+        "main@#{`git rev-parse HEAD`[0, 7]}"
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/Rails/API/RepoTask.html b/src/classes/Rails/API/RepoTask.html index 473e5fd53a..57f585953b 100644 --- a/src/classes/Rails/API/RepoTask.html +++ b/src/classes/Rails/API/RepoTask.html @@ -92,15 +92,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/api/task.rb, line 200
       def api_dir
-        "doc/rdoc"
+        "doc/rdoc"
       end
- See on GitHub + 🔎 See on GitHub
@@ -127,7 +127,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/api/task.rb, line 196
@@ -135,7 +135,7 @@ 

component end

- See on GitHub + 🔎 See on GitHub
@@ -162,16 +162,16 @@

- Source code + 📝 Source code
# File railties/lib/rails/api/task.rb, line 191
       def configure_sdoc
         super
-        options << "-g" # link to GitHub, SDoc flag
+        options << "-g" # link to GitHub, SDoc flag
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/Rails/API/StableTask.html b/src/classes/Rails/API/StableTask.html index b5d866fd86..b48ca551c6 100644 --- a/src/classes/Rails/API/StableTask.html +++ b/src/classes/Rails/API/StableTask.html @@ -92,15 +92,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/api/task.rb, line 224
       def badge_version
-        "v#{rails_version}"
+        "v#{rails_version}"
       end
- See on GitHub + 🔎 See on GitHub
@@ -127,15 +127,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/api/task.rb, line 228
       def canonical_url
-        "https://api.rubyonrails.org/#{badge_version}"
+        "https://api.rubyonrails.org/#{badge_version}"
       end
- See on GitHub + 🔎 See on GitHub
@@ -162,15 +162,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/api/task.rb, line 220
       def rails_version
-        File.read("RAILS_VERSION").strip
+        File.read("RAILS_VERSION").strip
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/Rails/API/Task.html b/src/classes/Rails/API/Task.html index d78e561056..1fcff2aac5 100644 --- a/src/classes/Rails/API/Task.html +++ b/src/classes/Rails/API/Task.html @@ -189,11 +189,6 @@

Constants

} - -   - - - @@ -225,7 +220,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/api/task.rb, line 119
@@ -242,7 +237,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -273,15 +268,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/api/task.rb, line 185
       def api_main
-        component_root_dir("railties") + "/RDOC_MAIN.md"
+        component_root_dir("railties") + "/RDOC_MAIN.md"
       end
- See on GitHub + 🔎 See on GitHub
@@ -308,7 +303,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/api/task.rb, line 148
@@ -319,21 +314,21 @@ 

cdr = component_root_dir(component) Array(cfg[:include]).each do |pattern| - rdoc_files.include("#{cdr}/#{pattern}") + rdoc_files.include("#{cdr}/#{pattern}") end Array(cfg[:exclude]).each do |pattern| - rdoc_files.exclude("#{cdr}/#{pattern}") + rdoc_files.exclude("#{cdr}/#{pattern}") end end # Only generate documentation for files that have been # changed since the API was generated. - if Dir.exist?(api_dir) && !ENV["ALL"] - last_generation = DateTime.rfc2822(File.open("#{api_dir}/created.rid", &:readline)) + if Dir.exist?(api_dir) && !ENV["ALL"] + last_generation = DateTime.rfc2822(File.open("#{api_dir}/created.rid", &:readline)) rdoc_files.keep_if do |file| - File.mtime(file).to_datetime > last_generation + File.mtime(file).to_datetime > last_generation end # Nothing to do @@ -341,7 +336,7 @@

end end

- See on GitHub + 🔎 See on GitHub
@@ -368,22 +363,22 @@

- Source code + 📝 Source code
# File railties/lib/rails/api/task.rb, line 137
       def configure_sdoc
-        self.title    = "Ruby on Rails API"
+        self.title    = "Ruby on Rails API"
         self.rdoc_dir = api_dir
 
-        options << "-m"  << api_main
-        options << "-e"  << "UTF-8"
+        options << "-m"  << api_main
+        options << "-e"  << "UTF-8"
 
-        options << "-f"  << "api"
-        options << "-T"  << "rails"
+        options << "-f"  << "api"
+        options << "-T"  << "rails"
       end
- See on GitHub + 🔎 See on GitHub
@@ -410,7 +405,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/api/task.rb, line 133
@@ -418,7 +413,7 @@ 

# no-op end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/Rails/AppBuilder.html b/src/classes/Rails/AppBuilder.html index 8107b95ebb..ba8b6e1075 100644 --- a/src/classes/Rails/AppBuilder.html +++ b/src/classes/Rails/AppBuilder.html @@ -213,20 +213,20 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/rails/app/app_generator.rb, line 91
     def app
-      directory "app"
+      directory "app"
 
-      empty_directory_with_keep_file "app/assets/images"
+      empty_directory_with_keep_file "app/assets/images"
 
-      keep_file  "app/controllers/concerns"
-      keep_file  "app/models/concerns"
+      keep_file  "app/controllers/concerns"
+      keep_file  "app/models/concerns"
     end
- See on GitHub + 🔎 See on GitHub
@@ -253,18 +253,18 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/rails/app/app_generator.rb, line 100
     def bin
-      directory "bin" do |content|
-        "#{shebang}\n" + content
+      directory "bin" do |content|
+        "#{shebang}\n" + content
       end
-      chmod "bin", 0755 & ~File.umask, verbose: false
+      chmod "bin", 0755 & ~File.umask, verbose: false
     end
- See on GitHub + 🔎 See on GitHub
@@ -291,7 +291,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/rails/app/app_generator.rb, line 107
@@ -299,7 +299,7 @@ 

bin end

- See on GitHub + 🔎 See on GitHub
@@ -326,28 +326,28 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/rails/app/app_generator.rb, line 111
     def config
-      empty_directory "config"
-
-      inside "config" do
-        template "routes.rb" unless options[:update]
-        template "application.rb"
-        template "environment.rb"
-        template "cable.yml" unless options[:update] || options[:skip_action_cable]
-        template "puma.rb"   unless options[:update]
-        template "storage.yml" unless options[:update] || skip_active_storage?
-
-        directory "environments"
-        directory "initializers"
-        directory "locales" unless options[:update]
+      empty_directory "config"
+
+      inside "config" do
+        template "routes.rb" unless options[:update]
+        template "application.rb"
+        template "environment.rb"
+        template "cable.yml" unless options[:update] || options[:skip_action_cable]
+        template "puma.rb"   unless options[:update]
+        template "storage.yml" unless options[:update] || skip_active_storage?
+
+        directory "environments"
+        directory "initializers"
+        directory "locales" unless options[:update]
       end
     end
- See on GitHub + 🔎 See on GitHub
@@ -374,7 +374,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/rails/app/app_generator.rb, line 261
@@ -382,7 +382,7 @@ 

defined?(@config_target_version) ? @config_target_version : Rails::VERSION::STRING.to_f end

- See on GitHub + 🔎 See on GitHub
@@ -409,64 +409,64 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/rails/app/app_generator.rb, line 128
     def config_when_updating
-      action_cable_config_exist       = File.exist?("config/cable.yml")
-      active_storage_config_exist     = File.exist?("config/storage.yml")
-      rack_cors_config_exist          = File.exist?("config/initializers/cors.rb")
-      assets_config_exist             = File.exist?("config/initializers/assets.rb")
-      asset_manifest_exist            = File.exist?("app/assets/config/manifest.js")
-      asset_app_stylesheet_exist      = File.exist?("app/assets/stylesheets/application.css")
-      csp_config_exist                = File.exist?("config/initializers/content_security_policy.rb")
-      permissions_policy_config_exist = File.exist?("config/initializers/permissions_policy.rb")
+      action_cable_config_exist       = File.exist?("config/cable.yml")
+      active_storage_config_exist     = File.exist?("config/storage.yml")
+      rack_cors_config_exist          = File.exist?("config/initializers/cors.rb")
+      assets_config_exist             = File.exist?("config/initializers/assets.rb")
+      asset_manifest_exist            = File.exist?("app/assets/config/manifest.js")
+      asset_app_stylesheet_exist      = File.exist?("app/assets/stylesheets/application.css")
+      csp_config_exist                = File.exist?("config/initializers/content_security_policy.rb")
+      permissions_policy_config_exist = File.exist?("config/initializers/permissions_policy.rb")
 
-      @config_target_version = Rails.application.config.loaded_config_version || "5.0"
+      @config_target_version = Rails.application.config.loaded_config_version || "5.0"
 
       config
 
-      if !options[:skip_action_cable] && !action_cable_config_exist
-        template "config/cable.yml"
+      if !options[:skip_action_cable] && !action_cable_config_exist
+        template "config/cable.yml"
       end
 
-      if !skip_active_storage? && !active_storage_config_exist
-        template "config/storage.yml"
+      if !skip_active_storage? && !active_storage_config_exist
+        template "config/storage.yml"
       end
 
-      if skip_sprockets? && skip_propshaft? && !assets_config_exist
-        remove_file "config/initializers/assets.rb"
+      if skip_sprockets? && skip_propshaft? && !assets_config_exist
+        remove_file "config/initializers/assets.rb"
       end
 
-      if skip_sprockets? && !asset_manifest_exist
-        remove_file "app/assets/config/manifest.js"
+      if skip_sprockets? && !asset_manifest_exist
+        remove_file "app/assets/config/manifest.js"
       end
 
-      if skip_sprockets? && !asset_app_stylesheet_exist
-        remove_file "app/assets/stylesheets/application.css"
+      if skip_sprockets? && !asset_app_stylesheet_exist
+        remove_file "app/assets/stylesheets/application.css"
       end
 
       unless rack_cors_config_exist
-        remove_file "config/initializers/cors.rb"
+        remove_file "config/initializers/cors.rb"
       end
 
       if options[:api]
         unless csp_config_exist
-          remove_file "config/initializers/content_security_policy.rb"
+          remove_file "config/initializers/content_security_policy.rb"
         end
 
         unless permissions_policy_config_exist
-          remove_file "config/initializers/permissions_policy.rb"
+          remove_file "config/initializers/permissions_policy.rb"
         end
       end
 
       if !skip_sprockets?
-        insert_into_file "config/application.rb", %(require "sprockets/railtie"), after: /require\(["']rails\/all["']\)\n/
+        insert_into_file "config/application.rb", %(require "sprockets/railtie"), after: /require\(["']rails\/all["']\)\n/
       end
     end
- See on GitHub + 🔎 See on GitHub
@@ -493,15 +493,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/rails/app/app_generator.rb, line 65
     def configru
-      template "config.ru"
+      template "config.ru"
     end
- See on GitHub + 🔎 See on GitHub
@@ -528,18 +528,18 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/rails/app/app_generator.rb, line 190
     def credentials
       return if options[:pretend] || options[:dummy_app]
 
-      require "rails/generators/rails/credentials/credentials_generator"
+      require "rails/generators/rails/credentials/credentials_generator"
       Rails::Generators::CredentialsGenerator.new([], quiet: true).add_credentials_file
     end
- See on GitHub + 🔎 See on GitHub
@@ -566,7 +566,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/rails/app/app_generator.rb, line 197
@@ -574,11 +574,11 @@ 

return if options[:skip_decrypted_diffs] || options[:dummy_app] || options[:pretend] @generator.shell.mute do - rails_command "credentials:diff --enroll", inline: true, shell: @generator.shell + rails_command "credentials:diff --enroll", inline: true, shell: @generator.shell end end

- See on GitHub + 🔎 See on GitHub
@@ -605,15 +605,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/rails/app/app_generator.rb, line 205
     def database_yml
-      template "config/databases/#{options[:database]}.yml", "config/database.yml"
+      template "config/databases/#{options[:database]}.yml", "config/database.yml"
     end
- See on GitHub + 🔎 See on GitHub
@@ -640,15 +640,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/rails/app/app_generator.rb, line 209
     def db
-      directory "db"
+      directory "db"
     end
- See on GitHub + 🔎 See on GitHub
@@ -675,19 +675,19 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/rails/app/app_generator.rb, line 77
     def dockerfiles
-      template "Dockerfile"
-      template "dockerignore", ".dockerignore"
+      template "Dockerfile"
+      template "dockerignore", ".dockerignore"
 
-      template "docker-entrypoint", "bin/docker-entrypoint"
-      chmod "bin/docker-entrypoint", 0755 & ~File.umask, verbose: false
+      template "docker-entrypoint", "bin/docker-entrypoint"
+      chmod "bin/docker-entrypoint", 0755 & ~File.umask, verbose: false
     end
- See on GitHub + 🔎 See on GitHub
@@ -714,15 +714,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/rails/app/app_generator.rb, line 61
     def gemfile
-      template "Gemfile"
+      template "Gemfile"
     end
- See on GitHub + 🔎 See on GitHub
@@ -749,15 +749,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/rails/app/app_generator.rb, line 73
     def gitattributes
-      template "gitattributes", ".gitattributes"
+      template "gitattributes", ".gitattributes"
     end
- See on GitHub + 🔎 See on GitHub
@@ -784,15 +784,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/rails/app/app_generator.rb, line 69
     def gitignore
-      template "gitignore", ".gitignore"
+      template "gitignore", ".gitignore"
     end
- See on GitHub + 🔎 See on GitHub
@@ -819,17 +819,17 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/rails/app/app_generator.rb, line 213
     def lib
-      empty_directory "lib"
-      empty_directory_with_keep_file "lib/tasks"
-      empty_directory_with_keep_file "lib/assets"
+      empty_directory "lib"
+      empty_directory_with_keep_file "lib/tasks"
+      empty_directory_with_keep_file "lib/assets"
     end
- See on GitHub + 🔎 See on GitHub
@@ -856,15 +856,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/rails/app/app_generator.rb, line 219
     def log
-      empty_directory_with_keep_file "log"
+      empty_directory_with_keep_file "log"
     end
- See on GitHub + 🔎 See on GitHub
@@ -891,20 +891,20 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/rails/app/app_generator.rb, line 181
     def master_key
       return if options[:pretend] || options[:dummy_app]
 
-      require "rails/generators/rails/master_key/master_key_generator"
+      require "rails/generators/rails/master_key/master_key_generator"
       master_key_generator = Rails::Generators::MasterKeyGenerator.new([], quiet: options[:quiet], force: options[:force])
       master_key_generator.add_master_key_file_silently
       master_key_generator.ignore_master_key_file_silently
     end
- See on GitHub + 🔎 See on GitHub
@@ -931,15 +931,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/rails/app/app_generator.rb, line 57
     def node_version
-      template "node-version", ".node-version"
+      template "node-version", ".node-version"
     end
- See on GitHub + 🔎 See on GitHub
@@ -966,15 +966,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/rails/app/app_generator.rb, line 223
     def public_directory
-      directory "public", "public", recursive: false
+      directory "public", "public", recursive: false
     end
- See on GitHub + 🔎 See on GitHub
@@ -1001,15 +1001,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/rails/app/app_generator.rb, line 45
     def rakefile
-      template "Rakefile"
+      template "Rakefile"
     end
- See on GitHub + 🔎 See on GitHub
@@ -1036,15 +1036,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/rails/app/app_generator.rb, line 49
     def readme
-      copy_file "README.md", "README.md"
+      copy_file "README.md", "README.md"
     end
- See on GitHub + 🔎 See on GitHub
@@ -1071,15 +1071,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/rails/app/app_generator.rb, line 53
     def ruby_version
-      template "ruby-version", ".ruby-version"
+      template "ruby-version", ".ruby-version"
     end
- See on GitHub + 🔎 See on GitHub
@@ -1106,16 +1106,16 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/rails/app/app_generator.rb, line 227
     def storage
-      empty_directory_with_keep_file "storage"
-      empty_directory_with_keep_file "tmp/storage"
+      empty_directory_with_keep_file "storage"
+      empty_directory_with_keep_file "tmp/storage"
     end
- See on GitHub + 🔎 See on GitHub
@@ -1142,17 +1142,17 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/rails/app/app_generator.rb, line 244
     def system_test
-      empty_directory_with_keep_file "test/system"
+      empty_directory_with_keep_file "test/system"
 
-      template "test/application_system_test_case.rb"
+      template "test/application_system_test_case.rb"
     end
- See on GitHub + 🔎 See on GitHub
@@ -1179,23 +1179,23 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/rails/app/app_generator.rb, line 232
     def test
-      empty_directory_with_keep_file "test/fixtures/files"
-      empty_directory_with_keep_file "test/controllers"
-      empty_directory_with_keep_file "test/mailers"
-      empty_directory_with_keep_file "test/models"
-      empty_directory_with_keep_file "test/helpers"
-      empty_directory_with_keep_file "test/integration"
-
-      template "test/channels/application_cable/connection_test.rb"
-      template "test/test_helper.rb"
+      empty_directory_with_keep_file "test/fixtures/files"
+      empty_directory_with_keep_file "test/controllers"
+      empty_directory_with_keep_file "test/mailers"
+      empty_directory_with_keep_file "test/models"
+      empty_directory_with_keep_file "test/helpers"
+      empty_directory_with_keep_file "test/integration"
+
+      template "test/channels/application_cable/connection_test.rb"
+      template "test/test_helper.rb"
     end
- See on GitHub + 🔎 See on GitHub
@@ -1222,18 +1222,18 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/rails/app/app_generator.rb, line 250
     def tmp
-      empty_directory_with_keep_file "tmp"
-      empty_directory_with_keep_file "tmp/pids"
-      empty_directory "tmp/cache"
-      empty_directory "tmp/cache/assets"
+      empty_directory_with_keep_file "tmp"
+      empty_directory_with_keep_file "tmp/pids"
+      empty_directory "tmp/cache"
+      empty_directory "tmp/cache/assets"
     end
- See on GitHub + 🔎 See on GitHub
@@ -1260,15 +1260,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/rails/app/app_generator.rb, line 257
     def vendor
-      empty_directory_with_keep_file "vendor"
+      empty_directory_with_keep_file "vendor"
     end
- See on GitHub + 🔎 See on GitHub
@@ -1295,17 +1295,17 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/rails/app/app_generator.rb, line 85
     def version_control
-      if !options[:skip_git] && !options[:pretend]
+      if !options[:skip_git] && !options[:pretend]
         run git_init_command, capture: options[:quiet], abort_on_failure: false
       end
     end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/Rails/Application.html b/src/classes/Rails/Application.html index b55380566f..9d84e49415 100644 --- a/src/classes/Rails/Application.html +++ b/src/classes/Rails/Application.html @@ -360,15 +360,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/application.rb, line 84
-      def create(initial_variable_values = {}, &block)
-        new(initial_variable_values, &block).run_load_hooks!
+      def create(initial_variable_values = {}, &block)
+        new(initial_variable_values, &block).run_load_hooks!
       end
- See on GitHub + 🔎 See on GitHub
@@ -395,15 +395,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/application.rb, line 88
       def find_root(from)
-        find_root_with_flag "config.ru", from, Dir.pwd
+        find_root_with_flag "config.ru", from, Dir.pwd
       end
- See on GitHub + 🔎 See on GitHub
@@ -430,20 +430,20 @@

- Source code + 📝 Source code
# File railties/lib/rails/application.rb, line 71
       def inherited(base)
         super
         Rails.app_class = base
-        # lib has to be added to $LOAD_PATH unconditionally, even if it's in the
+        # lib has to be added to $LOAD_PATH unconditionally, even if it's in the
         # autoload paths and config.add_autoload_paths_to_load_path is false.
         add_lib_to_load_path!(find_root(base.called_from))
         ActiveSupport.run_load_hooks(:before_configuration, base)
       end
- See on GitHub + 🔎 See on GitHub
@@ -470,7 +470,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/application.rb, line 80
@@ -478,7 +478,7 @@ 

super.run_load_hooks! end

- See on GitHub + 🔎 See on GitHub
@@ -505,11 +505,11 @@

- Source code + 📝 Source code
# File railties/lib/rails/application.rb, line 109
-    def initialize(initial_variable_values = {}, &block)
+    def initialize(initial_variable_values = {}, &block)
       super()
       @initialized       = false
       @reloaders         = []
@@ -533,7 +533,7 @@ 

@block = block end

- See on GitHub + 🔎 See on GitHub
@@ -599,21 +599,21 @@

- Source code + 📝 Source code
# File railties/lib/rails/application.rb, line 271
     def config_for(name, env: Rails.env)
-      yaml = name.is_a?(Pathname) ? name : Pathname.new("#{paths["config"].existent.first}/#{name}.yml")
+      yaml = name.is_a?(Pathname) ? name : Pathname.new("#{paths["config"].existent.first}/#{name}.yml")
 
       if yaml.exist?
-        require "erb"
+        require "erb"
         all_configs    = ActiveSupport::ConfigurationFile.parse(yaml).deep_symbolize_keys
         config, shared = all_configs[env.to_sym], all_configs[:shared]
 
         if shared
-          config = {} if config.nil? && shared.is_a?(Hash)
-          if config.is_a?(Hash) && shared.is_a?(Hash)
+          config = {} if config.nil? && shared.is_a?(Hash)
+          if config.is_a?(Hash) && shared.is_a?(Hash)
             config = shared.deep_merge(config)
           elsif config.nil?
             config = shared
@@ -626,11 +626,11 @@ 

config else - raise "Could not load configuration. No such file - #{yaml}" + raise "Could not load configuration. No such file - #{yaml}" end end

- See on GitHub + 🔎 See on GitHub
@@ -657,15 +657,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/application.rb, line 354
-    def console(&blk)
-      self.class.console(&blk)
+    def console(&blk)
+      self.class.console(&blk)
     end
- See on GitHub + 🔎 See on GitHub
@@ -696,7 +696,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/application.rb, line 499
@@ -704,7 +704,7 @@ 

@credentials ||= encrypted(config.credentials.content_path, key_path: config.credentials.key_path) end

- See on GitHub + 🔎 See on GitHub
@@ -731,7 +731,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/application.rb, line 230
@@ -741,7 +741,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -768,15 +768,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/application.rb, line 557
     def eager_load!
-      Rails.autoloaders.each(&:eager_load)
+      Rails.autoloaders.each(&:eager_load)
     end
- See on GitHub + 🔎 See on GitHub
@@ -814,11 +814,11 @@

- Source code + 📝 Source code
# File railties/lib/rails/application.rb, line 518
-    def encrypted(path, key_path: "config/master.key", env_key: "RAILS_MASTER_KEY")
+    def encrypted(path, key_path: "config/master.key", env_key: "RAILS_MASTER_KEY")
       ActiveSupport::EncryptedConfiguration.new(
         config_path: Rails.root.join(path),
         key_path: Rails.root.join(key_path),
@@ -827,7 +827,7 @@ 

) end

- See on GitHub + 🔎 See on GitHub
@@ -854,44 +854,44 @@

- Source code + 📝 Source code
# File railties/lib/rails/application.rb, line 300
     def env_config
       @app_env_config ||= super.merge(
-          "action_dispatch.parameter_filter" => filter_parameters,
-          "action_dispatch.redirect_filter" => config.filter_redirect,
-          "action_dispatch.secret_key_base" => secret_key_base,
-          "action_dispatch.show_exceptions" => config.action_dispatch.show_exceptions,
-          "action_dispatch.show_detailed_exceptions" => config.consider_all_requests_local,
-          "action_dispatch.log_rescued_responses" => config.action_dispatch.log_rescued_responses,
-          "action_dispatch.debug_exception_log_level" => ActiveSupport::Logger.const_get(config.action_dispatch.debug_exception_log_level.to_s.upcase),
-          "action_dispatch.logger" => Rails.logger,
-          "action_dispatch.backtrace_cleaner" => Rails.backtrace_cleaner,
-          "action_dispatch.key_generator" => key_generator,
-          "action_dispatch.http_auth_salt" => config.action_dispatch.http_auth_salt,
-          "action_dispatch.signed_cookie_salt" => config.action_dispatch.signed_cookie_salt,
-          "action_dispatch.encrypted_cookie_salt" => config.action_dispatch.encrypted_cookie_salt,
-          "action_dispatch.encrypted_signed_cookie_salt" => config.action_dispatch.encrypted_signed_cookie_salt,
-          "action_dispatch.authenticated_encrypted_cookie_salt" => config.action_dispatch.authenticated_encrypted_cookie_salt,
-          "action_dispatch.use_authenticated_cookie_encryption" => config.action_dispatch.use_authenticated_cookie_encryption,
-          "action_dispatch.encrypted_cookie_cipher" => config.action_dispatch.encrypted_cookie_cipher,
-          "action_dispatch.signed_cookie_digest" => config.action_dispatch.signed_cookie_digest,
-          "action_dispatch.cookies_serializer" => config.action_dispatch.cookies_serializer,
-          "action_dispatch.cookies_digest" => config.action_dispatch.cookies_digest,
-          "action_dispatch.cookies_rotations" => config.action_dispatch.cookies_rotations,
-          "action_dispatch.cookies_same_site_protection" => coerce_same_site_protection(config.action_dispatch.cookies_same_site_protection),
-          "action_dispatch.use_cookies_with_metadata" => config.action_dispatch.use_cookies_with_metadata,
-          "action_dispatch.content_security_policy" => config.content_security_policy,
-          "action_dispatch.content_security_policy_report_only" => config.content_security_policy_report_only,
-          "action_dispatch.content_security_policy_nonce_generator" => config.content_security_policy_nonce_generator,
-          "action_dispatch.content_security_policy_nonce_directives" => config.content_security_policy_nonce_directives,
-          "action_dispatch.permissions_policy" => config.permissions_policy,
+          "action_dispatch.parameter_filter" => filter_parameters,
+          "action_dispatch.redirect_filter" => config.filter_redirect,
+          "action_dispatch.secret_key_base" => secret_key_base,
+          "action_dispatch.show_exceptions" => config.action_dispatch.show_exceptions,
+          "action_dispatch.show_detailed_exceptions" => config.consider_all_requests_local,
+          "action_dispatch.log_rescued_responses" => config.action_dispatch.log_rescued_responses,
+          "action_dispatch.debug_exception_log_level" => ActiveSupport::Logger.const_get(config.action_dispatch.debug_exception_log_level.to_s.upcase),
+          "action_dispatch.logger" => Rails.logger,
+          "action_dispatch.backtrace_cleaner" => Rails.backtrace_cleaner,
+          "action_dispatch.key_generator" => key_generator,
+          "action_dispatch.http_auth_salt" => config.action_dispatch.http_auth_salt,
+          "action_dispatch.signed_cookie_salt" => config.action_dispatch.signed_cookie_salt,
+          "action_dispatch.encrypted_cookie_salt" => config.action_dispatch.encrypted_cookie_salt,
+          "action_dispatch.encrypted_signed_cookie_salt" => config.action_dispatch.encrypted_signed_cookie_salt,
+          "action_dispatch.authenticated_encrypted_cookie_salt" => config.action_dispatch.authenticated_encrypted_cookie_salt,
+          "action_dispatch.use_authenticated_cookie_encryption" => config.action_dispatch.use_authenticated_cookie_encryption,
+          "action_dispatch.encrypted_cookie_cipher" => config.action_dispatch.encrypted_cookie_cipher,
+          "action_dispatch.signed_cookie_digest" => config.action_dispatch.signed_cookie_digest,
+          "action_dispatch.cookies_serializer" => config.action_dispatch.cookies_serializer,
+          "action_dispatch.cookies_digest" => config.action_dispatch.cookies_digest,
+          "action_dispatch.cookies_rotations" => config.action_dispatch.cookies_rotations,
+          "action_dispatch.cookies_same_site_protection" => coerce_same_site_protection(config.action_dispatch.cookies_same_site_protection),
+          "action_dispatch.use_cookies_with_metadata" => config.action_dispatch.use_cookies_with_metadata,
+          "action_dispatch.content_security_policy" => config.content_security_policy,
+          "action_dispatch.content_security_policy_report_only" => config.content_security_policy_report_only,
+          "action_dispatch.content_security_policy_nonce_generator" => config.content_security_policy_nonce_generator,
+          "action_dispatch.content_security_policy_nonce_directives" => config.content_security_policy_nonce_directives,
+          "action_dispatch.permissions_policy" => config.permissions_policy,
         )
     end
- See on GitHub + 🔎 See on GitHub
@@ -918,15 +918,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/application.rb, line 360
-    def generators(&blk)
-      self.class.generators(&blk)
+    def generators(&blk)
+      self.class.generators(&blk)
     end
- See on GitHub + 🔎 See on GitHub
@@ -953,7 +953,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/application.rb, line 134
@@ -961,7 +961,7 @@ 

@initialized end

- See on GitHub + 🔎 See on GitHub
@@ -988,15 +988,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/application.rb, line 342
-    def initializer(name, opts = {}, &block)
-      self.class.initializer(name, opts, &block)
+    def initializer(name, opts = {}, &block)
+      self.class.initializer(name, opts, &block)
     end
- See on GitHub + 🔎 See on GitHub
@@ -1023,7 +1023,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/application.rb, line 371
@@ -1031,7 +1031,7 @@ 

self.class.isolate_namespace(mod) end

- See on GitHub + 🔎 See on GitHub
@@ -1058,7 +1058,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/application.rb, line 161
@@ -1070,7 +1070,7 @@ 

) end

- See on GitHub + 🔎 See on GitHub
@@ -1115,7 +1115,7 @@

Examples

- Source code + 📝 Source code
# File railties/lib/rails/application.rb, line 222
@@ -1123,7 +1123,7 @@ 

Examples

message_verifiers[verifier_name] end
- See on GitHub + 🔎 See on GitHub
@@ -1167,7 +1167,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/application.rb, line 197
@@ -1178,7 +1178,7 @@ 

end.rotate_defaults end

- See on GitHub + 🔎 See on GitHub
@@ -1205,15 +1205,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/application.rb, line 335
-    def rake_tasks(&block)
-      self.class.rake_tasks(&block)
+    def rake_tasks(&block)
+      self.class.rake_tasks(&block)
     end
- See on GitHub + 🔎 See on GitHub
@@ -1240,7 +1240,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/application.rb, line 153
@@ -1248,7 +1248,7 @@ 

routes_reloader.reload! end

- See on GitHub + 🔎 See on GitHub
@@ -1275,15 +1275,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/application.rb, line 348
-    def runner(&blk)
-      self.class.runner(&blk)
+    def runner(&blk)
+      self.class.runner(&blk)
     end
- See on GitHub + 🔎 See on GitHub
@@ -1318,21 +1318,21 @@

- Source code + 📝 Source code
# File railties/lib/rails/application.rb, line 475
     def secret_key_base
-      if Rails.env.local? || ENV["SECRET_KEY_BASE_DUMMY"]
+      if Rails.env.local? || ENV["SECRET_KEY_BASE_DUMMY"]
         config.secret_key_base ||= generate_local_secret
       else
         validate_secret_key_base(
-          ENV["SECRET_KEY_BASE"] || credentials.secret_key_base || secrets.secret_key_base
+          ENV["SECRET_KEY_BASE"] || credentials.secret_key_base || secrets.secret_key_base
         )
       end
     end
- See on GitHub + 🔎 See on GitHub
@@ -1359,28 +1359,28 @@

- Source code + 📝 Source code
# File railties/lib/rails/application.rb, line 440
     def secrets
-      Rails.deprecator.warn(<<~MSG.squish)
+      Rails.deprecator.warn(<<~MSG.squish)
         `Rails.application.secrets` is deprecated in favor of `Rails.application.credentials` and will be removed in Rails 7.2.
       MSG
       @secrets ||= begin
         secrets = ActiveSupport::OrderedOptions.new
-        files = config.paths["config/secrets"].existent
-        files = files.reject { |path| path.end_with?(".enc") } unless config.read_encrypted_secrets
+        files = config.paths["config/secrets"].existent
+        files = files.reject { |path| path.end_with?(".enc") } unless config.read_encrypted_secrets
         secrets.merge! Rails::Secrets.parse(files, env: Rails.env)
 
-        # Fallback to config.secret_key_base if secrets.secret_key_base isn't set
+        # Fallback to config.secret_key_base if secrets.secret_key_base isn't set
         secrets.secret_key_base ||= config.secret_key_base
 
         secrets
       end
     end
- See on GitHub + 🔎 See on GitHub
@@ -1407,15 +1407,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/application.rb, line 366
-    def server(&blk)
-      self.class.server(&blk)
+    def server(&blk)
+      self.class.server(&blk)
     end
- See on GitHub + 🔎 See on GitHub
@@ -1445,16 +1445,16 @@

- Source code + 📝 Source code
# File railties/lib/rails/application.rb, line 645
     def ensure_generator_templates_added
       configured_paths = config.generators.templates
-      configured_paths.unshift(*(paths["lib/templates"].existent - configured_paths))
+      configured_paths.unshift(*(paths["lib/templates"].existent - configured_paths))
     end
- See on GitHub + 🔎 See on GitHub
@@ -1481,21 +1481,21 @@

- Source code + 📝 Source code
# File railties/lib/rails/application.rb, line 635
     def validate_secret_key_base(secret_key_base)
-      if secret_key_base.is_a?(String) && secret_key_base.present?
+      if secret_key_base.is_a?(String) && secret_key_base.present?
         secret_key_base
       elsif secret_key_base
-        raise ArgumentError, "`secret_key_base` for #{Rails.env} environment must be a type of String`"
+        raise ArgumentError, "`secret_key_base` for #{Rails.env} environment must be a type of String`"
       else
-        raise ArgumentError, "Missing `secret_key_base` for '#{Rails.env}' environment, set this string with `bin/rails credentials:edit`"
+        raise ArgumentError, "Missing `secret_key_base` for '#{Rails.env}' environment, set this string with `bin/rails credentials:edit`"
       end
     end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/Rails/Application/Configuration.html b/src/classes/Rails/Application/Configuration.html index 3e0b66ed82..afc0acb3ce 100644 --- a/src/classes/Rails/Application/Configuration.html +++ b/src/classes/Rails/Application/Configuration.html @@ -561,7 +561,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/application/configuration.rb, line 30
@@ -575,26 +575,26 @@ 

@helpers_paths = [] if Rails.env.development? @hosts = ActionDispatch::HostAuthorization::ALLOWED_HOSTS_IN_DEVELOPMENT + - ENV["RAILS_DEVELOPMENT_HOSTS"].to_s.split(",").map(&:strip) + ENV["RAILS_DEVELOPMENT_HOSTS"].to_s.split(",").map(&:strip) else @hosts = [] end @host_authorization = {} @public_file_server = ActiveSupport::OrderedOptions.new @public_file_server.enabled = true - @public_file_server.index_name = "index" + @public_file_server.index_name = "index" @assume_ssl = false @force_ssl = false @ssl_options = {} @session_store = nil - @time_zone = "UTC" + @time_zone = "UTC" @beginning_of_week = :monday @log_level = :debug @log_file_size = nil @generators = app_generators - @cache_store = [ :file_store, "#{root}/tmp/cache/" ] + @cache_store = [ :file_store, "#{root}/tmp/cache/" ] @railties_order = [:all] - @relative_url_root = ENV["RAILS_RELATIVE_URL_ROOT"] + @relative_url_root = ENV["RAILS_RELATIVE_URL_ROOT"] @reload_classes_only_on_change = true @file_watcher = ActiveSupport::FileUpdateChecker @exceptions_app = nil @@ -623,7 +623,7 @@

@dom_testing_default_html_version = :html4 end

- See on GitHub + 🔎 See on GitHub
@@ -654,7 +654,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/application/configuration.rb, line 532
@@ -662,7 +662,7 @@ 

Rails::SourceAnnotationExtractor::Annotation end

- See on GitHub + 🔎 See on GitHub
@@ -689,7 +689,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/application/configuration.rb, line 375
@@ -700,7 +700,7 @@ 

@debug_exception_response_format ||= :api end

- See on GitHub + 🔎 See on GitHub
@@ -727,23 +727,23 @@

- Source code + 📝 Source code
# File railties/lib/rails/application/configuration.rb, line 464
       def autoload_lib(ignore:)
-        lib = root.join("lib")
+        lib = root.join("lib")
 
         # Set as a string to have the same type as default autoload paths, for
         # consistency.
-        autoload_paths << lib.to_s
-        eager_load_paths << lib.to_s
+        autoload_paths << lib.to_s
+        eager_load_paths << lib.to_s
 
         ignored_abspaths = Array.wrap(ignore).map { lib.join(_1) }
         Rails.autoloaders.main.ignore(ignored_abspaths)
       end
- See on GitHub + 🔎 See on GitHub
@@ -770,23 +770,23 @@

- Source code + 📝 Source code
# File railties/lib/rails/application/configuration.rb, line 476
       def autoload_lib_once(ignore:)
-        lib = root.join("lib")
+        lib = root.join("lib")
 
         # Set as a string to have the same type as default autoload paths, for
         # consistency.
-        autoload_once_paths << lib.to_s
-        eager_load_paths << lib.to_s
+        autoload_once_paths << lib.to_s
+        eager_load_paths << lib.to_s
 
         ignored_abspaths = Array.wrap(ignore).map { lib.join(_1) }
         Rails.autoloaders.once.ignore(ignored_abspaths)
       end
- See on GitHub + 🔎 See on GitHub
@@ -813,7 +813,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/application/configuration.rb, line 488
@@ -821,7 +821,7 @@ 

ActiveSupport::LogSubscriber.colorize_logging end

- See on GitHub + 🔎 See on GitHub
@@ -848,7 +848,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/application/configuration.rb, line 492
@@ -857,7 +857,7 @@ 

generators.colorize_logging = val end

- See on GitHub + 🔎 See on GitHub
@@ -884,19 +884,19 @@

- Source code + 📝 Source code
# File railties/lib/rails/application/configuration.rb, line 537
-      def content_security_policy(&block)
+      def content_security_policy(&block)
         if block_given?
-          @content_security_policy = ActionDispatch::ContentSecurityPolicy.new(&block)
+          @content_security_policy = ActionDispatch::ContentSecurityPolicy.new(&block)
         else
           @content_security_policy
         end
       end
- See on GitHub + 🔎 See on GitHub
@@ -923,20 +923,20 @@

- Source code + 📝 Source code
# File railties/lib/rails/application/configuration.rb, line 427
       def database_configuration
-        path = paths["config/database"].existent.first
+        path = paths["config/database"].existent.first
         yaml = Pathname.new(path) if path
 
-        config = if yaml&.exist?
+        config = if yaml&.exist?
           loaded_yaml = ActiveSupport::ConfigurationFile.parse(yaml)
-          if (shared = loaded_yaml.delete("shared"))
+          if (shared = loaded_yaml.delete("shared"))
             loaded_yaml.each do |env, config|
-              if config.is_a?(Hash) && config.values.all?(Hash)
-                if shared.is_a?(Hash) && shared.values.all?(Hash)
+              if config.is_a?(Hash) && config.values.all?(Hash)
+                if shared.is_a?(Hash) && shared.values.all?(Hash)
                   config.map do |name, sub_config|
                     sub_config.reverse_merge!(shared[name])
                   end
@@ -951,20 +951,20 @@ 

end end Hash.new(shared).merge(loaded_yaml) - elsif ENV["DATABASE_URL"] - # Value from ENV['DATABASE_URL'] is set to default database connection + elsif ENV["DATABASE_URL"] + # Value from ENV['DATABASE_URL'] is set to default database connection # by Active Record. {} else - raise "Could not load database configuration. No such file - #{paths["config/database"].instance_variable_get(:@paths)}" + raise "Could not load database configuration. No such file - #{paths["config/database"].instance_variable_get(:@paths)}" end config - rescue => e - raise e, "Cannot load database configuration:\n#{e.message}", e.backtrace + rescue => e + raise e, "Cannot load database configuration:\n#{e.message}", e.backtrace end

- See on GitHub + 🔎 See on GitHub
@@ -991,7 +991,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/application/configuration.rb, line 382
@@ -999,7 +999,7 @@ 

@debug_exception_response_format || :default end

- See on GitHub + 🔎 See on GitHub
@@ -1026,23 +1026,23 @@

- Source code + 📝 Source code
# File railties/lib/rails/application/configuration.rb, line 554
       def default_log_file
-        path = paths["log"].first
+        path = paths["log"].first
         unless File.exist? File.dirname path
           FileUtils.mkdir_p File.dirname path
         end
 
-        f = File.open path, "a"
+        f = File.open path, "a"
         f.binmode
         f.sync = autoflush_log # if true make sure every write flushes
         f
       end
- See on GitHub + 🔎 See on GitHub
@@ -1069,7 +1069,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/application/configuration.rb, line 357
@@ -1078,7 +1078,7 @@ 

@enable_dependency_loading end

- See on GitHub + 🔎 See on GitHub
@@ -1105,7 +1105,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/application/configuration.rb, line 362
@@ -1114,7 +1114,7 @@ 

@enable_dependency_loading = value end

- See on GitHub + 🔎 See on GitHub
@@ -1141,7 +1141,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/application/configuration.rb, line 343
@@ -1149,7 +1149,7 @@ 

!cache_classes end

- See on GitHub + 🔎 See on GitHub
@@ -1176,7 +1176,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/application/configuration.rb, line 347
@@ -1184,7 +1184,7 @@ 

self.cache_classes = !value end

- See on GitHub + 🔎 See on GitHub
@@ -1211,7 +1211,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/application/configuration.rb, line 367
@@ -1223,7 +1223,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -1250,7 +1250,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/application/configuration.rb, line 92
@@ -1274,7 +1274,7 @@ 

# 4. Remove the config accessor. case target_version.to_s - when "5.0" + when "5.0" if respond_to?(:action_controller) action_controller.per_form_csrf_tokens = true action_controller.forgery_protection_origin_check = true @@ -1287,8 +1287,8 @@

end self.ssl_options = { hsts: { subdomains: true } } - when "5.1" - load_defaults "5.0" + when "5.1" + load_defaults "5.0" if respond_to?(:assets) assets.unknown_asset_fallback = false @@ -1297,8 +1297,8 @@

if respond_to?(:action_view) action_view.form_with_generates_remote_forms = true end - when "5.2" - load_defaults "5.1" + when "5.2" + load_defaults "5.1" if respond_to?(:active_record) active_record.cache_versioning = true @@ -1320,8 +1320,8 @@

if respond_to?(:action_view) action_view.form_with_generates_ids = true end - when "6.0" - load_defaults "5.2" + when "6.0" + load_defaults "5.2" if respond_to?(:action_view) action_view.default_enforce_utf8 = false @@ -1332,7 +1332,7 @@

end if respond_to?(:action_mailer) - action_mailer.delivery_job = "ActionMailer::MailDeliveryJob" + action_mailer.delivery_job = "ActionMailer::MailDeliveryJob" end if respond_to?(:active_storage) @@ -1343,8 +1343,8 @@

if respond_to?(:active_record) active_record.collection_cache_versioning = true end - when "6.1" - load_defaults "6.0" + when "6.1" + load_defaults "6.0" if respond_to?(:active_record) active_record.has_many_inversing = true @@ -1381,17 +1381,17 @@

end ActiveSupport.utc_to_local_returns_utc_offset_times = true - when "7.0" - load_defaults "6.1" + when "7.0" + load_defaults "6.1" if respond_to?(:action_dispatch) action_dispatch.default_headers = { - "X-Frame-Options" => "SAMEORIGIN", - "X-XSS-Protection" => "0", - "X-Content-Type-Options" => "nosniff", - "X-Download-Options" => "noopen", - "X-Permitted-Cross-Domain-Policies" => "none", - "Referrer-Policy" => "strict-origin-when-cross-origin" + "X-Frame-Options" => "SAMEORIGIN", + "X-XSS-Protection" => "0", + "X-Content-Type-Options" => "nosniff", + "X-Download-Options" => "noopen", + "X-Permitted-Cross-Domain-Policies" => "none", + "Referrer-Policy" => "strict-origin-when-cross-origin" } action_dispatch.cookies_serializer = :json end @@ -1414,8 +1414,8 @@

if respond_to?(:active_storage) active_storage.video_preview_arguments = - "-vf 'select=eq(n\\,0)+eq(key\\,1)+gt(scene\\,0.015),loop=loop=-1:size=2,trim=start_frame=1'" \ - " -frames:v 1 -f image2" + "-vf 'select=eq(n\\,0)+eq(key\\,1)+gt(scene\\,0.015),loop=loop=-1:size=2,trim=start_frame=1'" \ + " -frames:v 1 -f image2" active_storage.variant_processor = :vips active_storage.multiple_file_field_include_hidden = true @@ -1431,8 +1431,8 @@

action_controller.raise_on_open_redirects = true action_controller.wrap_parameters_by_default = true end - when "7.1" - load_defaults "7.0" + when "7.1" + load_defaults "7.0" self.add_autoload_paths_to_load_path = false self.precompile_filter_parameters = true @@ -1461,11 +1461,11 @@

if respond_to?(:action_dispatch) action_dispatch.default_headers = { - "X-Frame-Options" => "SAMEORIGIN", - "X-XSS-Protection" => "0", - "X-Content-Type-Options" => "nosniff", - "X-Permitted-Cross-Domain-Policies" => "none", - "Referrer-Policy" => "strict-origin-when-cross-origin" + "X-Frame-Options" => "SAMEORIGIN", + "X-XSS-Protection" => "0", + "X-Content-Type-Options" => "nosniff", + "X-Permitted-Cross-Domain-Policies" => "none", + "Referrer-Policy" => "strict-origin-when-cross-origin" } action_dispatch.debug_exception_log_level = :error end @@ -1495,13 +1495,13 @@

end end else - raise "Unknown version #{target_version.to_s.inspect}" + raise "Unknown version #{target_version.to_s.inspect}" end @loaded_config_version = target_version end

- See on GitHub + 🔎 See on GitHub
@@ -1528,27 +1528,27 @@

- Source code + 📝 Source code
# File railties/lib/rails/application/configuration.rb, line 388
       def paths
         @paths ||= begin
           paths = super
-          paths.add "config/database",    with: "config/database.yml"
-          paths.add "config/secrets",     with: "config", glob: "secrets.yml{,.enc}"
-          paths.add "config/environment", with: "config/environment.rb"
-          paths.add "lib/templates"
-          paths.add "log",                with: "log/#{Rails.env}.log"
-          paths.add "public"
-          paths.add "public/javascripts"
-          paths.add "public/stylesheets"
-          paths.add "tmp"
+          paths.add "config/database",    with: "config/database.yml"
+          paths.add "config/secrets",     with: "config", glob: "secrets.yml{,.enc}"
+          paths.add "config/environment", with: "config/environment.rb"
+          paths.add "lib/templates"
+          paths.add "log",                with: "log/#{Rails.env}.log"
+          paths.add "public"
+          paths.add "public/javascripts"
+          paths.add "public/stylesheets"
+          paths.add "tmp"
           paths
         end
       end
- See on GitHub + 🔎 See on GitHub
@@ -1575,19 +1575,19 @@

- Source code + 📝 Source code
# File railties/lib/rails/application/configuration.rb, line 546
-      def permissions_policy(&block)
+      def permissions_policy(&block)
         if block_given?
-          @permissions_policy = ActionDispatch::PermissionsPolicy.new(&block)
+          @permissions_policy = ActionDispatch::PermissionsPolicy.new(&block)
         else
           @permissions_policy
         end
       end
- See on GitHub + 🔎 See on GitHub
@@ -1614,7 +1614,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/application/configuration.rb, line 339
@@ -1622,7 +1622,7 @@ 

enable_reloading end

- See on GitHub + 🔎 See on GitHub
@@ -1661,7 +1661,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/application/configuration.rb, line 512
@@ -1681,7 +1681,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/Rails/Application/DefaultMiddlewareStack.html b/src/classes/Rails/Application/DefaultMiddlewareStack.html index 8b76d059c3..402ffabac2 100644 --- a/src/classes/Rails/Application/DefaultMiddlewareStack.html +++ b/src/classes/Rails/Application/DefaultMiddlewareStack.html @@ -117,7 +117,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/application/default_middleware_stack.rb, line 8
@@ -127,7 +127,7 @@ 

@paths = paths end

- See on GitHub + 🔎 See on GitHub
@@ -158,7 +158,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/application/default_middleware_stack.rb, line 14
@@ -182,11 +182,11 @@ 

if config.public_file_server.enabled headers = config.public_file_server.headers || {} - middleware.use ::ActionDispatch::Static, paths["public"].first, index: config.public_file_server.index_name, headers: headers + middleware.use ::ActionDispatch::Static, paths["public"].first, index: config.public_file_server.index_name, headers: headers end if rack_cache = load_rack_cache - require "action_dispatch/http/rack_cache" + require "action_dispatch/http/rack_cache" middleware.use ::Rack::Cache, rack_cache end @@ -220,8 +220,8 @@

middleware.use ::ActionDispatch::Callbacks middleware.use ::ActionDispatch::Cookies unless config.api_only - if !config.api_only && config.session_store - if config.force_ssl && config.ssl_options.fetch(:secure_cookies, true) && !config.session_options.key?(:secure) + if !config.api_only && config.session_store + if config.force_ssl && config.ssl_options.fetch(:secure_cookies, true) && !config.session_options.key?(:secure) config.session_options[:secure] = true end middleware.use config.session_store, config.session_options @@ -235,7 +235,7 @@

middleware.use ::Rack::Head middleware.use ::Rack::ConditionalGet - middleware.use ::Rack::ETag, "no-cache" + middleware.use ::Rack::ETag, "no-cache" middleware.use ::Rack::TempfileReaper unless config.api_only @@ -256,7 +256,7 @@

end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/Rails/Application/RoutesReloader.html b/src/classes/Rails/Application/RoutesReloader.html index a104e25aef..ba5740b855 100644 --- a/src/classes/Rails/Application/RoutesReloader.html +++ b/src/classes/Rails/Application/RoutesReloader.html @@ -139,7 +139,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/application/routes_reloader.rb, line 15
@@ -150,7 +150,7 @@ 

@eager_load = false end

- See on GitHub + 🔎 See on GitHub
@@ -181,7 +181,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/application/routes_reloader.rb, line 22
@@ -189,12 +189,12 @@ 

clear! load_paths finalize! - route_sets.each(&:eager_load!) if eager_load + route_sets.each(&:eager_load!) if eager_load ensure revert end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/Rails/Command.html b/src/classes/Rails/Command.html index c3814367e3..bb6a01ee95 100644 --- a/src/classes/Rails/Command.html +++ b/src/classes/Rails/Command.html @@ -169,11 +169,6 @@

Constants

%w(-h -? --help).to_set - -   - - - VERSION_MAPPINGS @@ -181,11 +176,6 @@

Constants

%w(-v --version).to_set - -   - - - @@ -217,34 +207,34 @@

- Source code + 📝 Source code
# File railties/lib/rails/command.rb, line 62
       def invoke(full_namespace, args = [], **config)
-        args = ["--help"] if rails_new_with_no_path?(args)
+        args = ["--help"] if rails_new_with_no_path?(args)
 
         full_namespace = full_namespace.to_s
         namespace, command_name = split_namespace(full_namespace)
         command = find_by_namespace(namespace, command_name)
 
         with_argv(args) do
-          if command && command.all_commands[command_name]
+          if command && command.all_commands[command_name]
             command.perform(command_name, args, config)
           else
             invoke_rake(full_namespace, args, config)
           end
         end
-      rescue UnrecognizedCommandError => error
-        if error.name == full_namespace && command && command_name == full_namespace
-          command.perform("help", [], config)
+      rescue UnrecognizedCommandError => error
+        if error.name == full_namespace && command && command_name == full_namespace
+          command.perform("help", [], config)
         else
           puts error.detailed_message
         end
         exit(1)
       end
- See on GitHub + 🔎 See on GitHub
@@ -271,7 +261,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/command.rb, line 108
@@ -283,7 +273,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -313,15 +303,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/command.rb, line 159
         def command_type # :doc:
-          @command_type ||= "command"
+          @command_type ||= "command"
         end
- See on GitHub + 🔎 See on GitHub
@@ -348,15 +338,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/command.rb, line 167
         def file_lookup_paths # :doc:
-          @file_lookup_paths ||= [ "{#{lookup_paths.join(',')}}", "**", "*_command.rb" ]
+          @file_lookup_paths ||= [ "{#{lookup_paths.join(',')}}", "**", "*_command.rb" ]
         end
- See on GitHub + 🔎 See on GitHub
@@ -383,7 +373,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/command.rb, line 163
@@ -391,7 +381,7 @@ 

@lookup_paths ||= %w( rails/commands commands ) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/Rails/Command/Actions.html b/src/classes/Rails/Command/Actions.html index 3648513546..2b7861d1d5 100644 --- a/src/classes/Rails/Command/Actions.html +++ b/src/classes/Rails/Command/Actions.html @@ -98,7 +98,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/command/actions.rb, line 18
@@ -107,7 +107,7 @@ 

Rails.application.require_environment! if defined?(APP_PATH) end

- See on GitHub + 🔎 See on GitHub
@@ -134,7 +134,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/command/actions.rb, line 23
@@ -145,7 +145,7 @@ 

Rails.application.initialize!(:_) if defined?(APP_PATH) end

- See on GitHub + 🔎 See on GitHub
@@ -172,7 +172,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/command/actions.rb, line 36
@@ -182,7 +182,7 @@ 

engine.load_generators end

- See on GitHub + 🔎 See on GitHub
@@ -209,16 +209,16 @@

- Source code + 📝 Source code
# File railties/lib/rails/command/actions.rb, line 31
         def load_tasks
-          Rake.application.init("rails")
+          Rake.application.init("rails")
           Rake.application.load_rakefile
         end
- See on GitHub + 🔎 See on GitHub
@@ -245,7 +245,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/command/actions.rb, line 13
@@ -254,7 +254,7 @@ 

require APP_PATH if defined?(APP_PATH) end

- See on GitHub + 🔎 See on GitHub
@@ -281,15 +281,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/command/actions.rb, line 9
       def set_application_directory!
-        Dir.chdir(File.expand_path("../..", APP_PATH)) unless File.exist?(File.expand_path("config.ru"))
+        Dir.chdir(File.expand_path("../..", APP_PATH)) unless File.exist?(File.expand_path("config.ru"))
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/Rails/Command/Base.html b/src/classes/Rails/Command/Base.html index 6152959548..9774d0328a 100644 --- a/src/classes/Rails/Command/Base.html +++ b/src/classes/Rails/Command/Base.html @@ -137,14 +137,14 @@

- Source code + 📝 Source code
# File railties/lib/rails/command/base.rb, line 86
         def banner(command = nil, *)
           if command
-            # Similar to Thor's banner, but show the namespace (minus the
-            # "rails:" prefix), and show the command's declared bin instead of
+            # Similar to Thor's banner, but show the namespace (minus the
+            # "rails:" prefix), and show the command's declared bin instead of
             # the command runner.
             command.formatted_usage(self).gsub(/^#{namespace}:(\w+)/) { executable($1) }
           else
@@ -152,7 +152,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -182,17 +182,17 @@

- Source code + 📝 Source code
# File railties/lib/rails/command/base.rb, line 106
         def base_name
-          @base_name ||= if base = name.to_s.split("::").first
+          @base_name ||= if base = name.to_s.split("::").first
             base.underscore
           end
         end
- See on GitHub + 🔎 See on GitHub
@@ -222,18 +222,18 @@

- Source code + 📝 Source code
# File railties/lib/rails/command/base.rb, line 115
         def command_name
-          @command_name ||= if command = name.to_s.split("::").last
-            command.chomp!("Command")
+          @command_name ||= if command = name.to_s.split("::").last
+            command.chomp!("Command")
             command.underscore
           end
         end
- See on GitHub + 🔎 See on GitHub
@@ -262,16 +262,16 @@

- Source code + 📝 Source code
# File railties/lib/rails/command/base.rb, line 139
         def default_command_root
-          @default_command_root = resolve_path(".") unless defined?(@default_command_root)
+          @default_command_root = resolve_path(".") unless defined?(@default_command_root)
           @default_command_root
         end
- See on GitHub + 🔎 See on GitHub
@@ -298,7 +298,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/command/base.rb, line 34
@@ -310,7 +310,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -337,7 +337,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/command/base.rb, line 28
@@ -345,7 +345,7 @@ 

defined?(ENGINE_ROOT) end

- See on GitHub + 🔎 See on GitHub
@@ -372,15 +372,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/command/base.rb, line 82
         def executable(command_name = self.command_name)
-          "#{bin} #{namespaced_name(command_name)}"
+          "#{bin} #{namespaced_name(command_name)}"
         end
- See on GitHub + 🔎 See on GitHub
@@ -407,15 +407,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/command/base.rb, line 55
         def hide_command!
-          Rails::Command.hidden_commands << self
+          Rails::Command.hidden_commands << self
         end
- See on GitHub + 🔎 See on GitHub
@@ -442,7 +442,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/command/base.rb, line 45
@@ -450,11 +450,11 @@ 

if name super else - @namespace ||= super.chomp("_command").sub(/:command:/, ":") + @namespace ||= super.chomp("_command").sub(/:command:/, ":") end end

- See on GitHub + 🔎 See on GitHub
@@ -481,7 +481,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/command/base.rb, line 76
@@ -491,7 +491,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -518,16 +518,16 @@

- Source code + 📝 Source code
# File railties/lib/rails/command/base.rb, line 129
         def usage_path
-          @usage_path = resolve_path("USAGE") unless defined?(@usage_path)
+          @usage_path = resolve_path("USAGE") unless defined?(@usage_path)
           @usage_path
         end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/Rails/Command/UnusedRoutesCommand/RouteInfo.html b/src/classes/Rails/Command/UnusedRoutesCommand/RouteInfo.html index 4c8d5608da..b863e4d930 100644 --- a/src/classes/Rails/Command/UnusedRoutesCommand/RouteInfo.html +++ b/src/classes/Rails/Command/UnusedRoutesCommand/RouteInfo.html @@ -87,7 +87,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/commands/unused_routes/unused_routes_command.rb, line 13
@@ -95,10 +95,10 @@ 

requirements = route.requirements @controller_name = requirements[:controller] @action_name = requirements[:action] - @controller_class = (@controller_name.to_s.camelize + "Controller").safe_constantize + @controller_class = (@controller_name.to_s.camelize + "Controller").safe_constantize end

- See on GitHub + 🔎 See on GitHub
@@ -129,15 +129,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/commands/unused_routes/unused_routes_command.rb, line 20
         def unused?
-          controller_class_missing? || (action_missing? && template_missing?)
+          controller_class_missing? || (action_missing? && template_missing?)
         end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/Rails/Configuration/MiddlewareStackProxy.html b/src/classes/Rails/Configuration/MiddlewareStackProxy.html index b714906f14..2fa52d4cfe 100644 --- a/src/classes/Rails/Configuration/MiddlewareStackProxy.html +++ b/src/classes/Rails/Configuration/MiddlewareStackProxy.html @@ -186,7 +186,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/configuration.rb, line 47
@@ -195,7 +195,7 @@ 

@delete_operations = delete_operations end

- See on GitHub + 🔎 See on GitHub
@@ -226,15 +226,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/configuration.rb, line 70
       def delete(...)
-        @delete_operations << -> middleware { middleware.delete(...) }
+        @delete_operations << -> middleware { middleware.delete(...) }
       end
- See on GitHub + 🔎 See on GitHub
@@ -286,15 +286,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/configuration.rb, line 58
       def insert_after(...)
-        @operations << -> middleware { middleware.insert_after(...) }
+        @operations << -> middleware { middleware.insert_after(...) }
       end
- See on GitHub + 🔎 See on GitHub
@@ -325,15 +325,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/configuration.rb, line 52
       def insert_before(...)
-        @operations << -> middleware { middleware.insert_before(...) }
+        @operations << -> middleware { middleware.insert_before(...) }
       end
- See on GitHub + 🔎 See on GitHub
@@ -385,15 +385,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/configuration.rb, line 80
       def move_after(...)
-        @delete_operations << -> middleware { middleware.move_after(...) }
+        @delete_operations << -> middleware { middleware.move_after(...) }
       end
- See on GitHub + 🔎 See on GitHub
@@ -424,15 +424,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/configuration.rb, line 74
       def move_before(...)
-        @delete_operations << -> middleware { middleware.move_before(...) }
+        @delete_operations << -> middleware { middleware.move_before(...) }
       end
- See on GitHub + 🔎 See on GitHub
@@ -459,15 +459,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/configuration.rb, line 62
       def swap(...)
-        @operations << -> middleware { middleware.swap(...) }
+        @operations << -> middleware { middleware.swap(...) }
       end
- See on GitHub + 🔎 See on GitHub
@@ -494,15 +494,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/configuration.rb, line 84
       def unshift(...)
-        @operations << -> middleware { middleware.unshift(...) }
+        @operations << -> middleware { middleware.unshift(...) }
       end
- See on GitHub + 🔎 See on GitHub
@@ -529,15 +529,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/configuration.rb, line 66
       def use(...)
-        @operations << -> middleware { middleware.use(...) }
+        @operations << -> middleware { middleware.use(...) }
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/Rails/Console.html b/src/classes/Rails/Console.html index e89e4b8bd8..fbbb2ef4da 100644 --- a/src/classes/Rails/Console.html +++ b/src/classes/Rails/Console.html @@ -150,7 +150,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/commands/console/console_command.rb, line 21
@@ -160,28 +160,28 @@ 

app.sandbox = sandbox? - if sandbox? && app.config.disable_sandbox - puts "Error: Unable to start console in sandbox mode as sandbox mode is disabled (config.disable_sandbox is true)." + if sandbox? && app.config.disable_sandbox + puts "Error: Unable to start console in sandbox mode as sandbox mode is disabled (config.disable_sandbox is true)." exit 1 end app.load_console @console = app.config.console || begin - require "irb" - require "irb/completion" + require "irb" + require "irb/completion" IRB::WorkSpace.prepend(BacktraceCleaner) if !Rails.env.local? - ENV["IRB_USE_AUTOCOMPLETE"] ||= "false" + ENV["IRB_USE_AUTOCOMPLETE"] ||= "false" end IRB end end

- See on GitHub + 🔎 See on GitHub
@@ -208,7 +208,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/commands/console/console_command.rb, line 15
@@ -216,7 +216,7 @@ 

new(*args).start end

- See on GitHub + 🔎 See on GitHub
@@ -251,7 +251,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/commands/console/console_command.rb, line 56
@@ -259,7 +259,7 @@ 

options[:environment] end

- See on GitHub + 🔎 See on GitHub
@@ -311,7 +311,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/commands/console/console_command.rb, line 48
@@ -323,7 +323,7 @@ 

app.config.sandbox_by_default end

- See on GitHub + 🔎 See on GitHub
@@ -350,7 +350,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/commands/console/console_command.rb, line 61
@@ -358,7 +358,7 @@ 

Rails.env = environment end

- See on GitHub + 🔎 See on GitHub
@@ -385,7 +385,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/commands/console/console_command.rb, line 65
@@ -393,10 +393,10 @@ 

set_environment! if environment? if sandbox? - puts "Loading #{Rails.env} environment in sandbox (Rails #{Rails.version})" - puts "Any modifications you make will be rolled back on exit" + puts "Loading #{Rails.env} environment in sandbox (Rails #{Rails.version})" + puts "Any modifications you make will be rolled back on exit" else - puts "Loading #{Rails.env} environment (Rails #{Rails.version})" + puts "Loading #{Rails.env} environment (Rails #{Rails.version})" end if defined?(console::ExtendCommandBundle) @@ -405,7 +405,7 @@

console.start end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/Rails/Console/BacktraceCleaner.html b/src/classes/Rails/Console/BacktraceCleaner.html index 2bc8bbbb4d..a5b9a0a8e1 100644 --- a/src/classes/Rails/Console/BacktraceCleaner.html +++ b/src/classes/Rails/Console/BacktraceCleaner.html @@ -78,7 +78,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/commands/console/console_command.rb, line 8
@@ -88,7 +88,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/Rails/ConsoleMethods.html b/src/classes/Rails/ConsoleMethods.html index a6299fbe01..5b939eb934 100644 --- a/src/classes/Rails/ConsoleMethods.html +++ b/src/classes/Rails/ConsoleMethods.html @@ -96,7 +96,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/console/app.rb, line 10
@@ -105,7 +105,7 @@ 

@app_integration_instance ||= new_session end

- See on GitHub + 🔎 See on GitHub
@@ -134,7 +134,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/console/helpers.rb, line 15
@@ -142,7 +142,7 @@ 

@controller ||= ApplicationController.new end

- See on GitHub + 🔎 See on GitHub
@@ -171,7 +171,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/console/helpers.rb, line 8
@@ -179,7 +179,7 @@ 

ApplicationController.helpers end

- See on GitHub + 🔎 See on GitHub
@@ -206,7 +206,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/console/app.rb, line 17
@@ -221,7 +221,7 @@ 

session end

- See on GitHub + 🔎 See on GitHub
@@ -248,17 +248,17 @@

- Source code + 📝 Source code
# File railties/lib/rails/console/app.rb, line 29
     def reload!(print = true)
-      puts "Reloading..." if print
+      puts "Reloading..." if print
       Rails.application.reloader.reload!
       true
     end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/Rails/DBConsole.html b/src/classes/Rails/DBConsole.html index 6273a5d540..67bda602a1 100644 --- a/src/classes/Rails/DBConsole.html +++ b/src/classes/Rails/DBConsole.html @@ -111,7 +111,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/commands/dbconsole/dbconsole_command.rb, line 12
@@ -120,7 +120,7 @@ 

@options[:environment] ||= Rails::Command.environment end

- See on GitHub + 🔎 See on GitHub
@@ -147,7 +147,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/commands/dbconsole/dbconsole_command.rb, line 8
@@ -155,7 +155,7 @@ 

new(*args).start end

- See on GitHub + 🔎 See on GitHub
@@ -186,7 +186,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/commands/dbconsole/dbconsole_command.rb, line 43
@@ -194,7 +194,7 @@ 

@options[:database] end

- See on GitHub + 🔎 See on GitHub
@@ -221,7 +221,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/commands/dbconsole/dbconsole_command.rb, line 23
@@ -237,15 +237,15 @@ 

end unless @db_config - missing_db = database ? "'#{database}' database is not" : "No databases are" + missing_db = database ? "'#{database}' database is not" : "No databases are" raise ActiveRecord::AdapterNotSpecified, - "#{missing_db} configured for '#{environment}'. Available configuration: #{configurations.inspect}" + "#{missing_db} configured for '#{environment}'. Available configuration: #{configurations.inspect}" end @db_config end

- See on GitHub + 🔎 See on GitHub
@@ -272,7 +272,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/commands/dbconsole/dbconsole_command.rb, line 47
@@ -280,7 +280,7 @@ 

@options[:environment] end

- See on GitHub + 🔎 See on GitHub
@@ -307,17 +307,17 @@

- Source code + 📝 Source code
# File railties/lib/rails/commands/dbconsole/dbconsole_command.rb, line 17
     def start
       adapter_class.dbconsole(db_config, @options)
     rescue NotImplementedError
-      abort "Unknown command-line client for #{db_config.database}."
+      abort "Unknown command-line client for #{db_config.database}."
     end
- See on GitHub + 🔎 See on GitHub
@@ -347,7 +347,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/commands/dbconsole/dbconsole_command.rb, line 60
@@ -357,7 +357,7 @@ 

ActiveRecord::Base.configurations end

- See on GitHub + 🔎 See on GitHub
@@ -384,19 +384,19 @@

- Source code + 📝 Source code
# File railties/lib/rails/commands/dbconsole/dbconsole_command.rb, line 66
       def find_cmd_and_exec(commands, *args) # :doc:
-        Rails.deprecator.warn(<<~MSG.squish)
+        Rails.deprecator.warn(<<~MSG.squish)
           Rails::DBConsole#find_cmd_and_exec is deprecated and will be removed in Rails 7.2.
           Please use find_cmd_and_exec on the connection adapter class instead.
         MSG
         ActiveRecord::Base.connection.find_cmd_and_exec(commands, *args)
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/Rails/Engine.html b/src/classes/Rails/Engine.html index baf7d3a793..42a344ffc5 100644 --- a/src/classes/Rails/Engine.html +++ b/src/classes/Rails/Engine.html @@ -539,7 +539,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/engine.rb, line 378
@@ -549,7 +549,7 @@ 

@endpoint end

- See on GitHub + 🔎 See on GitHub
@@ -576,7 +576,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/engine.rb, line 416
@@ -589,7 +589,7 @@ 

nil end

- See on GitHub + 🔎 See on GitHub
@@ -616,15 +616,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/engine.rb, line 374
       def find_root(from)
-        find_root_with_flag "lib", from
+        find_root_with_flag "lib", from
       end
- See on GitHub + 🔎 See on GitHub
@@ -651,13 +651,13 @@

- Source code + 📝 Source code
# File railties/lib/rails/engine.rb, line 360
       def inherited(base)
         unless base.abstract_railtie?
-          Rails::Railtie::Configuration.eager_load_namespaces << base
+          Rails::Railtie::Configuration.eager_load_namespaces << base
 
           base.called_from = begin
             call_stack = caller_locations.map { |l| l.absolute_path || l.path }
@@ -669,7 +669,7 @@ 

super end

- See on GitHub + 🔎 See on GitHub
@@ -696,7 +696,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/engine.rb, line 384
@@ -713,11 +713,11 @@ 

define_method(:railtie_namespace) { railtie } unless mod.respond_to?(:table_name_prefix) - define_method(:table_name_prefix) { "#{name}_" } + define_method(:table_name_prefix) { "#{name}_" } end unless mod.respond_to?(:use_relative_model_naming?) - class_eval "def use_relative_model_naming?; true; end", __FILE__, __LINE__ + class_eval "def use_relative_model_naming?; true; end", __FILE__, __LINE__ end unless mod.respond_to?(:railtie_helpers_paths) @@ -731,7 +731,7 @@

end end

- See on GitHub + 🔎 See on GitHub
@@ -758,7 +758,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/engine.rb, line 432
@@ -774,7 +774,7 @@ 

super end

- See on GitHub + 🔎 See on GitHub
@@ -805,7 +805,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/engine.rb, line 510
@@ -819,7 +819,7 @@ 

} end

- See on GitHub + 🔎 See on GitHub
@@ -846,7 +846,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/engine.rb, line 527
@@ -855,7 +855,7 @@ 

app.call req.env end

- See on GitHub + 🔎 See on GitHub
@@ -882,7 +882,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/engine.rb, line 546
@@ -890,7 +890,7 @@ 

@config ||= Engine::Configuration.new(self.class.find_root(self.class.called_from)) end

- See on GitHub + 🔎 See on GitHub
@@ -917,7 +917,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/engine.rb, line 484
@@ -926,7 +926,7 @@ 

# method as a no-op for backwards compatibility. end

- See on GitHub + 🔎 See on GitHub
@@ -953,7 +953,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/engine.rb, line 522
@@ -961,7 +961,7 @@ 

self.class.endpoint || routes end

- See on GitHub + 🔎 See on GitHub
@@ -988,7 +988,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/engine.rb, line 533
@@ -996,7 +996,7 @@ 

@env_config ||= {} end

- See on GitHub + 🔎 See on GitHub
@@ -1023,7 +1023,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/engine.rb, line 494
@@ -1037,7 +1037,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -1064,15 +1064,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/engine.rb, line 505
     def helpers_paths
-      paths["app/helpers"].existent
+      paths["app/helpers"].existent
     end
- See on GitHub + 🔎 See on GitHub
@@ -1099,18 +1099,18 @@

- Source code + 📝 Source code
# File railties/lib/rails/engine.rb, line 446
     def load_console(app = self)
-      require "rails/console/app"
-      require "rails/console/helpers"
+      require "rails/console/app"
+      require "rails/console/helpers"
       run_console_blocks(app)
       self
     end
- See on GitHub + 🔎 See on GitHub
@@ -1137,18 +1137,18 @@

- Source code + 📝 Source code
# File railties/lib/rails/engine.rb, line 470
     def load_generators(app = self)
-      require "rails/generators"
+      require "rails/generators"
       run_generators_blocks(app)
       Rails::Generators.configure!(app.config.generators)
       self
     end
- See on GitHub + 🔎 See on GitHub
@@ -1175,7 +1175,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/engine.rb, line 455
@@ -1184,7 +1184,7 @@ 

self end

- See on GitHub + 🔎 See on GitHub
@@ -1213,16 +1213,16 @@

- Source code + 📝 Source code
# File railties/lib/rails/engine.rb, line 554
     def load_seed
-      seed_file = paths["db/seeds.rb"].existent.first
+      seed_file = paths["db/seeds.rb"].existent.first
       run_callbacks(:load_seed) { load(seed_file) } if seed_file
     end
- See on GitHub + 🔎 See on GitHub
@@ -1249,7 +1249,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/engine.rb, line 479
@@ -1258,7 +1258,7 @@ 

self end

- See on GitHub + 🔎 See on GitHub
@@ -1285,17 +1285,17 @@

- Source code + 📝 Source code
# File railties/lib/rails/engine.rb, line 462
     def load_tasks(app = self)
-      require "rake"
+      require "rake"
       run_tasks_blocks(app)
       self
     end
- See on GitHub + 🔎 See on GitHub
@@ -1322,7 +1322,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/engine.rb, line 489
@@ -1330,7 +1330,7 @@ 

@railties ||= Railties.new end

- See on GitHub + 🔎 See on GitHub
@@ -1357,17 +1357,17 @@

- Source code + 📝 Source code
# File railties/lib/rails/engine.rb, line 539
-    def routes(&block)
+    def routes(&block)
       @routes ||= ActionDispatch::Routing::RouteSet.new_with_config(config)
-      @routes.append(&block) if block_given?
+      @routes.append(&block) if block_given?
       @routes
     end
- See on GitHub + 🔎 See on GitHub
@@ -1397,17 +1397,17 @@

- Source code + 📝 Source code
# File railties/lib/rails/engine.rb, line 681
       def load_config_initializer(initializer) # :doc:
-        ActiveSupport::Notifications.instrument("load_config_initializer.railties", initializer: initializer) do
+        ActiveSupport::Notifications.instrument("load_config_initializer.railties", initializer: initializer) do
           load(initializer)
         end
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/Rails/Engine/Configuration.html b/src/classes/Rails/Engine/Configuration.html index 979220d832..5c7872676a 100644 --- a/src/classes/Rails/Engine/Configuration.html +++ b/src/classes/Rails/Engine/Configuration.html @@ -161,7 +161,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/engine/configuration.rb, line 12
@@ -170,10 +170,10 @@ 

@root = root @generators = app_generators.dup @middleware = Rails::Configuration::MiddlewareStackProxy.new - @javascript_path = "javascript" + @javascript_path = "javascript" end

- See on GitHub + 🔎 See on GitHub
@@ -204,7 +204,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/engine/configuration.rb, line 88
@@ -212,7 +212,7 @@ 

@autoload_once_paths ||= paths.autoload_once end

- See on GitHub + 🔎 See on GitHub
@@ -239,7 +239,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/engine/configuration.rb, line 92
@@ -247,7 +247,7 @@ 

@autoload_paths ||= paths.autoload_paths end

- See on GitHub + 🔎 See on GitHub
@@ -274,7 +274,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/engine/configuration.rb, line 84
@@ -282,7 +282,7 @@ 

@eager_load_paths ||= paths.eager_load end

- See on GitHub + 🔎 See on GitHub
@@ -321,7 +321,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/engine/configuration.rb, line 32
@@ -331,7 +331,7 @@ 

@generators end

- See on GitHub + 🔎 See on GitHub
@@ -358,7 +358,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/engine/configuration.rb, line 38
@@ -366,45 +366,45 @@ 

@paths ||= begin paths = Rails::Paths::Root.new(@root) - paths.add "app", eager_load: true, - glob: "{*,*/concerns}", - exclude: ["assets", javascript_path] - paths.add "app/assets", glob: "*" - paths.add "app/controllers", eager_load: true - paths.add "app/channels", eager_load: true - paths.add "app/helpers", eager_load: true - paths.add "app/models", eager_load: true - paths.add "app/mailers", eager_load: true - paths.add "app/views" + paths.add "app", eager_load: true, + glob: "{*,*/concerns}", + exclude: ["assets", javascript_path] + paths.add "app/assets", glob: "*" + paths.add "app/controllers", eager_load: true + paths.add "app/channels", eager_load: true + paths.add "app/helpers", eager_load: true + paths.add "app/models", eager_load: true + paths.add "app/mailers", eager_load: true + paths.add "app/views" # If you add more lib subdirectories here that should not be managed # by the main autoloader, please update the config.autoload_lib call # in the template that generates config/application.rb accordingly. - paths.add "lib", load_path: true - paths.add "lib/assets", glob: "*" - paths.add "lib/tasks", glob: "**/*.rake" + paths.add "lib", load_path: true + paths.add "lib/assets", glob: "*" + paths.add "lib/tasks", glob: "**/*.rake" - paths.add "config" - paths.add "config/environments", glob: -"#{Rails.env}.rb" - paths.add "config/initializers", glob: "**/*.rb" - paths.add "config/locales", glob: "**/*.{rb,yml}" - paths.add "config/routes.rb" - paths.add "config/routes", glob: "**/*.rb" + paths.add "config" + paths.add "config/environments", glob: -"#{Rails.env}.rb" + paths.add "config/initializers", glob: "**/*.rb" + paths.add "config/locales", glob: "**/*.{rb,yml}" + paths.add "config/routes.rb" + paths.add "config/routes", glob: "**/*.rb" - paths.add "db" - paths.add "db/migrate" - paths.add "db/seeds.rb" + paths.add "db" + paths.add "db/migrate" + paths.add "db/seeds.rb" - paths.add "vendor", load_path: true - paths.add "vendor/assets", glob: "*" + paths.add "vendor", load_path: true + paths.add "vendor/assets", glob: "*" - paths.add "test/mailers/previews", autoload: true + paths.add "test/mailers/previews", autoload: true paths end end

- See on GitHub + 🔎 See on GitHub
@@ -431,7 +431,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/engine/configuration.rb, line 80
@@ -439,7 +439,7 @@ 

@root = paths.path = Pathname.new(value).expand_path end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/Rails/Engine/Railties.html b/src/classes/Rails/Engine/Railties.html index 7ec59dd3cd..9119d41071 100644 --- a/src/classes/Rails/Engine/Railties.html +++ b/src/classes/Rails/Engine/Railties.html @@ -119,16 +119,16 @@

- Source code + 📝 Source code
# File railties/lib/rails/engine/railties.rb, line 9
       def initialize
-        @_all ||= ::Rails::Railtie.subclasses.map(&:instance) +
-          ::Rails::Engine.subclasses.map(&:instance)
+        @_all ||= ::Rails::Railtie.subclasses.map(&:instance) +
+          ::Rails::Engine.subclasses.map(&:instance)
       end
- See on GitHub + 🔎 See on GitHub
@@ -159,7 +159,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/engine/railties.rb, line 18
@@ -167,7 +167,7 @@ 

_all - others end

- See on GitHub + 🔎 See on GitHub
@@ -194,15 +194,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/engine/railties.rb, line 14
-      def each(*args, &block)
-        _all.each(*args, &block)
+      def each(*args, &block)
+        _all.each(*args, &block)
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/Rails/Engine/Updater.html b/src/classes/Rails/Engine/Updater.html index fe3b8a38b6..f12c855892 100644 --- a/src/classes/Rails/Engine/Updater.html +++ b/src/classes/Rails/Engine/Updater.html @@ -87,16 +87,16 @@

- Source code + 📝 Source code
# File railties/lib/rails/engine/updater.rb, line 10
         def generator
-          @generator ||= Rails::Generators::PluginGenerator.new ["plugin"],
+          @generator ||= Rails::Generators::PluginGenerator.new ["plugin"],
             { engine: true }, { destination_root: ENGINE_ROOT }
         end
- See on GitHub + 🔎 See on GitHub
@@ -123,7 +123,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/engine/updater.rb, line 15
@@ -131,7 +131,7 @@ 

generator.public_send(action) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/Rails/Generators.html b/src/classes/Rails/Generators.html index 642dcad4a9..c2f1cb27dc 100644 --- a/src/classes/Rails/Generators.html +++ b/src/classes/Rails/Generators.html @@ -250,11 +250,6 @@

Constants

} - -   - - - DEFAULT_OPTIONS @@ -277,11 +272,6 @@

Constants

} - -   - - - RAILS_DEV_PATH @@ -325,12 +315,12 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators.rb, line 112
       def api_only!
-        hide_namespaces "assets", "helper", "css", "js"
+        hide_namespaces "assets", "helper", "css", "js"
 
         options[:rails].merge!(
           api: true,
@@ -343,7 +333,7 @@ 

options[:mailer][:template_engine] ||= :erb end

- See on GitHub + 🔎 See on GitHub
@@ -377,7 +367,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators.rb, line 104
@@ -385,7 +375,7 @@ 

@fallbacks ||= {} end

- See on GitHub + 🔎 See on GitHub
@@ -412,28 +402,28 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators.rb, line 165
-      def help(command = "generate")
-        puts "Usage:"
-        puts "  bin/rails #{command} GENERATOR [args] [options]"
+      def help(command = "generate")
+        puts "Usage:"
+        puts "  bin/rails #{command} GENERATOR [args] [options]"
         puts
-        puts "General options:"
-        puts "  -h, [--help]     # Print generator's options and usage"
-        puts "  -p, [--pretend]  # Run but do not make any changes"
-        puts "  -f, [--force]    # Overwrite files that already exist"
-        puts "  -s, [--skip]     # Skip files that already exist"
-        puts "  -q, [--quiet]    # Suppress status output"
+        puts "General options:"
+        puts "  -h, [--help]     # Print generator's options and usage"
+        puts "  -p, [--pretend]  # Run but do not make any changes"
+        puts "  -f, [--force]    # Overwrite files that already exist"
+        puts "  -s, [--skip]     # Skip files that already exist"
+        puts "  -q, [--quiet]    # Suppress status output"
         puts
-        puts "Please choose a generator below."
+        puts "Please choose a generator below."
         puts
 
         print_generators
       end
- See on GitHub + 🔎 See on GitHub
@@ -460,7 +450,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators.rb, line 130
@@ -471,29 +461,29 @@ 

template = options[:rails][:template_engine] [ - "rails", - "resource_route", - "#{orm}:migration", - "#{orm}:model", - "#{test}:controller", - "#{test}:helper", - "#{test}:integration", - "#{test}:system", - "#{test}:mailer", - "#{test}:model", - "#{test}:scaffold", - "#{test}:view", - "#{test}:job", - "#{template}:controller", - "#{template}:scaffold", - "#{template}:mailer", - "action_text:install", - "action_mailbox:install" + "rails", + "resource_route", + "#{orm}:migration", + "#{orm}:model", + "#{test}:controller", + "#{test}:helper", + "#{test}:integration", + "#{test}:system", + "#{test}:mailer", + "#{test}:model", + "#{test}:scaffold", + "#{test}:view", + "#{test}:job", + "#{template}:controller", + "#{template}:scaffold", + "#{template}:mailer", + "action_text:install", + "action_mailbox:install" ] end end

- See on GitHub + 🔎 See on GitHub
@@ -549,7 +539,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators.rb, line 159
@@ -557,7 +547,7 @@ 

hidden_namespaces.concat(namespaces) end

- See on GitHub + 🔎 See on GitHub
@@ -584,28 +574,28 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators.rb, line 257
       def invoke(namespace, args = ARGV, config = {})
-        names = namespace.to_s.split(":")
-        if klass = find_by_namespace(names.pop, names.any? && names.join(":"))
-          args << "--help" if args.empty? && klass.arguments.any?(&:required?)
+        names = namespace.to_s.split(":")
+        if klass = find_by_namespace(names.pop, names.any? && names.join(":"))
+          args << "--help" if args.empty? && klass.arguments.any?(&:required?)
           klass.start(args, config)
           run_after_generate_callback if config[:behavior] == :invoke
         else
-          options = sorted_groups.flat_map(&:last)
-          error = Command::CorrectableNameError.new("Could not find generator '#{namespace}'.", namespace, options)
+          options = sorted_groups.flat_map(&:last)
+          error = Command::CorrectableNameError.new("Could not find generator '#{namespace}'.", namespace, options)
 
-          puts <<~MSG
+          puts <<~MSG
             #{error.detailed_message}
             Run `bin/rails generate --help` for more options.
           MSG
         end
       end
- See on GitHub + 🔎 See on GitHub
@@ -632,7 +622,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators.rb, line 187
@@ -640,7 +630,7 @@ 

sorted_groups.each { |b, n| print_list(b, n) } end

- See on GitHub + 🔎 See on GitHub
@@ -667,16 +657,16 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators.rb, line 182
       def public_namespaces
         lookup!
-        subclasses.map(&:namespace)
+        subclasses.map(&:namespace)
       end
- See on GitHub + 🔎 See on GitHub
@@ -703,7 +693,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators.rb, line 191
@@ -713,27 +703,27 @@ 

groups = Hash.new { |h, k| h[k] = [] } namespaces.each do |namespace| - base = namespace.split(":").first - groups[base] << namespace + base = namespace.split(":").first + groups[base] << namespace end - rails = groups.delete("rails") - rails.map! { |n| n.delete_prefix("rails:") } - rails.delete("app") - rails.delete("plugin") - rails.delete("encrypted_secrets") - rails.delete("encrypted_file") - rails.delete("encryption_key_file") - rails.delete("master_key") - rails.delete("credentials") - rails.delete("db:system:change") + rails = groups.delete("rails") + rails.map! { |n| n.delete_prefix("rails:") } + rails.delete("app") + rails.delete("plugin") + rails.delete("encrypted_secrets") + rails.delete("encrypted_file") + rails.delete("encryption_key_file") + rails.delete("master_key") + rails.delete("credentials") + rails.delete("db:system:change") hidden_namespaces.each { |n| groups.delete(n.to_s) } - [[ "rails", rails ]] + groups.sort.to_a + [[ "rails", rails ]] + groups.sort.to_a end

- See on GitHub + 🔎 See on GitHub
@@ -763,15 +753,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators.rb, line 301
         def command_type # :doc:
-          @command_type ||= "generator"
+          @command_type ||= "generator"
         end
- See on GitHub + 🔎 See on GitHub
@@ -798,15 +788,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators.rb, line 309
         def file_lookup_paths # :doc:
-          @file_lookup_paths ||= [ "{#{lookup_paths.join(',')}}", "**", "*_generator.rb" ]
+          @file_lookup_paths ||= [ "{#{lookup_paths.join(',')}}", "**", "*_generator.rb" ]
         end
- See on GitHub + 🔎 See on GitHub
@@ -833,7 +823,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators.rb, line 305
@@ -841,7 +831,7 @@ 

@lookup_paths ||= %w( rails/generators generators ) end

- See on GitHub + 🔎 See on GitHub
@@ -868,7 +858,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators.rb, line 280
@@ -877,7 +867,7 @@ 

super end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/Rails/Generators/Actions.html b/src/classes/Rails/Generators/Actions.html index ce8c2ff86e..1b9f06e901 100644 --- a/src/classes/Rails/Generators/Actions.html +++ b/src/classes/Rails/Generators/Actions.html @@ -175,25 +175,25 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/actions.rb, line 151
-      def add_source(source, options = {}, &block)
+      def add_source(source, options = {}, &block)
         log :source, source
 
         in_root do
           if block
-            append_file_with_newline "Gemfile", "\nsource #{quote(source)} do", force: true
-            with_indentation(&block)
-            append_file_with_newline "Gemfile", "end", force: true
+            append_file_with_newline "Gemfile", "\nsource #{quote(source)} do", force: true
+            with_indentation(&block)
+            append_file_with_newline "Gemfile", "end", force: true
           else
-            prepend_file "Gemfile", "source #{quote(source)}\n", verbose: false
+            prepend_file "Gemfile", "source #{quote(source)}\n", verbose: false
           end
         end
       end
- See on GitHub + 🔎 See on GitHub
@@ -290,27 +290,27 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/actions.rb, line 206
       def environment(data = nil, options = {})
-        sentinel = "class Application < Rails::Application\n"
-        env_file_sentinel = "Rails.application.configure do\n"
+        sentinel = "class Application < Rails::Application\n"
+        env_file_sentinel = "Rails.application.configure do\n"
         data ||= yield if block_given?
 
         in_root do
           if options[:env].nil?
-            inject_into_file "config/application.rb", optimize_indentation(data, 4), after: sentinel, verbose: false
+            inject_into_file "config/application.rb", optimize_indentation(data, 4), after: sentinel, verbose: false
           else
             Array(options[:env]).each do |env|
-              inject_into_file "config/environments/#{env}.rb", optimize_indentation(data, 2), after: env_file_sentinel, verbose: false
+              inject_into_file "config/environments/#{env}.rb", optimize_indentation(data, 2), after: env_file_sentinel, verbose: false
             end
           end
         end
       end
- See on GitHub + 🔎 See on GitHub
@@ -391,7 +391,7 @@

Options

- Source code + 📝 Source code
# File railties/lib/rails/generators/actions.rb, line 67
@@ -409,32 +409,32 @@ 

Options

if versions = versions.any? ? versions : options.delete(:version) _versions = Array(versions) _versions.each do |version| - parts << quote(version) + parts << quote(version) end - message << " (#{_versions.join(", ")})" + message << " (#{_versions.join(", ")})" end message = options[:git] if options[:git] log :gemfile, message - parts << quote(options) unless options.empty? + parts << quote(options) unless options.empty? in_root do str = [] if comment comment.each_line do |comment_line| - str << indentation - str << "# #{comment_line}" + str << indentation + str << "# #{comment_line}" end - str << "\n" + str << "\n" end - str << indentation - str << "gem #{parts.join(", ")}" - append_file_with_newline "Gemfile", str.join, verbose: false + str << indentation + str << "gem #{parts.join(", ")}" + append_file_with_newline "Gemfile", str.join, verbose: false end end
- See on GitHub + 🔎 See on GitHub
@@ -466,25 +466,25 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/actions.rb, line 111
-      def gem_group(*names, &block)
+      def gem_group(*names, &block)
         options = names.extract_options!
-        str = names.map(&:inspect)
-        str << quote(options) unless options.empty?
-        str = str.join(", ")
-        log :gemfile, "group #{str}"
+        str = names.map(&:inspect)
+        str << quote(options) unless options.empty?
+        str = str.join(", ")
+        log :gemfile, "group #{str}"
 
         in_root do
-          append_file_with_newline "Gemfile", "\ngroup #{str} do", force: true
-          with_indentation(&block)
-          append_file_with_newline "Gemfile", "end", force: true
+          append_file_with_newline "Gemfile", "\ngroup #{str} do", force: true
+          with_indentation(&block)
+          append_file_with_newline "Gemfile", "end", force: true
         end
       end
- See on GitHub + 🔎 See on GitHub
@@ -517,7 +517,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/actions.rb, line 332
@@ -527,10 +527,10 @@ 

options = args.extract_options! options[:abort_on_failure] = !options[:inline] - rails_command "generate #{what} #{args.join(" ")}", options + rails_command "generate #{what} #{args.join(" ")}", options end

- See on GitHub + 🔎 See on GitHub
@@ -570,21 +570,21 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/actions.rb, line 237
       def git(commands = {})
         if commands.is_a?(Symbol)
-          run "git #{commands}"
+          run "git #{commands}"
         else
           commands.each do |cmd, options|
-            run "git #{cmd} #{options}"
+            run "git #{cmd} #{options}"
           end
         end
       end
- See on GitHub + 🔎 See on GitHub
@@ -611,28 +611,28 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/actions.rb, line 125
-      def github(repo, options = {}, &block)
+      def github(repo, options = {}, &block)
         str = [quote(repo)]
-        str << quote(options) unless options.empty?
-        str = str.join(", ")
-        log :github, "github #{str}"
+        str << quote(options) unless options.empty?
+        str = str.join(", ")
+        log :github, "github #{str}"
 
         in_root do
           if @indentation.zero?
-            append_file_with_newline "Gemfile", "\ngithub #{str} do", force: true
+            append_file_with_newline "Gemfile", "\ngithub #{str} do", force: true
           else
-            append_file_with_newline "Gemfile", "#{indentation}github #{str} do", force: true
+            append_file_with_newline "Gemfile", "#{indentation}github #{str} do", force: true
           end
-          with_indentation(&block)
-          append_file_with_newline "Gemfile", "#{indentation}end", force: true
+          with_indentation(&block)
+          append_file_with_newline "Gemfile", "#{indentation}end", force: true
         end
       end
- See on GitHub + 🔎 See on GitHub
@@ -668,17 +668,17 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/actions.rb, line 319
       def initializer(filename, data = nil)
         log :initializer, filename
         data ||= yield if block_given?
-        create_file("config/initializers/#{filename}", optimize_indentation(data), verbose: false)
+        create_file("config/initializers/#{filename}", optimize_indentation(data), verbose: false)
       end
- See on GitHub + 🔎 See on GitHub
@@ -714,17 +714,17 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/actions.rb, line 275
       def lib(filename, data = nil)
         log :lib, filename
         data ||= yield if block_given?
-        create_file("lib/#{filename}", optimize_indentation(data), verbose: false)
+        create_file("lib/#{filename}", optimize_indentation(data), verbose: false)
       end
- See on GitHub + 🔎 See on GitHub
@@ -773,7 +773,7 @@

Options

- Source code + 📝 Source code
# File railties/lib/rails/generators/actions.rb, line 391
@@ -791,7 +791,7 @@ 

Options

end end
- See on GitHub + 🔎 See on GitHub
@@ -840,7 +840,7 @@

Options

- Source code + 📝 Source code
# File railties/lib/rails/generators/actions.rb, line 364
@@ -848,7 +848,7 @@ 

Options

execute_command :rake, command, options end
- See on GitHub + 🔎 See on GitHub
@@ -894,17 +894,17 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/actions.rb, line 302
       def rakefile(filename, data = nil)
         log :rakefile, filename
         data ||= yield if block_given?
-        create_file("lib/tasks/#{filename}", optimize_indentation(data), verbose: false)
+        create_file("lib/tasks/#{filename}", optimize_indentation(data), verbose: false)
       end
- See on GitHub + 🔎 See on GitHub
@@ -934,7 +934,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/actions.rb, line 442
@@ -942,7 +942,7 @@ 

log File.read(find_in_source_paths(path)) end

- See on GitHub + 🔎 See on GitHub
@@ -973,7 +973,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/actions.rb, line 409
@@ -981,33 +981,33 @@ 

namespace = Array(namespace) namespace_pattern = route_namespace_pattern(namespace) routing_code = namespace.reverse.reduce(routing_code) do |code, name| - "namespace :#{name} do\n#{rebase_indentation(code, 2)}end" + "namespace :#{name} do\n#{rebase_indentation(code, 2)}end" end log :route, routing_code in_root do - if namespace_match = match_file("config/routes.rb", namespace_pattern) - base_indent, *, existing_block_indent = namespace_match.captures.compact.map(&:length) + if namespace_match = match_file("config/routes.rb", namespace_pattern) + base_indent, *, existing_block_indent = namespace_match.captures.compact.map(&:length) existing_line_pattern = /^[ ]{,#{existing_block_indent}}\S.+\n?/ - routing_code = rebase_indentation(routing_code, base_indent + 2).gsub(existing_line_pattern, "") + routing_code = rebase_indentation(routing_code, base_indent + 2).gsub(existing_line_pattern, "") namespace_pattern = /#{Regexp.escape namespace_match.to_s}/ end - inject_into_file "config/routes.rb", routing_code, after: namespace_pattern, verbose: false, force: false + inject_into_file "config/routes.rb", routing_code, after: namespace_pattern, verbose: false, force: false - if behavior == :revoke && namespace.any? && namespace_match + if behavior == :revoke && namespace.any? && namespace_match empty_block_pattern = /(#{namespace_pattern})((?:\s*end\n){1,#{namespace.size}})/ - gsub_file "config/routes.rb", empty_block_pattern, verbose: false, force: true do |matched| + gsub_file "config/routes.rb", empty_block_pattern, verbose: false, force: true do |matched| beginning, ending = empty_block_pattern.match(matched).captures - ending.sub!(/\A\s*end\n/, "") while !ending.empty? && beginning.sub!(/^[ ]*namespace .+ do\n\s*\z/, "") + ending.sub!(/\A\s*end\n/, "") while !ending.empty? && beginning.sub!(/^[ ]*namespace .+ do\n\s*\z/, "") beginning + ending end end end end

- See on GitHub + 🔎 See on GitHub
@@ -1043,17 +1043,17 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/actions.rb, line 258
       def vendor(filename, data = nil)
         log :vendor, filename
         data ||= yield if block_given?
-        create_file("vendor/#{filename}", optimize_indentation(data), verbose: false)
+        create_file("vendor/#{filename}", optimize_indentation(data), verbose: false)
       end
- See on GitHub + 🔎 See on GitHub
@@ -1083,24 +1083,24 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/actions.rb, line 461
         def execute_command(executor, command, options = {}) # :doc:
           log executor, command
-          sudo = options[:sudo] && !Gem.win_platform? ? "sudo " : ""
+          sudo = options[:sudo] && !Gem.win_platform? ? "sudo " : ""
           config = {
-            env: { "RAILS_ENV" => (options[:env] || ENV["RAILS_ENV"] || "development") },
+            env: { "RAILS_ENV" => (options[:env] || ENV["RAILS_ENV"] || "development") },
             verbose: false,
             capture: options[:capture],
             abort_on_failure: options[:abort_on_failure],
           }
 
-          in_root { run("#{sudo}#{Shellwords.escape Gem.ruby} bin/#{executor} #{command}", config) }
+          in_root { run("#{sudo}#{Shellwords.escape Gem.ruby} bin/#{executor} #{command}", config) }
         end
- See on GitHub + 🔎 See on GitHub
@@ -1127,15 +1127,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/actions.rb, line 494
         def indentation # :doc:
-          "  " * @indentation
+          "  " * @indentation
         end
- See on GitHub + 🔎 See on GitHub
@@ -1162,7 +1162,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/actions.rb, line 450
@@ -1170,12 +1170,12 @@ 

if args.size == 1 say args.first.to_s unless options.quiet? else - args << (behavior == :invoke ? :green : :red) + args << (behavior == :invoke ? :green : :red) say_status(*args) end end

- See on GitHub + 🔎 See on GitHub
@@ -1206,16 +1206,16 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/actions.rb, line 487
         def optimize_indentation(value, amount = 0) # :doc:
-          return "#{value}\n" unless value.is_a?(String)
-          "#{value.strip_heredoc.indent(amount).chomp}\n"
+          return "#{value}\n" unless value.is_a?(String)
+          "#{value.strip_heredoc.indent(amount).chomp}\n"
         end
- See on GitHub + 🔎 See on GitHub
@@ -1242,22 +1242,22 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/actions.rb, line 475
         def quote(value) # :doc:
           if value.respond_to? :each_pair
             return value.map do |k, v|
-              "#{k}: #{quote(v)}"
-            end.join(", ")
+              "#{k}: #{quote(v)}"
+            end.join(", ")
           end
           return value.inspect unless value.is_a? String
 
-          "\"#{value.tr("'", '"')}\""
+          "\"#{value.tr("'", '"')}\""
         end
- See on GitHub + 🔎 See on GitHub
@@ -1284,18 +1284,18 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/actions.rb, line 499
-        def with_indentation(&block) # :doc:
+        def with_indentation(&block) # :doc:
           @indentation += 1
-          instance_eval(&block)
+          instance_eval(&block)
         ensure
           @indentation -= 1
         end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/Rails/Generators/ActiveModel.html b/src/classes/Rails/Generators/ActiveModel.html index ae0935d749..7b1d4642a7 100644 --- a/src/classes/Rails/Generators/ActiveModel.html +++ b/src/classes/Rails/Generators/ActiveModel.html @@ -150,15 +150,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/active_model.rb, line 36
       def self.all(klass)
-        "#{klass}.all"
+        "#{klass}.all"
       end
- See on GitHub + 🔎 See on GitHub
@@ -185,19 +185,19 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/active_model.rb, line 50
       def self.build(klass, params = nil)
         if params
-          "#{klass}.new(#{params})"
+          "#{klass}.new(#{params})"
         else
-          "#{klass}.new"
+          "#{klass}.new"
         end
       end
- See on GitHub + 🔎 See on GitHub
@@ -224,15 +224,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/active_model.rb, line 44
       def self.find(klass, params = nil)
-        "#{klass}.find(#{params})"
+        "#{klass}.find(#{params})"
       end
- See on GitHub + 🔎 See on GitHub
@@ -259,7 +259,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/active_model.rb, line 31
@@ -267,7 +267,7 @@ 

@name = name end

- See on GitHub + 🔎 See on GitHub
@@ -298,15 +298,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/active_model.rb, line 75
       def destroy
-        "#{name}.destroy!"
+        "#{name}.destroy!"
       end
- See on GitHub + 🔎 See on GitHub
@@ -333,15 +333,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/active_model.rb, line 70
       def errors
-        "#{name}.errors"
+        "#{name}.errors"
       end
- See on GitHub + 🔎 See on GitHub
@@ -368,15 +368,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/active_model.rb, line 59
       def save
-        "#{name}.save"
+        "#{name}.save"
       end
- See on GitHub + 🔎 See on GitHub
@@ -403,15 +403,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/active_model.rb, line 64
       def update(params = nil)
-        "#{name}.update(#{params})"
+        "#{name}.update(#{params})"
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/Rails/Generators/AppBase/GemfileEntry.html b/src/classes/Rails/Generators/AppBase/GemfileEntry.html index 0f422ca0be..d41afa768c 100644 --- a/src/classes/Rails/Generators/AppBase/GemfileEntry.html +++ b/src/classes/Rails/Generators/AppBase/GemfileEntry.html @@ -103,7 +103,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/app_base.rb, line 394
@@ -111,7 +111,7 @@ 

new(name, nil, comment) end

- See on GitHub + 🔎 See on GitHub
@@ -138,7 +138,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/app_base.rb, line 382
@@ -150,7 +150,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -177,7 +177,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/app_base.rb, line 378
@@ -185,7 +185,7 @@ 

super end

- See on GitHub + 🔎 See on GitHub
@@ -212,7 +212,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/app_base.rb, line 398
@@ -220,7 +220,7 @@ 

new(name, nil, comment, path: path) end

- See on GitHub + 🔎 See on GitHub
@@ -247,7 +247,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/app_base.rb, line 390
@@ -255,7 +255,7 @@ 

new(name, version, comment) end

- See on GitHub + 🔎 See on GitHub
@@ -286,21 +286,21 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/app_base.rb, line 402
         def to_s
           [
-            (comment.gsub(/^/, "# ").chomp + "\n" if comment),
-            ("# " if commented_out),
-            "gem \"#{name}\"",
-            *Array(version).map { |constraint| ", \"#{constraint}\"" },
-            *options.map { |key, value| ", #{key}: #{value.inspect}" },
+            (comment.gsub(/^/, "# ").chomp + "\n" if comment),
+            ("# " if commented_out),
+            "gem \"#{name}\"",
+            *Array(version).map { |constraint| ", \"#{constraint}\"" },
+            *options.map { |key, value| ", #{key}: #{value.inspect}" },
           ].compact.join
         end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/Rails/Generators/AppGenerator.html b/src/classes/Rails/Generators/AppGenerator.html index 22e140128d..cc14400789 100644 --- a/src/classes/Rails/Generators/AppGenerator.html +++ b/src/classes/Rails/Generators/AppGenerator.html @@ -91,15 +91,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/rails/app/app_generator.rb, line 577
-      def after_bundle(&block) # :doc:
-        @after_bundle_callbacks << block
+      def after_bundle(&block) # :doc:
+        @after_bundle_callbacks << block
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/Rails/Generators/Base.html b/src/classes/Rails/Generators/Base.html index c38073327f..80f322b15e 100644 --- a/src/classes/Rails/Generators/Base.html +++ b/src/classes/Rails/Generators/Base.html @@ -195,7 +195,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/base.rb, line 236
@@ -203,7 +203,7 @@ 

__dir__ end

- See on GitHub + 🔎 See on GitHub
@@ -230,18 +230,18 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/base.rb, line 227
       def self.default_source_root
-        return unless base_name && generator_name
+        return unless base_name && generator_name
         return unless default_generator_root
-        path = File.join(default_generator_root, "templates")
+        path = File.join(default_generator_root, "templates")
         path if File.exist?(path)
       end
- See on GitHub + 🔎 See on GitHub
@@ -268,7 +268,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/base.rb, line 41
@@ -278,11 +278,11 @@ 

@desc ||= if usage_path ERB.new(File.read(usage_path)).result(binding) else - "Description:\n Create #{base_name.humanize.downcase} files for #{generator_name} generator." + "Description:\n Create #{base_name.humanize.downcase} files for #{generator_name} generator." end end

- See on GitHub + 🔎 See on GitHub
@@ -309,7 +309,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/base.rb, line 61
@@ -317,7 +317,7 @@ 

Rails::Generators.hide_namespace(namespace) end

- See on GitHub + 🔎 See on GitHub
@@ -447,11 +447,11 @@

Custom invocations

- Source code + 📝 Source code
# File railties/lib/rails/generators/base.rb, line 174
-      def self.hook_for(*names, &block)
+      def self.hook_for(*names, &block)
         options = names.extract_options!
         in_base = options.delete(:in) || base_name
         as_hook = options.delete(:as) || generator_name
@@ -461,9 +461,9 @@ 

Custom invocations

defaults = if options[:type] == :boolean {} elsif [true, false].include?(default_value_for_option(name, options)) - { banner: "" } + { banner: "" } else - { desc: "#{name.to_s.humanize} to be invoked", banner: "NAME" } + { desc: "#{name.to_s.humanize} to be invoked", banner: "NAME" } end class_option(name, defaults.merge!(options)) @@ -471,17 +471,17 @@

Custom invocations

klass = self - singleton_class.define_method("#{name}_generator") do + singleton_class.define_method("#{name}_generator") do value = class_options[name].default Rails::Generators.find_by_namespace(klass.generator_name, value) end hooks[name] = [ in_base, as_hook ] - invoke_from_option(name, options, &block) + invoke_from_option(name, options, &block) end end
- See on GitHub + 🔎 See on GitHub
@@ -508,16 +508,16 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/base.rb, line 54
       def self.namespace(name = nil)
         return super if name
-        @namespace ||= super.delete_suffix("_generator").sub(/:generators:/, ":")
+        @namespace ||= super.delete_suffix("_generator").sub(/:generators:/, ":")
       end
- See on GitHub + 🔎 See on GitHub
@@ -547,7 +547,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/base.rb, line 207
@@ -555,12 +555,12 @@ 

remove_invocation(*names) names.each do |name| - singleton_class.undef_method("#{name}_generator") + singleton_class.undef_method("#{name}_generator") hooks.delete(name) end end

- See on GitHub + 🔎 See on GitHub
@@ -587,7 +587,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/base.rb, line 34
@@ -596,7 +596,7 @@ 

@_source_root ||= default_source_root end

- See on GitHub + 🔎 See on GitHub
@@ -626,29 +626,29 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/base.rb, line 396
         def self.add_shebang_option! # :doc:
-          class_option :ruby, type: :string, aliases: "-r", default: Thor::Util.ruby_command,
-                              desc: "Path to the Ruby binary of your choice", banner: "PATH"
+          class_option :ruby, type: :string, aliases: "-r", default: Thor::Util.ruby_command,
+                              desc: "Path to the Ruby binary of your choice", banner: "PATH"
 
           no_tasks {
             define_method :shebang do
               @shebang ||= begin
                 command = if options[:ruby] == Thor::Util.ruby_command
-                  "/usr/bin/env #{File.basename(Thor::Util.ruby_command)}"
+                  "/usr/bin/env #{File.basename(Thor::Util.ruby_command)}"
                 else
                   options[:ruby]
                 end
-                "#!#{command}"
+                "#!#{command}"
               end
             end
           }
         end
- See on GitHub + 🔎 See on GitHub
@@ -675,15 +675,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/base.rb, line 329
         def self.banner # :doc:
-          "bin/rails generate #{namespace.delete_prefix("rails:")} #{arguments.map(&:usage).join(' ')} [options]".gsub(/\s+/, " ")
+          "bin/rails generate #{namespace.delete_prefix("rails:")} #{arguments.map(&:usage).join(' ')} [options]".gsub(/\s+/, " ")
         end
- See on GitHub + 🔎 See on GitHub
@@ -710,17 +710,17 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/base.rb, line 334
         def self.base_name # :doc:
-          @base_name ||= if base = name.to_s.split("::").first
+          @base_name ||= if base = name.to_s.split("::").first
             base.underscore
           end
         end
- See on GitHub + 🔎 See on GitHub
@@ -747,7 +747,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/base.rb, line 357
@@ -755,7 +755,7 @@ 

default_for_option(Rails::Generators.aliases, name, options, options[:aliases]) end

- See on GitHub + 🔎 See on GitHub
@@ -782,14 +782,14 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/base.rb, line 362
         def self.default_for_option(config, name, options, default) # :doc:
-          if generator_name && (c = config[generator_name.to_sym]) && c.key?(name)
+          if generator_name && (c = config[generator_name.to_sym]) && c.key?(name)
             c[name]
-          elsif base_name && (c = config[base_name.to_sym]) && c.key?(name)
+          elsif base_name && (c = config[base_name.to_sym]) && c.key?(name)
             c[name]
           elsif config[:rails].key?(name)
             config[:rails][name]
@@ -798,7 +798,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -825,7 +825,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/base.rb, line 422
@@ -834,7 +834,7 @@ 

path if File.exist?(path) end

- See on GitHub + 🔎 See on GitHub
@@ -861,7 +861,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/base.rb, line 351
@@ -869,7 +869,7 @@ 

default_for_option(Rails::Generators.options, name, options, options[:default]) end

- See on GitHub + 🔎 See on GitHub
@@ -896,18 +896,18 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/base.rb, line 342
         def self.generator_name # :doc:
-          @generator_name ||= if generator = name.to_s.split("::").last
-            generator.delete_suffix!("Generator")
+          @generator_name ||= if generator = name.to_s.split("::").last
+            generator.delete_suffix!("Generator")
             generator.underscore
           end
         end
- See on GitHub + 🔎 See on GitHub
@@ -934,19 +934,19 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/base.rb, line 414
         def self.usage_path # :doc:
           paths = [
-            source_root && File.expand_path("../USAGE", source_root),
-            default_generator_root && File.join(default_generator_root, "USAGE")
+            source_root && File.expand_path("../USAGE", source_root),
+            default_generator_root && File.join(default_generator_root, "USAGE")
           ]
           paths.compact.detect { |path| File.exist? path }
         end
- See on GitHub + 🔎 See on GitHub
@@ -977,7 +977,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/base.rb, line 287
@@ -988,7 +988,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -1015,16 +1015,16 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/base.rb, line 302
         def indent(content, multiplier = 2) # :doc:
-          spaces = " " * multiplier
-          content.each_line.map { |line| line.blank? ? line : "#{spaces}#{line}" }.join
+          spaces = " " * multiplier
+          content.each_line.map { |line| line.blank? ? line : "#{spaces}#{line}" }.join
         end
- See on GitHub + 🔎 See on GitHub
@@ -1051,17 +1051,17 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/base.rb, line 296
-        def module_namespacing(&block) # :doc:
-          content = capture(&block)
+        def module_namespacing(&block) # :doc:
+          content = capture(&block)
           content = wrap_with_namespace(content) if namespaced?
           concat(content)
         end
- See on GitHub + 🔎 See on GitHub
@@ -1088,7 +1088,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/base.rb, line 312
@@ -1096,7 +1096,7 @@ 

Rails::Generators.namespace end

- See on GitHub + 🔎 See on GitHub
@@ -1123,15 +1123,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/base.rb, line 316
         def namespaced? # :doc:
-          !options[:skip_namespace] && namespace
+          !options[:skip_namespace] && namespace
         end
- See on GitHub + 🔎 See on GitHub
@@ -1158,15 +1158,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/base.rb, line 324
         def namespaced_path # :doc:
-          @namespaced_path ||= namespace_dirs.join("/")
+          @namespaced_path ||= namespace_dirs.join("/")
         end
- See on GitHub + 🔎 See on GitHub
@@ -1193,16 +1193,16 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/base.rb, line 307
         def wrap_with_namespace(content) # :doc:
           content = indent(content).chomp
-          "module #{namespace.name}\n#{content}\nend\n"
+          "module #{namespace.name}\n#{content}\nend\n"
         end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/Rails/Generators/BenchmarkGenerator.html b/src/classes/Rails/Generators/BenchmarkGenerator.html index 80e8d38221..1d9427fde0 100644 --- a/src/classes/Rails/Generators/BenchmarkGenerator.html +++ b/src/classes/Rails/Generators/BenchmarkGenerator.html @@ -65,11 +65,6 @@

Constants

"benchmark-ips" - -   - - - IPS_GEM_USED_REGEXP @@ -77,11 +72,6 @@

Constants

/gem.*\b#{IPS_GEM_NAME}\b.*/ - -   - - - @@ -114,16 +104,16 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/rails/benchmark/benchmark_generator.rb, line 13
       def generate_layout
         add_ips_to_gemfile unless ips_installed?
-        template("benchmark.rb.tt", "script/benchmarks/#{file_name}.rb")
+        template("benchmark.rb.tt", "script/benchmarks/#{file_name}.rb")
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/Rails/Generators/Migration.html b/src/classes/Rails/Generators/Migration.html index 9a0a983415..ef2bf95e48 100644 --- a/src/classes/Rails/Generators/Migration.html +++ b/src/classes/Rails/Generators/Migration.html @@ -122,15 +122,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/migration.rb, line 35
-      def create_migration(destination, data, config = {}, &block)
+      def create_migration(destination, data, config = {}, &block)
         action Rails::Generators::Actions::CreateMigration.new(self, destination, block || data.to_s, config)
       end
- See on GitHub + 🔎 See on GitHub
@@ -162,7 +162,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/migration.rb, line 56
@@ -172,15 +172,15 @@ 

set_migration_assigns!(destination) dir, base = File.split(destination) - numbered_destination = File.join(dir, ["%migration_number%", base].join("_")) + numbered_destination = File.join(dir, ["%migration_number%", base].join("_")) file = create_migration numbered_destination, nil, config do - ERB.new(::File.binread(source), trim_mode: "-", eoutvar: "@output_buffer").result(binding) + ERB.new(::File.binread(source), trim_mode: "-", eoutvar: "@output_buffer").result(binding) end Rails::Generators.add_generated_file(file) end

- See on GitHub + 🔎 See on GitHub
@@ -207,7 +207,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/migration.rb, line 39
@@ -216,11 +216,11 @@ 

migration_dir = File.dirname(destination) @migration_number = self.class.next_migration_number(migration_dir) - @migration_file_name = File.basename(destination, ".rb") + @migration_file_name = File.basename(destination, ".rb") @migration_class_name = @migration_file_name.camelize end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/Rails/Generators/NamedBase.html b/src/classes/Rails/Generators/NamedBase.html index ec6bd7146b..158833b119 100644 --- a/src/classes/Rails/Generators/NamedBase.html +++ b/src/classes/Rails/Generators/NamedBase.html @@ -222,7 +222,7 @@

Examples

- Source code + 📝 Source code
# File railties/lib/rails/generators/named_base.rb, line 214
@@ -234,11 +234,11 @@ 

Examples

class_name end - class_collisions "#{options[:prefix]}#{name}#{options[:suffix]}" + class_collisions "#{options[:prefix]}#{name}#{options[:suffix]}" end end
- See on GitHub + 🔎 See on GitHub
@@ -269,15 +269,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/named_base.rb, line 29
         def js_template(source, destination)
-          template(source + ".js", destination + ".js")
+          template(source + ".js", destination + ".js")
         end
- See on GitHub + 🔎 See on GitHub
@@ -304,17 +304,17 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/named_base.rb, line 23
-        def template(source, *args, &block)
+        def template(source, *args, &block)
           inside_template do
             Rails::Generators.add_generated_file(super)
           end
         end
- See on GitHub + 🔎 See on GitHub
@@ -344,19 +344,19 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/named_base.rb, line 138
         def application_name # :doc:
-          if defined?(Rails) && Rails.application
-            Rails.application.class.name.split("::").first.underscore
+          if defined?(Rails) && Rails.application
+            Rails.application.class.name.split("::").first.underscore
           else
-            "application"
+            "application"
           end
         end
- See on GitHub + 🔎 See on GitHub
@@ -383,19 +383,19 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/named_base.rb, line 188
         def attributes_names # :doc:
           @attributes_names ||= attributes.each_with_object([]) do |a, names|
-            names << a.column_name
-            names << "password_confirmation" if a.password_digest?
-            names << "#{a.name}_type" if a.polymorphic?
+            names << a.column_name
+            names << "password_confirmation" if a.password_digest?
+            names << "#{a.name}_type" if a.polymorphic?
           end
         end
- See on GitHub + 🔎 See on GitHub
@@ -422,15 +422,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/named_base.rb, line 70
         def class_name # :doc:
-          (class_path + [file_name]).map!(&:camelize).join("::")
+          (class_path + [file_name]).map!(&:camelize).join("::")
         end
- See on GitHub + 🔎 See on GitHub
@@ -457,7 +457,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/named_base.rb, line 58
@@ -465,7 +465,7 @@ 

inside_template? || !namespaced? ? regular_class_path : namespaced_class_path end

- See on GitHub + 🔎 See on GitHub
@@ -492,15 +492,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/named_base.rb, line 105
         def edit_helper(...) # :doc:
-          "edit_#{show_helper(...)}"
+          "edit_#{show_helper(...)}"
         end
- See on GitHub + 🔎 See on GitHub
@@ -527,15 +527,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/named_base.rb, line 54
         def file_path # :doc:
-          @file_path ||= (class_path + [file_name]).join("/")
+          @file_path ||= (class_path + [file_name]).join("/")
         end
- See on GitHub + 🔎 See on GitHub
@@ -562,7 +562,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/named_base.rb, line 125
@@ -570,7 +570,7 @@ 

@fixture_file_name ||= (pluralize_table_names? ? plural_file_name : file_name) end

- See on GitHub + 🔎 See on GitHub
@@ -597,7 +597,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/named_base.rb, line 74
@@ -605,7 +605,7 @@ 

@human_name ||= singular_name.humanize end

- See on GitHub + 🔎 See on GitHub
@@ -632,15 +632,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/named_base.rb, line 82
         def i18n_scope # :doc:
-          @i18n_scope ||= file_path.tr("/", ".")
+          @i18n_scope ||= file_path.tr("/", ".")
         end
- See on GitHub + 🔎 See on GitHub
@@ -667,15 +667,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/named_base.rb, line 97
         def index_helper(type: nil) # :doc:
-          [plural_route_name, ("index" if uncountable?), type].compact.join("_")
+          [plural_route_name, ("index" if uncountable?), type].compact.join("_")
         end
- See on GitHub + 🔎 See on GitHub
@@ -702,7 +702,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/named_base.rb, line 43
@@ -713,7 +713,7 @@ 

@inside_template = false end

- See on GitHub + 🔎 See on GitHub
@@ -740,7 +740,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/named_base.rb, line 50
@@ -748,7 +748,7 @@ 

@inside_template end

- See on GitHub + 🔎 See on GitHub
@@ -775,20 +775,20 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/named_base.rb, line 150
-        def model_resource_name(base_name = singular_table_name, prefix: "") # :doc:
-          resource_name = "#{prefix}#{base_name}"
+        def model_resource_name(base_name = singular_table_name, prefix: "") # :doc:
+          resource_name = "#{prefix}#{base_name}"
           if options[:model_name]
-            "[#{controller_class_path.map { |name| ":" + name }.join(", ")}, #{resource_name}]"
+            "[#{controller_class_path.map { |name| ":" + name }.join(", ")}, #{resource_name}]"
           else
             resource_name
           end
         end
- See on GitHub + 🔎 See on GitHub
@@ -815,15 +815,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/named_base.rb, line 200
         def mountable_engine? # :doc:
-          defined?(ENGINE_ROOT) && namespaced?
+          defined?(ENGINE_ROOT) && namespaced?
         end
- See on GitHub + 🔎 See on GitHub
@@ -850,7 +850,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/named_base.rb, line 66
@@ -858,7 +858,7 @@ 

@namespaced_class_path ||= namespace_dirs + @class_path end

- See on GitHub + 🔎 See on GitHub
@@ -885,15 +885,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/named_base.rb, line 109
         def new_helper(type: :url) # :doc:
-          "new_#{singular_route_name}_#{type}"
+          "new_#{singular_route_name}_#{type}"
         end
- See on GitHub + 🔎 See on GitHub
@@ -920,7 +920,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/named_base.rb, line 121
@@ -928,7 +928,7 @@ 

@plural_file_name ||= file_name.pluralize end

- See on GitHub + 🔎 See on GitHub
@@ -955,7 +955,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/named_base.rb, line 78
@@ -963,7 +963,7 @@ 

@plural_name ||= singular_name.pluralize end

- See on GitHub + 🔎 See on GitHub
@@ -990,19 +990,19 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/named_base.rb, line 167
         def plural_route_name # :doc:
           if options[:model_name]
-            "#{controller_class_path.join('_')}_#{plural_table_name}"
+            "#{controller_class_path.join('_')}_#{plural_table_name}"
           else
             plural_table_name
           end
         end
- See on GitHub + 🔎 See on GitHub
@@ -1029,7 +1029,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/named_base.rb, line 117
@@ -1037,7 +1037,7 @@ 

@plural_table_name ||= (pluralize_table_names? ? table_name : table_name.pluralize) end

- See on GitHub + 🔎 See on GitHub
@@ -1064,7 +1064,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/named_base.rb, line 196
@@ -1072,7 +1072,7 @@ 

!defined?(ActiveRecord::Base) || ActiveRecord::Base.pluralize_table_names end

- See on GitHub + 🔎 See on GitHub
@@ -1099,15 +1099,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/named_base.rb, line 146
         def redirect_resource_name # :doc:
-          model_resource_name(prefix: "@")
+          model_resource_name(prefix: "@")
         end
- See on GitHub + 🔎 See on GitHub
@@ -1134,7 +1134,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/named_base.rb, line 62
@@ -1142,7 +1142,7 @@ 

@class_path end

- See on GitHub + 🔎 See on GitHub
@@ -1169,15 +1169,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/named_base.rb, line 129
         def route_url # :doc:
-          @route_url ||= controller_class_path.collect { |dname| "/" + dname }.join + "/" + plural_file_name
+          @route_url ||= controller_class_path.collect { |dname| "/" + dname }.join + "/" + plural_file_name
         end
- See on GitHub + 🔎 See on GitHub
@@ -1204,15 +1204,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/named_base.rb, line 101
-        def show_helper(arg = "@#{singular_table_name}", type: :url) # :doc:
-          "#{singular_route_name}_#{type}(#{arg})"
+        def show_helper(arg = "@#{singular_table_name}", type: :url) # :doc:
+          "#{singular_route_name}_#{type}(#{arg})"
         end
- See on GitHub + 🔎 See on GitHub
@@ -1239,7 +1239,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/named_base.rb, line 39
@@ -1247,7 +1247,7 @@ 

file_name end

- See on GitHub + 🔎 See on GitHub
@@ -1274,19 +1274,19 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/named_base.rb, line 159
         def singular_route_name # :doc:
           if options[:model_name]
-            "#{controller_class_path.join('_')}_#{singular_table_name}"
+            "#{controller_class_path.join('_')}_#{singular_table_name}"
           else
             singular_table_name
           end
         end
- See on GitHub + 🔎 See on GitHub
@@ -1313,7 +1313,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/named_base.rb, line 113
@@ -1321,7 +1321,7 @@ 

@singular_table_name ||= (pluralize_table_names? ? table_name.singularize : table_name) end

- See on GitHub + 🔎 See on GitHub
@@ -1348,18 +1348,18 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/named_base.rb, line 86
         def table_name # :doc:
           @table_name ||= begin
             base = pluralize_table_names? ? plural_name : singular_name
-            (class_path + [base]).join("_")
+            (class_path + [base]).join("_")
           end
         end
- See on GitHub + 🔎 See on GitHub
@@ -1386,7 +1386,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/named_base.rb, line 93
@@ -1394,7 +1394,7 @@ 

singular_name == plural_name end

- See on GitHub + 🔎 See on GitHub
@@ -1421,15 +1421,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/named_base.rb, line 133
         def url_helper_prefix # :doc:
-          @url_helper_prefix ||= (class_path + [file_name]).join("_")
+          @url_helper_prefix ||= (class_path + [file_name]).join("_")
         end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/Rails/Generators/Testing/Assertions.html b/src/classes/Rails/Generators/Testing/Assertions.html index aa74d8cff1..a6cf0718e8 100644 --- a/src/classes/Rails/Generators/Testing/Assertions.html +++ b/src/classes/Rails/Generators/Testing/Assertions.html @@ -125,15 +125,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/testing/assertions.rb, line 88
-        def assert_class_method(method, content, &block)
-          assert_instance_method "self.#{method}", content, &block
+        def assert_class_method(method, content, &block)
+          assert_instance_method "self.#{method}", content, &block
         end
- See on GitHub + 🔎 See on GitHub
@@ -188,7 +188,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/testing/assertions.rb, line 117
@@ -200,7 +200,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -230,7 +230,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/testing/assertions.rb, line 110
@@ -238,7 +238,7 @@ 

assert_equal(field_type, create_generated_attribute(attribute_type).field_type) end

- See on GitHub + 🔎 See on GitHub
@@ -286,13 +286,13 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/testing/assertions.rb, line 25
         def assert_file(relative, *contents)
           absolute = File.expand_path(relative, destination_root)
-          assert File.exist?(absolute), "Expected file #{relative.inspect} to exist, but does not"
+          assert File.exist?(absolute), "Expected file #{relative.inspect} to exist, but does not"
 
           read = File.read(absolute) if block_given? || !contents.empty?
           assert_nothing_raised { yield read } if block_given?
@@ -307,7 +307,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -345,16 +345,16 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/testing/assertions.rb, line 100
         def assert_instance_method(method, content)
-          assert content =~ /(\s+)def #{method}(\(.+\))?(.*?)\n\1end/m, "Expected to have method #{method}"
+          assert content =~ /(\s+)def #{method}(\(.+\))?(.*?)\n\1end/m, "Expected to have method #{method}"
           assert_nothing_raised { yield $3.strip } if block_given?
         end
- See on GitHub + 🔎 See on GitHub
@@ -416,17 +416,17 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/testing/assertions.rb, line 64
-        def assert_migration(relative, *contents, &block)
+        def assert_migration(relative, *contents, &block)
           file_name = migration_file_name(relative)
-          assert file_name, "Expected migration #{relative} to exist, but was not found"
-          assert_file file_name, *contents, &block
+          assert file_name, "Expected migration #{relative} to exist, but was not found"
+          assert_file file_name, *contents, &block
         end
- See on GitHub + 🔎 See on GitHub
@@ -485,16 +485,16 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/testing/assertions.rb, line 47
         def assert_no_file(relative)
           absolute = File.expand_path(relative, destination_root)
-          assert !File.exist?(absolute), "Expected file #{relative.inspect} to not exist, but does"
+          assert !File.exist?(absolute), "Expected file #{relative.inspect} to not exist, but does"
         end
- See on GitHub + 🔎 See on GitHub
@@ -524,16 +524,16 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/testing/assertions.rb, line 74
         def assert_no_migration(relative)
           file_name = migration_file_name(relative)
-          assert_nil file_name, "Expected migration #{relative} to not exist, but found #{file_name}"
+          assert_nil file_name, "Expected migration #{relative} to not exist, but found #{file_name}"
         end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/Rails/Generators/Testing/Behavior.html b/src/classes/Rails/Generators/Testing/Behavior.html index 3b97bf40f3..ff27188416 100644 --- a/src/classes/Rails/Generators/Testing/Behavior.html +++ b/src/classes/Rails/Generators/Testing/Behavior.html @@ -106,15 +106,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/testing/behavior.rb, line 85
-        def create_generated_attribute(attribute_type, name = "test", index = nil)
-          Rails::Generators::GeneratedAttribute.parse([name, attribute_type, index].compact.join(":"))
+        def create_generated_attribute(attribute_type, name = "test", index = nil)
+          Rails::Generators::GeneratedAttribute.parse([name, attribute_type, index].compact.join(":"))
         end
- See on GitHub + 🔎 See on GitHub
@@ -141,7 +141,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/testing/behavior.rb, line 77
@@ -149,7 +149,7 @@ 

@generator ||= generator_class.new(args, options, config.reverse_merge(destination_root: destination_root)) end

- See on GitHub + 🔎 See on GitHub
@@ -190,20 +190,20 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/testing/behavior.rb, line 67
         def run_generator(args = default_arguments, config = {})
           capture(:stdout) do
-            args += ["--skip-bundle"] unless args.include?("--no-skip-bundle") || args.include?("--dev")
-            args += ["--skip-bootsnap"] unless args.include?("--no-skip-bootsnap") || args.include?("--skip-bootsnap")
+            args += ["--skip-bundle"] unless args.include?("--no-skip-bundle") || args.include?("--dev")
+            args += ["--skip-bootsnap"] unless args.include?("--no-skip-bootsnap") || args.include?("--skip-bootsnap")
 
             generator_class.start(args, config.reverse_merge(destination_root: destination_root))
           end
         end
- See on GitHub + 🔎 See on GitHub
@@ -233,7 +233,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/testing/behavior.rb, line 99
@@ -242,7 +242,7 @@ 

mkdir_p(destination_root) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/Rails/Generators/Testing/Behavior/ClassMethods.html b/src/classes/Rails/Generators/Testing/Behavior/ClassMethods.html index 93150427f7..4dda96e78f 100644 --- a/src/classes/Rails/Generators/Testing/Behavior/ClassMethods.html +++ b/src/classes/Rails/Generators/Testing/Behavior/ClassMethods.html @@ -89,7 +89,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/testing/behavior.rb, line 39
@@ -97,7 +97,7 @@ 

self.default_arguments = array end

- See on GitHub + 🔎 See on GitHub
@@ -127,7 +127,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/testing/behavior.rb, line 46
@@ -135,7 +135,7 @@ 

self.destination_root = path end

- See on GitHub + 🔎 See on GitHub
@@ -165,7 +165,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/testing/behavior.rb, line 31
@@ -173,7 +173,7 @@ 

self.generator_class = klass end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/Rails/HealthController.html b/src/classes/Rails/HealthController.html index 1e4efbfa49..e9851e91e6 100644 --- a/src/classes/Rails/HealthController.html +++ b/src/classes/Rails/HealthController.html @@ -107,7 +107,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/health_controller.rb, line 38
@@ -115,7 +115,7 @@ 

render_up end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/Rails/Info.html b/src/classes/Rails/Info.html index 54adeff993..b5032574da 100644 --- a/src/classes/Rails/Info.html +++ b/src/classes/Rails/Info.html @@ -120,17 +120,17 @@

- Source code + 📝 Source code
# File railties/lib/rails/info.rb, line 25
       def property(name, value = nil)
         value ||= yield
-        properties << [name, value] if value
+        properties << [name, value] if value
       rescue Exception
       end
- See on GitHub + 🔎 See on GitHub
@@ -157,26 +157,26 @@

- Source code + 📝 Source code
# File railties/lib/rails/info.rb, line 43
       def to_html
-        (+"").tap do |table|
+        (+"<table>").tap do |table|
           properties.each do |(name, value)|
-            table << %()
+            table << %(<tr><td class="name">#{CGI.escapeHTML(name.to_s)}</td>)
             formatted_value = if value.kind_of?(Array)
-              "
    " + value.map { |v| "
  • #{CGI.escapeHTML(v.to_s)}
  • " }.join + "
" + "<ul>" + value.map { |v| "<li>#{CGI.escapeHTML(v.to_s)}</li>" }.join + "</ul>" else CGI.escapeHTML(value.to_s) end - table << %() + table << %(<td class="value">#{formatted_value}</td></tr>) end - table << "
#{CGI.escapeHTML(name.to_s)}#{formatted_value}
" + table << "</table>" end end
- See on GitHub + 🔎 See on GitHub
@@ -207,21 +207,21 @@

- Source code + 📝 Source code
# File railties/lib/rails/info.rb, line 31
       def to_s
-        column_width = properties.names.map(&:length).max
+        column_width = properties.names.map(&:length).max
         info = properties.map do |name, value|
-          value = value.join(", ") if value.is_a?(Array)
-          "%-#{column_width}s   %s" % [name, value]
+          value = value.join(", ") if value.is_a?(Array)
+          "%-#{column_width}s   %s" % [name, value]
         end
-        info.unshift "About your application's environment"
-        info * "\n"
+        info.unshift "About your application's environment"
+        info * "\n"
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/Rails/Initializable.html b/src/classes/Rails/Initializable.html index 1701bdb199..01cbb73441 100644 --- a/src/classes/Rails/Initializable.html +++ b/src/classes/Rails/Initializable.html @@ -104,7 +104,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/initializable.rb, line 66
@@ -112,7 +112,7 @@ 

@initializers ||= self.class.initializers_for(self) end

- See on GitHub + 🔎 See on GitHub
@@ -139,7 +139,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/initializable.rb, line 58
@@ -151,7 +151,7 @@ 

@ran = true end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/Rails/Initializable/ClassMethods.html b/src/classes/Rails/Initializable/ClassMethods.html index bf3dd8b7e3..aa48199525 100644 --- a/src/classes/Rails/Initializable/ClassMethods.html +++ b/src/classes/Rails/Initializable/ClassMethods.html @@ -90,17 +90,17 @@

- Source code + 📝 Source code
# File railties/lib/rails/initializable.rb, line 88
-      def initializer(name, opts = {}, &blk)
-        raise ArgumentError, "A block must be passed when defining an initializer" unless blk
+      def initializer(name, opts = {}, &blk)
+        raise ArgumentError, "A block must be passed when defining an initializer" unless blk
         opts[:after] ||= initializers.last.name unless initializers.empty? || initializers.find { |i| i.name == opts[:before] }
-        initializers << Initializer.new(name, nil, opts, &blk)
+        initializers << Initializer.new(name, nil, opts, &blk)
       end
- See on GitHub + 🔎 See on GitHub
@@ -127,7 +127,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/initializable.rb, line 71
@@ -135,7 +135,7 @@ 

@initializers ||= Collection.new end

- See on GitHub + 🔎 See on GitHub
@@ -162,7 +162,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/initializable.rb, line 75
@@ -175,7 +175,7 @@ 

initializers end

- See on GitHub + 🔎 See on GitHub
@@ -202,7 +202,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/initializable.rb, line 84
@@ -210,7 +210,7 @@ 

Collection.new(initializers_chain.map { |i| i.bind(binding) }) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/Rails/Initializable/Collection.html b/src/classes/Rails/Initializable/Collection.html index 9504ec065e..a28e0c146b 100644 --- a/src/classes/Rails/Initializable/Collection.html +++ b/src/classes/Rails/Initializable/Collection.html @@ -100,7 +100,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/initializable.rb, line 53
@@ -108,7 +108,7 @@ 

Collection.new(to_a + other.to_a) end

- See on GitHub + 🔎 See on GitHub
@@ -135,15 +135,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/initializable.rb, line 49
-      def tsort_each_child(initializer, &block)
-        select { |i| i.before == initializer.name || i.name == initializer.after }.each(&block)
+      def tsort_each_child(initializer, &block)
+        select { |i| i.before == initializer.name || i.name == initializer.after }.each(&block)
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/Rails/Initializable/Initializer.html b/src/classes/Rails/Initializable/Initializer.html index 7b331c2601..636a06d4e3 100644 --- a/src/classes/Rails/Initializable/Initializer.html +++ b/src/classes/Rails/Initializable/Initializer.html @@ -129,16 +129,16 @@

- Source code + 📝 Source code
# File railties/lib/rails/initializable.rb, line 14
-      def initialize(name, context, options, &block)
+      def initialize(name, context, options, &block)
         options[:group] ||= :default
         @name, @context, @options, @block = name, context, options, block
       end
- See on GitHub + 🔎 See on GitHub
@@ -169,7 +169,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/initializable.rb, line 23
@@ -177,7 +177,7 @@ 

@options[:after] end

- See on GitHub + 🔎 See on GitHub
@@ -204,7 +204,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/initializable.rb, line 19
@@ -212,7 +212,7 @@ 

@options[:before] end

- See on GitHub + 🔎 See on GitHub
@@ -239,7 +239,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/initializable.rb, line 27
@@ -247,7 +247,7 @@ 

@options[:group] == group || @options[:group] == :all end

- See on GitHub + 🔎 See on GitHub
@@ -274,16 +274,16 @@

- Source code + 📝 Source code
# File railties/lib/rails/initializable.rb, line 35
       def bind(context)
         return self if @context
-        Initializer.new(@name, context, @options, &block)
+        Initializer.new(@name, context, @options, &block)
       end
- See on GitHub + 🔎 See on GitHub
@@ -310,7 +310,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/initializable.rb, line 40
@@ -318,7 +318,7 @@ 

@context.class end

- See on GitHub + 🔎 See on GitHub
@@ -345,15 +345,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/initializable.rb, line 31
       def run(*args)
-        @context.instance_exec(*args, &block)
+        @context.instance_exec(*args, &block)
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/Rails/Paths/Path.html b/src/classes/Rails/Paths/Path.html index 39ed7fe5f6..7d3d3b0ec3 100644 --- a/src/classes/Rails/Paths/Path.html +++ b/src/classes/Rails/Paths/Path.html @@ -167,7 +167,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/paths.rb, line 119
@@ -184,7 +184,7 @@ 

options[:load_path] ? load_path! : skip_load_path! end

- See on GitHub + 🔎 See on GitHub
@@ -219,15 +219,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/paths.rb, line 171
-      def <<(path)
-        @paths << path
+      def <<(path)
+        @paths << path
       end
- See on GitHub + 🔎 See on GitHub
@@ -254,18 +254,18 @@

- Source code + 📝 Source code
# File railties/lib/rails/paths.rb, line 136
       def children
         keys = @root.keys.find_all { |k|
-          k.start_with?(@current) && k != @current
+          k.start_with?(@current) && k != @current
         }
         @root.values_at(*keys.sort)
       end
- See on GitHub + 🔎 See on GitHub
@@ -292,7 +292,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/paths.rb, line 176
@@ -300,7 +300,7 @@ 

@paths.concat paths end

- See on GitHub + 🔎 See on GitHub
@@ -327,15 +327,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/paths.rb, line 167
-      def each(&block)
-        @paths.each(&block)
+      def each(&block)
+        @paths.each(&block)
       end
- See on GitHub + 🔎 See on GitHub
@@ -362,7 +362,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/paths.rb, line 220
@@ -370,14 +370,14 @@ 

expanded.select do |f| does_exist = File.exist?(f) - if !does_exist && File.symlink?(f) - raise "File #{f.inspect} is a symlink that does not point to a valid file" + if !does_exist && File.symlink?(f) + raise "File #{f.inspect} is a symlink that does not point to a valid file" end does_exist end end

- See on GitHub + 🔎 See on GitHub
@@ -404,7 +404,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/paths.rb, line 231
@@ -412,7 +412,7 @@ 

expanded.select { |d| File.directory?(d) } end

- See on GitHub + 🔎 See on GitHub
@@ -443,21 +443,21 @@

- Source code + 📝 Source code
# File railties/lib/rails/paths.rb, line 201
       def expanded
-        raise "You need to set a path root" unless @root.path
+        raise "You need to set a path root" unless @root.path
         result = []
 
         each do |path|
           path = File.expand_path(path, @root.path)
 
-          if @glob && File.directory?(path)
+          if @glob && File.directory?(path)
             result.concat files_in(path)
           else
-            result << path
+            result << path
           end
         end
 
@@ -465,7 +465,7 @@ 

result end

- See on GitHub + 🔎 See on GitHub
@@ -492,7 +492,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/paths.rb, line 143
@@ -500,7 +500,7 @@ 

expanded.first end

- See on GitHub + 🔎 See on GitHub
@@ -527,7 +527,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/paths.rb, line 147
@@ -535,7 +535,7 @@ 

expanded.last end

- See on GitHub + 🔎 See on GitHub
@@ -562,19 +562,19 @@

- Source code + 📝 Source code
# File railties/lib/rails/paths.rb, line 188
       def paths
-        raise "You need to set a path root" unless @root.path
+        raise "You need to set a path root" unless @root.path
 
         map do |p|
           Pathname.new(@root.path).join(p)
         end
       end
- See on GitHub + 🔎 See on GitHub
@@ -651,7 +651,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/paths.rb, line 184
@@ -659,7 +659,7 @@ 

@paths end

- See on GitHub + 🔎 See on GitHub
@@ -686,7 +686,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/paths.rb, line 180
@@ -694,7 +694,7 @@ 

@paths.unshift(*paths) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/Rails/Paths/Root.html b/src/classes/Rails/Paths/Root.html index 3d3dc12f4a..0a158f92b1 100644 --- a/src/classes/Rails/Paths/Root.html +++ b/src/classes/Rails/Paths/Root.html @@ -186,7 +186,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/paths.rb, line 54
@@ -195,7 +195,7 @@ 

@root = {} end

- See on GitHub + 🔎 See on GitHub
@@ -226,7 +226,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/paths.rb, line 69
@@ -234,7 +234,7 @@ 

@root[path] end

- See on GitHub + 🔎 See on GitHub
@@ -261,7 +261,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/paths.rb, line 59
@@ -270,7 +270,7 @@ 

add(path, with: value, glob: glob) end

- See on GitHub + 🔎 See on GitHub
@@ -297,7 +297,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/paths.rb, line 64
@@ -306,7 +306,7 @@ 

@root[path] = Path.new(self, path, with, options) end

- See on GitHub + 🔎 See on GitHub
@@ -333,15 +333,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/paths.rb, line 85
       def all_paths
-        values.tap(&:uniq!)
+        values.tap(&:uniq!)
       end
- See on GitHub + 🔎 See on GitHub
@@ -368,15 +368,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/paths.rb, line 89
       def autoload_once
-        filter_by(&:autoload_once?)
+        filter_by(&:autoload_once?)
       end
- See on GitHub + 🔎 See on GitHub
@@ -403,15 +403,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/paths.rb, line 97
       def autoload_paths
-        filter_by(&:autoload?)
+        filter_by(&:autoload?)
       end
- See on GitHub + 🔎 See on GitHub
@@ -438,15 +438,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/paths.rb, line 93
       def eager_load
-        filter_by(&:eager_load?)
+        filter_by(&:eager_load?)
       end
- See on GitHub + 🔎 See on GitHub
@@ -473,7 +473,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/paths.rb, line 77
@@ -481,7 +481,7 @@ 

@root.keys end

- See on GitHub + 🔎 See on GitHub
@@ -508,15 +508,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/paths.rb, line 101
       def load_paths
-        filter_by(&:load_path?)
+        filter_by(&:load_path?)
       end
- See on GitHub + 🔎 See on GitHub
@@ -543,7 +543,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/paths.rb, line 73
@@ -551,7 +551,7 @@ 

@root.values end

- See on GitHub + 🔎 See on GitHub
@@ -578,7 +578,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/paths.rb, line 81
@@ -586,7 +586,7 @@ 

@root.values_at(*list) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/Rails/PluginBuilder.html b/src/classes/Rails/PluginBuilder.html index c628e66baa..8849b7c887 100644 --- a/src/classes/Rails/PluginBuilder.html +++ b/src/classes/Rails/PluginBuilder.html @@ -145,11 +145,6 @@

Constants

%i[dev edge master template] - -   - - - @@ -182,40 +177,40 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/rails/plugin/plugin_generator.rb, line 20
     def app
       if mountable?
         if api?
-          directory "app", exclude_pattern: %r{app/(views|helpers)}
+          directory "app", exclude_pattern: %r{app/(views|helpers)}
         else
-          directory "app"
-          empty_directory_with_keep_file "app/assets/images/#{namespaced_name}"
+          directory "app"
+          empty_directory_with_keep_file "app/assets/images/#{namespaced_name}"
         end
 
-        empty_directory_with_keep_file "app/models/concerns"
-        empty_directory_with_keep_file "app/controllers/concerns"
-        remove_dir "app/mailers" if options[:skip_action_mailer]
-        remove_dir "app/jobs" if options[:skip_active_job]
+        empty_directory_with_keep_file "app/models/concerns"
+        empty_directory_with_keep_file "app/controllers/concerns"
+        remove_dir "app/mailers" if options[:skip_action_mailer]
+        remove_dir "app/jobs" if options[:skip_active_job]
       elsif full?
-        empty_directory_with_keep_file "app/models"
-        empty_directory_with_keep_file "app/controllers"
-        empty_directory_with_keep_file "app/models/concerns"
-        empty_directory_with_keep_file "app/controllers/concerns"
-        empty_directory_with_keep_file "app/mailers" unless options[:skip_action_mailer]
-        empty_directory_with_keep_file "app/jobs" unless options[:skip_active_job]
+        empty_directory_with_keep_file "app/models"
+        empty_directory_with_keep_file "app/controllers"
+        empty_directory_with_keep_file "app/models/concerns"
+        empty_directory_with_keep_file "app/controllers/concerns"
+        empty_directory_with_keep_file "app/mailers" unless options[:skip_action_mailer]
+        empty_directory_with_keep_file "app/jobs" unless options[:skip_active_job]
 
         unless api?
-          empty_directory_with_keep_file "app/assets/images/#{namespaced_name}"
-          empty_directory_with_keep_file "app/helpers"
-          empty_directory_with_keep_file "app/views"
+          empty_directory_with_keep_file "app/assets/images/#{namespaced_name}"
+          empty_directory_with_keep_file "app/helpers"
+          empty_directory_with_keep_file "app/views"
         end
       end
     end
- See on GitHub + 🔎 See on GitHub
@@ -242,15 +237,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/rails/plugin/plugin_generator.rb, line 157
     def assets_manifest
-      template "rails/engine_manifest.js", "app/assets/config/#{underscored_name}_manifest.js"
+      template "rails/engine_manifest.js", "app/assets/config/#{underscored_name}_manifest.js"
     end
- See on GitHub + 🔎 See on GitHub
@@ -277,19 +272,19 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/rails/plugin/plugin_generator.rb, line 170
     def bin(force = false)
-      bin_file = engine? ? "bin/rails.tt" : "bin/test.tt"
+      bin_file = engine? ? "bin/rails.tt" : "bin/test.tt"
       template bin_file, force: force do |content|
-        "#{shebang}\n" + content
+        "#{shebang}\n" + content
       end
-      chmod "bin", 0755, verbose: false
+      chmod "bin", 0755, verbose: false
     end
- See on GitHub + 🔎 See on GitHub
@@ -316,15 +311,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/rails/plugin/plugin_generator.rb, line 87
     def config
-      template "config/routes.rb" if engine?
+      template "config/routes.rb" if engine?
     end
- See on GitHub + 🔎 See on GitHub
@@ -351,15 +346,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/rails/plugin/plugin_generator.rb, line 53
     def gemfile
-      template "Gemfile"
+      template "Gemfile"
     end
- See on GitHub + 🔎 See on GitHub
@@ -386,21 +381,21 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/rails/plugin/plugin_generator.rb, line 178
     def gemfile_entry
       return unless inside_application?
 
-      gemfile_in_app_path = File.join(rails_app_path, "Gemfile")
+      gemfile_in_app_path = File.join(rails_app_path, "Gemfile")
       if File.exist? gemfile_in_app_path
-        entry = "\ngem '#{name}', path: '#{relative_path}'"
+        entry = "\ngem '#{name}', path: '#{relative_path}'"
         append_file gemfile_in_app_path, entry
       end
     end
- See on GitHub + 🔎 See on GitHub
@@ -427,15 +422,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/rails/plugin/plugin_generator.rb, line 61
     def gemspec
-      template "%name%.gemspec"
+      template "%name%.gemspec"
     end
- See on GitHub + 🔎 See on GitHub
@@ -462,12 +457,12 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/rails/plugin/plugin_generator.rb, line 112
     def generate_test_dummy(force = false)
-      opts = options.transform_keys(&:to_sym).except(*DUMMY_IGNORE_OPTIONS)
+      opts = options.transform_keys(&:to_sym).except(*DUMMY_IGNORE_OPTIONS)
       opts[:force] = force
       opts[:skip_bundle] = true
       opts[:skip_git] = true
@@ -478,7 +473,7 @@ 

[ File.expand_path(dummy_path, destination_root) ], opts end

- See on GitHub + 🔎 See on GitHub
@@ -505,15 +500,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/rails/plugin/plugin_generator.rb, line 65
     def gitignore
-      template "gitignore", ".gitignore"
+      template "gitignore", ".gitignore"
     end
- See on GitHub + 🔎 See on GitHub
@@ -540,23 +535,23 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/rails/plugin/plugin_generator.rb, line 75
     def lib
-      template "lib/%namespaced_name%.rb"
-      template "lib/tasks/%namespaced_name%_tasks.rake"
-      template "lib/%namespaced_name%/version.rb"
+      template "lib/%namespaced_name%.rb"
+      template "lib/tasks/%namespaced_name%_tasks.rake"
+      template "lib/%namespaced_name%/version.rb"
 
       if engine?
-        template "lib/%namespaced_name%/engine.rb"
+        template "lib/%namespaced_name%/engine.rb"
       else
-        template "lib/%namespaced_name%/railtie.rb"
+        template "lib/%namespaced_name%/railtie.rb"
       end
     end
- See on GitHub + 🔎 See on GitHub
@@ -583,15 +578,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/rails/plugin/plugin_generator.rb, line 57
     def license
-      template "MIT-LICENSE" unless inside_application?
+      template "MIT-LICENSE" unless inside_application?
     end
- See on GitHub + 🔎 See on GitHub
@@ -618,15 +613,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/rails/plugin/plugin_generator.rb, line 16
     def rakefile
-      template "Rakefile"
+      template "Rakefile"
     end
- See on GitHub + 🔎 See on GitHub
@@ -653,15 +648,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/rails/plugin/plugin_generator.rb, line 49
     def readme
-      template "README.md"
+      template "README.md"
     end
- See on GitHub + 🔎 See on GitHub
@@ -688,20 +683,20 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/rails/plugin/plugin_generator.rb, line 161
     def stylesheets
       if mountable?
-        copy_file "rails/stylesheets.css",
-                  "app/assets/stylesheets/#{namespaced_name}/application.css"
+        copy_file "rails/stylesheets.css",
+                  "app/assets/stylesheets/#{namespaced_name}/application.css"
       elsif full?
-        empty_directory_with_keep_file "app/assets/stylesheets/#{namespaced_name}"
+        empty_directory_with_keep_file "app/assets/stylesheets/#{namespaced_name}"
       end
     end
- See on GitHub + 🔎 See on GitHub
@@ -728,30 +723,30 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/rails/plugin/plugin_generator.rb, line 91
     def test
-      template "test/test_helper.rb"
-      template "test/%namespaced_name%_test.rb"
+      template "test/test_helper.rb"
+      template "test/%namespaced_name%_test.rb"
 
       if engine?
-        empty_directory_with_keep_file "test/fixtures/files"
-        empty_directory_with_keep_file "test/controllers"
-        empty_directory_with_keep_file "test/mailers"
-        empty_directory_with_keep_file "test/models"
-        empty_directory_with_keep_file "test/integration"
+        empty_directory_with_keep_file "test/fixtures/files"
+        empty_directory_with_keep_file "test/controllers"
+        empty_directory_with_keep_file "test/mailers"
+        empty_directory_with_keep_file "test/models"
+        empty_directory_with_keep_file "test/integration"
 
         unless api?
-          empty_directory_with_keep_file "test/helpers"
+          empty_directory_with_keep_file "test/helpers"
         end
 
-        template "test/integration/navigation_test.rb"
+        template "test/integration/navigation_test.rb"
       end
     end
- See on GitHub + 🔎 See on GitHub
@@ -778,24 +773,24 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/rails/plugin/plugin_generator.rb, line 144
     def test_dummy_clean
       inside dummy_path do
-        remove_file ".ruby-version"
-        remove_file "db/seeds.rb"
-        remove_file "Gemfile"
-        remove_file "lib/tasks"
-        remove_file "public/robots.txt"
-        remove_file "README.md"
-        remove_file "test"
-        remove_file "vendor"
+        remove_file ".ruby-version"
+        remove_file "db/seeds.rb"
+        remove_file "Gemfile"
+        remove_file "lib/tasks"
+        remove_file "public/robots.txt"
+        remove_file "README.md"
+        remove_file "test"
+        remove_file "vendor"
       end
     end
- See on GitHub + 🔎 See on GitHub
@@ -822,18 +817,18 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/rails/plugin/plugin_generator.rb, line 124
     def test_dummy_config
-      template "rails/boot.rb", "#{dummy_path}/config/boot.rb", force: true
+      template "rails/boot.rb", "#{dummy_path}/config/boot.rb", force: true
 
       if mountable?
-        template "rails/routes.rb", "#{dummy_path}/config/routes.rb", force: true
+        template "rails/routes.rb", "#{dummy_path}/config/routes.rb", force: true
       end
-      if engine? && !api?
-        insert_into_file "#{dummy_path}/config/application.rb", indent(<<~RUBY, 4), after: /^\s*config\.load_defaults.*\n/
+      if engine? && !api?
+        insert_into_file "#{dummy_path}/config/application.rb", indent(<<~RUBY, 4), after: /^\s*config\.load_defaults.*\n/
 
           # For compatibility with applications that use this config
           config.action_controller.include_all_helpers = false
@@ -841,7 +836,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -868,16 +863,16 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/rails/plugin/plugin_generator.rb, line 139
     def test_dummy_sprocket_assets
-      template "rails/stylesheets.css",   "#{dummy_path}/app/assets/stylesheets/application.css", force: true
-      template "rails/dummy_manifest.js", "#{dummy_path}/app/assets/config/manifest.js", force: true
+      template "rails/stylesheets.css",   "#{dummy_path}/app/assets/stylesheets/application.css", force: true
+      template "rails/dummy_manifest.js", "#{dummy_path}/app/assets/config/manifest.js", force: true
     end
- See on GitHub + 🔎 See on GitHub
@@ -904,17 +899,17 @@

- Source code + 📝 Source code
# File railties/lib/rails/generators/rails/plugin/plugin_generator.rb, line 69
     def version_control
-      if !options[:skip_git] && !options[:pretend]
+      if !options[:skip_git] && !options[:pretend]
         run git_init_command, capture: options[:quiet], abort_on_failure: false
       end
     end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/Rails/Rack/Logger.html b/src/classes/Rails/Rack/Logger.html index 68c60a135d..ef0c943e8d 100644 --- a/src/classes/Rails/Rack/Logger.html +++ b/src/classes/Rails/Rack/Logger.html @@ -107,7 +107,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/rack/logger.rb, line 15
@@ -116,7 +116,7 @@ 

@taggers = taggers || [] end

- See on GitHub + 🔎 See on GitHub
@@ -147,7 +147,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/rack/logger.rb, line 20
@@ -161,7 +161,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -191,18 +191,18 @@

- Source code + 📝 Source code
# File railties/lib/rails/rack/logger.rb, line 31
         def call_app(request, env) # :doc:
           instrumenter = ActiveSupport::Notifications.instrumenter
-          handle = instrumenter.build_handle("request.action_dispatch", { request: request })
+          handle = instrumenter.build_handle("request.action_dispatch", { request: request })
           handle.start
 
           logger.info { started_request_message(request) }
           status, headers, body = response = @app.call(env)
-          body = ::Rack::BodyProxy.new(body, &handle.method(:finish))
+          body = ::Rack::BodyProxy.new(body, &handle.method(:finish))
 
           if response.frozen?
             [status, headers, body]
@@ -217,7 +217,7 @@ 

ActiveSupport::LogSubscriber.flush_all! end

- See on GitHub + 🔎 See on GitHub
@@ -244,7 +244,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/rack/logger.rb, line 62
@@ -261,7 +261,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -288,19 +288,19 @@

- Source code + 📝 Source code
# File railties/lib/rails/rack/logger.rb, line 54
         def started_request_message(request) # :doc:
-          sprintf('Started %s "%s" for %s at %s',
+          sprintf('Started %s "%s" for %s at %s',
             request.raw_request_method,
             request.filtered_path,
             request.remote_ip,
             Time.now)
         end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/Rails/Railtie.html b/src/classes/Rails/Railtie.html index 791462c714..cf64345422 100644 --- a/src/classes/Rails/Railtie.html +++ b/src/classes/Rails/Railtie.html @@ -269,11 +269,6 @@

Constants

%w(Rails::Railtie Rails::Engine Rails::Application) - -   - - - @@ -319,7 +314,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/railtie.rb, line 172
@@ -327,7 +322,7 @@ 

ABSTRACT_RAILTIES.include?(name) end

- See on GitHub + 🔎 See on GitHub
@@ -354,15 +349,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/railtie.rb, line 190
-      def configure(&block)
-        instance.configure(&block)
+      def configure(&block)
+        instance.configure(&block)
       end
- See on GitHub + 🔎 See on GitHub
@@ -389,15 +384,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/railtie.rb, line 156
-      def console(&blk)
-        register_block_for(:load_console, &blk)
+      def console(&blk)
+        register_block_for(:load_console, &blk)
       end
- See on GitHub + 🔎 See on GitHub
@@ -424,15 +419,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/railtie.rb, line 164
-      def generators(&blk)
-        register_block_for(:generators, &blk)
+      def generators(&blk)
+        register_block_for(:generators, &blk)
       end
- See on GitHub + 🔎 See on GitHub
@@ -459,7 +454,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/railtie.rb, line 198
@@ -468,7 +463,7 @@ 

super end

- See on GitHub + 🔎 See on GitHub
@@ -495,7 +490,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/railtie.rb, line 183
@@ -503,7 +498,7 @@ 

@instance ||= new end

- See on GitHub + 🔎 See on GitHub
@@ -530,7 +525,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/railtie.rb, line 176
@@ -539,7 +534,7 @@ 

@railtie_name ||= generate_railtie_name(self.name) end

- See on GitHub + 🔎 See on GitHub
@@ -566,15 +561,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/railtie.rb, line 152
-      def rake_tasks(&blk)
-        register_block_for(:rake_tasks, &blk)
+      def rake_tasks(&blk)
+        register_block_for(:rake_tasks, &blk)
       end
- See on GitHub + 🔎 See on GitHub
@@ -601,15 +596,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/railtie.rb, line 160
-      def runner(&blk)
-        register_block_for(:runner, &blk)
+      def runner(&blk)
+        register_block_for(:runner, &blk)
       end
- See on GitHub + 🔎 See on GitHub
@@ -636,15 +631,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/railtie.rb, line 168
-      def server(&blk)
-        register_block_for(:server, &blk)
+      def server(&blk)
+        register_block_for(:server, &blk)
       end
- See on GitHub + 🔎 See on GitHub
@@ -671,15 +666,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/railtie.rb, line 148
       def subclasses
-        super.reject(&:abstract_railtie?).sort
+        super.reject(&:abstract_railtie?).sort
       end
- See on GitHub + 🔎 See on GitHub
@@ -709,7 +704,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/railtie.rb, line 206
@@ -718,7 +713,7 @@ 

@load_index = (@@load_counter += 1) end

- See on GitHub + 🔎 See on GitHub
@@ -749,7 +744,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/railtie.rb, line 263
@@ -757,7 +752,7 @@ 

@config ||= Railtie::Configuration.new end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/Rails/Railtie/Configurable/ClassMethods.html b/src/classes/Rails/Railtie/Configurable/ClassMethods.html index c1c5cde3b7..fee1b6c87d 100644 --- a/src/classes/Rails/Railtie/Configurable/ClassMethods.html +++ b/src/classes/Rails/Railtie/Configurable/ClassMethods.html @@ -90,15 +90,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/railtie/configurable.rb, line 25
-        def configure(&block)
-          class_eval(&block)
+        def configure(&block)
+          class_eval(&block)
         end
- See on GitHub + 🔎 See on GitHub
@@ -125,15 +125,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/railtie/configurable.rb, line 13
         def inherited(base)
-          raise "You cannot inherit from a #{superclass.name} child"
+          raise "You cannot inherit from a #{superclass.name} child"
         end
- See on GitHub + 🔎 See on GitHub
@@ -160,7 +160,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/railtie/configurable.rb, line 17
@@ -168,7 +168,7 @@ 

@instance ||= new end

- See on GitHub + 🔎 See on GitHub
@@ -195,7 +195,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/railtie/configurable.rb, line 21
@@ -203,7 +203,7 @@ 

super || instance.respond_to?(*args) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/Rails/Railtie/Configuration.html b/src/classes/Rails/Railtie/Configuration.html index 7fc55cf4a0..f26db0b612 100644 --- a/src/classes/Rails/Railtie/Configuration.html +++ b/src/classes/Rails/Railtie/Configuration.html @@ -135,7 +135,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/railtie/configuration.rb, line 8
@@ -143,7 +143,7 @@ 

@@options ||= {} end

- See on GitHub + 🔎 See on GitHub
@@ -174,15 +174,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/railtie/configuration.rb, line 70
-      def after_initialize(&block)
-        ActiveSupport.on_load(:after_initialize, yield: true, &block)
+      def after_initialize(&block)
+        ActiveSupport.on_load(:after_initialize, yield: true, &block)
       end
- See on GitHub + 🔎 See on GitHub
@@ -209,15 +209,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/railtie/configuration.rb, line 75
-      def after_routes_loaded(&block)
-        ActiveSupport.on_load(:after_routes_loaded, yield: true, &block)
+      def after_routes_loaded(&block)
+        ActiveSupport.on_load(:after_routes_loaded, yield: true, &block)
       end
- See on GitHub + 🔎 See on GitHub
@@ -246,7 +246,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/railtie/configuration.rb, line 47
@@ -256,7 +256,7 @@ 

@@app_generators end

- See on GitHub + 🔎 See on GitHub
@@ -285,7 +285,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/railtie/configuration.rb, line 39
@@ -293,7 +293,7 @@ 

@@app_middleware ||= Rails::Configuration::MiddlewareStackProxy.new end

- See on GitHub + 🔎 See on GitHub
@@ -320,15 +320,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/railtie/configuration.rb, line 54
-      def before_configuration(&block)
-        ActiveSupport.on_load(:before_configuration, yield: true, &block)
+      def before_configuration(&block)
+        ActiveSupport.on_load(:before_configuration, yield: true, &block)
       end
- See on GitHub + 🔎 See on GitHub
@@ -355,15 +355,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/railtie/configuration.rb, line 60
-      def before_eager_load(&block)
-        ActiveSupport.on_load(:before_eager_load, yield: true, &block)
+      def before_eager_load(&block)
+        ActiveSupport.on_load(:before_eager_load, yield: true, &block)
       end
- See on GitHub + 🔎 See on GitHub
@@ -390,15 +390,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/railtie/configuration.rb, line 65
-      def before_initialize(&block)
-        ActiveSupport.on_load(:before_initialize, yield: true, &block)
+      def before_initialize(&block)
+        ActiveSupport.on_load(:before_initialize, yield: true, &block)
       end
- See on GitHub + 🔎 See on GitHub
@@ -425,7 +425,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/railtie/configuration.rb, line 18
@@ -433,7 +433,7 @@ 

@@eager_load_namespaces ||= [] end

- See on GitHub + 🔎 See on GitHub
@@ -460,7 +460,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/railtie/configuration.rb, line 90
@@ -468,7 +468,7 @@ 

super || @@options.key?(name.to_sym) end

- See on GitHub + 🔎 See on GitHub
@@ -495,15 +495,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/railtie/configuration.rb, line 86
-      def to_prepare(&blk)
-        to_prepare_blocks << blk if blk
+      def to_prepare(&blk)
+        to_prepare_blocks << blk if blk
       end
- See on GitHub + 🔎 See on GitHub
@@ -530,7 +530,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/railtie/configuration.rb, line 80
@@ -538,7 +538,7 @@ 

@@to_prepare_blocks ||= [] end

- See on GitHub + 🔎 See on GitHub
@@ -565,7 +565,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/railtie/configuration.rb, line 30
@@ -573,7 +573,7 @@ 

@@watchable_dirs ||= {} end

- See on GitHub + 🔎 See on GitHub
@@ -600,7 +600,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/railtie/configuration.rb, line 23
@@ -608,7 +608,7 @@ 

@@watchable_files ||= [] end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/Rails/Secrets/MissingKeyError.html b/src/classes/Rails/Secrets/MissingKeyError.html index 522288fa63..11279866e2 100644 --- a/src/classes/Rails/Secrets/MissingKeyError.html +++ b/src/classes/Rails/Secrets/MissingKeyError.html @@ -83,18 +83,18 @@

- Source code + 📝 Source code
# File railties/lib/rails/secrets.rb, line 11
       def initialize
-        super(<<-end_of_message.squish)
+        super(<<-end_of_message.squish)
           Missing encryption key to decrypt secrets with.
-          Ask your team for your master key and put it in ENV["RAILS_MASTER_KEY"]
+          Ask your team for your master key and put it in ENV["RAILS_MASTER_KEY"]
         end_of_message
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/Rails/Server.html b/src/classes/Rails/Server.html index e890de368b..77c2f2fa12 100644 --- a/src/classes/Rails/Server.html +++ b/src/classes/Rails/Server.html @@ -120,7 +120,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/commands/server/server_command.rb, line 18
@@ -130,7 +130,7 @@ 

set_environment end

- See on GitHub + 🔎 See on GitHub
@@ -161,7 +161,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/commands/server/server_command.rb, line 54
@@ -169,7 +169,7 @@ 

super.merge(@default_options) end

- See on GitHub + 🔎 See on GitHub
@@ -196,7 +196,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/commands/server/server_command.rb, line 50
@@ -204,7 +204,7 @@ 

Hash.new([]) end

- See on GitHub + 🔎 See on GitHub
@@ -231,7 +231,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/commands/server/server_command.rb, line 24
@@ -239,7 +239,7 @@ 

Options.new end

- See on GitHub + 🔎 See on GitHub
@@ -266,15 +266,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/commands/server/server_command.rb, line 58
     def served_url
-      "#{options[:SSLEnable] ? 'https' : 'http'}://#{options[:Host]}:#{options[:Port]}" unless use_puma?
+      "#{options[:SSLEnable] ? 'https' : 'http'}://#{options[:Host]}:#{options[:Port]}" unless use_puma?
     end
- See on GitHub + 🔎 See on GitHub
@@ -301,15 +301,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/commands/server/server_command.rb, line 28
     def set_environment
-      ENV["RAILS_ENV"] ||= options[:environment]
+      ENV["RAILS_ENV"] ||= options[:environment]
     end
- See on GitHub + 🔎 See on GitHub
@@ -336,7 +336,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/commands/server/server_command.rb, line 32
@@ -351,7 +351,7 @@ 

after_stop_callback.call if after_stop_callback end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/Rails/Server/Options.html b/src/classes/Rails/Server/Options.html index 5d0e899a70..4ca71f69da 100644 --- a/src/classes/Rails/Server/Options.html +++ b/src/classes/Rails/Server/Options.html @@ -84,7 +84,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/commands/server/server_command.rb, line 13
@@ -92,7 +92,7 @@ 

Rails::Command::ServerCommand.new([], args).server_options end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/Rails/SourceAnnotationExtractor.html b/src/classes/Rails/SourceAnnotationExtractor.html index 9dc1a5c00b..4500cb365c 100644 --- a/src/classes/Rails/SourceAnnotationExtractor.html +++ b/src/classes/Rails/SourceAnnotationExtractor.html @@ -153,18 +153,18 @@

- Source code + 📝 Source code
# File railties/lib/rails/source_annotation_extractor.rb, line 128
     def self.enumerate(tag = nil, options = {})
-      tag ||= Annotation.tags.join("|")
+      tag ||= Annotation.tags.join("|")
       extractor = new(tag)
       dirs = options.delete(:dirs) || Annotation.directories
       extractor.display(extractor.find(dirs), options)
     end
- See on GitHub + 🔎 See on GitHub
@@ -191,7 +191,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/source_annotation_extractor.rb, line 137
@@ -199,7 +199,7 @@ 

@tag = tag end

- See on GitHub + 🔎 See on GitHub
@@ -230,22 +230,22 @@

- Source code + 📝 Source code
# File railties/lib/rails/source_annotation_extractor.rb, line 186
     def display(results, options = {})
-      options[:indent] = results.flat_map { |f, a| a.map(&:line) }.max.to_s.size
+      options[:indent] = results.flat_map { |f, a| a.map(&:line) }.max.to_s.size
       results.keys.sort.each do |file|
-        puts "#{file}:"
+        puts "#{file}:"
         results[file].each do |note|
-          puts "  * #{note.to_s(options)}"
+          puts "  * #{note.to_s(options)}"
         end
         puts
       end
     end
- See on GitHub + 🔎 See on GitHub
@@ -272,7 +272,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/source_annotation_extractor.rb, line 143
@@ -280,7 +280,7 @@ 

dirs.inject({}) { |h, dir| h.update(find_in(dir)) } end

- See on GitHub + 🔎 See on GitHub
@@ -307,15 +307,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/source_annotation_extractor.rb, line 151
     def find_in(dir)
       results = {}
 
-      Dir.glob("#{dir}/*") do |item|
-        next if File.basename(item).start_with?(".")
+      Dir.glob("#{dir}/*") do |item|
+        next if File.basename(item).start_with?(".")
 
         if File.directory?(item)
           results.update(find_in(item))
@@ -336,7 +336,7 @@ 

pattern = PatternExtractor.new(pattern) if pattern.is_a?(Regexp) annotations = pattern.annotations(item) - results.update(item => annotations) if annotations.any? + results.update(item => annotations) if annotations.any? end end end @@ -344,7 +344,7 @@

results end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/Rails/SourceAnnotationExtractor/Annotation.html b/src/classes/Rails/SourceAnnotationExtractor/Annotation.html index 529c7f1095..dd6fee326d 100644 --- a/src/classes/Rails/SourceAnnotationExtractor/Annotation.html +++ b/src/classes/Rails/SourceAnnotationExtractor/Annotation.html @@ -107,7 +107,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/source_annotation_extractor.rb, line 55
@@ -115,7 +115,7 @@ 

@@directories ||= %w(app config db lib test) end

- See on GitHub + 🔎 See on GitHub
@@ -142,7 +142,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/source_annotation_extractor.rb, line 75
@@ -150,7 +150,7 @@ 

@@extensions ||= {} end

- See on GitHub + 🔎 See on GitHub
@@ -180,7 +180,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/source_annotation_extractor.rb, line 61
@@ -188,7 +188,7 @@ 

directories.push(*dirs) end

- See on GitHub + 🔎 See on GitHub
@@ -218,15 +218,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/source_annotation_extractor.rb, line 81
-      def self.register_extensions(*exts, &block)
-        extensions[/\.(#{exts.join("|")})$/] = block
+      def self.register_extensions(*exts, &block)
+        extensions[/\.(#{exts.join("|")})$/] = block
       end
- See on GitHub + 🔎 See on GitHub
@@ -256,7 +256,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/source_annotation_extractor.rb, line 71
@@ -264,7 +264,7 @@ 

tags.push(*additional_tags) end

- See on GitHub + 🔎 See on GitHub
@@ -291,7 +291,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/source_annotation_extractor.rb, line 65
@@ -299,7 +299,7 @@ 

@@tags ||= %w(OPTIMIZE FIXME TODO) end

- See on GitHub + 🔎 See on GitHub
@@ -335,17 +335,17 @@

- Source code + 📝 Source code
# File railties/lib/rails/source_annotation_extractor.rb, line 107
       def to_s(options = {})
-        s = +"[#{line.to_s.rjust(options[:indent])}] "
-        s << "[#{tag}] " if options[:tag]
-        s << text
+        s = +"[#{line.to_s.rjust(options[:indent])}] "
+        s << "[#{tag}] " if options[:tag]
+        s << text
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/Rails/SourceAnnotationExtractor/ParserExtractor.html b/src/classes/Rails/SourceAnnotationExtractor/ParserExtractor.html index 235e3588be..5b0d61b0dc 100644 --- a/src/classes/Rails/SourceAnnotationExtractor/ParserExtractor.html +++ b/src/classes/Rails/SourceAnnotationExtractor/ParserExtractor.html @@ -103,17 +103,17 @@

- Source code + 📝 Source code
# File railties/lib/rails/source_annotation_extractor.rb, line 33
       def annotations(file)
         contents = File.read(file, encoding: Encoding::BINARY)
-        parser = Parser.new(contents, pattern: pattern).tap(&:parse)
+        parser = Parser.new(contents, pattern: pattern).tap(&:parse)
         parser.error? ? [] : parser.comments
       end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/Rails/SourceAnnotationExtractor/ParserExtractor/Parser.html b/src/classes/Rails/SourceAnnotationExtractor/ParserExtractor/Parser.html index bceaf6d636..8304a3c378 100644 --- a/src/classes/Rails/SourceAnnotationExtractor/ParserExtractor/Parser.html +++ b/src/classes/Rails/SourceAnnotationExtractor/ParserExtractor/Parser.html @@ -109,7 +109,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/source_annotation_extractor.rb, line 22
@@ -119,7 +119,7 @@ 

@comments = [] end

- See on GitHub + 🔎 See on GitHub
@@ -150,15 +150,15 @@

- Source code + 📝 Source code
# File railties/lib/rails/source_annotation_extractor.rb, line 28
         def on_comment(value)
-          @comments << Annotation.new(lineno, $1, $2) if value =~ pattern
+          @comments << Annotation.new(lineno, $1, $2) if value =~ pattern
         end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/Rails/SourceAnnotationExtractor/PatternExtractor.html b/src/classes/Rails/SourceAnnotationExtractor/PatternExtractor.html index 6a1ae410c9..a160d9a3b2 100644 --- a/src/classes/Rails/SourceAnnotationExtractor/PatternExtractor.html +++ b/src/classes/Rails/SourceAnnotationExtractor/PatternExtractor.html @@ -90,7 +90,7 @@

- Source code + 📝 Source code
# File railties/lib/rails/source_annotation_extractor.rb, line 43
@@ -100,11 +100,11 @@ 

File.readlines(file, encoding: Encoding::BINARY).inject([]) do |list, line| lineno += 1 next list unless line =~ pattern - list << Annotation.new(lineno, $1, $2) + list << Annotation.new(lineno, $1, $2) end end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/Rails/VERSION.html b/src/classes/Rails/VERSION.html index 0fed6ba78e..20864beb8c 100644 --- a/src/classes/Rails/VERSION.html +++ b/src/classes/Rails/VERSION.html @@ -54,11 +54,6 @@

Constants

7 - -   - - - MINOR @@ -66,11 +61,6 @@

Constants

1 - -   - - - PRE @@ -78,11 +68,6 @@

Constants

nil - -   - - - STRING @@ -90,11 +75,6 @@

Constants

[MAJOR, MINOR, TINY, PRE].compact.join(".") - -   - - - TINY @@ -102,11 +82,6 @@

Constants

0 - -   - - - diff --git a/src/classes/Range.html b/src/classes/Range.html index 52488dcf53..8816dd6c6a 100644 --- a/src/classes/Range.html +++ b/src/classes/Range.html @@ -96,18 +96,18 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/range/overlap.rb, line 31
     def _empty_range?(b, e, excl)
       return false if b.nil? || e.nil?
 
-      comp = b <=> e
-      comp.nil? || comp > 0 || (comp == 0 && excl)
+      comp = b <=> e
+      comp.nil? || comp > 0 || (comp == 0 && excl)
     end
- See on GitHub + 🔎 See on GitHub
@@ -138,7 +138,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/range/overlap.rb, line 8
@@ -164,7 +164,7 @@ 

true end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/Regexp.html b/src/classes/Regexp.html index f750f6f728..2d688fa2a6 100644 --- a/src/classes/Regexp.html +++ b/src/classes/Regexp.html @@ -93,15 +93,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/regexp.rb, line 11
   def multiline?
-    options & MULTILINE == MULTILINE
+    options & MULTILINE == MULTILINE
   end
- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/SecureRandom.html b/src/classes/SecureRandom.html index 735ff58f82..7c5b1da9d1 100644 --- a/src/classes/SecureRandom.html +++ b/src/classes/SecureRandom.html @@ -63,11 +63,6 @@

Constants

("0".."9").to_a + ("a".."z").to_a - -   - - - BASE58_ALPHABET @@ -75,11 +70,6 @@

Constants

("0".."9").to_a + ("A".."Z").to_a + ("a".."z").to_a - ["0", "O", "I", "l"] - -   - - - @@ -111,7 +101,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/securerandom.rb, line 45
@@ -119,7 +109,7 @@ 

SecureRandom.alphanumeric(n, chars: BASE36_ALPHABET) end

- See on GitHub + 🔎 See on GitHub
@@ -146,7 +136,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/securerandom.rb, line 20
@@ -154,7 +144,7 @@ 

SecureRandom.alphanumeric(n, chars: BASE58_ALPHABET) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/Singleton.html b/src/classes/Singleton.html index c2a0ac8df2..382a4af5d1 100644 --- a/src/classes/Singleton.html +++ b/src/classes/Singleton.html @@ -81,7 +81,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/object/duplicable.rb, line 57
@@ -89,7 +89,7 @@ 

false end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/String.html b/src/classes/String.html index b33cfe29ec..fe077c50b2 100644 --- a/src/classes/String.html +++ b/src/classes/String.html @@ -278,11 +278,6 @@

Constants

/\A[[:space:]]*\z/ - -   - - - ENCODED_BLANKS @@ -292,11 +287,6 @@

Constants

end - -   - - - @@ -329,7 +319,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/string/behavior.rb, line 5
@@ -337,7 +327,7 @@ 

true end

- See on GitHub + 🔎 See on GitHub
@@ -382,7 +372,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/string/access.rb, line 29
@@ -390,7 +380,7 @@ 

self[position] end

- See on GitHub + 🔎 See on GitHub
@@ -430,7 +420,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/object/blank.rb, line 121
@@ -446,7 +436,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -512,7 +502,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/string/inflections.rb, line 101
@@ -523,11 +513,11 @@ 

when :lower ActiveSupport::Inflector.camelize(self, false) else - raise ArgumentError, "Invalid option, use either :upper or :lower." + raise ArgumentError, "Invalid option, use either :upper or :lower." end end

- See on GitHub + 🔎 See on GitHub
@@ -560,7 +550,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/string/inflections.rb, line 239
@@ -568,7 +558,7 @@ 

ActiveSupport::Inflector.classify(self) end

- See on GitHub + 🔎 See on GitHub
@@ -602,7 +592,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/string/inflections.rb, line 73
@@ -610,7 +600,7 @@ 

ActiveSupport::Inflector.constantize(self) end

- See on GitHub + 🔎 See on GitHub
@@ -642,7 +632,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/string/inflections.rb, line 148
@@ -650,7 +640,7 @@ 

ActiveSupport::Inflector.dasherize(self) end

- See on GitHub + 🔎 See on GitHub
@@ -688,7 +678,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/string/inflections.rb, line 177
@@ -696,7 +686,7 @@ 

ActiveSupport::Inflector.deconstantize(self) end

- See on GitHub + 🔎 See on GitHub
@@ -733,7 +723,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/string/inflections.rb, line 162
@@ -741,7 +731,7 @@ 

ActiveSupport::Inflector.demodulize(self) end

- See on GitHub + 🔎 See on GitHub
@@ -775,7 +765,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/string/inflections.rb, line 284
@@ -783,7 +773,7 @@ 

ActiveSupport::Inflector.downcase_first(self) end

- See on GitHub + 🔎 See on GitHub
@@ -815,7 +805,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/string/exclude.rb, line 10
@@ -823,7 +813,7 @@ 

!include?(string) end

- See on GitHub + 🔎 See on GitHub
@@ -858,15 +848,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/string/access.rb, line 78
   def first(limit = 1)
-    self[0, limit] || raise(ArgumentError, "negative limit")
+    self[0, limit] || raise(ArgumentError, "negative limit")
   end
- See on GitHub + 🔎 See on GitHub
@@ -900,7 +890,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/string/inflections.rb, line 297
@@ -908,7 +898,7 @@ 

ActiveSupport::Inflector.foreign_key(self, separate_class_name_and_id_with_underscore) end

- See on GitHub + 🔎 See on GitHub
@@ -948,7 +938,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/string/access.rb, line 46
@@ -956,7 +946,7 @@ 

self[position, length] end

- See on GitHub + 🔎 See on GitHub
@@ -983,7 +973,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/string/output_safety.rb, line 232
@@ -991,7 +981,7 @@ 

ActiveSupport::SafeBuffer.new(self) end

- See on GitHub + 🔎 See on GitHub
@@ -1031,7 +1021,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/string/inflections.rb, line 262
@@ -1039,7 +1029,7 @@ 

ActiveSupport::Inflector.humanize(self, capitalize: capitalize, keep_id_suffix: keep_id_suffix) end

- See on GitHub + 🔎 See on GitHub
@@ -1066,7 +1056,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/string/zones.rb, line 9
@@ -1078,7 +1068,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -1131,7 +1121,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/string/indent.rb, line 42
@@ -1139,7 +1129,7 @@ 

dup.tap { |_| _.indent!(amount, indent_string, indent_empty_lines) } end

- See on GitHub + 🔎 See on GitHub
@@ -1168,17 +1158,17 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/string/indent.rb, line 7
   def indent!(amount, indent_string = nil, indent_empty_lines = false)
-    indent_string = indent_string || self[/^[ \t]/] || " "
+    indent_string = indent_string || self[/^[ \t]/] || " "
     re = indent_empty_lines ? /^/ : /^(?!$)/
     gsub!(re, indent_string * amount)
   end
- See on GitHub + 🔎 See on GitHub
@@ -1210,7 +1200,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/string/inquiry.rb, line 13
@@ -1218,7 +1208,7 @@ 

ActiveSupport::StringInquirer.new(self) end

- See on GitHub + 🔎 See on GitHub
@@ -1252,7 +1242,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/string/multibyte.rb, line 48
@@ -1267,7 +1257,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -1302,15 +1292,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/string/access.rb, line 92
   def last(limit = 1)
-    self[[length - limit, 0].max, limit] || raise(ArgumentError, "negative limit")
+    self[[length - limit, 0].max, limit] || raise(ArgumentError, "negative limit")
   end
- See on GitHub + 🔎 See on GitHub
@@ -1364,7 +1354,7 @@

Interoperabi
- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/string/multibyte.rb, line 37
@@ -1372,7 +1362,7 @@ 

Interoperabi ActiveSupport::Multibyte.proxy_class.new(self) end

- See on GitHub + 🔎 See on GitHub
@@ -1431,15 +1421,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/string/inflections.rb, line 215
-  def parameterize(separator: "-", preserve_case: false, locale: nil)
+  def parameterize(separator: "-", preserve_case: false, locale: nil)
     ActiveSupport::Inflector.parameterize(self, separator: separator, preserve_case: preserve_case, locale: locale)
   end
- See on GitHub + 🔎 See on GitHub
@@ -1484,7 +1474,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/string/inflections.rb, line 35
@@ -1497,7 +1487,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -1530,7 +1520,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/string/filters.rb, line 32
@@ -1538,7 +1528,7 @@ 

dup.remove!(*patterns) end

- See on GitHub + 🔎 See on GitHub
@@ -1570,19 +1560,19 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/string/filters.rb, line 40
   def remove!(*patterns)
     patterns.each do |pattern|
-      gsub! pattern, ""
+      gsub! pattern, ""
     end
 
     self
   end
- See on GitHub + 🔎 See on GitHub
@@ -1616,7 +1606,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/string/inflections.rb, line 86
@@ -1624,7 +1614,7 @@ 

ActiveSupport::Inflector.safe_constantize(self) end

- See on GitHub + 🔎 See on GitHub
@@ -1664,7 +1654,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/string/inflections.rb, line 60
@@ -1672,7 +1662,7 @@ 

ActiveSupport::Inflector.singularize(self, locale) end

- See on GitHub + 🔎 See on GitHub
@@ -1706,7 +1696,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/string/filters.rb, line 13
@@ -1714,7 +1704,7 @@ 

dup.squish! end

- See on GitHub + 🔎 See on GitHub
@@ -1746,17 +1736,17 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/string/filters.rb, line 21
   def squish!
-    gsub!(/[[:space:]]+/, " ")
+    gsub!(/[[:space:]]+/, " ")
     strip!
     self
   end
- See on GitHub + 🔎 See on GitHub
@@ -1800,17 +1790,17 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/string/strip.rb, line 22
   def strip_heredoc
-    gsub(/^#{scan(/^[ \t]*(?=\S)/).min}/, "").tap do |stripped|
+    gsub(/^#{scan(/^[ \t]*(?=\S)/).min}/, "").tap do |stripped|
       stripped.freeze if frozen?
     end
   end
- See on GitHub + 🔎 See on GitHub
@@ -1844,7 +1834,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/string/inflections.rb, line 227
@@ -1852,7 +1842,7 @@ 

ActiveSupport::Inflector.tableize(self) end

- See on GitHub + 🔎 See on GitHub
@@ -1917,7 +1907,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/string/inflections.rb, line 126
@@ -1925,7 +1915,7 @@ 

ActiveSupport::Inflector.titleize(self, keep_id_suffix: keep_id_suffix) end

- See on GitHub + 🔎 See on GitHub
@@ -1965,16 +1955,16 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/string/access.rb, line 63
   def to(position)
-    position += size if position < 0
-    self[0, position + 1] || +""
+    position += size if position < 0
+    self[0, position + 1] || +""
   end
- See on GitHub + 🔎 See on GitHub
@@ -2007,7 +1997,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/string/conversions.rb, line 47
@@ -2015,7 +2005,7 @@ 

::Date.parse(self, false) unless blank? end

- See on GitHub + 🔎 See on GitHub
@@ -2048,7 +2038,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/string/conversions.rb, line 57
@@ -2056,7 +2046,7 @@ 

::DateTime.parse(self, false) unless blank? end

- See on GitHub + 🔎 See on GitHub
@@ -2094,14 +2084,14 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/string/conversions.rb, line 22
   def to_time(form = :local)
     parts = Date._parse(self, false)
     used_keys = %i(year mon mday hour min sec sec_fraction offset)
-    return if (parts.keys & used_keys).empty?
+    return if (parts.keys & used_keys).empty?
 
     now = Time.now
     time = Time.new(
@@ -2117,7 +2107,7 @@ 

form == :utc ? time.utc : time.to_time end

- See on GitHub + 🔎 See on GitHub
@@ -2166,14 +2156,14 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/string/filters.rb, line 70
   def truncate(truncate_to, options = {})
-    return dup unless length > truncate_to
+    return dup unless length > truncate_to
 
-    omission = options[:omission] || "..."
+    omission = options[:omission] || "..."
     length_with_room_for_omission = truncate_to - omission.length
     stop = \
       if options[:separator]
@@ -2182,10 +2172,10 @@ 

length_with_room_for_omission end - +"#{self[0, stop]}#{omission}" + +"#{self[0, stop]}#{omission}" end

- See on GitHub + 🔎 See on GitHub
@@ -2224,18 +2214,18 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/string/filters.rb, line 101
-  def truncate_bytes(truncate_to, omission: "…")
-    omission ||= ""
+  def truncate_bytes(truncate_to, omission: "…")
+    omission ||= ""
 
     case
-    when bytesize <= truncate_to
+    when bytesize <= truncate_to
       dup
-    when omission.bytesize > truncate_to
-      raise ArgumentError, "Omission #{omission.inspect} is #{omission.bytesize}, larger than the truncation length of #{truncate_to} bytes"
+    when omission.bytesize > truncate_to
+      raise ArgumentError, "Omission #{omission.inspect} is #{omission.bytesize}, larger than the truncation length of #{truncate_to} bytes"
     when omission.bytesize == truncate_to
       omission.dup
     else
@@ -2243,19 +2233,19 @@ 

cut_at = truncate_to - omission.bytesize each_grapheme_cluster do |grapheme| - if cut.bytesize + grapheme.bytesize <= cut_at - cut << grapheme + if cut.bytesize + grapheme.bytesize <= cut_at + cut << grapheme else break end end - cut << omission + cut << omission end end end

- See on GitHub + 🔎 See on GitHub
@@ -2298,21 +2288,21 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/string/filters.rb, line 142
   def truncate_words(words_count, options = {})
     sep = options[:separator] || /\s+/
     sep = Regexp.escape(sep.to_s) unless Regexp === sep
-    if self =~ /\A((?>.+?#{sep}){#{words_count - 1}}.+?)#{sep}.*/m
-      $1 + (options[:omission] || "...")
+    if self =~ /\A((?>.+?#{sep}){#{words_count - 1}}.+?)#{sep}.*/m
+      $1 + (options[:omission] || "...")
     else
       dup
     end
   end
- See on GitHub + 🔎 See on GitHub
@@ -2347,7 +2337,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/string/inflections.rb, line 139
@@ -2355,7 +2345,7 @@ 

ActiveSupport::Inflector.underscore(self) end

- See on GitHub + 🔎 See on GitHub
@@ -2389,7 +2379,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/string/inflections.rb, line 273
@@ -2397,7 +2387,7 @@ 

ActiveSupport::Inflector.upcase_first(self) end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/Time.html b/src/classes/Time.html index be5c3d03bc..b5a49109c1 100644 --- a/src/classes/Time.html +++ b/src/classes/Time.html @@ -361,11 +361,6 @@

Constants

[nil, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31] - -   - - - DATE_FORMATS @@ -391,11 +386,6 @@

Constants

} - -   - - - @@ -441,15 +431,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/time/calculations.rb, line 18
     def ===(other)
-      super || (self == Time && other.is_a?(ActiveSupport::TimeWithZone))
+      super || (self == Time && other.is_a?(ActiveSupport::TimeWithZone))
     end
- See on GitHub + 🔎 See on GitHub
@@ -509,7 +499,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/time/calculations.rb, line 45
@@ -528,7 +518,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -580,7 +570,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/time/calculations.rb, line 39
@@ -588,7 +578,7 @@ 

::Time.zone ? ::Time.zone.now : ::Time.now end

- See on GitHub + 🔎 See on GitHub
@@ -615,19 +605,19 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/time/calculations.rb, line 24
     def days_in_month(month, year = current.year)
-      if month == 2 && ::Date.gregorian_leap?(year)
+      if month == 2 && ::Date.gregorian_leap?(year)
         29
       else
         COMMON_YEAR_DAYS_IN_MONTH[month]
       end
     end
- See on GitHub + 🔎 See on GitHub
@@ -654,7 +644,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/time/calculations.rb, line 34
@@ -662,7 +652,7 @@ 

days_in_month(2, year) + 337 end

- See on GitHub + 🔎 See on GitHub
@@ -693,7 +683,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/time/zones.rb, line 93
@@ -701,7 +691,7 @@ 

find_zone!(time_zone) rescue nil end

- See on GitHub + 🔎 See on GitHub
@@ -736,17 +726,17 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/time/zones.rb, line 81
     def find_zone!(time_zone)
       return time_zone unless time_zone
 
-      ActiveSupport::TimeZone[time_zone] || raise(ArgumentError, "Invalid Timezone: #{time_zone}")
+      ActiveSupport::TimeZone[time_zone] || raise(ArgumentError, "Invalid Timezone: #{time_zone}")
     end
- See on GitHub + 🔎 See on GitHub
@@ -781,14 +771,14 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/time/calculations.rb, line 69
     def rfc3339(str)
       parts = Date._rfc3339(str)
 
-      raise ArgumentError, "invalid date" if parts.empty?
+      raise ArgumentError, "invalid date" if parts.empty?
 
       Time.new(
         parts.fetch(:year),
@@ -801,7 +791,7 @@ 

) end

- See on GitHub + 🔎 See on GitHub
@@ -840,7 +830,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/time/zones.rb, line 61
@@ -854,7 +844,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -881,7 +871,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/time/zones.rb, line 14
@@ -889,7 +879,7 @@ 

::ActiveSupport::IsolatedExecutionState[:time_zone] || zone_default end

- See on GitHub + 🔎 See on GitHub
@@ -942,7 +932,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/time/zones.rb, line 41
@@ -950,7 +940,7 @@ 

::ActiveSupport::IsolatedExecutionState[:time_zone] = find_zone!(time_zone) end

- See on GitHub + 🔎 See on GitHub
@@ -1039,7 +1029,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/time/acts_like.rb, line 7
@@ -1047,7 +1037,7 @@ 

true end

- See on GitHub + 🔎 See on GitHub
@@ -1083,7 +1073,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/time/calculations.rb, line 202
@@ -1112,7 +1102,7 @@ 

end end

- See on GitHub + 🔎 See on GitHub
@@ -1139,7 +1129,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/time/calculations.rb, line 228
@@ -1147,7 +1137,7 @@ 

since(-seconds) end

- See on GitHub + 🔎 See on GitHub
@@ -1428,7 +1418,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/time/calculations.rb, line 241
@@ -1436,7 +1426,7 @@ 

change(hour: 0) end

- See on GitHub + 🔎 See on GitHub
@@ -1467,7 +1457,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/time/calculations.rb, line 270
@@ -1475,7 +1465,7 @@ 

change(min: 0) end

- See on GitHub + 🔎 See on GitHub
@@ -1506,7 +1496,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/time/calculations.rb, line 286
@@ -1514,7 +1504,7 @@ 

change(sec: 0) end

- See on GitHub + 🔎 See on GitHub
@@ -1541,7 +1531,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/time/calculations.rb, line 121
@@ -1549,7 +1539,7 @@ 

change(nsec: 0) + subsec.ceil(precision) end

- See on GitHub + 🔎 See on GitHub
@@ -1581,7 +1571,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/time/calculations.rb, line 138
@@ -1595,13 +1585,13 @@ 

new_offset = options.fetch(:offset, nil) if new_nsec = options[:nsec] - raise ArgumentError, "Can't change both :nsec and :usec at the same time: #{options.inspect}" if options[:usec] + raise ArgumentError, "Can't change both :nsec and :usec at the same time: #{options.inspect}" if options[:usec] new_usec = Rational(new_nsec, 1000) else new_usec = options.fetch(:usec, (options[:hour] || options[:min] || options[:sec]) ? 0 : Rational(nsec, 1000)) end - raise ArgumentError, "argument out of range" if new_usec >= 1000000 + raise ArgumentError, "argument out of range" if new_usec >= 1000000 new_sec += Rational(new_usec, 1000000) @@ -1609,20 +1599,20 @@

::Time.new(new_year, new_month, new_day, new_hour, new_min, new_sec, new_offset) elsif utc? ::Time.utc(new_year, new_month, new_day, new_hour, new_min, new_sec) - elsif zone&.respond_to?(:utc_to_local) + elsif zone&.respond_to?(:utc_to_local) new_time = ::Time.new(new_year, new_month, new_day, new_hour, new_min, new_sec, zone) # When there are two occurrences of a nominal time due to DST ending, # `Time.new` chooses the first chronological occurrence (the one with a # larger UTC offset). However, for `change`, we want to choose the - # occurrence that matches this time's UTC offset. + # occurrence that matches this time's UTC offset. # - # If the new time's UTC offset is larger than this time's UTC offset, the + # If the new time's UTC offset is larger than this time's UTC offset, the # new time might be a first chronological occurrence. So we add the offset # difference to fast-forward the new time, and check if the result has the # desired UTC offset (i.e. is the second chronological occurrence). offset_difference = new_time.utc_offset - utc_offset - if offset_difference > 0 && (new_time_2 = new_time + offset_difference).utc_offset == utc_offset + if offset_difference > 0 && (new_time_2 = new_time + offset_difference).utc_offset == utc_offset new_time_2 else new_time @@ -1634,7 +1624,7 @@

end end

- See on GitHub + 🔎 See on GitHub
@@ -1665,22 +1655,22 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/time/calculations.rb, line 332
   def compare_with_coercion(other)
-    # we're avoiding Time#to_datetime and Time#to_time because they're expensive
+    # we're avoiding Time#to_datetime and Time#to_time because they're expensive
     if other.class == Time
       compare_without_coercion(other)
     elsif other.is_a?(Time)
       compare_without_coercion(other.to_time)
     else
-      to_datetime <=> other
+      to_datetime <=> other
     end
   end
- See on GitHub + 🔎 See on GitHub
@@ -1736,7 +1726,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/time/calculations.rb, line 259
@@ -1749,7 +1739,7 @@ 

) end

- See on GitHub + 🔎 See on GitHub
@@ -1780,7 +1770,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/time/calculations.rb, line 276
@@ -1792,7 +1782,7 @@ 

) end

- See on GitHub + 🔎 See on GitHub
@@ -1823,7 +1813,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/time/calculations.rb, line 292
@@ -1834,7 +1824,7 @@ 

) end

- See on GitHub + 🔎 See on GitHub
@@ -1894,7 +1884,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/time/calculations.rb, line 347
@@ -1904,7 +1894,7 @@ 

eql_without_coercion(other) end

- See on GitHub + 🔎 See on GitHub
@@ -1956,7 +1946,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/time/calculations.rb, line 112
@@ -1964,7 +1954,7 @@ 

change(nsec: 0) + subsec.floor(precision) end

- See on GitHub + 🔎 See on GitHub
@@ -1995,15 +1985,15 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/time/conversions.rb, line 69
   def formatted_offset(colon = true, alternate_utc_string = nil)
-    utc? && alternate_utc_string || ActiveSupport::TimeZone.seconds_to_utc_offset(utc_offset, colon)
+    utc? && alternate_utc_string || ActiveSupport::TimeZone.seconds_to_utc_offset(utc_offset, colon)
   end
- See on GitHub + 🔎 See on GitHub
@@ -2084,7 +2074,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/time/calculations.rb, line 249
@@ -2092,7 +2082,7 @@ 

change(hour: 12) end

- See on GitHub + 🔎 See on GitHub
@@ -2148,7 +2138,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/time/calculations.rb, line 323
@@ -2157,7 +2147,7 @@ 

other.is_a?(DateTime) ? to_f - other.to_f : minus_without_coercion(other) end

- See on GitHub + 🔎 See on GitHub
@@ -2234,7 +2224,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/time/calculations.rb, line 361
@@ -2242,7 +2232,7 @@ 

advance(days: days) end

- See on GitHub + 🔎 See on GitHub
@@ -2269,7 +2259,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/time/calculations.rb, line 371
@@ -2277,7 +2267,7 @@ 

advance(months: months) end

- See on GitHub + 🔎 See on GitHub
@@ -2304,7 +2294,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/time/calculations.rb, line 381
@@ -2312,7 +2302,7 @@ 

advance(years: years) end

- See on GitHub + 🔎 See on GitHub
@@ -2364,7 +2354,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/time/calculations.rb, line 356
@@ -2372,7 +2362,7 @@ 

advance(days: -days) end

- See on GitHub + 🔎 See on GitHub
@@ -2399,7 +2389,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/time/calculations.rb, line 366
@@ -2407,7 +2397,7 @@ 

advance(months: -months) end

- See on GitHub + 🔎 See on GitHub
@@ -2434,7 +2424,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/time/calculations.rb, line 376
@@ -2442,7 +2432,7 @@ 

advance(years: -years) end

- See on GitHub + 🔎 See on GitHub
@@ -2472,7 +2462,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/time/calculations.rb, line 107
@@ -2480,7 +2470,7 @@ 

subsec end

- See on GitHub + 🔎 See on GitHub
@@ -2512,7 +2502,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/time/calculations.rb, line 91
@@ -2520,7 +2510,7 @@ 

to_i - change(hour: 0).to_i + (usec / 1.0e+6) end

- See on GitHub + 🔎 See on GitHub
@@ -2552,7 +2542,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/time/calculations.rb, line 100
@@ -2560,7 +2550,7 @@ 

end_of_day.to_i - to_i end

- See on GitHub + 🔎 See on GitHub
@@ -2591,7 +2581,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/time/calculations.rb, line 233
@@ -2601,7 +2591,7 @@ 

to_datetime.since(seconds) end

- See on GitHub + 🔎 See on GitHub
@@ -2682,7 +2672,7 @@

Adding your
- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/time/conversions.rb, line 53
@@ -2694,7 +2684,7 @@ 

Adding your end end

- See on GitHub + 🔎 See on GitHub
@@ -2721,7 +2711,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/time/compatibility.rb, line 13
@@ -2729,7 +2719,7 @@ 

preserve_timezone ? self : getlocal end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/TrueClass.html b/src/classes/TrueClass.html index b61637ff55..de2eaca3be 100644 --- a/src/classes/TrueClass.html +++ b/src/classes/TrueClass.html @@ -97,7 +97,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/object/blank.rb, line 78
@@ -105,7 +105,7 @@ 

false end

- See on GitHub + 🔎 See on GitHub
@@ -132,7 +132,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/object/to_query.rb, line 27
@@ -140,7 +140,7 @@ 

self end

- See on GitHub + 🔎 See on GitHub
diff --git a/src/classes/UnboundMethod.html b/src/classes/UnboundMethod.html index 9a9ce76fed..3e2f833b4b 100644 --- a/src/classes/UnboundMethod.html +++ b/src/classes/UnboundMethod.html @@ -88,7 +88,7 @@

- Source code + 📝 Source code
# File activesupport/lib/active_support/core_ext/object/duplicable.rb, line 46
@@ -96,7 +96,7 @@ 

false end

- See on GitHub + 🔎 See on GitHub