Browse files

Avoid error in Rails 3.1 where the application may have already been …

…initialized
  • Loading branch information...
1 parent 0ee8575 commit e41c91b4d4608c0fd224b31a194f74f14490dcf8 @sikachu sikachu committed Jun 8, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/diesel/testing/application.rb
View
2 lib/diesel/testing/application.rb
@@ -28,7 +28,7 @@ def require_environment!
def initialize!
FileUtils.mkdir_p(Rails.root.join("db").to_s)
- super
+ super unless @initialized
end
end
end

0 comments on commit e41c91b

Please sign in to comment.