Sha256: cbc4e824fa78e9dbf2e30fcb02e29af648b2dc56e8e5b06d0f1173ab189c81c7

Contents?: true

Size: 615 Bytes

Versions: 28

Compression:

Stored size: 615 Bytes

Contents

require 'cms/module_installation'

class <%= module_class %>::InstallGenerator < Cms::ModuleInstallation
  add_migrations_directory_to_source_root __FILE__
  
  
  def copy_migrations
    rake '<%= current_project %>:install:migrations'
  end

  # Uncomment to add module specific seed data to a project.
  #def add_seed_data_to_project
  #  copy_file "../<%= current_project %>.seeds.rb", "db/<%= current_project %>.seeds.rb"
  #  append_to_file "db/seeds.rb", "load File.expand_path('../<%= current_project %>.seeds.rb', __FILE__)\n"
  #end
  
  def add_routes
    mount_engine(<%= module_class %>)
  end
    
end

Version data entries

28 entries across 28 versions & 2 rubygems

Version Path
browsercms-3.5.0.rc2 lib/generators/cms/project/templates/install_generator.erb
browsercms-3.5.0.rc1 lib/generators/cms/project/templates/install_generator.erb
browsercms-3.4.2 lib/generators/cms/project/templates/install_generator.erb
browsercms-3.4.2.rc1 lib/generators/cms/project/templates/install_generator.erb
browsercms-3.4.1 lib/generators/cms/project/templates/install_generator.erb
browsercms-3.4.0 lib/generators/cms/project/templates/install_generator.erb
browsercms-3.4.0.rc2 lib/generators/cms/project/templates/install_generator.erb
browsercms-3.4.0.rc1 lib/generators/cms/project/templates/install_generator.erb