Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update blog generator to use Rails 3.1 base
Seeds will now follow Rails 3.1 conventions
- Loading branch information
Jamie Winsor
committed
Oct 28, 2011
1 parent
8cd4a28
commit 5a95800
Showing
5 changed files
with
19 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
module Refinery | ||
class BlogGenerator < Rails::Generators::Base | ||
source_root File.expand_path('../templates', __FILE__) | ||
|
||
def append_load_seed_data | ||
append_file 'db/seeds.rb', :verbose => true do | ||
<<-EOH | ||
# Added by RefineryCMS Blog engine | ||
Refinery::Blog::Engine.load_seed | ||
EOH | ||
end | ||
end | ||
|
||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters