Class: Alchemy::Seeder
- Inherits:
-
Object
- Object
- Alchemy::Seeder
- Extended by:
- Shell
- Defined in:
- lib/alchemy/seeder.rb
Direct Known Subclasses
Class Method Summary collapse
-
.seed! ⇒ Object
This seed builds the necessary page structure for Alchemy in your database.
Methods included from Shell
add_todo, desc, display_todos, log, silence!, silenced?, todo, todos, verbose!
Class Method Details
.seed! ⇒ Object
This seed builds the necessary page structure for Alchemy in your database.
Call this from your db/seeds.rb file with the rake db:seed task.
13 14 15 16 |
# File 'lib/alchemy/seeder.rb', line 13 def seed! create_default_site create_root_page end |