module Refinery
  class NewsGenerator < Rails::Generators::Base
    def rake_db
      rake("refinery_news:install:migrations")
    end
  end
end

module Refinery
  class NewsGenerator < Rails::Generators::Base
    def rake_db
      rake("refinery_news:install:migrations")
    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

# Added by RefineryCMS News engine
Refinery::News::Engine.load_seed
        EOH
      end
    end
  end
end

Append seed loading to main app seeds.rb.
Append seed loading to main app seeds.rb.
