Skip to content

Commit

Permalink
fix more
Browse files Browse the repository at this point in the history
  • Loading branch information
tdtds committed Sep 19, 2017
1 parent 5ee83e3 commit f79b1b8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/tdiary/environment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ module TDiary::Cache; end
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 }
env = env.reject{|e|
(Bundler.settings.without rescue Bundler.settings[:without]).include? e
}
Bundler.require *env
end

Expand Down

0 comments on commit f79b1b8

Please sign in to comment.