lib/hara/base.rb in hara-0.0.1 vs lib/hara/base.rb in hara-0.0.2
- old
+ new
@@ -1,13 +1,15 @@
require "hara/version"
require 'hara/app'
require 'hara/server'
module Hara
- def env
- @_env ||= :development
- end
+ class << self
+ def env
+ @_env ||= (ENV['APP_ENV'] || :development).to_sym
+ end
- def env= env
- @_env = env
+ def env= env
+ @_env = env
+ end
end
end