Sha256: e457405341a03dc1a47486e58631d4a66c1fd6b39adbacdedb9914803d66a7d8
Contents?: true
Size: 921 Bytes
Versions: 2
Compression:
Stored size: 921 Bytes
Contents
module Rollbar module RailtieMixin extend ActiveSupport::Concern included do rake_tasks do require 'rollbar/rake_tasks' end initializer 'rollbar.configuration' do config.after_initialize do Rollbar.preconfigure do |config| config.default_logger = proc { ::Rails.logger } config.environment ||= ::Rails.env config.root ||= ::Rails.root config.framework = "Rails: #{::Rails::VERSION::STRING}" config.filepath ||= ::Rails.application.class.parent_name + '.rollbar' end end end initializer 'rollbar.controller_methods' do ActiveSupport.on_load(:action_controller) do # lazily load action_controller methods require 'rollbar/plugins/rails/controller_methods' include Rollbar::Rails::ControllerMethods end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rollbar-2.18.2 | lib/rollbar/plugins/rails/railtie_mixin.rb |
rollbar-2.18.0 | lib/rollbar/plugins/rails/railtie_mixin.rb |