Sha256: 81079a82ee781ec57a3ea554f13a69bde793a3c7af7256133ce35b8fb3f09643

Contents?: true

Size: 610 Bytes

Versions: 1

Compression:

Stored size: 610 Bytes

Contents

module RailsScript
  module Generators
    class InstallGenerator < ::Rails::Generators::Base
      source_root File.expand_path("../../../../../app/assets/javascripts", __FILE__)

      def copy_files
        template 'base.coffee', 'app/assets/javascripts/base.coffee'
        template 'global.coffee', 'app/assets/javascripts/global.coffee'
      end

      def insert_layout_javascript
        say <<-RUBY
In order to complete installation, you must include the following helper BEFORE the closing body tag in the application layout:

<%= include_rails_script %>

        RUBY
      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rails_script-2.0.4 lib/generators/rails_script/install/install_generator.rb