lib/tdiary/environment.rb in tdiary-5.0.0 vs lib/tdiary/environment.rb in tdiary-5.0.1

- old
+ new

@@ -1,7 +1,5 @@ -# -*- coding: utf-8 -*- - # name spaces reservation module TDiary; end module TDiary::Cache; end # Set up gems listed in the Gemfile. @@ -11,10 +9,10 @@ # FIXME: workaround fix for tainted path from Gemfile.local $LOAD_PATH.each{|lp| $LOAD_PATH << $LOAD_PATH.shift.dup.untaint} if defined?(Bundler) - env = [:default] + env = [:default, :rack] env << :development if ENV['RACK_ENV'].nil? || ENV['RACK_ENV'].empty? env << ENV['RACK_ENV'].intern if ENV['RACK_ENV'] env = env.reject{|e| Bundler.settings.without.include? e } Bundler.require *env end