When RACK_ENV is not defined #14

Closed
wants to merge 1 commit into
from

Conversation

Projects
None yet
3 participants

allaire commented Mar 15, 2012

Just like in pow.cx :)

@@ -176,7 +176,11 @@ def settings
if @@settings.nil?
path = "config/parse_resource.yml"
#environment = defined?(Rails) && Rails.respond_to?(:env) ? Rails.env : ENV["RACK_ENV"]
- environment = ENV["RACK_ENV"]
+ if (!ENV["RACK_ENV"].nil?)
@kunday

kunday Jan 26, 2013

This can be shortened to

ENV["RACK_ENV"] || "development"
Collaborator

jamonholmgren commented Feb 22, 2013

Closing for now. Feel free to re-open with a passing test if this is still an issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment