Skip to content

Commit

Permalink
Make ENV variables take precedence over config.yml values
Browse files Browse the repository at this point in the history
  • Loading branch information
carols10cents committed Sep 4, 2012
1 parent 1fe0ac6 commit 49b0f46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/initializers/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
config.each do |key, value|
if key == "PONY_VIA_OPTIONS"
Pony.options = { :via_options => value }
else
elsif ENV[key].blank?
ENV[key] = value
end
end
Expand Down

0 comments on commit 49b0f46

Please sign in to comment.