Sha256: 97bc76c12e35d04f1f76b0fce10ba9b008494a679c5edbbc4e072583c6fc52b4

Contents?: true

Size: 382 Bytes

Versions: 2

Compression:

Stored size: 382 Bytes

Contents

module Dash
  class InstallGenerator < Rails::Generators::Base
    
    source_root File.expand_path('../templates', __FILE__)

    def install
      route "mount RailsDash::Engine => '/dash'"
      route "namespace :dash do\n\n  end"
      template 'dash.erb', 'app/controllers/dash_controller.rb'
      template 'layout.erb', 'app/views/layouts/dash.html.haml'
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rails_dash-0.0.6 lib/generators/dash/install_generator.rb
rails_dash-0.0.5 lib/generators/dash/install_generator.rb