Permalink
Browse files

Adding dependency for environment when using ORMs other than ActiveRe…

…cord
  • Loading branch information...
1 parent b0d2b4d commit efed5efe3155b4eb478417a61236f3499d9eca3e @ahmadsherif ahmadsherif committed Oct 22, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/seedbank/dsl.rb
View
@@ -13,7 +13,7 @@ def override_seed_task(*args, &block)
def seed_task_from_file(seed_file)
scopes = scope_from_seed_file(seed_file)
fq_name = scopes.push(File.basename(seed_file, '.seeds.rb')).join(':')
- args = Rake::Task.task_defined?('db:abort_if_pending_migrations') ? { fq_name => 'db:abort_if_pending_migrations' } : fq_name
+ args = Rake::Task.task_defined?('db:abort_if_pending_migrations') ? { fq_name => 'db:abort_if_pending_migrations' } : { fq_name => :environment }
define_seed_task(seed_file, args)
end

0 comments on commit efed5ef

Please sign in to comment.