Permalink
Browse files

Fix nil error when no databases are defined.

  • Loading branch information...
1 parent f4eabed commit a87fb5e91945fec19cfa6d6a0caaf7d1d00d047d Alexander Staubo committed May 19, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/multidb.rb
View
@@ -7,7 +7,7 @@ class << self
def install!
configure!
- if @configuration and @configuration.raw_configuration[:databases].any?
+ if @configuration and not @configuration.raw_configuration[:databases].blank?
ActiveRecord::Base.class_eval do
include Multidb::ModelExtensions
end

0 comments on commit a87fb5e

Please sign in to comment.