lib/tasks/seed.rake in seedbank-0.3.0 vs lib/tasks/seed.rake in seedbank-0.4.0.pre

- old
+ new

@@ -26,10 +26,10 @@ override_dependency << "db:seed:#{environment}" if defined?(Rails) && Rails.env == environment end if Rails.version > '4' original_seeds_file = Rails.application.paths["db/seeds.rb"].existent.first - elsif Rails.version > '3' + elsif Rails.version > '3.1' original_seeds_file = Rails.application.paths["db/seeds"].existent.first else original_seeds_file = Rails.root.join("db","seeds").children.first.to_s end define_seed_task original_seeds_file, :original if original_seeds_file