Sha256: 30e359e2eefdc87f9b7d9d9b4463b36c1b7ead791cd1455effa24807553ef415

Contents?: true

Size: 451 Bytes

Versions: 18

Compression:

Stored size: 451 Bytes

Contents

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

18 entries across 18 versions & 1 rubygems

Version Path
blacklight-spotlight-2.4.1 spec/support/disable_friendly_id_deprecation_warnings.rb
blacklight-spotlight-2.4.0 spec/support/disable_friendly_id_deprecation_warnings.rb
blacklight-spotlight-2.3.3 spec/support/disable_friendly_id_deprecation_warnings.rb
blacklight-spotlight-2.3.2 spec/support/disable_friendly_id_deprecation_warnings.rb
blacklight-spotlight-2.3.1 spec/support/disable_friendly_id_deprecation_warnings.rb
blacklight-spotlight-2.3.0 spec/support/disable_friendly_id_deprecation_warnings.rb
blacklight-spotlight-2.2.1 spec/support/disable_friendly_id_deprecation_warnings.rb
blacklight-spotlight-2.2.0 spec/support/disable_friendly_id_deprecation_warnings.rb
blacklight-spotlight-2.1.0 spec/support/disable_friendly_id_deprecation_warnings.rb
blacklight-spotlight-2.0.2 spec/support/disable_friendly_id_deprecation_warnings.rb
blacklight-spotlight-2.0.1 spec/support/disable_friendly_id_deprecation_warnings.rb
blacklight-spotlight-2.0.0 spec/support/disable_friendly_id_deprecation_warnings.rb
blacklight-spotlight-2.0.0.rc6 spec/support/disable_friendly_id_deprecation_warnings.rb
blacklight-spotlight-2.0.0.rc5 spec/support/disable_friendly_id_deprecation_warnings.rb
blacklight-spotlight-2.0.0.rc4 spec/support/disable_friendly_id_deprecation_warnings.rb
blacklight-spotlight-2.0.0.rc3 spec/support/disable_friendly_id_deprecation_warnings.rb
blacklight-spotlight-2.0.0.rc2 spec/support/disable_friendly_id_deprecation_warnings.rb
blacklight-spotlight-2.0.0.rc1 spec/support/disable_friendly_id_deprecation_warnings.rb