Skip to content

Commit

Permalink
Raise error when required config vars are not set.
Browse files Browse the repository at this point in the history
Closes #180.
  • Loading branch information
monfresh committed Sep 8, 2014
1 parent 4b60b25 commit da24dde
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions config/initializers/figaro.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Define the environment variables that should be set in config/application.yml.
# See config/application.example.yml if you don't have config/application.yml.
Figaro.require('API_PATH') unless ENV['API_SUBDOMAIN'].present?
Figaro.require('ADMIN_PATH') unless ENV['ADMIN_SUBDOMAIN'].present?
Figaro.require('DEFAULT_PER_PAGE')
Figaro.require('MAX_PER_PAGE')

0 comments on commit da24dde

Please sign in to comment.