Sha256: ff1b661c5e08e3a511e3d25c6d4b3950e1bc8631a0b474e81073a5020e58622a

Contents?: true

Size: 482 Bytes

Versions: 82

Compression:

Stored size: 482 Bytes

Contents

# frozen_string_literal: true

if Rails::VERSION::MAJOR == 5 && Rails::VERSION::MINOR <= 1
  default_deprecation_behaviours = ActiveSupport::Deprecation.behavior
  ActiveSupport::Deprecation.behavior = lambda do |message, callstack|
    unless callstack.find { |l| l.path =~ %r{gems/friendly_id} } &&
           message =~ /The behavior of .* inside of after callbacks will be changing/
      default_deprecation_behaviours.each { |b| b.call(message, callstack) }
    end
  end
end

Version data entries

82 entries across 82 versions & 1 rubygems

Version Path
blacklight-spotlight-5.0.0.pre.alpha3 spec/support/disable_friendly_id_deprecation_warnings.rb
blacklight-spotlight-5.0.0.pre.alpha2 spec/support/disable_friendly_id_deprecation_warnings.rb
blacklight-spotlight-5.0.0.pre.alpha1 spec/support/disable_friendly_id_deprecation_warnings.rb
blacklight-spotlight-4.7.1 spec/support/disable_friendly_id_deprecation_warnings.rb
blacklight-spotlight-4.7.0 spec/support/disable_friendly_id_deprecation_warnings.rb
blacklight-spotlight-4.6.1 spec/support/disable_friendly_id_deprecation_warnings.rb
blacklight-spotlight-4.6.0 spec/support/disable_friendly_id_deprecation_warnings.rb
blacklight-spotlight-4.5.0 spec/support/disable_friendly_id_deprecation_warnings.rb
blacklight-spotlight-4.4.0 spec/support/disable_friendly_id_deprecation_warnings.rb
blacklight-spotlight-4.3.6 spec/support/disable_friendly_id_deprecation_warnings.rb
blacklight-spotlight-4.3.5 spec/support/disable_friendly_id_deprecation_warnings.rb
blacklight-spotlight-4.3.4 spec/support/disable_friendly_id_deprecation_warnings.rb
blacklight-spotlight-4.3.3 spec/support/disable_friendly_id_deprecation_warnings.rb
blacklight-spotlight-4.3.2 spec/support/disable_friendly_id_deprecation_warnings.rb
blacklight-spotlight-4.3.1 spec/support/disable_friendly_id_deprecation_warnings.rb
blacklight-spotlight-4.3.0 spec/support/disable_friendly_id_deprecation_warnings.rb
blacklight-spotlight-4.2.0 spec/support/disable_friendly_id_deprecation_warnings.rb
blacklight-spotlight-4.1.2 spec/support/disable_friendly_id_deprecation_warnings.rb
blacklight-spotlight-4.1.1 spec/support/disable_friendly_id_deprecation_warnings.rb
blacklight-spotlight-4.1.0 spec/support/disable_friendly_id_deprecation_warnings.rb