Sha256: 1281baaa5d8bb2d699ce5b15d2585b126c83e2fbc97cc1b15d08aa561aad0fef

Contents?: true

Size: 649 Bytes

Versions: 1

Compression:

Stored size: 649 Bytes

Contents

require 'rails/railtie'
require 'action_view/log_subscriber'
require 'action_controller/log_subscriber'

class DetailParser::Railtile < Rails::Railtie
  env = Rails.env.to_sym || :development

  # DetailParser::Logger.logger = Rails.application.config.logger || Rails.logger.presence

  initializer 'detail parser logger', after: :load_config_initializers do
    DetailParser::Logger.logger = Rails.application.config.logger || Rails.logger.presence
    DetailParser::Logger.filter = ActionDispatch::Http::ParameterFilter.new Rails.application.config.filter_parameters
  end

  config.after_initialize do |app|
    DetailParser.setup(app)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
detail_parser-0.1.1 lib/detail_parser/railtile.rb