
Add support for seeding many records
Reported by Zach Dennis | July 16th, 2008 @ 04:37 PM
The seeding syntax can be awfully redundant and verbose. I have modified seed-fu to introduce the seed_many method. For example:
SeededModel.seed_many(:title, :login, [
{:login => "bob", :title => "Peon", :first_name => "Steve"},
{:login => "frank", :title => "Peasant", :first_name => "Francis"},
{:login => "harry", :title => "Noble", :first_name => "Harry"}
])
See the commit at http://github.com/zdennis/seed-f...
No comments found
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
An attempt to simplify the usage of seed data in Rails applications through a dead simple API.