Sha256: 8c53ca542e149f7458cc5a9788833ccf5199aea9eb0fdf37ff4d432cc3244924

Contents?: true

Size: 340 Bytes

Versions: 4

Compression:

Stored size: 340 Bytes

Contents

require "rails/generators"

class G5Updatable::InstallGenerator < Rails::Generators::Base
  source_root File.expand_path("../templates", __FILE__)

  def copy_initializer_file
    copy_file "g5_updatable.rb", "config/initializers/g5_updatable.rb"
  end

  def mount_engine
    route "mount G5Updatable::Engine => '/g5_updatable'"
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
g5_updatable-0.2.1 lib/generators/g5_updatable/install/install_generator.rb
g5_updatable-0.2.0 lib/generators/g5_updatable/install/install_generator.rb
g5_updatable-0.1.0 lib/generators/g5_updatable/install/install_generator.rb
g5_updatable-0.0.1 lib/generators/g5_updatable/install/install_generator.rb