Sha256: 16986af5988c2e90403fd2c6fdc85869a3a304df584f61b500fb1714d70e514b
Contents?: true
Size: 782 Bytes
Versions: 42
Compression:
Stored size: 782 Bytes
Contents
require 'rollbar' module Rollbar module Rails def self.initialize rails_logger = if defined?(::Rails.logger) ::Rails.logger elsif defined?(RAILS_DEFAULT_LOGGER) RAILS_DEFAULT_LOGGER end Rollbar.preconfigure do |config| config.logger = rails_logger config.environment = defined?(::Rails.env) && ::Rails.env || defined?(RAILS_ENV) && RAILS_ENV config.root = defined?(::Rails.root) && ::Rails.root || defined?(RAILS_ROOT) && RAILS_ROOT config.framework = defined?(::Rails.version) && "Rails: #{::Rails.version}" || defined?(::Rails::VERSION::STRING) && "Rails: #{::Rails::VERSION::STRING}" end end end end Rollbar::Rails.initialize
Version data entries
42 entries across 42 versions & 1 rubygems