From 7cfe2fe06e44c79b3cb949fd83e7bb52eddb824a Mon Sep 17 00:00:00 2001 From: Joshua Pinter Date: Tue, 2 Sep 2014 15:34:19 -0600 Subject: [PATCH] Add example for running SeedFu in your code. Using a path and a regex. --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 2b2a9dc..3cfd89a 100644 --- a/README.md +++ b/README.md @@ -114,7 +114,10 @@ Seed files can be run automatically using `rake db:seed_fu`. There are two optio * `rake db:seed_fu FIXTURE_PATH=path/to/fixtures` -- Where to find the fixtures * `rake db:seed_fu FILTER=users,articles` -- Only run seed files with a filename matching the `FILTER` -You can also do a similar thing in your code by calling `SeedFu.seed(fixture_paths, filter)`. +You can also do a similar thing in your code by calling `SeedFu.seed(fixture_paths, filter)`, for example: + + SeedFu.seed( Rails.root.join( 'db', 'seeds' ), /users/ ) + Disable output --------------