Sha256: e8f359aced4664d4cd06ad9b26f24049047a969a4bb0b45967213b510fac44bc
Contents?: true
Size: 687 Bytes
Versions: 2
Compression:
Stored size: 687 Bytes
Contents
# frozen_string_literal: true require 'rails' module Uncruft class Railtie < ::Rails::Railtie if Rails.env.test? || Rails.env.development? initializer 'uncruft.deprecation_handler', before: 'active_support.deprecation_behavior' do strategies = [config.active_support.deprecation].flatten(1).compact strategies.reject! { |s| s == :stderr } strategies.unshift(DeprecationHandler.new) config.active_support.deprecation = strategies end if Rails.gem_version >= Gem::Version.new('7.1') initializer "uncruft.deprecator" do |app| app.deprecators[:uncruft] = Uncruft.deprecator end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
uncruft-0.7.0 | lib/uncruft/railtie.rb |
uncruft-0.6.2 | lib/uncruft/railtie.rb |