Sha256: 0fd83b223e3fec56b40db4436a107aac23fca9cab1c01997acd08f8c35225089
Contents?: true
Size: 724 Bytes
Versions: 2
Compression:
Stored size: 724 Bytes
Contents
require 'cms/module_installation' class BcmsBitly::InstallGenerator < Cms::ModuleInstallation add_migrations_directory_to_source_root __FILE__ def copy_migrations rake 'bcms_bitly:install:migrations' end # Uncomment to add module specific seed data to a project. #def add_seed_data_to_project # copy_file "../bcms_bitly.seeds.rb", "db/bcms_bitly.seeds.rb" # append_to_file "db/seeds.rb", "load File.expand_path('../bcms_bitly.seeds.rb', __FILE__)\n" #end def copy_intializer source_path = File.expand_path('../templates/config/initializers/bcms_bitly.rb', __FILE__) copy_file source_path, 'config/initializers/bcms_bitly.rb' end def add_routes mount_engine(BcmsBitly) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bcms_bitly-1.0.0 | lib/generators/bcms_bitly/install/install_generator.rb |
bcms_bitly-0.0.4 | lib/generators/bcms_bitly/install/install_generator.rb |