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