Migrate all secrets to config/secrets.yml
This commit is contained in:
parent
9090cc0d38
commit
ee5d48d494
8 changed files with 29 additions and 20 deletions
|
|
@ -1,11 +1,11 @@
|
|||
HoptoadNotifier.configure do |config|
|
||||
# Change this to some sensible data for your errbit instance
|
||||
config.api_key = CONFIG["errbit_key"] || ""
|
||||
config.host = CONFIG["errbit_host"] || ""
|
||||
config.api_key = Rails.application.secrets.errbit_key || ''
|
||||
config.host = CONFIG['errbit_host'] || ''
|
||||
if config.api_key.blank? || config.host.blank?
|
||||
config.development_environments = "production development test"
|
||||
config.development_environments = 'production development test'
|
||||
else
|
||||
config.development_environments = "development test"
|
||||
config.development_environments = 'development test'
|
||||
end
|
||||
|
||||
config.ignore_only = %w{
|
||||
|
|
@ -14,7 +14,7 @@ HoptoadNotifier.configure do |config|
|
|||
|
||||
config.ignore_by_filter do |exception_data|
|
||||
ret=false
|
||||
if exception_data[:error_class] == "ActionController::RoutingError"
|
||||
if exception_data[:error_class] == 'ActionController::RoutingError'
|
||||
message = exception_data[:error_message]
|
||||
ret=true if message =~ %r{\[GET\]}
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue