Skip to content

Commit

Permalink
Appending true onto the seed_once constraints, tests pass now.
Browse files Browse the repository at this point in the history
  • Loading branch information
queso committed Jan 20, 2010
1 parent 941e97e commit 2610845
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/seed-fu.rb
Expand Up @@ -75,7 +75,8 @@ def self.seed(*constraints, &block)
end

def self.seed_once(*constraints, &block)
SeedFu::Seeder.plant(self, *constraints, true, &block)
constraints << true
SeedFu::Seeder.plant(self, *constraints, &block)
end

def self.seed_many(*constraints)
Expand Down

0 comments on commit 2610845

Please sign in to comment.