Class: Refinery::FooterMenuGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/refinery/footer_menu_generator.rb

Instance Method Summary collapse

Instance Method Details

#append_load_seed_dataObject



4
5
6
7
8
9
10
11
# File 'lib/generators/refinery/footer_menu_generator.rb', line 4

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
Refinery::FooterMenu::Engine.load_seed
    EOH
  end
end