mirror of
https://github.com/iritmaximus/brewery.git
synced 2026-10-12 19:13:49 +03:00
fixed regression
This commit is contained in:
@@ -24,8 +24,8 @@ class BeermappingApi
|
||||
|
||||
def self.key
|
||||
return nil if Rails.env.test?
|
||||
raise 'BEERMAPPING_API_KEY env variable not defined' if ENV['BEERMAPPING_API_KEY'].nil?
|
||||
|
||||
ENV.fetch('BEERMAPPING_API_KEY')
|
||||
key = Rails.application.credentials.beermapping_api_key
|
||||
raise 'BEERMAPPING_API_KEY env variable not defined' if key.nil?
|
||||
return key
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user