SyborgStudios/overrides-example-app

at: Github

Badge

Recent builds

Provider Branch Name Updated at #Overrides || #Added methods Actions
1c10aa452 upgrade-ordinary_gem connect to next version of ordinary_gem 08 Jan 20:24 8 | 38 || 8 Show Compare
1bd2dc311 main Add upgrade-ordinary_gem branch to actions 08 Jan 20:22 12 | 38 || 4 Show Compare
99991dfb1 main connect to main branch of ordinary gem 08 Jan 20:19 12 | 38 || 4 Show Compare
Provider : 1c10aa452
Branch : upgrade-ordinary_gem
Name : connect to next version of ordinary_gem
Updated at : 08 Jan 20:24
#Overrides || #Added methods : 8 | 38 || 8
Provider : 1bd2dc311
Branch : main
Name : Add upgrade-ordinary_gem branch to actions
Updated at : 08 Jan 20:22
#Overrides || #Added methods : 12 | 38 || 4
Provider : 99991dfb1
Branch : main
Name : connect to main branch of ordinary gem
Updated at : 08 Jan 20:19
#Overrides || #Added methods : 12 | 38 || 4

Latest main or latest build

Commit subject: main/Add upgrade-ordinary_gem branch to actions

Commit hash: 1bd2dc311d79d3af9b6b6d5c955f67ce8ade895a
Author name Simon Meyborg
Committer name GitHub
View on Github

Compare with prior build

Results:

# Overrides: 12 | 38
# Added methods to classes: 4


Investigated:

# Classes: 1529
# Methods: 14111

Date#-

Override

BUNDLE_PATH/gems/activesupport-7.0.4/lib/active_support/core_ext/date/calculations.rb:100

def minus_with_duration(other) # :nodoc:
  if ActiveSupport::Duration === other
    plus_with_duration(-other)
  else
    minus_without_duration(other)
  end
end


Date#+

Override

BUNDLE_PATH/gems/activesupport-7.0.4/lib/active_support/core_ext/date/calculations.rb:90

def plus_with_duration(other) # :nodoc:
  if ActiveSupport::Duration === other
    other.since(self)
  else
    plus_without_duration(other)
  end
end


Date#to_time

Override

BUNDLE_PATH/gems/activesupport-7.0.4/lib/active_support/core_ext/date/conversions.rb:82

def to_time(form = :local)
  raise ArgumentError, "Expected :local or :utc, got #{form.inspect}." unless [:local, :utc].include?(form)
  ::Time.public_send(form, year, month, day)
end


Date#<=>

Override

BUNDLE_PATH/gems/activesupport-7.0.4/lib/active_support/core_ext/date/calculations.rb:137

def compare_with_coercion(other)
  if other.is_a?(Time)
    to_datetime <=> other
  else
    compare_without_coercion(other)
  end
end


Date#xmlschema

Override

BUNDLE_PATH/gems/activesupport-7.0.4/lib/active_support/core_ext/date/conversions.rb:94

def xmlschema
  in_time_zone.xmlschema
end


Date#inspect

Override

BUNDLE_PATH/gems/activesupport-7.0.4/lib/active_support/core_ext/date/conversions.rb:62

def readable_inspect
  strftime("%a, %d %b %Y")
end


Rails::Application#assets

Original source

BUNDLE_PATH/gems/railties-7.0.4/lib/rails/application.rb:97

attr_accessor :assets, :sandbox

Override

BUNDLE_PATH/gems/sprockets-rails-3.4.2/lib/sprockets/railtie.rb:30

attr_accessor :assets


Rails::Application#assets=

Original source

BUNDLE_PATH/gems/railties-7.0.4/lib/rails/application.rb:97

attr_accessor :assets, :sandbox

Override

BUNDLE_PATH/gems/sprockets-rails-3.4.2/lib/sprockets/railtie.rb:30

attr_accessor :assets


BigDecimal#to_s

Override

BUNDLE_PATH/gems/activesupport-7.0.4/lib/active_support/core_ext/big_decimal/conversions.rb:8

def to_s(format = "F")
  super(format)
end


DateTime#to_time

Override

BUNDLE_PATH/gems/activesupport-7.0.4/lib/active_support/core_ext/date_time/compatibility.rb:15

def to_time
  preserve_timezone ? getlocal(utc_offset) : getlocal
end


Time#formatted_offset

Original source

BUNDLE_PATH/gems/activesupport-7.0.4/lib/active_support/time_with_zone.rb:135

def formatted_offset(colon = true, alternate_utc_string = nil)
  utc? && alternate_utc_string || TimeZone.seconds_to_utc_offset(utc_offset, colon)
end

Override

BUNDLE_PATH/gems/activesupport-7.0.4/lib/active_support/core_ext/time/conversions.rb:69

def formatted_offset(colon = true, alternate_utc_string = nil)
  utc? && alternate_utc_string || ActiveSupport::TimeZone.seconds_to_utc_offset(utc_offset, colon)
end


Time#since

Original source

BUNDLE_PATH/gems/activesupport-7.0.4/lib/active_support/time_with_zone.rb:328

def +(other)
  if duration_of_variable_length?(other)
    method_missing(:+, other)
  else
    result = utc.acts_like?(:date) ? utc.since(other) : utc + other rescue utc.since(other)
    result.in_time_zone(time_zone)
  end
end

Override

BUNDLE_PATH/gems/activesupport-7.0.4/lib/active_support/core_ext/time/calculations.rb:213

def since(seconds)
  self + seconds
rescue
  to_datetime.since(seconds)
end


Time#ago

Original source

BUNDLE_PATH/gems/activesupport-7.0.4/lib/active_support/time_with_zone.rb:390

def ago(other)
  since(-other)
end

Override

BUNDLE_PATH/gems/activesupport-7.0.4/lib/active_support/core_ext/time/calculations.rb:208

def ago(seconds)
  since(-seconds)
end


Time#change

Original source

BUNDLE_PATH/gems/activesupport-7.0.4/lib/active_support/time_with_zone.rb:411

def change(options)
  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)

  if options[:zone]
    new_zone = ::Time.find_zone(options[:zone])
  elsif options[:offset]
    new_zone = ::Time.find_zone(new_time.utc_offset)
  end

  new_zone ||= time_zone
  periods = new_zone.periods_for_local(new_time)

  self.class.new(nil, new_zone, new_time, periods.include?(period) ? period : nil)
end

Override

BUNDLE_PATH/gems/activesupport-7.0.4/lib/active_support/core_ext/time/calculations.rb:138

def change(options)
  new_year   = options.fetch(:year, year)
  new_month  = options.fetch(:month, month)
  new_day    = options.fetch(:day, day)
  new_hour   = options.fetch(:hour, hour)
  new_min    = options.fetch(:min, options[:hour] ? 0 : min)
  new_sec    = options.fetch(:sec, (options[:hour] || options[:min]) ? 0 : sec)
  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]
    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

  new_sec += Rational(new_usec, 1000000)

  if new_offset
    ::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)
    ::Time.new(new_year, new_month, new_day, new_hour, new_min, new_sec, zone)
  elsif zone
    ::Time.local(new_year, new_month, new_day, new_hour, new_min, new_sec)
  else
    ::Time.new(new_year, new_month, new_day, new_hour, new_min, new_sec, utc_offset)
  end
end


Time#as_json

Original source

BUNDLE_PATH/gems/activesupport-7.0.4/lib/active_support/time_with_zone.rb:176

def as_json(options = nil)
  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)})
  end
end

Override

BUNDLE_PATH/gems/activesupport-7.0.4/lib/active_support/core_ext/object/json.rb:187

def as_json(options = nil) # :nodoc:
  if ActiveSupport::JSON::Encoding.use_standard_json_time_format
    xmlschema(ActiveSupport::JSON::Encoding.time_precision)
  else
    %(#{strftime("%Y/%m/%d %H:%M:%S")} #{formatted_offset(false)})
  end
end


Time#+

Original source

BUNDLE_PATH/gems/activesupport-7.0.4/lib/active_support/time_with_zone.rb:328

def +(other)
  if duration_of_variable_length?(other)
    method_missing(:+, other)
  else
    result = utc.acts_like?(:date) ? utc.since(other) : utc + other rescue utc.since(other)
    result.in_time_zone(time_zone)
  end
end

Override

BUNDLE_PATH/gems/activesupport-7.0.4/lib/active_support/core_ext/time/calculations.rb:280

def plus_with_duration(other) # :nodoc:
  if ActiveSupport::Duration === other
    other.since(self)
  else
    plus_without_duration(other)
  end
end


Time#-

Original source

BUNDLE_PATH/gems/activesupport-7.0.4/lib/active_support/time_with_zone.rb:362

def -(other)
  if other.acts_like?(:time)
    to_time - other.to_time
  elsif duration_of_variable_length?(other)
    method_missing(:-, other)
  else
    result = utc.acts_like?(:date) ? utc.ago(other) : utc - other rescue utc.ago(other)
    result.in_time_zone(time_zone)
  end
end

Override

BUNDLE_PATH/gems/activesupport-7.0.4/lib/active_support/core_ext/time/calculations.rb:303

def minus_with_coercion(other)
  other = other.comparable_time if other.respond_to?(:comparable_time)
  other.is_a?(DateTime) ? to_f - other.to_f : minus_without_coercion(other)
end


Time#to_time

Original source

BUNDLE_PATH/gems/activesupport-7.0.4/lib/active_support/time_with_zone.rb:514

def to_time
  if preserve_timezone
    @to_time_with_instance_offset ||= getlocal(utc_offset)
  else
    @to_time_with_system_offset ||= getlocal
  end
end

Override

BUNDLE_PATH/gems/activesupport-7.0.4/lib/active_support/core_ext/time/compatibility.rb:13

def to_time
  preserve_timezone ? self : getlocal
end


Time#in

Original source

BUNDLE_PATH/gems/activesupport-7.0.4/lib/active_support/time_with_zone.rb:328

def +(other)
  if duration_of_variable_length?(other)
    method_missing(:+, other)
  else
    result = utc.acts_like?(:date) ? utc.since(other) : utc + other rescue utc.since(other)
    result.in_time_zone(time_zone)
  end
end

Override

BUNDLE_PATH/gems/activesupport-7.0.4/lib/active_support/core_ext/time/calculations.rb:213

def since(seconds)
  self + seconds
rescue
  to_datetime.since(seconds)
end


Time#<=>

Original source

BUNDLE_PATH/gems/activesupport-7.0.4/lib/active_support/time_with_zone.rb:261

def <=>(other)
  utc <=> other
end

Override

BUNDLE_PATH/gems/activesupport-7.0.4/lib/active_support/core_ext/time/calculations.rb:312

def compare_with_coercion(other)
  # 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
  end
end


Time#iso8601

Original source

BUNDLE_PATH/gems/activesupport-7.0.4/lib/active_support/time_with_zone.rb:158

def xmlschema(fraction_digits = 0)
  "#{time.strftime(PRECISIONS[fraction_digits.to_i])}#{formatted_offset(true, 'Z')}"
end

Override

/opt/hostedtoolcache/Ruby/3.1.3/x64/lib/ruby/3.1.0/time.rb:714

def xmlschema(fraction_digits=0)
  fraction_digits = fraction_digits.to_i
  s = strftime("%FT%T")
  if fraction_digits > 0
    s << strftime(".%#{fraction_digits}N")
  end
  s << (utc? ? 'Z' : strftime("%:z"))
end


Time#rfc3339

Original source

BUNDLE_PATH/gems/activesupport-7.0.4/lib/active_support/time_with_zone.rb:158

def xmlschema(fraction_digits = 0)
  "#{time.strftime(PRECISIONS[fraction_digits.to_i])}#{formatted_offset(true, 'Z')}"
end

Override

/opt/hostedtoolcache/Ruby/3.1.3/x64/lib/ruby/3.1.0/time.rb:714

def xmlschema(fraction_digits=0)
  fraction_digits = fraction_digits.to_i
  s = strftime("%FT%T")
  if fraction_digits > 0
    s << strftime(".%#{fraction_digits}N")
  end
  s << (utc? ? 'Z' : strftime("%:z"))
end


Time#xmlschema

Original source

BUNDLE_PATH/gems/activesupport-7.0.4/lib/active_support/time_with_zone.rb:158

def xmlschema(fraction_digits = 0)
  "#{time.strftime(PRECISIONS[fraction_digits.to_i])}#{formatted_offset(true, 'Z')}"
end

Override

/opt/hostedtoolcache/Ruby/3.1.3/x64/lib/ruby/3.1.0/time.rb:714

def xmlschema(fraction_digits=0)
  fraction_digits = fraction_digits.to_i
  s = strftime("%FT%T")
  if fraction_digits > 0
    s << strftime(".%#{fraction_digits}N")
  end
  s << (utc? ? 'Z' : strftime("%:z"))
end


Time#rfc2822

Original source

BUNDLE_PATH/gems/activesupport-7.0.4/lib/active_support/time_with_zone.rb:204

def rfc2822
  to_fs(:rfc822)
end

Override

/opt/hostedtoolcache/Ruby/3.1.3/x64/lib/ruby/3.1.0/time.rb:669

def rfc2822
  strftime('%a, %d %b %Y %T ') << (utc? ? '-0000' : strftime('%z'))
end


Time#rfc822

Original source

BUNDLE_PATH/gems/activesupport-7.0.4/lib/active_support/time_with_zone.rb:204

def rfc2822
  to_fs(:rfc822)
end

Override

/opt/hostedtoolcache/Ruby/3.1.3/x64/lib/ruby/3.1.0/time.rb:669

def rfc2822
  strftime('%a, %d %b %Y %T ') << (utc? ? '-0000' : strftime('%z'))
end


Time#eql?

Original source

BUNDLE_PATH/gems/activesupport-7.0.4/lib/active_support/time_with_zone.rb:304

def eql?(other)
  other.eql?(utc)
end

Override

BUNDLE_PATH/gems/activesupport-7.0.4/lib/active_support/core_ext/time/calculations.rb:327

def eql_with_coercion(other)
  # if other is an ActiveSupport::TimeWithZone, coerce a Time instance from it so we can do eql? comparison
  other = other.comparable_time if other.respond_to?(:comparable_time)
  eql_without_coercion(other)
end


Time#httpdate

Original source

BUNDLE_PATH/gems/activesupport-7.0.4/lib/active_support/time_with_zone.rb:196

def httpdate
  utc.httpdate
end

Override

/opt/hostedtoolcache/Ruby/3.1.3/x64/lib/ruby/3.1.0/time.rb:689

def httpdate
  getutc.strftime('%a, %d %b %Y %T GMT')
end


Time#acts_like_time?

Original source

BUNDLE_PATH/gems/activesupport-7.0.4/lib/active_support/time_with_zone.rb:523

def acts_like_time?
  true
end

Override

BUNDLE_PATH/gems/activesupport-7.0.4/lib/active_support/core_ext/time/acts_like.rb:7

def acts_like_time?
  true
end


Time#to_fs

Original source

BUNDLE_PATH/gems/activesupport-7.0.4/lib/active_support/time_with_zone.rb:241

def to_fs(format = :default)
  if format == :db
    utc.to_fs(format)
  elsif formatter = ::Time::DATE_FORMATS[format]
    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')}"
  end
end

Override

BUNDLE_PATH/gems/activesupport-7.0.4/lib/active_support/core_ext/time/conversions.rb:53

def to_fs(format = :default)
  if formatter = DATE_FORMATS[format]
    formatter.respond_to?(:call) ? formatter.call(self).to_s : strftime(formatter)
  else
    # Change to `to_s` when deprecation is gone. Also deprecate `to_default_s`.
    to_default_s
  end
end


Time#to_formatted_s

Original source

BUNDLE_PATH/gems/activesupport-7.0.4/lib/active_support/time_with_zone.rb:241

def to_fs(format = :default)
  if format == :db
    utc.to_fs(format)
  elsif formatter = ::Time::DATE_FORMATS[format]
    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')}"
  end
end

Override

BUNDLE_PATH/gems/activesupport-7.0.4/lib/active_support/core_ext/time/conversions.rb:53

def to_fs(format = :default)
  if formatter = DATE_FORMATS[format]
    formatter.respond_to?(:call) ? formatter.call(self).to_s : strftime(formatter)
  else
    # Change to `to_s` when deprecation is gone. Also deprecate `to_default_s`.
    to_default_s
  end
end


Time#advance

Original source

BUNDLE_PATH/gems/activesupport-7.0.4/lib/active_support/time_with_zone.rb:451

def advance(options)
  # 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)
  else
    utc.advance(options).in_time_zone(time_zone)
  end
end

Override

BUNDLE_PATH/gems/activesupport-7.0.4/lib/active_support/core_ext/time/calculations.rb:182

def advance(options)
  unless options[:weeks].nil?
    options[:weeks], partial_weeks = options[:weeks].divmod(1)
    options[:days] = options.fetch(:days, 0) + 7 * partial_weeks
  end

  unless options[:days].nil?
    options[:days], partial_days = options[:days].divmod(1)
    options[:hours] = options.fetch(:hours, 0) + 24 * partial_days
  end

  d = to_date.gregorian.advance(options)
  time_advanced_by_date = change(year: d.year, month: d.month, day: d.day)
  seconds_to_advance = \
    options.fetch(:seconds, 0) +
    options.fetch(:minutes, 0) * 60 +
    options.fetch(:hours, 0) * 3600

  if seconds_to_advance.zero?
    time_advanced_by_date
  else
    time_advanced_by_date.since(seconds_to_advance)
  end
end


Time#blank?

Original source

BUNDLE_PATH/gems/activesupport-7.0.4/lib/active_support/time_with_zone.rb:534

def blank?
  false
end

Override

BUNDLE_PATH/gems/activesupport-7.0.4/lib/active_support/core_ext/object/blank.rb:152

def blank?
  false
end


Nokogiri::XML::Node#fragment

Original source

BUNDLE_PATH/gems/nokogiri-1.13.10-x86_64-linux/lib/nokogiri/xml/node.rb:929

def fragment(tags)
  document.related_class("DocumentFragment").new(document, tags, self)
end

Override

BUNDLE_PATH/gems/nokogiri-1.13.10-x86_64-linux/lib/nokogiri/html5/node.rb:67

def fragment(tags)
  return super(tags) unless document.is_a?(HTML5::Document)

  DocumentFragment.new(document, tags, self)
end


Nokogiri::XML::Node#write_to

Original source

BUNDLE_PATH/gems/nokogiri-1.13.10-x86_64-linux/lib/nokogiri/xml/node.rb:1256

def write_to(io, *options)
  options = options.first.is_a?(Hash) ? options.shift : {}
  encoding = options[:encoding] || options[0]
  if Nokogiri.jruby?
    save_options = options[:save_with] || options[1]
    indent_times = options[:indent] || 0
  else
    save_options = options[:save_with] || options[1] || SaveOptions::FORMAT
    indent_times = options[:indent] || 2
  end
  indent_text = options[:indent_text] || " "

  # Any string times 0 returns an empty string. Therefore, use the same
  # string instead of generating a new empty string for every node with
  # zero indentation.
  indentation = indent_times.zero? ? "" : (indent_text * indent_times)

  config = SaveOptions.new(save_options.to_i)
  yield config if block_given?

  native_write_to(io, encoding, indentation, config.options)
end

Override

BUNDLE_PATH/gems/nokogiri-1.13.10-x86_64-linux/lib/nokogiri/html5/node.rb:36

def write_to(io, *options)
  return super(io, *options) unless document.is_a?(HTML5::Document)

  options = options.first.is_a?(Hash) ? options.shift : {}
  encoding = options[:encoding] || options[0]
  if Nokogiri.jruby?
    save_options = options[:save_with] || options[1]
    indent_times = options[:indent] || 0
  else
    save_options = options[:save_with] || options[1] || XML::Node::SaveOptions::FORMAT
    indent_times = options[:indent] || 2
  end
  indent_string = (options[:indent_text] || " ") * indent_times

  config = XML::Node::SaveOptions.new(save_options.to_i)
  yield config if block_given?

  config_options = config.options
  if config_options & (XML::Node::SaveOptions::AS_XML | XML::Node::SaveOptions::AS_XHTML) != 0
    # Use Nokogiri's serializing code.
    native_write_to(io, encoding, indent_string, config_options)
  else
    # Serialize including the current node.
    encoding ||= document.encoding || Encoding::UTF_8
    internal_ops = {
      preserve_newline: options[:preserve_newline] || false,
    }
    HTML5.serialize_node_internal(self, io, encoding, internal_ops)
  end
end


Nokogiri::XML::Node#inner_html

Original source

BUNDLE_PATH/gems/nokogiri-1.13.10-x86_64-linux/lib/nokogiri/xml/node.rb:1102

def inner_html(*args)
  children.map { |x| x.to_html(*args) }.join
end

Override

BUNDLE_PATH/gems/nokogiri-1.13.10-x86_64-linux/lib/nokogiri/html5/node.rb:28

def inner_html(options = {})
  return super(options) unless document.is_a?(HTML5::Document)

  result = options[:preserve_newline] && HTML5.prepend_newline?(self) ? +"\n" : +""
  result << children.map { |child| child.to_html(options) }.join
  result
end


Reline::LineEditor#reset

Original source

BUNDLE_PATH/gems/reline-0.3.2/lib/reline/line_editor.rb:149

def reset(prompt = '', encoding:)
  @rest_height = (Reline::IOGate.get_screen_size.first - 1) - Reline::IOGate.cursor_pos.y
  @screen_size = Reline::IOGate.get_screen_size
  @screen_height = @screen_size.first
  reset_variables(prompt, encoding: encoding)
  Reline::IOGate.set_winch_handler do
    @resized = true
  end
  if ENV.key?('RELINE_ALT_SCROLLBAR')
    @full_block = '::'
    @upper_half_block = "''"
    @lower_half_block = '..'
    @block_elem_width = 2
  elsif Reline::IOGate.win?
    @full_block = '█'
    @upper_half_block = '▀'
    @lower_half_block = '▄'
    @block_elem_width = 1
  elsif @encoding == Encoding::UTF_8
    @full_block = '█'
    @upper_half_block = '▀'
    @lower_half_block = '▄'
    @block_elem_width = Reline::Unicode.calculate_width('█')
  else
    @full_block = '::'
    @upper_half_block = "''"
    @lower_half_block = '..'
    @block_elem_width = 2
  end
end

Override

BUNDLE_PATH/gems/debug-1.7.1/lib/debug/console.rb:25

def reset(prompt = '', encoding:)
  super
  Signal.trap(:SIGWINCH, nil)
end


ActionDispatch::Request#reset_session

Original source

BUNDLE_PATH/gems/actionpack-7.0.4/lib/action_dispatch/http/request.rb:359

def reset_session
  session.destroy
end

Override

BUNDLE_PATH/gems/actionpack-7.0.4/lib/action_dispatch/middleware/flash.rb:75

def reset_session # :nodoc:
  super
  self.flash = nil
end


ActionDispatch::Request#commit_flash

Original source

BUNDLE_PATH/gems/actionpack-7.0.4/lib/action_dispatch/http/request.rb:425

def commit_flash
end

Override

BUNDLE_PATH/gems/actionpack-7.0.4/lib/action_dispatch/middleware/flash.rb:62

def commit_flash # :nodoc:
  return unless session.enabled?

  if flash_hash && (flash_hash.present? || session.key?("flash"))
    session["flash"] = flash_hash.to_session_value
    self.flash = flash_hash.dup
  end

  if session.loaded? && session.key?("flash") && session["flash"].nil?
    session.delete("flash")
  end
end


We need to use cookies in order for you to log in to Overrides.io. By continuing to use the website you agree to the use of cookies. If you would like to know more about how we use your information, we recommend that you read our privacy policy.