motion-prime/env.rb in motion-prime-0.5.2 vs motion-prime/env.rb in motion-prime-0.5.3
- old
+ new
@@ -1,8 +1,10 @@
module MotionPrime
class Env
def env
- ENV['PRIME_ENV'] || ENV['RUBYMOTION_ENV'] ||
+ (defined?(NSBundle) && NSBundle.mainBundle.objectForInfoDictionaryKey('PRIME_ENV')) ||
+ ENV['PRIME_ENV'] ||
+ ENV['RUBYMOTION_ENV'] ||
(defined?(RUBYMOTION_ENV) && RUBYMOTION_ENV) ||
'development'
end
def to_s
\ No newline at end of file