aboutsummaryrefslogtreecommitdiffstats
path: root/lib/generators/refinery/blog
diff options
context:
space:
mode:
Diffstat (limited to 'lib/generators/refinery/blog')
-rw-r--r--lib/generators/refinery/blog/blog_generator.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/generators/refinery/blog/blog_generator.rb b/lib/generators/refinery/blog/blog_generator.rb
new file mode 100644
index 0000000..34f6cd2
--- /dev/null
+++ b/lib/generators/refinery/blog/blog_generator.rb
@@ -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