aboutsummaryrefslogblamecommitdiffstats
path: root/lib/generators/refinery/blog/blog_generator.rb
blob: a6a08d565f96bd88cdab1a3f8f2d5ee80974aa6d (plain) (tree)
1
2
3
4
5
6
7

                                               




                                              











                                                    
module Refinery
  class BlogGenerator < Rails::Generators::Base

    def rake_db
      rake("refinery_blog:install:migrations")
    end

    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