Sha256: 36977e457faedaa8c34d41f63dfc0e66966ee684f8cb5b17fd3c8bfec3c648c3

Contents?: true

Size: 676 Bytes

Versions: 5

Compression:

Stored size: 676 Bytes

Contents

begin
  require 'rails/railtie'

  module Hashie
    class Railtie < Rails::Railtie
      # Set the Hashie.logger to use Rails.logger when used with rails.
      initializer 'hashie.configure_logger', after: 'initialize_logger' do
        Hashie.logger = Rails.logger
      end

      initializer 'hashie.patch_hash_except', after: 'load_active_support' do
        if Rails::VERSION::MAJOR >= 6
          require 'hashie/extensions/active_support/core_ext/hash'
          Hashie::Mash.send(:include, Hashie::Extensions::ActiveSupport::CoreExt::Hash)
        end
      end
    end
  end
rescue LoadError => e
  Hashie.logger.info("Hashie skipping railtie as #{e.message}")
end

Version data entries

5 entries across 5 versions & 3 rubygems

Version Path
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/hashie-5.0.0/lib/hashie/railtie.rb
hashie-5.0.0 lib/hashie/railtie.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/hashie-4.1.0/lib/hashie/railtie.rb
hashie-4.1.0 lib/hashie/railtie.rb
hashie-4.0.0 lib/hashie/railtie.rb