Class: BcmsBmediaFeeds::InstallGenerator

Inherits:
Cms::ModuleInstallation
  • Object
show all
Defined in:
lib/generators/bcms_bmedia_feeds/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_feeds.seeds.rb", "db/bcms_feeds.seeds.rb"
append_to_file "db/seeds.rb", "load File.expand_path('../bcms_feeds.seeds.rb', __FILE__)\n"

end



19
20
21
# File 'lib/generators/bcms_bmedia_feeds/install/install_generator.rb', line 19

def add_routes
  mount_engine(BcmsFeeds)
end

#copy_migrationsObject



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

def copy_migrations
  rake 'bcms_feeds:install:migrations'
end