Skip to content

Commit

Permalink
move the bootstrapper_model generator into the correct directory
Browse files Browse the repository at this point in the history
  • Loading branch information
janxious committed Jul 3, 2011
1 parent 58f2793 commit 8db9c60
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 12 deletions.
28 changes: 26 additions & 2 deletions README.markdown
Expand Up @@ -14,11 +14,11 @@ Example

Rails 3:

./script/rails g bootstrapper
script/rails g bootstrapper

Rails 2:

ruby script/generate bootstrapper
script/generate bootstrapper


This will place a bootstrap.rb file in the db directory within your project.
Expand Down Expand Up @@ -97,6 +97,30 @@ Example
b.run :users
b.run :production

bootstapper_model generator
===========================

You can create model-specific bootstrap files using the bootstrapper_model generator. This generator taks one argument: the name of the bootstrap file.

Rails 3:

script/rails g bootstrapper_model User

Rails 2:

script/generate bootstrapper_model User


Either of those will generate a file:

db/bootstrapper/users.rb

Whose contents will be:

Bootstrapper.for :users do |b|
end


FactoryGirl [http://github.com/thoughtbot/factory_girl/tree/master](http://github.com/thoughtbot/factory_girl/tree/master)

Forgery [http://github.com/sevenwire/forgery/tree/master](http://github.com/sevenwire/forgery/tree/master)
Expand Down
10 changes: 0 additions & 10 deletions generators/bootstrapper_model/USAGE

This file was deleted.

0 comments on commit 8db9c60

Please sign in to comment.