aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorUģis Ozols <ugis.ozolss@gmail.com>2012-02-02 15:49:07 +0200
committerUģis Ozols <ugis.ozolss@gmail.com>2012-02-02 15:49:07 +0200
commitba9091cd14e7179e702a6ba1f3a1957a6691be0b (patch)
treedcaebc1506a33278e3a9cccec9ca02e96b59ed77 /lib
parent5c3de1175f07ecd4b42ea54b0c0857a2ebba118c (diff)
downloadrefinerycms-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.rb1
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