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-artirix-4.0.4 lib/generators/cms/project/templates/install_generator.erb
browsercms-artirix-4.0.3.3 lib/generators/cms/project/templates/install_generator.erb
browsercms-artirix-4.0.3.2 lib/generators/cms/project/templates/install_generator.erb
browsercms-artirix-4.0.3.1 lib/generators/cms/project/templates/install_generator.erb
browsercms-artirix-4.0.3 lib/generators/cms/project/templates/install_generator.erb
browsercms-artirix-4.0.2 lib/generators/cms/project/templates/install_generator.erb
browsercms-artirix-4.0.1.1 lib/generators/cms/project/templates/install_generator.erb
browsercms-artirix-4.0.0.rc1.art4 lib/generators/cms/project/templates/install_generator.erb
browsercms-4.0.0.rc1 lib/generators/cms/project/templates/install_generator.erb
browsercms-4.0.0.beta lib/generators/cms/project/templates/install_generator.erb
browsercms-4.0.0.alpha lib/generators/cms/project/templates/install_generator.erb
browsercms-3.5.7 lib/generators/cms/project/templates/install_generator.erb
browsercms-3.5.6 lib/generators/cms/project/templates/install_generator.erb
browsercms-3.5.5 lib/generators/cms/project/templates/install_generator.erb
browsercms-3.5.4 lib/generators/cms/project/templates/install_generator.erb
browsercms-3.5.3 lib/generators/cms/project/templates/install_generator.erb
browsercms-3.5.2 lib/generators/cms/project/templates/install_generator.erb
browsercms-3.5.1 lib/generators/cms/project/templates/install_generator.erb
browsercms-3.5.0 lib/generators/cms/project/templates/install_generator.erb
browsercms-3.5.0.rc3 lib/generators/cms/project/templates/install_generator.erb