app/models/myreplicator/export.rb in myreplicator-1.1.0 vs app/models/myreplicator/export.rb in myreplicator-1.1.1

- old
+ new

@@ -163,13 +163,18 @@ # List of all avaiable databases from database.yml file # All Export/Load jobs can use these databases ## def self.available_dbs dbs = ActiveRecord::Base.configurations.keys - dbs.delete("development") - dbs.delete("production") - dbs.delete("test") - return dbs + available = [] + + dbs.each do |db| + db_config = ActiveRecord::Base.configurations[db] + unless db_config["myreplicator"].nil? + available << db if db_config["myreplicator"] + end + end + return available end ## # NOTE: Provided for Resque use # Schedules all the exports in resque