class Refinery::MenusGenerator
Public Instance Methods
append_load_seed_data()
click to toggle source
# File lib/generators/refinery/menus/menus_generator.rb, line 13 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 Refinery CMS Page Menus extension Refinery::Menus::Engine.load_seed EOH end end
rake_db()
click to toggle source
# File lib/generators/refinery/menus/menus_generator.rb, line 9 def rake_db rake("refinery_menus:install:migrations") end