Class: BcmsEvent::InstallGenerator

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

Instance Method Summary collapse

Instance Method Details

#add_routesObject



14
15
16
# File 'lib/generators/bcms_event/install/install_generator.rb', line 14

def add_routes
  mount_engine(BcmsEvent)
end

#add_seed_data_to_projectObject



9
10
11
12
# File 'lib/generators/bcms_event/install/install_generator.rb', line 9

def add_seed_data_to_project
  copy_file "../bcms_event.seeds.rb", "db/bcms_event.seeds.rb"
  append_to_file "db/seeds.rb", "load File.expand_path('../bcms_event.seeds.rb', __FILE__)"
end

#copy_migrationsObject



5
6
7
# File 'lib/generators/bcms_event/install/install_generator.rb', line 5

def copy_migrations
  rake 'bcms_event:install:migrations'
end