Sha256: dbfa6136a392d05b148fa82610e65e936604c1bf61874c69354e2b0df0f3603f

Contents?: true

Size: 503 Bytes

Versions: 2

Compression:

Stored size: 503 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
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
uncruft-0.5.0 lib/uncruft/railtie.rb
uncruft-0.4.0 lib/uncruft/railtie.rb