Sha256: adbc171a6eaa0d2fd8716ffd5904ba613943ab5a144928b47a5d8d93dc44a2a3

Contents?: true

Size: 532 Bytes

Versions: 6

Compression:

Stored size: 532 Bytes

Contents

require 'rails'

module JsRoutes
  module Generators
    class InstallGenerator < ::Rails::Generators::Base

      desc "This generator install JsRoutes pathBuilder.js which contains utils for building routes on client side"
      source_root File.expand_path('../../../../assets/javascripts', __FILE__)

      def copy_pathbuilder
        say_status("copying", "jquery.pathBuilder.js (#{JsRoutes::VERSION})", :green)

        copy_file "jquery.pathBuilder.js", "public/javascripts/jquery.pathBuilder.js"
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
js_routes-0.1.18 lib/generators/js_routes/install/install_generator.rb
js_routes-0.1.17 lib/generators/js_routes/install/install_generator.rb
js_routes-0.1.16 lib/generators/js_routes/install/install_generator.rb
js_routes-0.1.15 lib/generators/js_routes/install/install_generator.rb
js_routes-0.1.14 lib/generators/js_routes/install/install_generator.rb
js_routes-0.1.12 lib/generators/js_routes/install/install_generator.rb