Class: BcmsGarmentDistrict::InstallGenerator

Inherits:
Cms::ModuleInstallation
  • Object
show all
Defined in:
lib/generators/bcms_garment_district/install/install_generator.rb

Instance Method Summary collapse

Instance Method Details

#add_routesObject

Uncomment to add module specific seed data to a project. def add_seed_data_to_project

copy_file "../bcms_garment_district.seeds.rb", "db/bcms_garment_district.seeds.rb"
append_to_file "db/seeds.rb", "load File.expand_path('../bcms_garment_district.seeds.rb', __FILE__)\n"

end



17
18
19
# File 'lib/generators/bcms_garment_district/install/install_generator.rb', line 17

def add_routes
  mount_engine(BcmsGarmentDistrict)
end

#copy_migrationsObject



7
8
9
# File 'lib/generators/bcms_garment_district/install/install_generator.rb', line 7

def copy_migrations
  rake 'bcms_garment_district:install:migrations'
end