lib/honeybadger/init/rails.rb in honeybadger-2.0.10 vs lib/honeybadger/init/rails.rb in honeybadger-2.0.11

- old
+ new

@@ -72,18 +72,11 @@ { :root => ::Rails.root.to_s, :env => ::Rails.env, :'config.path' => ::Rails.root.join('config', 'honeybadger.yml'), :logger => Logging::FormattedLogger.new(::Rails.logger), - :framework => :rails, - :api_key => secrets_api_key + :framework => :rails } - end - - def secrets_api_key - if defined?(::Rails.application.secrets) - ::Rails.application.secrets.honeybadger_api_key - end end end end end end