Plugins shouldn't load the environment as this creates circular dependencies.

This commit is contained in:
Michael Noack 2010-01-27 17:08:55 +10:30
parent 7484b6da27
commit dc82528e8b

View file

@ -1,4 +1,8 @@
require File.join(RAILS_ROOT, 'config', 'environment')
begin
require File.join(RAILS_ROOT, 'config', 'environment')
rescue Exception
puts "Could not load environment. Existing environment load"
end
require File.join(File.dirname(__FILE__), '..', 'lib', 'javascript_routes')
require File.join(File.dirname(__FILE__), '..', 'bin', 'jsmin')