diff options
author | Uģis Ozols <ugis.ozolss@gmail.com> | 2012-02-02 15:49:07 +0200 |
---|---|---|
committer | Uģis Ozols <ugis.ozolss@gmail.com> | 2012-02-02 15:49:07 +0200 |
commit | ba9091cd14e7179e702a6ba1f3a1957a6691be0b (patch) | |
tree | dcaebc1506a33278e3a9cccec9ca02e96b59ed77 /lib | |
parent | 5c3de1175f07ecd4b42ea54b0c0857a2ebba118c (diff) | |
download | refinerycms-blog-ba9091cd14e7179e702a6ba1f3a1957a6691be0b.tar.gz refinerycms-blog-ba9091cd14e7179e702a6ba1f3a1957a6691be0b.tar.bz2 refinerycms-blog-ba9091cd14e7179e702a6ba1f3a1957a6691be0b.zip |
Make sure there is seeds.rb file before trying to append to it.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/generators/refinery/blog/blog_generator.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/generators/refinery/blog/blog_generator.rb b/lib/generators/refinery/blog/blog_generator.rb index a6a08d5..6c0a604 100644 --- a/lib/generators/refinery/blog/blog_generator.rb +++ b/lib/generators/refinery/blog/blog_generator.rb @@ -6,6 +6,7 @@ module Refinery end def append_load_seed_data + create_file 'db/seeds.rb' unless File.exists?(File.join(destination_root, 'db', 'seeds.rb')) append_file 'db/seeds.rb', :verbose => true do <<-EOH |