Sha256: 054b1590fa497971dba1ed8292ea8c7c5d5ec7bb6beec9a31fad4f99ac01e875

Contents?: true

Size: 309 Bytes

Versions: 34

Compression:

Stored size: 309 Bytes

Contents

require "sapience"

module Sapience
  module Rails
    class Railtie < ::Rails::Railtie
      config.before_configuration do
        Sapience.add_appender(:stream, io: STDOUT, level: :warn, formatter: :color) if Sapience.appenders.empty?
        ::Rails.logger = Sapience[::Rails]
      end
    end
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
sapience-2.4.0 lib/sapience/rails/railtie.rb
sapience-2.3.5 lib/sapience/rails/railtie.rb
sapience-2.3.4 lib/sapience/rails/railtie.rb
sapience-2.3.3 lib/sapience/rails/railtie.rb
sapience-2.2.3 lib/sapience/rails/railtie.rb
sapience-2.2.1 lib/sapience/rails/railtie.rb
sapience-2.2.0 lib/sapience/rails/railtie.rb
sapience-2.1.0 lib/sapience/rails/railtie.rb
sapience-2.0.5 lib/sapience/rails/railtie.rb
sapience-2.0.4 lib/sapience/rails/railtie.rb
sapience-2.0.3 lib/sapience/rails/railtie.rb
sapience-2.0.2 lib/sapience/rails/railtie.rb
sapience-2.0.1 lib/sapience/rails/railtie.rb
sapience-2.0.0 lib/sapience/rails/railtie.rb
sapience-1.0.15 lib/sapience/rails/railtie.rb
sapience-1.0.14 lib/sapience/rails/railtie.rb
sapience-1.0.13 lib/sapience/rails/railtie.rb
sapience-1.0.12 lib/sapience/rails/railtie.rb
sapience-1.0.11 lib/sapience/rails/railtie.rb
sapience-1.0.10 lib/sapience/rails/railtie.rb