lib/engine_tasks/db.rake in iqvoc-4.10.0 vs lib/engine_tasks/db.rake in iqvoc-4.11.0
- old
+ new
@@ -7,10 +7,11 @@
end
desc "Load seeds from all engines (db/seed tasks should be idempotent)"
task :seed_all => :environment do
engines = Rails.application.railties.select do |e|
- e.config.respond_to?(:paths) &&
+ e.method(:config).arity == 0 &&
+ e.config.respond_to?(:paths) &&
e.config.paths["db/seeds.rb"] &&
e.config.paths["db/seeds.rb"].existent.any?
end
engines.select{|e| e.engine_name !~ /^iqvoc_/}.each do |engine|