Sha256: 8df92c68d51ef537c1aad619eba3058b06f9e1837def27c1f5dcbb30e7603ebb

Contents?: true

Size: 385 Bytes

Versions: 4

Compression:

Stored size: 385 Bytes

Contents

if defined?(ActionController::Base) && !ActionController::Base.include?(HoptoadNotifier::Catcher)
  ActionController::Base.send(:include, HoptoadNotifier::Catcher)
end

require 'hoptoad_notifier/rails_initializer'
HoptoadNotifier::RailsInitializer.initialize

HoptoadNotifier.configure(true) do |config|
  config.environment_name = RAILS_ENV
  config.project_root     = RAILS_ROOT
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
hoptoad_notifier-2.1.3 lib/hoptoad_notifier/rails.rb
hoptoad_notifier-2.1.2 lib/hoptoad_notifier/rails.rb
hoptoad_notifier-2.1.1 lib/hoptoad_notifier/rails.rb
hoptoad_notifier-2.1.0 lib/hoptoad_notifier/rails.rb